The control is described in the key_game_control
dictionary.
Key | Description |
---|---|
Left Arrow | Turns the snake left |
Right Arrow | Turns the snake right |
Up Arrow | Turns the snake up |
Down Arrow | Turns the snake down |
Escape | End and close game |
--- | --- |
F1 | Print debug message to console |
F2 | Print all player attribute |
F3 | Add 1 point (square) to snake |
F4 | Respawn food |
For startup, you will need pygame==2.0.2^: python runner.py