progress in handling variable window width/height (mostly only in imperative shell though)

This commit is contained in:
2024-12-16 00:58:59 +00:00
parent cc7f30f718
commit 20c4060124
7 changed files with 39 additions and 19 deletions

View File

@@ -154,10 +154,13 @@ struct
* *)
val input = InputState.getSnapshot ()
val width = InputState.getWidth ()
val height = InputState.getHeight ()
val game = GameUpdate.update (game, input)
val wallVec = Wall.getDrawVec (#walls game)
val playerVec = Player.getDrawVec (#player game)
val wallVec = Wall.getDrawVec (#walls game, width, height)
val playerVec = Player.getDrawVec (#player game, width, height)
val shellState = uploadWall (shellState, wallVec)
val shellState = uploadPlayer (shellState, playerVec)