refactor platform and wall type declarations out into platform.sml and wall.sml

This commit is contained in:
2025-02-14 09:26:07 +00:00
parent 93aebe5fa1
commit d1e23b5455
5 changed files with 21 additions and 15 deletions

View File

@@ -158,7 +158,7 @@ struct
end
fun getEnvironmentPatches
(input, walls: wall vector, wallTree, platforms, platformTree) =
(input, walls: Wall.t vector, wallTree, platforms, platformTree) =
let
(* react to platform and wall collisions *)
val x = Fn.getX input
@@ -185,7 +185,7 @@ struct
let
(* default case:
* player will land on platform and stay on the ground there. *)
val {y = platY, ...}: GameType.platform =
val {y = platY, ...}: Platform.t =
Vector.sub (platforms, standPlatID - 1)
val newY = platY - Fn.entitySize