Classic Game Programming On The NES - Chapter 7 - Move and shoot
This chapter covers
- Look at Hhow the NES handles player objects (sprites)
- Defining some patterns for our player and bullet.
- How to control the timing of movement and gameplay.
- Getting some objects moving on the screen.
- Testing the gamepad direction and moving the player’s ship left or right.
- Testing the gamepad fire button and placing a bullet on the screen.
- Moving the current player bullet up the screen.
In the last chapter, we drew our background graphics for both the title screen and the main game screen. In this chapter, we can look at how you display the player objects on screen using special objects provided by the NES hardware called sprites. We will use the sprites to display our player’s ship on screen and allow the player to move it left and right using the game controller.
Then we will use another sprite to display the player’s bullet that will be triggered by the player pressing one of the action buttons on the game controller and then movingmove up to the top of the screen.
layout: page title: “Classic Games Programming for the NES - Chapter 7 - Move and shoot” permalink: /ProgrammingGamesForTheNES/CGPNES-CH07