From 7070baeb60357151b726e4b0f4ac2b9722841ba4 Mon Sep 17 00:00:00 2001 From: marcin Date: Tue, 19 Feb 2019 11:40:07 +0100 Subject: [PATCH] path update --- sprites.py | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/sprites.py b/sprites.py index 3c04178..2f2ab7b 100644 --- a/sprites.py +++ b/sprites.py @@ -11,22 +11,17 @@ from pygame.locals import * screen=pygame.display.set_mode((WINDOW_WIDTH, WINDOW_HEIGHT)) def load_img(name): - img_path=os.path.join('data\graphics', name) + img_path=os.path.join('data','graphics', name) image=pygame.image.load(img_path).convert() colorkey=image.get_at((0,0)) image.set_colorkey(colorkey, RLEACCEL) return image, image.get_rect() def load_img_noalpha(name): - img_path=os.path.join('data\graphics', name) + img_path=os.path.join('data','graphics', name) image=pygame.image.load(img_path).convert() return image - -def load_sound(name): - sound_path=os.path.join('data\sounds') - sound=pygame.mixer.Sound(sound_path) - return sound - + # sprite groups all_sprites=pygame.sprite.Group()