forked from s452751/AI_PRO
49 lines
1.9 KiB
Python
49 lines
1.9 KiB
Python
import pygame
|
|
|
|
from constants import TILE_SIZE
|
|
|
|
tractor_up_image = pygame.image.load("resources/tractor_up.png")
|
|
tractor_up = pygame.transform.scale(tractor_up_image, (TILE_SIZE, TILE_SIZE))
|
|
|
|
tractor_right_image = pygame.image.load("resources/tractor_right.png")
|
|
tractor_right = pygame.transform.scale(tractor_right_image, (TILE_SIZE, TILE_SIZE))
|
|
|
|
tractor_down_image = pygame.image.load("resources/tractor_down.png")
|
|
tractor_down = pygame.transform.scale(tractor_down_image, (TILE_SIZE, TILE_SIZE))
|
|
|
|
tractor_left_image = pygame.image.load("resources/tractor_left.png")
|
|
tractor_left = pygame.transform.scale(tractor_left_image, (TILE_SIZE, TILE_SIZE))
|
|
|
|
to_water_image = pygame.image.load("resources/to_water.png")
|
|
to_water = pygame.transform.scale(to_water_image, (TILE_SIZE, TILE_SIZE))
|
|
|
|
to_plow_image = pygame.image.load("resources/to_plow.png")
|
|
to_plow = pygame.transform.scale(to_plow_image, (TILE_SIZE, TILE_SIZE))
|
|
|
|
to_seed_image = pygame.image.load("resources/to_seed.png")
|
|
to_seed = pygame.transform.scale(to_seed_image, (TILE_SIZE, TILE_SIZE))
|
|
|
|
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))
|
|
|
|
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()
|
|
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()
|
|
tools_rect = tools.get_rect()
|