SML 3-3: Added ScriptTrigger for secret areas.
[supertux-levels.git] / share / games / supertux2 / levels / octo / SML0303.stl
index bde75c4..0f98941 100644 (file)
@@ -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)