enemy dropping below platform (without any bugs) is fully implemented now
This commit is contained in:
@@ -187,11 +187,12 @@ struct
|
||||
val platFinishX = platX + platW
|
||||
|
||||
val {x = eX, y = ey, yAxis = eyAxis, ...} = enemy
|
||||
val ey = ey + Constants.enemySize
|
||||
|
||||
val standingOnPlat = standingOnArea (enemy, platformTree)
|
||||
in
|
||||
isBetween (platX, eX, platFinishX) andalso standingOnPlat
|
||||
andalso (ey > platY andalso ey + Constants.jumpLimit >= platY)
|
||||
andalso (ey > platY andalso ey >= platY)
|
||||
end
|
||||
|
||||
fun canDrop (nextPlatform, platformTree, enemy) =
|
||||
|
||||
Reference in New Issue
Block a user