2024-12-15 09:10:19 +00:00
|
|
|
structure GameUpdate =
|
|
|
|
|
struct
|
|
|
|
|
fun update (game, input) =
|
|
|
|
|
let
|
2024-12-19 03:08:26 +00:00
|
|
|
val {player, walls, wallTree, platforms, platformTree, enemies, enemyTree} =
|
|
|
|
|
game
|
2024-12-15 09:10:19 +00:00
|
|
|
val player = Player.move (game, input)
|
|
|
|
|
in
|
2024-12-17 21:42:06 +00:00
|
|
|
{ player = player
|
|
|
|
|
, walls = walls
|
|
|
|
|
, wallTree = wallTree
|
|
|
|
|
, platforms = platforms
|
|
|
|
|
, platformTree = platformTree
|
2024-12-19 03:08:26 +00:00
|
|
|
, enemies = enemies
|
|
|
|
|
, enemyTree = enemyTree
|
2024-12-17 21:42:06 +00:00
|
|
|
}
|
2024-12-15 09:10:19 +00:00
|
|
|
end
|
|
|
|
|
end
|