(SIPC) Platform Game Lesson
Platform Game
Another popular type of game is a platform game. A platform game involves guiding an avatar to jump between suspended platforms or obstacles to advance in the game. The player controls the jumps to avoid letting the avatar fall. Donkey Kong, an arcade game created by Nintendo was the first true platformer game. Nintendo created another platform game, Mario Brothers.
Download the Simple Platform Game from the sidebar. This game uses a helper class named Mover. The Mover class has for moving an object.
This game also shows you how to create different levels. Notice two subclasses of World were created to produce the different levels.
After downloading and unzipping the program, run the game and then analyze the code.
Mover Class
The Mover class uses a programming construct called an Array. An array is a data structure that can store many objects or data. The wall objects in the Simple Platform Game, which you will work with in your assignment, are stored in an array.
Go through the learning objects on Arrays and the Mover class to learn more about arrays and how to use the Mover class to create a platform game.
[CC BY 4.0] UNLESS OTHERWISE NOTED | IMAGES: LICENSED AND USED ACCORDING TO TERMS OF SUBSCRIPTION