From facb3b7e1866530bf3cb50658d7779e43c1f72a6 Mon Sep 17 00:00:00 2001 From: "Waylon S. Walker" Date: Fri, 30 Jun 2023 19:56:16 -0500 Subject: [PATCH] fix lanturn ghost --- learn_sql_model/game/light.py | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/learn_sql_model/game/light.py b/learn_sql_model/game/light.py index 0282bc7..02b0190 100644 --- a/learn_sql_model/game/light.py +++ b/learn_sql_model/game/light.py @@ -68,6 +68,12 @@ class Light: (other.x + _v.x, other.y + _v.y), 50, ) + pygame.draw.circle( + self.surf, + (255, 250, 205), + (other.x, other.y), + other.lanturn_strength, + ) # draw a circle pygame.draw.circle( @@ -77,14 +83,6 @@ class Light: self.game.player.hero.lanturn_strength, ) - for other in self.game.player.others.__root__: - pygame.draw.circle( - self.surf, - (255, 250, 205), - (other.x, other.y), - other.lanturn_strength, - ) - self.game.darkness.blit( pygame.transform.scale(self.surf, self.game.screen.get_size()).convert(), (0, 0),