Merge pull request #6 from Markil3/player_animation_fix

player animation fix
This commit is contained in:
Neal Finger
2023-02-04 22:59:17 -07:00
committed by GitHub
2 changed files with 15 additions and 11 deletions

View File

@@ -127,7 +127,7 @@ class GameLoop(Room):
# Draw the entities
for entity in self.entities:
entity.render(tpf, self.current_depth, prev_depth)
self.player.update_draw(self.current_depth, prev_depth)
self.player.update_draw(self.player.y)
thumby.display.drawText(str(self.score), thumby.display.width - (len(str(self.score)) + 2) * 5, 1, 1)
thumby.display.update()