port over jumping sprites/frames
This commit is contained in:
@@ -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
Reference in New Issue
Block a user