https://github.com/dczajkowski/snake
Snake game in PyGame as my project for CS classes at AGH University
https://github.com/dczajkowski/snake
Last synced: 11 months ago
JSON representation
Snake game in PyGame as my project for CS classes at AGH University
- Host: GitHub
- URL: https://github.com/dczajkowski/snake
- Owner: DCzajkowski
- Created: 2017-08-20T01:42:42.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-10-14T22:59:44.000Z (about 8 years ago)
- Last Synced: 2025-01-10T03:12:35.135Z (about 1 year ago)
- Language: Python
- Homepage:
- Size: 2.18 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# The Snake Game
## Requirements
- Python ^3.6.1 (tested on 3.6.2)
- Pygame compatible with Python 3 (tested on 1.9.4)
- UNIX-based operating system
## Installation
```bash
git clone https://github.com/DCzajkowski/snake.git
cd snake
python3 init
```
## Running the game
```bash
python3 game
```
## Controls and Settings
### Controls
To navigate the menu use your arrows. To confirm your choice, press a space bar or an enter key.
You can control the snake with your arrows as well as with `W`, `S`, `A` and `D` controls.
In the multiplayer, one snake is controlled with `W`, `S`, `A` and `D`, and one with arrows.
`Esc` pauses the game.
### Settings
All settings can be changed in the Settings tab in the main menu.
### Debug mode
To enter debug mode, enter the game (single-, or multi-player), press `cmd/ctrl`+`d`.
When in debug mode, you can try these options:
- `i` - increase snake length,
- `g` - display the grid,
- `e` - end the game,
- `t` - toggle between different themes/styles.
To exit debug mode, press `cmd/ctrl`+`d`.