survivor

graphical action game for the linux terminal
git clone https://git.ce9e.org/survivor.git

commit
0c6cafd2db8feea031c34d7a1f8d9c644176ed81
parent
732bfe774c0185f0c2c4d4ddce0974f783af594f
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2023-05-01 07:15
slightly nerf whirlwind by increasing radial speed

Diffstat

M src/weapons.rs 2 +-

1 files changed, 1 insertions, 1 deletions


diff --git a/src/weapons.rs b/src/weapons.rs

@@ -70,7 +70,7 @@ pub fn move_spiral(projectile: &mut Projectile, center: &Pos, speed: f32, dt: f3
   70    70     let r = f32::sqrt(dx * dx + dy * dy);
   71    71     let angle = dy.atan2(dx);
   72    72 
   73    -1     let r2 = r + 20.0 * dt;
   -1    73     let r2 = r + 25.0 * dt;
   74    74     let angle2 = angle + speed * dt / r.max(1.0);
   75    75 
   76    76     let (sin, cos) = angle2.sin_cos();