29 lines
504 B
Python
29 lines
504 B
Python
#constants
|
|
|
|
# display size in pixels
|
|
from math import ceil, floor
|
|
|
|
DISPLAY_SIZE_HORIZONTAL = 1600
|
|
DISPLAY_SIZE_VERTICAL = 800
|
|
|
|
#TILE DIVIDER = TILE SIZE
|
|
TILE_SIZE = 100
|
|
|
|
# number of tiles
|
|
HORIZONTAL_TILES_NUMBER = ceil(DISPLAY_SIZE_HORIZONTAL/TILE_SIZE)
|
|
VERTICAL_TILES_NUMBER = floor((DISPLAY_SIZE_VERTICAL-200)/TILE_SIZE)
|
|
|
|
#colors
|
|
WHITE = (255, 255, 255) #SUPER UPRAWA
|
|
|
|
#tractor const
|
|
|
|
TRACTOR_WIDTH = TILE_SIZE
|
|
TRACTOR_HEIGHT = TILE_SIZE
|
|
|
|
#FRAMES PER SECOND
|
|
FPS = 3
|
|
|
|
#ANIMATION_PART
|
|
|
|
ANIMATION_PART = 1 |