2021-03-29 02:19:55 +02:00
|
|
|
#constants
|
|
|
|
|
|
|
|
# display size in pixels
|
2021-03-29 02:53:27 +02:00
|
|
|
from math import ceil
|
|
|
|
|
|
|
|
DISPLAY_SIZE_HORIZONTAL = 1600
|
|
|
|
DISPLAY_SIZE_VERTICAL = 900
|
2021-03-29 02:19:55 +02:00
|
|
|
|
|
|
|
#TILE DIVIDER = TILE SIZE
|
2021-03-29 02:53:27 +02:00
|
|
|
TILE_SIZE = 100
|
2021-03-29 02:19:55 +02:00
|
|
|
|
|
|
|
# number of tiles
|
2021-03-29 02:53:27 +02:00
|
|
|
HORIZONTAL_TILES_NUMBER = ceil(DISPLAY_SIZE_HORIZONTAL/TILE_SIZE)
|
|
|
|
VERTICAL_TILES_NUMBER = ceil(DISPLAY_SIZE_VERTICAL/TILE_SIZE)
|
2021-03-29 02:19:55 +02:00
|
|
|
|
|
|
|
#TILE_SIZE
|
|
|
|
|
|
|
|
#colors
|
|
|
|
WHITE = (255, 255, 255) #SUPER UPRAWA
|
|
|
|
BLACK = (0, 0, 0)
|
|
|
|
RED = (255, 0, 0) #DO ZASIANIA
|
|
|
|
YELLOW = (255, 255, 0) #DO PODLANIA
|
|
|
|
GREEN = (0, 255, 0) #DO SCIECIA
|
|
|
|
|
|
|
|
|
|
|
|
#tractor const
|
|
|
|
|
|
|
|
TRACTOR_WIDTH = TILE_SIZE
|
|
|
|
TRACTOR_HEIGHT = TILE_SIZE
|
|
|
|
|
|
|
|
#FRAMES PER SECOND
|
2021-03-29 02:53:27 +02:00
|
|
|
FPS = 100
|
2021-03-29 02:19:55 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|