https://github.com/dexter-xd/snake-asm
Retro Snake game in pure x86 assembly.
https://github.com/dexter-xd/snake-asm
dosbox snake-game x86-assembly
Last synced: 9 months ago
JSON representation
Retro Snake game in pure x86 assembly.
- Host: GitHub
- URL: https://github.com/dexter-xd/snake-asm
- Owner: dexter-xD
- Created: 2024-11-19T12:59:15.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-19T13:03:54.000Z (over 1 year ago)
- Last Synced: 2025-04-14T23:08:08.953Z (about 1 year ago)
- Topics: dosbox, snake-game, x86-assembly
- Language: Assembly
- Homepage:
- Size: 18.6 KB
- Stars: 31
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Snake

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](https://www.dosbox.com/), 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