Skip to content
master
Switch branches/tags
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

Snake

This is yet another clone of the legendary Snake game.

snake.png

I created this one in 2004 in pure x86 assembly language for DOS operating system and can be run in DosBox nowadays. It is a 16bit retro game and should run on anything newer than ancient Intel 80186 processor. Graphics is displayed using a very old 13H mode with 320x200 pixel with a custom colour palette and screen buffering. Fonts are displayed using the BIOS builtin glyphs available in system memory. Sprites and pictures were created with another custom program that converted them to a byte array representation.

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
mount c path/to/snake/folder
  • 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

Questions?

Visit http://cepa.io

This code is protected by the Beerware license :P

About

Snake game written in x86 assembly language for DOS, ad 2004.

Resources

Releases

No releases published

Packages

No packages published