fix light ghost
This commit is contained in:
parent
d07d15897b
commit
51d637754f
1 changed files with 2 additions and 0 deletions
|
|
@ -54,6 +54,8 @@ class Light:
|
|||
)
|
||||
|
||||
for other in self.game.player.others.__root__:
|
||||
if other.id == self.game.player.hero.id:
|
||||
continue
|
||||
v = pygame.math.Vector2(0, 1)
|
||||
v = v.rotate(-other.flashlight_angle)
|
||||
v.scale_to_length(other.flashlight_strength)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue