Skip to content

Traditional snake game with basic functionalities in Assembly language x8086

Notifications You must be signed in to change notification settings

msaqibkamran/Snake-Game-8086-Assembly

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 

Repository files navigation

Snake-Game-8086-Assembly

Traditional snake game with basic functionalities in Assembly language x8086

Project Screeenshots

image

image

About the Project

The traditional snake game with at least the following functionalities:

  1. A snake that automatically moves left, right, up and down on the screen.
  2. Initial size of snake is 20 characters with head of the snake represented by a different character as compared to its body.
  3. The arrow keys are used to determine the direction of snake.
  4. If the snake’s head touches the border of screen the players loses one life. Initially the player has three lives. After losing all three lives the game is over.
  5. If the snake eats a fruit the size of snake is increased by four characters.
  6. If the snake does not eat the fruit, the fruit remains on the screen.
  7. After the fruit is eaten by the snake, the next fruit immediately appears on a random location on the screen.
  8. Maximum size of snake can be 240 characters.
  9. If the snake does not reach the maximum size in 4 minutes one life of player will end.
  10. If the snake reaches the maximum size in 4 minutes the player earns some points and game ends with an appropriate message.
  11. After every 20 seconds the speed of snake is twice as the previous speed.
  12. Show on display the remaining and total lives.
  13. Show on display the time remaining and when the time is reset.
  14. If the snake touches itself one life of player will end.

How to Run

  1. Download the code to C drive
  2. Install DOSBOX and open it
  3. mount c: c:\code folder
  4. c:
  5. nasm snake_game -o snake_game.com
  6. snake_game.com
  7. Enjoy!

About

Traditional snake game with basic functionalities in Assembly language x8086

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published