Plik definiujący grafiki

This commit is contained in:
Cezary Adamczak 2021-03-28 23:54:02 +02:00
parent a8459578d9
commit a7059f1377

11
sprites.py Normal file
View File

@ -0,0 +1,11 @@
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'))