a bit of refactoring with regards to enemy's structures and files

This commit is contained in:
2025-02-14 09:06:32 +00:00
parent 93aae6dc1f
commit 93aebe5fa1
5 changed files with 100 additions and 94 deletions

View File

@@ -236,11 +236,7 @@ struct
val game = GameUpdate.update (game, input)
val playerVec = Player.getDrawVec (#player game, width, height)
val enemyVec =
EnemyDrawVec.foldUnordered (#enemies game, (width, height), [])
val enemyVec = Vector.concat enemyVec
val enemyVec = Enemy.getDrawVec (#enemies game, width, height)
val playerVec = Vector.concat [playerVec, enemyVec]
val wallVec = Wall.getDrawVec (#walls game, width, height)