Hotfix collision

This commit is contained in:
Nikolya Andreychik
2021-04-05 14:06:34 -07:00
parent bbf81505e2
commit b5c3dc32c7
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -256,7 +256,7 @@ class Drakora():
def doCheats(self): def doCheats(self):
# self.drawBoxes = True self.drawBoxes = True
if self.isPressedKeysUpdated: if self.isPressedKeysUpdated:
pressedKeysStr = ''.join(self.pressedKeys) pressedKeysStr = ''.join(self.pressedKeys)
+2 -2
View File
@@ -89,7 +89,7 @@ class Player(pygame.sprite.Sprite):
self.rect = self.rect.inflate(0, -32) self.rect = self.rect.inflate(0, -32)
for i in self.collisionBoxes: for i in self.collisionBoxes:
i.rect = i.inflate(0, -32) i.rect.y -= 32
def standup(self): def standup(self):
@@ -98,7 +98,7 @@ class Player(pygame.sprite.Sprite):
self.rect = self.rect.inflate(0, 32) self.rect = self.rect.inflate(0, 32)
for i in self.collisionBoxes: for i in self.collisionBoxes:
i.rect = i.inflate(0, 32) i.rect.y += 32
def updateSpeed(self, newGameSpeed): def updateSpeed(self, newGameSpeed):
self.gameSpeed = newGameSpeed self.gameSpeed = newGameSpeed