console_snake/settings.py

27 lines
355 B
Python
Raw Permalink Normal View History

2022-10-26 21:57:29 +03:00
# Main settings
WIDTH = 20
HEIGHT = 20
FPS = 5
# Buttons
QUIT_BUTTON = 'q'
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