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

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff