Need a Game Architecture Example

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
tenseiga
Posts: 3
Joined: Wed Mar 26, 2008 7:12 pm

Need a Game Architecture Example

Post by tenseiga »

Hey guys. first post i guess. Ive been fooling around with teh irrlicht engine but somehow i just cant seem to wrap my head around how to use it for a small or medium sized game.. i was wondering if someone would be so kidn to provide me with a (or a few) link(s) to an opensource game that uses irrlicht. i need to have a look at the architecture of the code. how the irrlicht functions are called etc. i found a little racing sim but it didnt look to pretty and there was no gurantuee on whether or not the api wa used correctly. Thanks,

10c.
this noob has a long way to go.
FuzzYspo0N
Posts: 914
Joined: Fri Aug 03, 2007 12:43 pm
Location: South Africa
Contact:

Post by FuzzYspo0N »

im sure there is a lot to get from another game, but frst try understanding your gtame architecture in depth. start with a game design and post back some info, and the strategy for code layout will become a lot easier :)

welcome, btw
MasterGod
Posts: 2061
Joined: Fri May 25, 2007 8:06 pm
Location: Israel
Contact:

Re: Need a Game Architecture Example

Post by MasterGod »

tenseiga wrote:i found a little racing sim but it didnt look to pretty and there was no gurantuee on whether or not the api wa used correctly. Thanks
You can check my sig though I can't promise I, used it correctly, as you put it..
Image
Dev State: Abandoned (For now..)
Requirements Analysis Doc: ~87%
UML: ~0.5%
rogerborg
Admin
Posts: 3590
Joined: Mon Oct 09, 2006 9:36 am
Location: Scotland - gonnae no slag aff mah Engleesh
Contact:

Post by rogerborg »

Irrlicht is a 3D engine, not a game engine. This is important because it makes few demands on the game architecture. In other words, there's no "correct" way to use it, at least architecturally. Whatever works for you is correct.
Please upload candidate patches to the tracker.
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
Acki
Posts: 3496
Joined: Tue Jun 29, 2004 12:04 am
Location: Nobody's Place (Venlo NL)
Contact:

Post by Acki »

I also would say that the architecture depends on the game type... ;)
and right, there is not realy a correct architecture...
while(!asleep) sheep++;
IrrExtensions:Image
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
tenseiga
Posts: 3
Joined: Wed Mar 26, 2008 7:12 pm

Post by tenseiga »

well yes i understandt hat theres no correct way to do it, but for some reason i cant figure out ANY way to lay out the code. The game design is pretty simple. its 3d pacman. u play the whole game from an fps point of view. you can see the ghosts sillhoutes through the walls and theres a small minimap that indicates only the remaining feeds.

So i just wanted to have a look at a few or maybe one games code to get a few ideas. I have a few of my own but that was back in the 2d days where there was just a draw(tex, pos).
peace all and thanks for the help,
10c.
this noob has a long way to go.
FuzzYspo0N
Posts: 914
Joined: Fri Aug 03, 2007 12:43 pm
Location: South Africa
Contact:

Post by FuzzYspo0N »

aha nice idea to start with. at least you arent going for the next wow like every other newcomer :D

I will layout a design, im sure others will too . ill post it as soon as i get it done :)
Acki
Posts: 3496
Joined: Tue Jun 29, 2004 12:04 am
Location: Nobody's Place (Venlo NL)
Contact:

Post by Acki »

yes, a nice idea !!! :)

you can also look at my site, there I have 3 games for download I created (including sources)...
the "999er" game is commented (but it also uses Irrlicht plus my extensions), the other 2 games are not well commented though...
maybe you get some inspirations with it... ;)

and if you have questions then ask here in general (of course you can send me an email too if youhave questions about my games)... ;)
while(!asleep) sheep++;
IrrExtensions:Image
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
Swarmer
Posts: 100
Joined: Mon Apr 16, 2007 7:23 am

Post by Swarmer »

You can check out IrrWizard: http://irrwizard.sourceforge.net/wiki/i ... /Main_Page
It makes the general framework for a basic FPS game.

I looked at the UML framework for inspiration for my game (not an FPS, but still applicable), and it's really helpful in showing the general manager classes that you probably will need. You can find the pic of it here:
http://irrwizard.sourceforge.net/uml/content/
Scroll down and right, it's big!

You can also download IrrWizard itself which set's up a project for you with the skeleton of that framework already written in.
hessiess
Posts: 47
Joined: Wed Mar 12, 2008 8:39 pm

Post by hessiess »

think what the game needs to do, eg move player, check wearther its alive etc, then create functions or clsses of functions which do the nesoserry calculations.

something else you could do is start by making a prototype with 1 huge function, then brake it up as nesoserry.

I am also new to programming, but i find this tecnque works quite well
Post Reply