Chapter 6. Robot Rampage – Multi-Axis Mayhem
In the depths of a top secret research facility, a supercomputer has gone rogue. It has reached out over the worldwide network and seized control of automated factories across the globe. In these factories, it has begun building tank-like robotic warriors.
In Robot Rampage, the player takes on the roll of a robo-tank "fighting for the good guys". The player moves from factory to factory, shutting down the computer-controlled manufacturing facilities and destroying the enemy robots.
Robot Rampage is a multi-axis game—the player's movement and weaponry are controlled separately, allowing them to move and fire in any combination of directions simultaneously.
In this chapter, we will begin constructing the Robot Rampage project and explore the following topics:
Using a camera class to view a world larger than the game window
Creating a sprite class that is aware of coordinates in the larger world
Building a tile-based game world map
Building a player sprite...