Keep your game classes organized and logically ordered. Create a GameObject class, a GameCharacter class and then subclass these. Its important to keep your Game Objects ordered as well as your code. The more you order your objects, the cleaner your code will be as well. A GameObject is anything used in a game from labels to sprites to power ups. Its important to create a base class for all objects because, as a simple example, you want to be able to constrain all game objects to your screen. Its not unthinkable to believe that at some point you might inadvertently cause a game object to be pushed off screen.… Read More
Continue Reading