Traktor/images.py
2021-03-16 13:27:39 +01:00

32 lines
1.0 KiB
Python

import pygame
from config import *
soilType = ('sand','clay', 'grass', 'corn', 'sunflower')
tractor_scale = pygame.image.load("resources/tractor.png")
tractor = pygame.transform.scale(tractor_scale, (FIELD_SIZE, FIELD_SIZE))
clay_scale= pygame.image.load("resources/clay.png")
clay = pygame.transform.scale(clay_scale, (FIELD_SIZE, FIELD_SIZE))
sand_scale = pygame.image.load("resources/sand.png")
sand = pygame.transform.scale(sand_scale, (FIELD_SIZE, FIELD_SIZE))
grass_scale = pygame.image.load("resources/grass.png")
grass = pygame.transform.scale(grass_scale, (FIELD_SIZE, FIELD_SIZE))
corn_scale = pygame.image.load("resources/corn.png")
corn = pygame.transform.scale(corn_scale, (FIELD_SIZE, FIELD_SIZE))
sunflower_scale = pygame.image.load("resources/sunflower.png")
sunflower = pygame.transform.scale(sunflower_scale, (FIELD_SIZE, FIELD_SIZE))
tractorrect = tractor.get_rect()
clayrect = clay.get_rect()
sandrect = sand.get_rect()
grassrect = grass.get_rect()
cornrect = corn.get_rect()
sunflowerrect = sunflower.get_rect()