doodle/dev-assets/doodads/objects/exit-flag.js

16 lines
238 B
JavaScript
Raw Normal View History

// Exit Flag.
function main() {
console.log("%s initialized!", Self.Doodad.Title);
Self.SetHitbox(22+16, 16, 75-16, 86);
Events.OnCollide(function(e) {
if (!e.Settled) {
return;
}
if (e.InHitbox) {
EndLevel();
}
});
}