From f9957f57ea96a02692dc3125a6dd2755def27d72 Mon Sep 17 00:00:00 2001 From: Evan Pratten Date: Sat, 24 Apr 2021 18:58:20 -0400 Subject: [PATCH] reverse stun animation --- src/player.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/player.rs b/src/player.rs index efcb5ea..0d30883 100644 --- a/src/player.rs +++ b/src/player.rs @@ -179,12 +179,12 @@ impl Player { self.attacking_timer = (self.attacking_timer - dt).max(0.0); // Render attack AOE - if animation_progression <= 0.5 { + if animation_progression >= 0.5 { context_2d.draw_circle_lines( self.position.x as i32, self.position.y as i32, self.inventory.stun_gun.as_ref().unwrap().range * aoe_ring, - TRANSLUCENT_WHITE_64, + TRANSLUCENT_WHITE_64.fade(aoe_ring), ); } else { context_2d.draw_circle_lines(