Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: best way to manage entity  (Read 1440 times)

0 Members and 1 Guest are viewing this topic.

ayzed

  • Newbie
  • *
  • Posts: 9
    • View Profile
best way to manage entity
« 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?

Lo-X

  • Hero Member
  • *****
  • Posts: 618
    • View Profile
    • My personal website, with CV, portfolio and projects
Re: best way to manage entity
« Reply #1 on: May 01, 2012, 06:31:11 pm »
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.

ayzed

  • Newbie
  • *
  • Posts: 9
    • View Profile
Re: best way to manage entity
« Reply #2 on: May 01, 2012, 07:16:12 pm »
i will check it right now,thank you veryyyyy much :D

 

anything