First off, AWESOME book! It really opened my eyes up to some nice new concepts!
I'm writing my second game and from everything I learned from my first game, I know what to avoid this time around.
I'm going to pass up using game states and instead use processes. I've got a slew of ideas of how this could be best implemented but not 100% sure if my ideas are right.
So lets take a game like space invaders. The opening splash screens could be the first process, it fades the title in and out and links to the menu process which allows the user to start, view high scores or quit.
If start is hit, it starts a big chain of events. A process loads the level and once done links to the main game process. The world manager is instantiated which is the container for all the entities - player, aliens, base, bullets. Individual systems control the various entities.
So would it make sense for one process to handle the whole world, update/render all entities, check for collisions etc?
OR
One process handles the player, another handles the aliens, another the bullets... etc
Some system that is part of the world class handles the collision detection.
All systems use the event manager to communicate together. Is the event manager a process as well?
I'm just wondering if my thinking is right about all this!
Any input would be great!
Thanks
Fred
I'm writing my second game and from everything I learned from my first game, I know what to avoid this time around.
I'm going to pass up using game states and instead use processes. I've got a slew of ideas of how this could be best implemented but not 100% sure if my ideas are right.
So lets take a game like space invaders. The opening splash screens could be the first process, it fades the title in and out and links to the menu process which allows the user to start, view high scores or quit.
If start is hit, it starts a big chain of events. A process loads the level and once done links to the main game process. The world manager is instantiated which is the container for all the entities - player, aliens, base, bullets. Individual systems control the various entities.
So would it make sense for one process to handle the whole world, update/render all entities, check for collisions etc?
OR
One process handles the player, another handles the aliens, another the bullets... etc
Some system that is part of the world class handles the collision detection.
All systems use the event manager to communicate together. Is the event manager a process as well?
I'm just wondering if my thinking is right about all this!
Any input would be great!
Thanks
Fred