port over jumping sprites/frames

This commit is contained in:
2025-08-28 23:24:56 +01:00
parent ee5ccf77a0
commit 6dee0b89c8
11 changed files with 53892 additions and 3692 deletions

View File

@@ -51,36 +51,36 @@ struct
fun getWhenJumpingRight (player, amt, rx, ry, dw, dh, ww, wh) =
if amt < 3 then
PlayerJumpRight1.lerp
(rx, ry, dw, dh, ww, wh, 1.0, 1.0, 1.0)
(rx, ry, 3.0, ww, wh)
else if amt < 6 then
PlayerJumpRight2.lerp
(rx, ry, dw, dh, ww, wh, 1.0, 1.0, 1.0)
(rx, ry, 3.0, ww, wh)
else if amt < 9 then
PlayerJumpRight3.lerp
(rx, ry, dw, dh, ww, wh, 1.0, 1.0, 1.0)
(rx, ry, 3.0, ww, wh)
else if amt < 12 then
PlayerJumpRight4.lerp
(rx, ry, dw, dh, ww, wh, 1.0, 1.0, 1.0)
(rx, ry, 3.0, ww, wh)
else
PlayerJumpRight5.lerp
(rx, ry, dw, dh, ww, wh, 1.0, 1.0, 1.0)
(rx, ry, 3.0, ww, wh)
fun getWhenJumpingLeft (player, amt, rx, ry, dw, dh, ww, wh) =
if amt < 3 then
PlayerJumpLeft1.lerp
(rx, ry, dw, dh, ww, wh, 1.0, 1.0, 1.0)
(rx, ry, 3.0, ww, wh)
else if amt < 6 then
PlayerJumpLeft2.lerp
(rx, ry, dw, dh, ww, wh, 1.0, 1.0, 1.0)
(rx, ry, 3.0, ww, wh)
else if amt < 9 then
PlayerJumpLeft3.lerp
(rx, ry, dw, dh, ww, wh, 1.0, 1.0, 1.0)
(rx, ry, 3.0, ww, wh)
else if amt < 12 then
PlayerJumpLeft4.lerp
(rx, ry, dw, dh, ww, wh, 1.0, 1.0, 1.0)
(rx, ry, 3.0, ww, wh)
else
PlayerJumpLeft5.lerp
(rx, ry, dw, dh, ww, wh, 1.0, 1.0, 1.0)
(rx, ry, 3.0, ww, wh)
fun getWhenJumping (player, amt, rx, ry, dw, dh, ww, wh) =
case #facing player of
@@ -91,10 +91,10 @@ struct
case #facing player of
FACING_RIGHT =>
PlayerJumpRight5.lerp
(rx, ry, dw, dh, ww, wh, 1.0, 1.0, 1.0)
(rx, ry, 3.0, ww, wh)
| FACING_LEFT =>
PlayerJumpLeft5.lerp
(rx, ry, dw, dh, ww, wh, 1.0, 1.0, 1.0)
(rx, ry, 3.0, ww, wh)
fun getWhenDropping (player, rx, ry, dw, dh, ww, wh) =
let