player animation fix

edited throop, player
This commit is contained in:
Neal Finger
2023-02-04 22:58:07 -07:00
parent 8ad6236ff7
commit 4b8eb17ba1
2 changed files with 15 additions and 11 deletions

View File

@@ -118,7 +118,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()