From a7059f137735b7770a9eeeaac1a7ac257818af34 Mon Sep 17 00:00:00 2001 From: Cezary Adamczak Date: Sun, 28 Mar 2021 23:54:02 +0200 Subject: [PATCH] =?UTF-8?q?Plik=20definiuj=C4=85cy=20grafiki?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sprites.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 sprites.py diff --git a/sprites.py b/sprites.py new file mode 100644 index 0000000..fd86f3e --- /dev/null +++ b/sprites.py @@ -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')) \ No newline at end of file