Page 1 of 1

example game framework

Posted: Tue Dec 20, 2011 9:46 pm
by stevend
this is by no means complete!

i have recently switched to a different game engine, but i would like to share some code with the community!

what is in this package is a game engine i started to develop using Irrlciht , IrrEdit, and IrrBullet.

this package contains a example game framework that could help some people get an idea on how to develop a simple game framework.

this framework contains a few things:

an event manager for calling specific events

a singleton framework so you can access different specifics of the game manager from any where in your code

a map loader which loads a map from irredit and applies physics using irredit

a gui manager to help you begin setting up specific menu screens

some assets to start your game.

-------

i have recently started using a different game engine and figured i would release the code i started working on, maybe it could pose usefull to someone

let me know what you think!

download HERE:

http://confined.coderzilla.net/files/paradigm.rar

Re: example game framework

Posted: Wed Dec 21, 2011 2:17 am
by zerochen
hi,

first personally i would to know why you changed the engine?

and have a second note about your code.
why have you used so much singletons?
there is no need for this. the singleton design pattern is against OOP, so it is often called as an anti pattern.
here a two articles that descripes the problem with them:
http://www.ibm.com/developerworks/libra ... index.html
http://jalf.dk/blog/2010/03/singletons- ... ince-1995/

Re: example game framework

Posted: Wed Dec 21, 2011 7:47 am
by stevend
i was originally designing a game engine for an rpg game.

i changed engines to Unity3D because it saved a whole lotta coding. i have use irrlicht for years, i still love her :)

this was just a simple example, and although i know, globals can be bad, its a short example, and having globally accessible portions of the framework just seems easier to follow, same as how when reading example code and such, examples usually follow a more procedural explanation.

Re: example game framework

Posted: Wed Dec 21, 2011 7:44 pm
by shadowslair
stevend wrote:i have use irrlicht for years, i still love her :)
I also love her. :mrgreen: