Built-in doodads and levels of Sketchy Maze.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
333 B

3 years ago
// Goal Region.
function main() {
Self.Hide();
3 years ago
Events.OnCollide((e) => {
3 years ago
if (!e.Settled) {
return;
}
// Only care if it's the player.
if (!e.Actor.IsPlayer()) {
return;
}
if (e.InHitbox) {
FailLevel("You have died!");
}
});
}