SFML community forums
Help => General => Topic started by: ayzed on May 01, 2012, 06:25:33 pm
-
how can i make a list that can contain multiple class and object so that i can add elements to the game world as easy as in FlashPunk in action script 3?
-
I really don't know anyting about AS3, but if youhave a lot of different "entities" in your game, I advise you to use an "Entity System". I can provide you different links :
The classic about this subject :
http://cowboyprogramming.com/2007/01/05/evolve-your-heirachy/
http://t-machine.org/index.php/2007/09/03/entity-systems-are-the-future-of-mmog-development-part-1/
A anwser I juste made on this forum :
http://en.sfml-dev.org/forums/index.php?topic=7769.msg51671#msg51671
By searching "Entity System" or "Entity Component System" on google you will find a lot of things
NB: This system is useful when you have a loooooot of different entities, to avoid a huuuuge object hierarchy.
-
i will check it right now,thank you veryyyyy much :D