20 lines
No EOL
520 B
Text
20 lines
No EOL
520 B
Text
if (pdv <= 0) {
|
|
instance_destroy();
|
|
show_debug_message("game overe");
|
|
// GAME OVER
|
|
} else if (inv == 0) {
|
|
pdv--;
|
|
inv = 120;
|
|
}
|
|
|
|
// pushback
|
|
knockback = 10;
|
|
if (other.x > x && !place_meeting(x-knockback-1, y, oWall)) {
|
|
x -= knockback;
|
|
} else if (other.x < x && !place_meeting(x+knockback+1, y, oWall)) {
|
|
x += knockback;
|
|
} else if (other.y > y && !place_meeting(x, y-knockback-1, oWall)) {
|
|
y -= knockback;
|
|
} else if (other.y < y && !place_meeting(x, y+knockback+1, oWall)) {
|
|
y += knockback;
|
|
} |