STEPS to run program:
- Download MARS
- Open game.asm in MARS
- Go to Tools -> Bitmap Display -> Set Unit Width to 4 pixels -> Set Unit Height to 4 pixels -> Set Display Width and Height to 256 pixels -> Set Base Address for Display to 0x10008000($gp) -> Connect to MIPS
- Go to Tools -> Keyboard and Display MMIO Simulator -> Connect to MIPS
- Go to Run -> Assemble -> Click green run button
- Go to Keyboard and Display MMIO Simulator window and make your moves/input on the bottom text window
- W -> Speed up
- A -> Move left
- S -> Slow down
- D -> Move Right
- R -> Retry
There are 2 levels to the game.
The first level starts on initial assembling of the game. The objective is to move the farthest without colliding with the opposition cars.
There is a progress bar on the top left of the screen. It is green in colour and initially set to a minimum. As the car progresses/moves up, the progress bar increases (the box gets filled up with more green colour).
There is a health bar on the top right of the screen. It is pink in colour and initially set to full. If the player car collides with any other vehicle or collides with the roadside, then:
- the health decreases
- the progress bar is set to 0/minimum
- the player car is set to the middle of the road
If the health bar decreases to a minimum, then the game ends with a "Game Over" screen and the game must be re-run to play again.
There are 2 pick-ups in the first level. Red boxes increase health. Golden boxes give you invincible power.
The second level is harder as it has more vehicles, the speed of the cars increase and there are no pick-ups!