code functionality to filter out falling enemy from list if falling enemy is colliding with player

This commit is contained in:
2025-02-08 11:05:58 +00:00
parent 26870816db
commit 07d31119a7
2 changed files with 29 additions and 5 deletions

View File

@@ -21,7 +21,7 @@ struct
(* update state of falling enemies and possibly filter *)
val fallingEnemies = FallingEnemies.updateList
(Vector.length fallingEnemies - 1, fallingEnemies, [])
(Vector.length fallingEnemies - 1, fallingEnemies, player, [])
val (enemies, fallingEnemies) = Enemy.updateEnemyList
( Vector.length enemies - 1