- Download and open the
snake.asm
file in MARS - Open the
Bitmap Display
inTools
, pressConnect to MIPS
and set:- Unit Width in Pixels to 8
- Unit Height in Pixels to 8
- Open the
Keyboard and Display MMIO Simulator
inTools
and pressConnect to MIPS
- Run the program to start playing! Use
WASD
to move. Note that in the initial position, the snake is heading right so you can't move left.
Environment settings to run the game⚙️
Game is running🏃♂️
Game over❌
- Apparently there is a bug that makes MARS freeze randomly when you press a moving key.
- Although this is just a work for the finals of one of my subjects at school, I was really having fun doing it. I was really passionate about making this work, and I'm really excited to see the program working after hours of coding and debugging :D
This program is an improved version of @shahmaty's assemblySnake program, created by Nguyen Hieu.
Contributing is always welcome. Please feel free to open an issue or create a pull request.
This project is licensed under the MIT license.