master #1

Merged
s444427 merged 39 commits from s452664/Sztuczna_Inteligencja-projekt:master into master 2021-06-03 16:39:57 +02:00
Showing only changes of commit 23a91cea55 - Show all commits

View File

@ -1,11 +1,22 @@
import pygame import os
import random import pygame
import os
# set up asset folders
# set up asset folders project_folder = os.path.dirname(__file__)
project_folder = os.path.dirname(__file__) sprites_folder = os.path.join(project_folder, 'sprites')
sprites_folder = os.path.join(project_folder, 'sprites') wheat_img_0 = pygame.image.load(os.path.join(sprites_folder, 'wheat0.png'))
plant_img_0 = pygame.image.load(os.path.join(sprites_folder, 'plant0.png')) wheat_img_1 = pygame.image.load(os.path.join(sprites_folder, 'wheat1.png'))
plant_img_1 = pygame.image.load(os.path.join(sprites_folder, 'plant1.png')) wheat_img_2 = pygame.image.load(os.path.join(sprites_folder, 'wheat2.png'))
plant_img_2 = pygame.image.load(os.path.join(sprites_folder, 'plant2.png')) wheat_img_3 = pygame.image.load(os.path.join(sprites_folder, 'wheat3.png'))
plant_img_3 = pygame.image.load(os.path.join(sprites_folder, 'plant3.png')) tractor_img_0 = pygame.image.load(os.path.join(sprites_folder, 'tractor0.png'))
tractor_img_1 = pygame.image.load(os.path.join(sprites_folder, 'tractor1.png'))
tractor_img_2 = pygame.image.load(os.path.join(sprites_folder, 'tractor2.png'))
tractor_img_3 = pygame.image.load(os.path.join(sprites_folder, 'tractor3.png'))
potato_img_0 = pygame.image.load(os.path.join(sprites_folder, 'potato0.png'))
potato_img_1 = pygame.image.load(os.path.join(sprites_folder, 'potato1.png'))
potato_img_2 = pygame.image.load(os.path.join(sprites_folder, 'potato2.png'))
potato_img_3 = pygame.image.load(os.path.join(sprites_folder, 'potato3.png'))
strawberry_img_0 = pygame.image.load(os.path.join(sprites_folder, 'strawberry0.png'))
strawberry_img_1 = pygame.image.load(os.path.join(sprites_folder, 'strawberry1.png'))
strawberry_img_2 = pygame.image.load(os.path.join(sprites_folder, 'strawberry2.png'))
strawberry_img_3 = pygame.image.load(os.path.join(sprites_folder, 'strawberry3.png'))