master #1
23
sprites.py
23
sprites.py
@ -1,11 +1,22 @@
|
|||||||
import pygame
|
|
||||||
import random
|
|
||||||
import os
|
import os
|
||||||
|
import pygame
|
||||||
|
|
||||||
# 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')
|
||||||
plant_img_0 = pygame.image.load(os.path.join(sprites_folder, 'plant0.png'))
|
wheat_img_0 = pygame.image.load(os.path.join(sprites_folder, 'wheat0.png'))
|
||||||
plant_img_1 = pygame.image.load(os.path.join(sprites_folder, 'plant1.png'))
|
wheat_img_1 = pygame.image.load(os.path.join(sprites_folder, 'wheat1.png'))
|
||||||
plant_img_2 = pygame.image.load(os.path.join(sprites_folder, 'plant2.png'))
|
wheat_img_2 = pygame.image.load(os.path.join(sprites_folder, 'wheat2.png'))
|
||||||
plant_img_3 = pygame.image.load(os.path.join(sprites_folder, 'plant3.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'))
|
||||||
|
Loading…
Reference in New Issue
Block a user