Page 1 of 1

cgame - a 2d game engine/editor I've been working on

Posted: Fri May 02, 2014 8:45 am
by nikki
So it's been a while since I posted here. I haven't worked on anything with Ogre, but I've still been doing gamedev stuff. For my independent work project this semester I worked on a 2d game engine that is loosely based on the entity-system model. Here's a timelapse of me making a space shooter prototype with it:

[youtube]Lb1NWyUqAfA[/youtube]

Full source code for the engine is available here: https://github.com/nikki93/cgame

The engine is written in C and is Lua-scriptable. It supports save/load of everything and also merge-loading (load without clearing current state - this is even how duplication works in the editor, it saves selected entities to a temporary buffer then merges back). Also you can run code on the fly and thus can edit system logic while the game is running, even while in the editor. A large chunk of game development can actually be done without ever exiting the game. The aim has been to speed up iteration during development. Textures (and thus sprite images) are reloaded when modified on disk (you can see this in the video as I add sprites to the atlas and load them up).

I'm working on a paper about it which talks about the philosophy and design decisions.

I'm currently looking for ideas for simple games to make quickly and make a timelapse to showcase the engine, so let me know if you have any suggestions! The engine has a physics system so physics-based games would be easy.

Re: cgame - a 2d game engine/editor I've been working on

Posted: Fri May 02, 2014 10:14 pm
by hydexon
That "editor" reminds me the BUILD engine "Mapster", oh the memories.
Anyways interesant 2d engine.

Re: cgame - a 2d game engine/editor I've been working on

Posted: Fri May 09, 2014 10:01 am
by areay
Wow, emacs shell. Much respect.