diff options
author | rexim <reximkut@gmail.com> | 2024-03-15 02:12:09 +0700 |
---|---|---|
committer | rexim <reximkut@gmail.com> | 2024-03-15 02:12:09 +0700 |
commit | 8cedcf005c3b816c6bfa714751a3955dfd01f8ec (patch) | |
tree | 76dbd680b8c43628862502101dd2a5abf85f7d14 | |
parent | 3bb2d4553854123bba2a67beb6860cda635dbd69 (diff) |
Add square easing to Interpolate_Positions
-rw-r--r-- | game.adb | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -675,7 +675,7 @@ procedure Game is Prev_Position: constant Vector2 := To_Vector2(IPrev_Position)*Cell_Size; Curr_Position: constant Vector2 := To_Vector2(IPosition)*Cell_Size; begin - return Prev_Position + (Curr_Position - Prev_Position)*C_Float(1.0 - T); + return Prev_Position + (Curr_Position - Prev_Position)*C_Float(1.0 - T*T); end; Space_Down: Boolean := False; |