19 lines
No EOL
303 B
Text
19 lines
No EOL
303 B
Text
if (pdv <= 0) {
|
|
instance_destroy();
|
|
show_debug_message("game overe");
|
|
// GAME OVER
|
|
} else if (inv == 0) {
|
|
pdv--;
|
|
inv = 120;
|
|
}
|
|
|
|
// pushback
|
|
if (other.x > x) {
|
|
x -= 10;
|
|
} else if (other.x < x) {
|
|
x += 10;
|
|
} else if (other.y > y) {
|
|
y -= 10;
|
|
} else if (other.y < y) {
|
|
y += 10;
|
|
} |