fix bug in tracing left jump path: we should consider rightmost x coordinate from enemy (which we now do)
This commit is contained in:
@@ -103,7 +103,7 @@ struct
|
|||||||
end
|
end
|
||||||
|
|
||||||
fun traceLeftJumpAscent (x, y, remainingJump, nextPlatID, platTree) =
|
fun traceLeftJumpAscent (x, y, remainingJump, nextPlatID, platTree) =
|
||||||
if remainingJump >= Constants.jumpLimit - Constants.enemySize then
|
if x <= 0 orelse remainingJump >= Constants.jumpLimit - Constants.enemySize then
|
||||||
traceLeftDescent (x, y, nextPlatID, platTree)
|
traceLeftDescent (x, y, nextPlatID, platTree)
|
||||||
else
|
else
|
||||||
let
|
let
|
||||||
@@ -124,6 +124,7 @@ struct
|
|||||||
fun traceLeftJump (enemy: GameType.enemy, nextPlatID, platTree) =
|
fun traceLeftJump (enemy: GameType.enemy, nextPlatID, platTree) =
|
||||||
let
|
let
|
||||||
val {x, y, ...} = enemy
|
val {x, y, ...} = enemy
|
||||||
|
val x = x + 75
|
||||||
|
|
||||||
open GameType
|
open GameType
|
||||||
in
|
in
|
||||||
|
|||||||
Reference in New Issue
Block a user