Adding the player
The player's star fighter is a small, three frame animation that the player will control with either the keyboard or the gamepad, shown as follows:
As with both Asteroids
and Shots
, we will create a manager class for the player. The PlayerManager
will be responsible for handling player input, firing shots, and limiting the player to a pre-defined area on the screen.