Hey, I’m currently re-writing all of the code for my game once again in an attempt to start doing things correctly. I’d like to ask a question about how the framework of a game should be set up, I know this is pretty basic but I’ve messed up on this a few times.
Example Game Structure:
http://imgur.com/cORcu9x
Questions:
- Is the diagram that I linked to above correct, if not what should be changed?
- Should the game loop call a method in a different class that then gets all of the changes for every single thing and sends it off to all of the other classes that require variables or is there a better way to do it?
- Should I have separate classes for the player, sprites, map, etc…?