37 lines
1.6 KiB
Python
37 lines
1.6 KiB
Python
import pygame
|
|
from constants import *
|
|
|
|
from constants import TILE_SIZE
|
|
|
|
tractor_up_image = pygame.image.load("resources/traktor_up.png")
|
|
tractor_up = pygame.transform.scale(tractor_up_image, (TILE_SIZE, TILE_SIZE))
|
|
|
|
tractor_right_image = pygame.image.load("resources/traktor_right.png")
|
|
tractor_right = pygame.transform.scale(tractor_right_image, (TILE_SIZE, TILE_SIZE))
|
|
|
|
tractor_down_image = pygame.image.load("resources/traktor_down.png")
|
|
tractor_down = pygame.transform.scale(tractor_down_image, (TILE_SIZE, TILE_SIZE))
|
|
|
|
tractor_left_image = pygame.image.load("resources/traktor_left.png")
|
|
tractor_left = pygame.transform.scale(tractor_left_image, (TILE_SIZE, TILE_SIZE))
|
|
|
|
do_podlania_image = pygame.image.load("resources/do_podlania.png")
|
|
do_podlania = pygame.transform.scale(do_podlania_image, (TILE_SIZE, TILE_SIZE))
|
|
|
|
do_zaorania_image = pygame.image.load("resources/do_zaorania.png")
|
|
do_zaorania = pygame.transform.scale(do_zaorania_image, (TILE_SIZE, TILE_SIZE))
|
|
|
|
do_zasiania_image = pygame.image.load("resources/do_zasiania.png")
|
|
do_zasiania = pygame.transform.scale(do_zasiania_image, (TILE_SIZE, TILE_SIZE))
|
|
|
|
do_zebrania_image = pygame.image.load("resources/do_zebrania.png")
|
|
do_zebrania = pygame.transform.scale(do_zebrania_image, (TILE_SIZE, TILE_SIZE))
|
|
|
|
tractor_up_rect = tractor_up.get_rect()
|
|
tractor_right_rect = tractor_right.get_rect()
|
|
tractor_down_rect = tractor_down.get_rect()
|
|
tractor_left_rect = tractor_left.get_rect()
|
|
do_podlania_rect = do_podlania.get_rect()
|
|
do_zaorania_rect = do_zaorania.get_rect()
|
|
do_zasiania_rect = do_zasiania.get_rect()
|
|
do_zebrania_rect = do_zebrania.get_rect() |