a game about throwing hammers made for the github game off
Diffstat (limited to 'player/player.gd')
| -rw-r--r-- | player/player.gd | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/player/player.gd b/player/player.gd index de4ce55..ae75b9e 100644 --- a/player/player.gd +++ b/player/player.gd @@ -153,6 +153,7 @@ func hammer_highlight() -> void: unhighlight.call() elif not last_highlit in hamms: unhighlight.call() + hamms.sort_custom(func(a: Area2D, b: Area2D) -> bool: return a.global_position.distance_to(global_position) < b.global_position.distance_to(global_position)) last_highlit = hamms[0] hamms[0].highlight() |