add platform vector and platform quadtree to game type
This commit is contained in:
@@ -2,9 +2,14 @@ structure GameUpdate =
|
||||
struct
|
||||
fun update (game, input) =
|
||||
let
|
||||
val {player, walls, wallTree} = game
|
||||
val {player, walls, wallTree, platforms, platformTree} = game
|
||||
val player = Player.move (game, input)
|
||||
in
|
||||
{player = player, walls = walls, wallTree = wallTree}
|
||||
{ player = player
|
||||
, walls = walls
|
||||
, wallTree = wallTree
|
||||
, platforms = platforms
|
||||
, platformTree = platformTree
|
||||
}
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user