Skip to content

dangngocquan/simple-snake-game

Repository files navigation

Simple Snake Game

This game was created by Dang Ngoc Quan after participating in the MIMPython course.

You can download game here. After downloading, extract the SimpleSnakeGame.zip file, then run the SimpleSnakeGame.exe file to play the game.

Clone repository

git clone https://github.com/dangngocquan/SimpleSnakeGame.git

Install requirement libraries:

pip install -r requirements.txt

Game Introduction

preview.mp4

1. Main Menu

Main menu include:

  • 1.1. Play game
  • 1.2. Account
  • 1.3. Options
  • 1.4. Statistics
  • 1.5. History
  • 1.6. About Game
  • 1.7. Quit game
MainMenu.mp4

1.1. Play Game Menu

Play Game Menu include:

  • 1.1.1. New game
  • 1.1.2. Continue game
  • 1.1.3. Back
PlayGameMenu.mp4

1.1.1. New Game

Play new match game.

NewGame.mp4
NewGame2.mp4
NewGame2.mp4

1.1.2. Continue Game

You can continue to play the match game which you have not finished before quit game.

ContinueGame.mp4

Game over

In game over screen, you can use key '0', '1', '2', '3', '4', '5', '6' to move your snake (only for loser - snake that died)

GameOver2.mp4

1.2. Account Setting

Account Setting include:

  • 1.2.1. Existing account
  • 1.2.2. Create new account
  • 1.2.3. Back
AccountSetting.mp4

1.2.1. Existing account

You can see statistics of current account, choose other account to play or delete some account if you want.

Note: Account 'Nobody' is default account, so you can't remove it.

ExistingAccount.mp4

1.2.2. Create new account

You can create a new account if you want.

CreateNewAccount.mp4

1.3. Options Menu

Options Menu include:

  • 1.3.1. Gamemode setting
  • 1.3.2. Game setting
  • 1.3.3. Sound setting
  • 1.3.4. Map setting
  • 1.3.5. Back
OptionsMenu.mp4

1.3.1. Gamemode setting

You can setup some mode for game:

  • Number of player:
    • 1: One player control a snake, use 'A', 'W', 'S', 'D' or 'UP', 'DOWN', 'LEFT', 'RIGHT' to control the snake.
    • 2: Two player control two snakes, the first player use 'A', 'W', 'S', 'D' to control the first snake, the second player use 'UP', 'DOWN', 'LEFT', 'RIGHT' to control the second snake
  • Auto speed up snake:
    • OFF: The speed of the snake will depend on the setting in Game Setting Menu --> Snake move speed
    • ON: The spped of the snake will auto increase when snake eat foods, not depend on the setting in Game Setting Menu --> Snake move speed
  • Target score: You wil win if your score greater or equal to Target score.
    • Minium target score is 100.
    • You can use wheel-up to increase Target score.
  • View control:
    • First-person view: Player only use 'A', 'D' or 'LEFT', 'RIGHT' to control snake.
    • Third-person view: Player use 'A', 'W', 'S', 'D' or 'UP', 'DOWN', 'LEFT', 'RIGHT' to control the snake.
GamemodeSettingMenu.mp4

1.3.2. Game setting

You can setting the appearance ò the grid, the speed of snake when it move, drop, change color (animation speed), the number of max food in game, the speed of animation of foods.

  • Grid:
    • ON: Show grid when you play game.
    • OFF: Don't show grid.
  • Snake:
    • Move speed: 1-60, the speed of snake.
    • Drop speed: 1-60, the speed of snake when it drop (only appear when snake died).
    • Animation speed: 1-60, The change frame speed of snake.
  • Food:
    • Max food: 1-104, the number of maxium food in game.
    • Animation speed: 1-60, the change frame speed of food.
GameSettingMenu.mp4

1.3.3. Sound setting

You can choose the background music, change volume of music or change volume of sound (sound when press button, change button, sound when snake eat food, when game over).

  • Music:
    • Music 0: Loafers - BoyWithUke
    • Music 1: Sweden - C418
  • Music volume: 0-100, volume of background music.
  • Sound volume: 0-100, sound when press button, change button, sound when snake eat food, when game over.
SoundSettingMenu.mp4

1.3.4. Map setting

Map setting menu include:

  • 1.3.4.1. Existing Maps
  • 1.3.4.2. Create new map
  • 1.3.4.3. Back
MapSettingMenu.mp4

1.3.4.1. Existing maps

You can choose a map to play.

ExistingMaps.mp4

1.3.4.2. Create new map

If you want to create a new map for yourself, this is a good choice.

CreateNewMap.mp4

1.4. Statistics

Show highest score and player's name, total time played in game, total match, ...

Statistics.mp4

1.5. History

History play game.

History.mp4

1.6. About Game Menu

Link of music, images, ... Link of source code if someone need.

AboutGameMenu.mp4

Source code (if you want)

OpenLink.mp4

1.7. Quit Game

Yah, finally, quit game. Thank for play my game !!!

About

Final version of snake game I done

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages