begin parameterising level so that it fits into larger type (with different modes like TITLE, LEVEL, SETTINGS, etc.)

This commit is contained in:
2025-02-18 13:16:52 +00:00
parent b426ddbdd1
commit afe878c05d
33 changed files with 235 additions and 218 deletions

View File

@@ -233,7 +233,7 @@ struct
val width = InputState.getWidth ()
val height = InputState.getHeight ()
val game = GameUpdate.update (game, input)
val game = LevelUpdate.update (game, input)
val playerVec = Player.getDrawVec (#player game, width, height)
val enemyVec = Enemy.getDrawVec (#enemies game, width, height)
@@ -281,6 +281,6 @@ struct
val () = InputState.setControls controls
in
helpLoop (shellState, GameType.initial controls)
helpLoop (shellState, LevelType.initial controls)
end
end