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

@@ -13,11 +13,7 @@ struct
, fallingEnemies
} = game
val enemyTree = MakeEnemyTree.foldUnordered
( enemies
, ()
, QuadTree.create (Constants.worldWidth, Constants.worldHeight)
)
val enemyTree = Enemy.generateTree enemies
val player = Player.runPhysicsAndInput (game, input, enemyTree)
val projectiles = #projectiles player