Zaktualizuj 'sprites.py'

This commit is contained in:
Cezary Adamczak 2021-05-10 14:37:34 +02:00
parent 25dccc958b
commit 23a91cea55

View File

@ -1,11 +1,22 @@
import pygame
import random
import os
# set up asset folders
project_folder = os.path.dirname(__file__)
sprites_folder = os.path.join(project_folder, 'sprites')
plant_img_0 = pygame.image.load(os.path.join(sprites_folder, 'plant0.png'))
plant_img_1 = pygame.image.load(os.path.join(sprites_folder, 'plant1.png'))
plant_img_2 = pygame.image.load(os.path.join(sprites_folder, 'plant2.png'))
plant_img_3 = pygame.image.load(os.path.join(sprites_folder, 'plant3.png'))
import os
import pygame
# set up asset folders
project_folder = os.path.dirname(__file__)
sprites_folder = os.path.join(project_folder, 'sprites')
wheat_img_0 = pygame.image.load(os.path.join(sprites_folder, 'wheat0.png'))
wheat_img_1 = pygame.image.load(os.path.join(sprites_folder, 'wheat1.png'))
wheat_img_2 = pygame.image.load(os.path.join(sprites_folder, 'wheat2.png'))
wheat_img_3 = pygame.image.load(os.path.join(sprites_folder, 'wheat3.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'))