1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59
|
// -----------------------------------------------------------------------------
// File: setup.ss
// Description: the Default Setup object spawns: Default HUD, Default Camera,
// Switch Controller, and so on. This is spawned by default on
// every level, but that can be changed manually (see below)
// Author: Alexandre Martins <http://opensurge2d.org>
// License: MIT
// -----------------------------------------------------------------------------
using SurgeEngine.Player;
using SurgeEngine.Level;
// -----------------------------------------------------------------------------
// ATTENTION
//
// "Default Setup" is considered obsolete since Open Surge 0.6.0. Its usage
// is no longer recommended, but it has been kept for retro-compatibility.
// Multiple setup objects are used for ease of customization (see the .lev
// files for details)
// -----------------------------------------------------------------------------
//
// Need to hack this?
// It's not recommended to change this object. Instead, copy this object, give
// it a different name and change the setup field on the .lev file accordingly.
//
object "Default Setup"
{
cam = spawn("Default Camera");
switchController = spawn("Switch Controller");
pauseController = spawn("Default Pause and Quit");
waterController = spawn("Water Controller");
clearedAnim = spawn("Default Cleared Animation");
openingAnim = spawn("Default Opening Animation");
hud = spawn("Default HUD");
animalManager = Level.spawn("Animals");
collectiblesListener = spawn("Collectibles Listener").triggers("Give Extra Life").every(100);
}
//
// A debug setup object without the opening animation.
// Useful for development & debugging.
//
object "Debug Setup"
{
cam = spawn("Default Camera");
switchController = spawn("Switch Controller");
pauseController = spawn("Default Pause and Quit");
waterController = spawn("Water Controller");
clearedAnim = spawn("Default Cleared Animation");
hud = spawn("Default HUD");
animalManager = Level.spawn("Animals");
collectiblesListener = spawn("Collectibles Listener").triggers("Give Extra Life").every(100);
}
// this is for retro-compatibility
object ".default_startup" { setup = spawn("Default Setup"); }
object "DefaultStartup" { setup = spawn("Default Setup"); }
|