console_snake/settings.py

28 lines
375 B
Python
Raw Normal View History

2022-10-26 21:57:29 +03:00
# Main settings
WIDTH = 20
HEIGHT = 20
FPS = 5
# Buttons
QUIT_BUTTON = 'q'
2022-10-27 15:29:28 +03:00
PAUSE_BUTTON = 'p'
2022-10-26 21:57:29 +03:00
LEFT_BUTTON = 'a'
RIGHT_BUTTON = 'd'
UP_BUTTON = 'w'
DOWN_BUTTON = 's'
# Player settings
D_LEFT = "LEFT"
D_RIGHT = "RIGHT"
D_UP = "UP"
D_DOWN = "DOWN"
MAIN_DIRECTION = D_DOWN
MAIN_X = 0
MAIN_Y = 0
# Out types
SPACE = 0
WALL = 1
FOOD = 2
WALL_FOOD = 3