Sztuczna_Inteligencja-projekt/sprites.py

11 lines
475 B
Python
Raw Normal View History

2021-03-28 23:50:42 +02:00
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'))