Hotfix collision
This commit is contained in:
+1
-1
@@ -256,7 +256,7 @@ class Drakora():
|
||||
|
||||
|
||||
def doCheats(self):
|
||||
# self.drawBoxes = True
|
||||
self.drawBoxes = True
|
||||
if self.isPressedKeysUpdated:
|
||||
pressedKeysStr = ''.join(self.pressedKeys)
|
||||
|
||||
|
||||
@@ -89,7 +89,7 @@ class Player(pygame.sprite.Sprite):
|
||||
self.rect = self.rect.inflate(0, -32)
|
||||
|
||||
for i in self.collisionBoxes:
|
||||
i.rect = i.inflate(0, -32)
|
||||
i.rect.y -= 32
|
||||
|
||||
|
||||
def standup(self):
|
||||
@@ -98,7 +98,7 @@ class Player(pygame.sprite.Sprite):
|
||||
self.rect = self.rect.inflate(0, 32)
|
||||
|
||||
for i in self.collisionBoxes:
|
||||
i.rect = i.inflate(0, 32)
|
||||
i.rect.y += 32
|
||||
|
||||
def updateSpeed(self, newGameSpeed):
|
||||
self.gameSpeed = newGameSpeed
|
||||
|
||||
Reference in New Issue
Block a user