Fixed BG sprite glitch. Minor fixes

This commit is contained in:
2021-04-05 21:19:19 +03:00
parent 0ba497db97
commit 6cdb2c61db
10 changed files with 99 additions and 24 deletions
+2 -2
View File
@@ -34,12 +34,12 @@ class Player(pygame.sprite.Sprite):
pygame.transform.scale(playerImage.subsurface((0, 72, 16, 16)), (64, 64)),
pygame.transform.scale(playerImage.subsurface((16, 72, 16, 16)), (64, 64)),
)
for array in (walkImages, upImages, downImages, crouchImages):
for image in array:
image.set_colorkey((255,0,255))
def __init__(self):
pygame.sprite.Sprite.__init__(self)