Skip to content

Snake game using MARS (MIPS Assembler and Runtime Simulator).

License

Notifications You must be signed in to change notification settings

hieu748159263/snake-assembly

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Assembly Snake🐍

The classic Snake game implemented in MIPS Assembly.

Prerequisites📋

Installation & environment setup🛠️

  • Download and open the snake.asm file in MARS
  • Open the Bitmap Display in Tools, press Connect to MIPS and set:
    • Unit Width in Pixels to 8
    • Unit Height in Pixels to 8
  • Open the Keyboard and Display MMIO Simulator in Tools and press Connect 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.

Screenshots📷

Environment settings to run the game⚙️

Game is running🏃‍♂️

Game over❌

Remarks and thoughts📌

  • 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

Author

This program is an improved version of @shahmaty's assemblySnake program, created by Nguyen Hieu.

Contributing

Contributing is always welcome. Please feel free to open an issue or create a pull request.

License

This project is licensed under the MIT license.