Noah Petherbridge
38614ee280
* Tightens up the surface area of API methods available to the JavaScript VMs for doodads. Variables and functions are carefully passed in one-by-one so the doodad script can only access intended functions and not snoop on undocumented APIs. * Wrote tons of user documentation for Doodad Scripts: documented the full surface area of the exposed JavaScript API now that the surface area is known and limited. * Early WIP code for the Campaign JSON
16 lines
231 B
JavaScript
16 lines
231 B
JavaScript
// Exit Flag.
|
|
function main() {
|
|
console.log("%s initialized!", Self.Title);
|
|
Self.SetHitbox(22+16, 16, 75-16, 86);
|
|
|
|
Events.OnCollide(function(e) {
|
|
if (!e.Settled) {
|
|
return;
|
|
}
|
|
|
|
if (e.InHitbox) {
|
|
EndLevel();
|
|
}
|
|
});
|
|
}
|