Skip to content

Files

Latest commit

 

History

History
41 lines (35 loc) · 1.11 KB

README.md

File metadata and controls

41 lines (35 loc) · 1.11 KB

Snake

snake.png

Written in pure x86 assembly language for DOS operating system and can be run in DosBox. It is a 16bit retro game and should run on anything newer than ancient Intel 80186 processor.

How to compile it?

The compiled version snake.com is in the repo so you can skip this point and simply run it in DosBox, however if you want to try building it yourself do this:

  • Install NASM compiler, on Ubuntu you can simply run:
apt-get install nasm
  • Compile snake.asm to snake.com:
nasm -o snake.com -fbin snake.asm

How to run it?

  • First you need to clone this repo or download snake.com to a folder.
  • Next you need to install DosBox, on Ubuntu just run:
apt-get install dosbox
  • Next run DosBox and mount directory where snake.com is located
  • For exemple: /home/dektop/snake/
mount c path/to/snake/
  • Now you can start snake.com
snake.com
  • Use keyboard arrows (Up, Down, Left, Right) to drive the snake
  • ESC quits the game
  • A print about
  • P pause the game