Skip to content

spanishGab/python-snake-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python snake game

This game was based on the code created by the user "filhoweuler", it's an adaptation of his code.

Start Screen The game

Description

Here is the original code

The purpose of this project was first to add some missing functions that filhoweuler asked us to make on his video. This functions included: the snake's colisions (with the wall and with itself)

I also made some alterations in the game, such as:

  • Creation of the snake's speed, that increases when the size of the snake is a multiple of eight;
  • Correction of some bugs that were occurring originally, like when the UP and RIGHT keys (or something like that) were pressed together, the snake just died;
  • Creation of a new interface to the game;
  • Creation of the score marking;
  • Creation of a best score register (using a simple .txt file).

How to play

To start the game just you will need to install a python3.9 version. Once you have it in hands, go to your terminal and run pip install -r requirements.txt and then python run.py.

Use the four standard arrows (or the keypad arrowed numbers, or the s,e,d,f keys if you are left-handed) of your keyboard to move the snake in the desired direction.

About

studying python with the classic snake game

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages