The simplest implementation of the snake game.
DearPyGui library used for visualization but logic isn't framework-depended and you can reuse snake_util.SnakeBody
class as you wish.
- Direction:
WASD
+ arrow keys - Pause:
Spacebar
- Speed Up/Down:
PgUp
/PgDn
$ python -m venv .venv
$ . .venv/bin/activate
$ pip install -r requirements.txt
$ deactivate
$ . .venv/bin/activate
$ python snake_game.py
See data/snake.toml
MIT License
to RahulShagri an his https://github.com/RahulShagri/OG-Snake-Game for inspiration