You've already forked AM2R-Community-Updates
mirror of
https://github.com/izzy2lost/AM2R-Community-Updates.git
synced 2026-03-10 11:23:35 -07:00
10 lines
441 B
Plaintext
10 lines
441 B
Plaintext
/// isCollisionUpRight()
|
|
var yoff;
|
|
if (yVel <= 0) {
|
|
yoff = -1 + yVel * 2;
|
|
if (collision_line(x, y + collisionBoundsOffsetTopY, x, y + collisionBoundsOffsetTopY + yoff, oSolid, true, true) == noone) {
|
|
if (collision_line(x + collisionBoundsOffsetRightX - 1, y + collisionBoundsOffsetTopY, x + collisionBoundsOffsetRightX - 1, y + collisionBoundsOffsetTopY + yoff, oSolid, true, true) > 0) return 1; // BUGFIX
|
|
}
|
|
}
|
|
return 0;
|