A simple snake game written in python.
Project description
Snake Game
A simple snake game made with pygame with multiplayer option.
Getting Started
-
To run the game, you should have Python 3.6.x installed. You can install it from here:
Python Download Page -
After Python is installed, install pygame 1.9.4 from here:
Pygame 1.9.4 DownloadAlternatively, you can install it with pip by running
pip install pygame==1.9.4
-
Clone this game's repository by running:
git clone https://github.com/jprevc/SnakeGame.git
-
Go to repo's directory and run
python snake_main.py
A new window should appear where you and your friend can play a game of snake. Default keys for player one are ↑, ↓, → and ←. Keys for player two are W, S, D and A.
Changing game configuration
You can change the game configuration (for example number of players, number of cherries, game window size, etc.) by modifying config.json file, also present in repo directory.
Author
Jost Prevc
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.