July 2024
Beginner to intermediate
320 pages
8h 13m
English
This chapter covers
In this chapter, we are going to cover handling the collision between the player and enemies, animating the player’s death sequence, and displaying the number of lives the player has remaining. Of course, once the player has run out of lives, we need to show Game Over on the screen, returning to our game intro screen so the player can view the high score and start a new game.
First, we need to detect if any of the enemy objects have hit the player’s ship. The best place to do this is in our existing enemy object loop, ...
Read now
Unlock full access