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()