Skip to main content

A simple snake game written in python.

Project description

Snake Game

A simple snake game made with pygame with multiplayer option.

Getting Started

  1. To run the game, you should have Python 3.6.x installed. You can install it from here:
    Python Download Page

  2. After Python is installed, install pygame 1.9.4 from here:
    Pygame 1.9.4 Download

    Alternatively, you can install it with pip by running

    pip install pygame==1.9.4
    
  3. Clone this game's repository by running:

    git clone https://github.com/jprevc/SnakeGame.git
    
  4. 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.

Source Distribution

snakey-2.0.0.tar.gz (16.0 kB view hashes)

Uploaded Source

Built Distribution

snakey-2.0.0-py3-none-any.whl (6.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page