progress towards letting enemy drop below platform if path to player is there
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user