remove some unnecessary destructuring
This commit is contained in:
@@ -372,7 +372,7 @@ struct
|
|||||||
* where player can walk through enemies without receiving damage
|
* where player can walk through enemies without receiving damage
|
||||||
* in which case enemy collisions don't count
|
* in which case enemy collisions don't count
|
||||||
* *)
|
* *)
|
||||||
case #attacked player of
|
case attacked of
|
||||||
NOT_ATTACKED =>
|
NOT_ATTACKED =>
|
||||||
let
|
let
|
||||||
val {x, y, ...} = player
|
val {x, y, ...} = player
|
||||||
@@ -450,7 +450,7 @@ struct
|
|||||||
|
|
||||||
fun getInputPatches (player: player, input) =
|
fun getInputPatches (player: player, input) =
|
||||||
let
|
let
|
||||||
val {x, y, yAxis, health, jumpPressed, attacked, facing, ...} = player
|
val {x, y, yAxis, jumpPressed, facing, ...} = player
|
||||||
val {leftHeld, rightHeld, upHeld, downHeld, attackHeld} = input
|
val {leftHeld, rightHeld, upHeld, downHeld, attackHeld} = input
|
||||||
|
|
||||||
val xAxis = getXAxis (leftHeld, rightHeld)
|
val xAxis = getXAxis (leftHeld, rightHeld)
|
||||||
|
|||||||
Reference in New Issue
Block a user