example game framework

Post those lines of code you feel like sharing or find what you require for your project here; or simply use them as tutorials.
Post Reply
stevend
Posts: 114
Joined: Sat Mar 01, 2008 7:18 pm

example game framework

Post 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
zerochen
Posts: 273
Joined: Wed Jan 07, 2009 1:17 am
Location: Germany

Re: example game framework

Post 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/
stevend
Posts: 114
Joined: Sat Mar 01, 2008 7:18 pm

Re: example game framework

Post 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.
shadowslair
Posts: 758
Joined: Mon Mar 31, 2008 3:32 pm
Location: Bulgaria

Re: example game framework

Post by shadowslair »

stevend wrote:i have use irrlicht for years, i still love her :)
I also love her. :mrgreen:
"Although we walk on the ground and step in the mud... our dreams and endeavors reach the immense skies..."
Post Reply