animate whip (only visual; no collision detection)

This commit is contained in:
2025-02-28 14:11:57 +00:00
parent 54a4ed6d64
commit 39f4614f13
5 changed files with 65 additions and 72 deletions

View File

@@ -56,6 +56,7 @@ struct
open PlayerType
val {x, y, facing, mainAttack, ...} = player
in
(* todo: bring back attack
case mainAttack of
MAIN_ATTACKING {length, ...} =>
let
@@ -89,6 +90,8 @@ struct
(player, enemyMap, fallingMap)
end
| _ => (player, enemyMap, fallingMap)
*)
(player, enemyMap, fallingMap)
end
(* - Handle collisions when player's projectile hits enemy - *)