From: Florian Forster Date: Thu, 11 Feb 2010 16:34:56 +0000 (+0100) Subject: SML 3-3: Added ScriptTrigger for secret areas. X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=39995865b8ab71e0d40e595c784ed1f3beb23d50;p=supertux-levels.git SML 3-3: Added ScriptTrigger for secret areas. --- diff --git a/share/games/supertux2/levels/octo/SML0303.stl b/share/games/supertux2/levels/octo/SML0303.stl index bde75c4..0f98941 100644 --- a/share/games/supertux2/levels/octo/SML0303.stl +++ b/share/games/supertux2/levels/octo/SML0303.stl @@ -23,9 +23,9 @@ Platform15.start_moving();") (ambient-light 1 1 1) (background (speed 0.5) - (image-top "images/background/BlueRock_Forest/blue-top.jpg") - (image "images/background/BlueRock_Forest/blue-middle.jpg") - (image-bottom "images/background/BlueRock_Forest/blue-bottom.jpg") + (image-top "images/background/arctis_top.jpg") + (image "images/background/arctis.jpg") + (image-bottom "images/background/arctis_bottom.jpg") ) (bouncingsnowball (x 3297) @@ -68,11 +68,45 @@ Platform15.start_moving();") (x 10016) (y 448) ) + (scripttrigger + (script "if (!(\"Secret1Flag\" in getroottable ()) || !::Secret1Flag) +{ + ::Secret1Flag <- true; + Level.spawn (\"Secret1\", \"main\"); +}") + (button #f) + (width 32) + (height 2) + (x 2608) + (y 190) + ) + (scripttrigger + (script "if (!(\"Secret2Flag\" in getroottable ()) || !::Secret2Flag) +{ + ::Secret2Flag <- true; + Level.spawn (\"Secret2\", \"main\"); +}") + (button #f) + (width 32) + (height 2) + (x 5200) + (y 478) + ) (spawnpoint (name "main") (x 64) (y 480) ) + (spawnpoint + (name "Secret1") + (x 2608) + (y 128) + ) + (spawnpoint + (name "Secret2") + (x 5200) + (y 416) + ) (tilemap (solid #f) (z-pos -100) @@ -539,6 +573,14 @@ Platform15.start_moving();") (camera (mode "normal") ) + (scripttrigger + (script "Level.spawn (\"main\", \"Secret1\");") + (button #f) + (width 1) + (height 32) + (x 607) + (y 480) + ) (spawnpoint (name "main") (x 96) @@ -635,6 +677,14 @@ Platform15.start_moving();") (camera (mode "normal") ) + (scripttrigger + (script "Level.spawn (\"main\", \"Secret2\");") + (button #f) + (width 2) + (height 64) + (x 606) + (y 96) + ) (spawnpoint (name "main") (x 96)