Regarding my other post about OOP game programming (and bullets
I have a second question:
Typically one would try to keep score of objects created in a table, like " bullets[#bullets+1] = bulletlib.newBullet ". This allows you to go over each element in this table and perform sweet logic with these elements. This is what I typically do (for destroying sprites when a level is over, for instance).
Now, if I would go down another path and go strict OOP, I wonder if this is necessary. I get the feeling that it would be nice to create âanonymousâ objects, without names or handlers, and just give them all their own game logic, including logic to destroy and remove themselvers. I could use a variable like âleveldoneâ and set it to true, and have all my bullets check this variable each frame to see if they should disappear or not.
So what do you think? Sweetness because you donât have to keep track of things and every objects takes care of itself without the need to be addressed with a handler, or nightmarish because you have no control or management of your objects?
I know this is a very open question but feel free to chip in 
Cheers,
Thomas
p.s. I do all my stuff without physics, just using my own tile engine. [import]uid: 70134 topic_id: 27922 reply_id: 327922[/import]
