Skip to content

Latest commit

 

History

History
17 lines (11 loc) · 880 Bytes

CGPNES-CH08.md

File metadata and controls

17 lines (11 loc) · 880 Bytes

Classic Game Programming On The NES - Chapter 8 - Enemy movement

This chapter covers

  • Generating random numbers
  • Adding the logic to generate and display new enemy asteroids.
  • Making the asteroids move down toward the player.
  • Removing asteroids as they reach the bottom of the screen.

In previous chapters, we placed the player’s ship on the screen and allowed the player to move the ship and fire bullets. Now we need to introduce some enemy objects for the player to shoot at and dodge away from as they move down the screen. Just like in the original Astro Smash game, our main enemy objects will be asteroids of various sizes that move down the screen at different speeds.

Back to main page..

layout: page title: "Classic Games Programming for the NES - Chapter 8 - Enemy movement" permalink: /ProgrammingGamesForTheNES/CGPNES-CH08