2021-03-29 02:19:55 +02:00
|
|
|
import pygame
|
|
|
|
|
2021-03-29 20:51:47 +02:00
|
|
|
from constants import TILE_SIZE
|
2021-03-29 02:19:55 +02:00
|
|
|
|
2021-03-29 21:40:55 +02:00
|
|
|
tractor_up_image = pygame.image.load("resources/tractor_up.png")
|
2021-03-29 02:19:55 +02:00
|
|
|
tractor_up = pygame.transform.scale(tractor_up_image, (TILE_SIZE, TILE_SIZE))
|
|
|
|
|
2021-03-29 21:40:55 +02:00
|
|
|
tractor_right_image = pygame.image.load("resources/tractor_right.png")
|
2021-03-29 02:19:55 +02:00
|
|
|
tractor_right = pygame.transform.scale(tractor_right_image, (TILE_SIZE, TILE_SIZE))
|
|
|
|
|
2021-03-29 21:40:55 +02:00
|
|
|
tractor_down_image = pygame.image.load("resources/tractor_down.png")
|
2021-03-29 02:19:55 +02:00
|
|
|
tractor_down = pygame.transform.scale(tractor_down_image, (TILE_SIZE, TILE_SIZE))
|
|
|
|
|
2021-03-29 21:40:55 +02:00
|
|
|
tractor_left_image = pygame.image.load("resources/tractor_left.png")
|
2021-03-29 02:19:55 +02:00
|
|
|
tractor_left = pygame.transform.scale(tractor_left_image, (TILE_SIZE, TILE_SIZE))
|
|
|
|
|
2021-03-29 21:40:55 +02:00
|
|
|
to_water_image = pygame.image.load("resources/to_water.png")
|
|
|
|
to_water = pygame.transform.scale(to_water_image, (TILE_SIZE, TILE_SIZE))
|
2021-03-29 02:19:55 +02:00
|
|
|
|
2021-03-29 21:40:55 +02:00
|
|
|
to_plow_image = pygame.image.load("resources/to_plow.png")
|
|
|
|
to_plow = pygame.transform.scale(to_plow_image, (TILE_SIZE, TILE_SIZE))
|
2021-03-29 02:19:55 +02:00
|
|
|
|
2021-03-29 21:40:55 +02:00
|
|
|
to_seed_image = pygame.image.load("resources/to_seed.png")
|
|
|
|
to_seed = pygame.transform.scale(to_seed_image, (TILE_SIZE, TILE_SIZE))
|
2021-03-29 02:19:55 +02:00
|
|
|
|
2021-03-29 21:40:55 +02:00
|
|
|
to_cut_image = pygame.image.load("resources/to_cut.png")
|
|
|
|
to_cut = pygame.transform.scale(to_cut_image, (TILE_SIZE, TILE_SIZE))
|
|
|
|
|
|
|
|
to_fertilizer_image = pygame.image.load("resources/to_fertilizer.png")
|
|
|
|
to_fertilizer = pygame.transform.scale(to_fertilizer_image, (TILE_SIZE, TILE_SIZE))
|
|
|
|
|
|
|
|
fuel_image = pygame.image.load("resources/fuel.png")
|
|
|
|
fuel = pygame.transform.scale(fuel_image, (TILE_SIZE, TILE_SIZE))
|
|
|
|
|
|
|
|
tools_image = pygame.image.load("resources/tools.png")
|
|
|
|
tools = pygame.transform.scale(tools_image, (TILE_SIZE, TILE_SIZE))
|
2021-03-29 02:19:55 +02:00
|
|
|
|
|
|
|
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()
|
2021-03-29 21:40:55 +02:00
|
|
|
to_water_rect = to_water.get_rect()
|
|
|
|
to_plow_rect = to_plow.get_rect()
|
|
|
|
to_seed_rect = to_seed.get_rect()
|
|
|
|
to_cut_rect = to_cut.get_rect()
|
|
|
|
to_fertilizer_rect = to_fertilizer.get_rect()
|
|
|
|
fuel_rect = fuel.get_rect()
|
2021-03-30 00:54:29 +02:00
|
|
|
tools_rect = tools.get_rect()
|