Animated game objects
The basis for all of our game objects apart from the tile-based map (the player, enemies, and gemstones) will be a class called GameObject. This class will provide support for playing animations and collision detection with the tile map.
In many ways, the GameObject class is similar to the Sprite class we built for our other games. Because the GameObject class does not hold texture information like the Sprite class did, we have given it a new name to better describe its functionality.
Just as we did in Robot Rampage, we will track the position of all of our game objects in world coordinates, translating those to screen coordinates as necessary with the Camera class.