update positions of falling enemies per frame (and filter them out too)

This commit is contained in:
2025-02-15 02:17:01 +00:00
parent 219b37053b
commit 0b9bdeceff
2 changed files with 35 additions and 7 deletions

View File

@@ -29,13 +29,7 @@ struct
val enemies = Enemy.update
(enemies, walls, wallTree, platforms, platformTree, player, graph)
(* update state of falling enemies and possibly filter *)
(* todo: use enemy map
val fallingEnemies = FallingEnemies.updateList
(Vector.length fallingEnemies - 1, fallingEnemies, player, [])
val fallingEnemies = Vector.fromList fallingEnemies
*)
val fallingEnemies = FallingEnemies.update fallingEnemies
in
{ player = player
, walls = walls