Description

In the 1970's there was this arcade game, centipede. The game is simple and addictive for the times. Moving a growing centipede all over the screen trying to eat up all the mushrooms that you can without running into yourself.

Multipede is similar in objective. Using simple controls, move a multipede through a forest of mushrooms, growing longer each time one is eaten. The object is to eat all the mushrooms without running into your own body, or into any of the skulls that are sprinkled throughout the forest.

Game Play

Game play is relatively simple. You control a multipede which is continuously moving through the forest. You use the arrow keys on the keyboard to change its direction. The direction keys specify an absolute direction in which the multipede should move.

Up Arrow - Move up the screen
Down Arrow - Move down the screen
Left Arrow - Move to the left
Right Arrow - Move to the right

Once you change your direction, you will continue on that path until you press another key to change again.

In addition you can use a joystick plugged into the lower joystick port for movement. Right, left, up, down, move the snake in the specified direction. Using a gamepad with a thumb control works better than a flight stick type of joystick.

Program Structure

The program follows roughly the Model/View/Controller paradigm made popular with the SmallTalk language. That is, the game is split up into the game state (model), the user interface (View), and the commands that change the game (controller).

This particular modularization of the program makes it relatively easy to change any of the modules without affecting the others. For example, if you want to change the look of the icons that make up the snake, you can do it and none of the other parts of the program will change.

Classes


ClassDescription
GameEngine
The main application subclass
GameState
The game state
GameView
The game presenter/ window
pixel_buffer
A pixel buffer base class
ICONmushroom
Icon of a mushroom
ICONempty
Icon of blank space
ICONsnake
Icon of snake body section
ICONhdup
Icon of snake head pointing up
ICONhdright
Icon of snake head pointing right
ICONhddown
Icon of snake head pointing down
ICONhdleft
Icon of snake head pointing left
ICONkiller
Icon of skull
ICONheart
Icon of heart