progress towards letting enemy drop below platform if path to player is there

This commit is contained in:
2025-01-23 00:01:15 +00:00
parent 174a99a5a0
commit efbf0c7da9
2 changed files with 22 additions and 7 deletions

View File

@@ -153,7 +153,7 @@ struct
(x, y, size, size, 0, 0, ww, wh, 0, platformTree)
val acc = getPlatformPatches (yAxis, platforms, platCollisions, [])
val acc =
val acc =
case yAxis of
DROP_BELOW_PLATFORM =>
(* if we dropped below platform before
@@ -162,11 +162,11 @@ struct
* then set new yAxis to FALLING
* so we do not drop below any platforms again
* *)
if QuadTree.hasCollisionAt (x, y, size, size, 0, 0, ww, wh, ~1,
platformTree)
then
Fn.W_Y_AXIS FALLING :: acc
else acc
if
QuadTree.hasCollisionAt
(x, y, size, size, 0, 0, ww, wh, ~1, platformTree)
then acc
else Fn.W_Y_AXIS FALLING :: acc
| _ => acc
val wallCollisions = QuadTree.getCollisionSides