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

A place for Ogre users to discuss non-Ogre subjects with friends from the community.
User avatar
nikki
Old One
Posts: 2730
Joined: Sat Sep 17, 2005 10:08 am
Location: San Francisco
x 13

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

Post 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.
hydexon
Gremlin
Posts: 164
Joined: Sun Apr 14, 2013 8:51 pm
x 10

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

Post by hydexon »

That "editor" reminds me the BUILD engine "Mapster", oh the memories.
Anyways interesant 2d engine.
User avatar
areay
Bugbear
Posts: 819
Joined: Wed May 05, 2010 4:59 am
Location: Auckland, NZ
x 69

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

Post by areay »

Wow, emacs shell. Much respect.