inteligentny-traktor/definitions.py
2023-05-03 23:12:41 +02:00

24 lines
514 B
Python

# definicje
import os
import pygame
pygame.init()
BLOCK_SIZE = 50
WHEAT_COST = 2
CARROT_COST = 5
CABBAGE_COST = 13
TREE_COST = 100000
DIRT_COST = 1
WET_DIRT_COST = 4
CART_DIRECTION_EAST = 1
CART_DIRECTION_NORTH = 2
CART_DIRECTION_SOUTH = 4
CART_DIRECTION_WEST = 3
HEIGHT_AMOUNT, WIDTH_AMOUNT = 11, 11
HEIGHT_MAP, WIDTH_MAP = BLOCK_SIZE * HEIGHT_AMOUNT, BLOCK_SIZE * WIDTH_AMOUNT
HEIGHT, WIDTH = HEIGHT_MAP + BLOCK_SIZE, WIDTH_MAP
IMAGE_SIZE_NEURAL_NETWORK = 16
WINDOW = pygame.display.set_mode((WIDTH, HEIGHT))