General Description
This game is just for fun. The user instructions are displayed when the program is run. The object of the game is to survive for as long as you possibly can. You must imagine that you are riding a light bike which produces a wall behind you as you progress around the screen. If you crash into one of these walls both you and the wall will vaporise. Good luck!
Detailed Description
Lines 11-12 Displays title and asks how many players are going to play, also this is the first part of the delete trick.
14-18 It first goes to the procedure to set up variables then to the procedure to display the game board, then to the procedure to get movement from the keyboard.
Line 16: if computer is still playing then jump to procedure to make his move.
Line 17: go to procedure to move all the players.
19-25 Procedure for displaying title, and jumps to procedure to ask user who is going to play.
If L = 0 then left player is playing.
If R = 0 then right player is playing.
If CP = 0 then computer is playing.
26-34 Sets up variables.
SP = speed.
LX, LY are the coordinates of left player.
RX, RY are the coordinates of right player.
CX, CY are the coordinates of the computer.
LDX, LDY are the direction of the left player.
RDX, RDY are the direction of the right player.
CDX, CDY are the direction of the computer.
LD, RD are the direction of each player (they are used to stop user turning back on himself!).
35-47 Described in Lines 19-25
48-55 Display game board.
56-66 Get user movement from keyboard.
For left player | For right player | ||||||
Up | Up | ||||||
W | P | ||||||
Left A | D Right | Left ; | : Right | ||||
X | / | ||||||
Down | Down |