if (x < 10) x = 10; if (x > (room_width - 10)) x = room_width - 10; if (y > (room_height - 10)) y = room_height - 10; if (y < 10) y = 10; alarm[0] = 2;