Merge pull request #14 from Markil3/player-animation-update
Update player.py
This commit is contained in:
@@ -184,8 +184,8 @@ class PlayerAnimation:
|
|||||||
def update_draw(self, camera, isdecend=1):
|
def update_draw(self, camera, isdecend=1):
|
||||||
# debug render
|
# debug render
|
||||||
if self.debug_visible:
|
if self.debug_visible:
|
||||||
pix_x, pix_y = camera.relative_to_camera(self.x, self.y)
|
pix_x, pix_y = camera.relative_to_camera(self.player.x, self.player.y)
|
||||||
thumby.display.setPixel(int(pix_x), int(pix_y), self.isdecend)
|
thumby.display.setPixel(int(pix_x), int(pix_y), isdecend)
|
||||||
return
|
return
|
||||||
|
|
||||||
# root always reaches player position
|
# root always reaches player position
|
||||||
|
|||||||
Reference in New Issue
Block a user