have pellets fly around player when player has attacked enemy

This commit is contained in:
2025-01-01 14:17:42 +00:00
parent 8e75d09fc1
commit 097d1502ad
3 changed files with 120 additions and 1 deletions

View File

@@ -99,7 +99,7 @@ struct
(* add collided enemies to player record,
* concatenating with the previous enemies defeated *)
val newDefeated =
Vector.map (fn id => {angle = (id * 5) mod 360}) enemyCollisions
Vector.map (fn id => {angle = 360}) enemyCollisions
val oldDefeated = #enemies player
val allDefeated = Vector.concat [oldDefeated, newDefeated]