refactor: remove redundant tile_size import and cleanup formatting
This commit is contained in:
@@ -74,7 +74,6 @@ class Game:
|
||||
self.update(dt)
|
||||
self.draw()
|
||||
|
||||
|
||||
pygame.display.flip()
|
||||
frame_count += 1
|
||||
|
||||
@@ -144,8 +143,6 @@ class Game:
|
||||
self.screen.fill(color_void)
|
||||
self.map.draw_map(self.screen, self.font)
|
||||
|
||||
|
||||
# Draw by Y position so actors lower on the map appear in front.
|
||||
for actor in sorted([self.player], key=lambda item: item.position.y):
|
||||
actor.draw(self.screen)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user