Traditional snake game with basic functionalities in Assembly language x8086
The traditional snake game with at least the following functionalities:
- A snake that automatically moves left, right, up and down on the screen.
- Initial size of snake is 20 characters with head of the snake represented by a different character as compared to its body.
- The arrow keys are used to determine the direction of snake.
- 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.
- If the snake eats a fruit the size of snake is increased by four characters.
- If the snake does not eat the fruit, the fruit remains on the screen.
- After the fruit is eaten by the snake, the next fruit immediately appears on a random location on the screen.
- Maximum size of snake can be 240 characters.
- If the snake does not reach the maximum size in 4 minutes one life of player will end.
- If the snake reaches the maximum size in 4 minutes the player earns some points and game ends with an appropriate message.
- After every 20 seconds the speed of snake is twice as the previous speed.
- Show on display the remaining and total lives.
- Show on display the time remaining and when the time is reset.
- If the snake touches itself one life of player will end.
- Download the code to C drive
- Install DOSBOX and open it
- mount c: c:\code folder
- c:
- nasm snake_game -o snake_game.com
- snake_game.com
- Enjoy!