Skip to content

Nikhilhaspe/Snake-With-Python

Repository files navigation

Snake With Python

Snake With Python game with Audio Effects written in Python using Pygame library.

js-standard-style

Installation

Download the Python 3 installer package from the official website and install it, if not installed previously.

Run the following in the terminal to install the Pygame library

pip install pygame

Running the application

Download the source code from the repository and run the file just as any other Python script (.py) file.

Just don't make any changes to the directory structure and run the following command in cmd,

python Snake_Game.py

, then you are good to go.

High Score of the user is managed by the file highscore.txt initially it will having highscore as 0 and updated as the game proceeds.

Gameplay

gameplay.gif

Run exe Directly

Download "Snake With Python exe" folder and dont make any changes in that folder just run game Snake_Game.exe file directly.

Play Game Now

Play game here

Objective

Goal of the player is Snake has to eat as many fruits as possible.

Mechanics

The more fruits Snake will it the more it will grow in length hance making the game dynamic and harder.

Controls

  • Use Arrow keys to control Snake movement.
  • Exit anytime from the game using Escape key.

Prerequisites

Acknowledgements

Happy Gaming! ❤

About

Simple Snake game built using Pygame library.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages