Up to this point I've been working on the game for nearly 2 months. I've got the basics sorted and now moved onto creating a world model with entities. I have all my visuals happening in their own classes with the world class calling them. In addition I have entity class setup with child classes of these which inherit from the base class. These will be things such as a player, enemy, bullet etc.
![]() |
| Showing the main.cpp calling world functions |
Animation
I've had basic texture blitting to the screen for a while but to make it animate I had to adjust the function to accept frames and also to only render a specific part of an image. I have to do this because each animation is on a single image. Next I created an Enum class to hold states to what animation should be playing. Heres an example of it working. All images are placeholders at the moment so you see some glitchyness.
HAPI libary provided by Keith Ditchburn - Teesside University
Images used - http://opengameart.org/content/blocky
