e700056428bf4da8668b9186d85631595cdb5c8d
[supertux.git] / data / levels / test / glow_effects.stl
1 (supertux-level                                                                                                                                                                                                                                                                                                                                                 
2         (version 2)                                                                                                                                                                                                                                                                                                                                             
3         (name (_ "Glow Effects Test"))                                                                                                                                                                                                                                                                                                                                          
4         (author "LMH")                                                                                                                                                                                                                                                                                                                                          
5         (license        "GPL 2 / CC-by-sa 3.0"  )                                                                                                                                                                                                                                                                                                                               
6         (sector (name   "main"  )                                                                                                                                                                                                                                                                                                                       
7                 (ambient-light  0.02    0.02    0.02    )                                                                                                                                                                                                                                                                                                       
8                 (camera (mode   "normal"        ))                                                                                                                                                                                                                                                                                                              
9                 (music   "music/voc-dark.ogg"   )                                                                                                                                                                                                                                                                                                                       
10
11                 (spawnpoint     (name   "main"  )
12                         (x      64      )(y     448     ))
13                 (spawnpoint     (name   "top"   )
14                         (x      656     )(y     288     ))
15
16
17                 (mrbomb (x      832     )(y     736     ))                                                                                                                                                                                                                                                                                              
18                 (short_fuse     (x      1056    )(y     736     ))                                                                                                                                                                                                                                                                                              
19                 (short_fuse     (x      1152    )(y     736     ))                                                                                                                                                                                                                                                                                              
20                 (short_fuse     (x      1248    )(y     736     ))                                                                                                                                                                                                                                                                                              
21                 (haywire        (x      928     )(y     736     ))                                                                                                                                                                                                                                                                                              
22                 (flame  (x      576     )(y     480     )(speed 0.2))
23                 (iceflame       (x      736     )(y     480     )(speed 0.2))
24                 (ghostflame     (x      656     )(y     96      ))
25     (walkingflame (x 224 )(y 192 ))
26     (swalkingflame (x 64 )(y 192 )(direction "right"))
27
28                 (tilemap        (name   "Interactive"   )                                                                                                                                                                                                                                                                                                               
29                         (z-pos  0       )(solid #t      )                                                                                                                                                                                                                                                                                               
30                         (width  42      )(height        30      )                                                                                                                                                                                                                                                                                               
31                         (tiles  ;       160     192     224     256     288     320     352     384     416     448     480     512     544     576     608     640     672     704     736     768     800     832     864     896     928     960     992     1024    1056    1088    1120    1152    1184    1216    1248    1280    1312            
32 0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0               
33 0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       ;       32
34 0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       ;       64
35 0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       ;       96
36 0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       ;       128
37 0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       ;       160
38 0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       ;       192
39 48      48      48      48      48      48      48      48      48      48      48      48      48      0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       48      48      48      48      48      48      48      48      48      48      48      48      48      ;       224
40 0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       ;       256
41 0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       130     133     ;       288
42 0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       129     133     ;       320
43 0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       2817    0       1408    1388    0       2817    0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       1408    1412    1412    ;       352
44 0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       ;       384
45 0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       ;       416
46 0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       ;       448
47 0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       1408    1412    1412    1412    1412    1412    1412    1412    1412    1388    0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       ;       480
48 48      48      48      48      48      48      0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       48      48      48      48      48      48      48      48      48      ;       512
49 0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       ;       544
50 0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       ;       576
51 0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       ;       608
52 0       0       0       0       0       0       0       0       48      48      48      48      48      0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       ;       640
53 0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       ;       672
54 0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       ;       704
55 0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       48      48      ;       736
56 48      48      48      48      48      48      48      48      48      48      48      48      48      48      48      48      48      48      0       0       0       0       0       0       48      48      48      48      48      48      48      48      48      48      48      48      48      48      48      48      48      48      ;       768
57 48      48      48      48      48      48      48      48      48      48      48      48      48      48      48      48      48      48      0       0       0       0       0       0       48      48      48      48      48      48      48      48      48      48      48      48      48      48      48      48      48      48      ;       800
58 48      48      48      48      48      48      48      48      48      48      48      48      48      48      48      48      48      48      0       0       0       0       0       0       48      48      48      48      48      48      48      48      48      48      48      48      48      48      48      48      48      48      ;       832
59 48      48      48      48      48      48      48      48      48      48      48      48      48      48      48      48      48      48      48      0       0       0       0       48      48      48      48      48      48      48      48      48      48      48      48      48      48      48      48      48      48      48      ;       864
60 48      48      48      48      48      48      48      48      48      48      48      48      48      48      48      48      48      48      48      0       0       0       0       48      48      48      48      48      48      48      48      48      48      48      48      48      48      48      48      48      48      48      ;       896
61 48      48      48      48      48      48      48      48      48      48      48      48      48      48      48      48      48      48      48      2136    2137    2138    2139    48      48      48      48      48      48      48      48      48      48      48      48      48      48      48      48      48      48      48      ;       928
62                 ))                                                                                                                                                                                                                                                                                                                                      
63                                                                                                                                                                                                                                                                                                                                                         
64                 (candle (x      128     )(y     480     ))                                                                                                                                                                                                                                                                                              
65                 (candle (x      96      )(y     736     )(color 1       0       0       )(name  "red"   ))                                                                                                                                                                                                                                              
66                 (candle (x      320     )(y     736     )(color 1       0.5     0       )(name  "orange"        ))                                                                                                                                                                                                                                              
67                 (candle (x      544     )(y     736     )(color 1       1       0       )(name  "yellow"        ))                                                                                                                                                                                                                                              
68                 (candle (x      768     )(y     736     )(color 0       1       0       )(name  "green" ))                                                                                                                                                                                                                                              
69                 (candle (x      992     )(y     736     )(color 0       0       1       )(name  "blue"  ))                                                                                                                                                                                                                                              
70                 (candle (x      1216    )(y     736     )(color 0.5     0       0.5     )(name  "purple"        ))                                                                                                                                                                                                                                              
71                 (candle (x      1184    )(y     480     )(color 1       1       1       ))                                                                                                                                                                                                                                                              
72                                                                                                                                                                                                                                                                                                                                                         
73                 (candle (x      608     )(y     960     )(color 0.4     0.1     0       )(flicker       #f      ))                                                                                                                                                                                                                                              
74                 (candle (x      640     )(y     960     )(color 0.4     0.1     0       )(flicker       #f      ))                                                                                                                                                                                                                                              
75                 (candle (x      672     )(y     960     )(color 0.4     0.1     0       )(flicker       #f      ))                                                                                                                                                                                                                                              
76                 (candle (x      704     )(y     960     )(color 0.4     0.1     0       )(flicker       #f      ))                                                                                                                                                                                                                                              
77                                                                                                                                                                                                                                                                                                                                                         
78                 (candle (x      576     )(y     320     )(color 1       0.2     0.05    )(name  "torch1"        )(sprite        "images/objects/candle/torch/torch.sprite"      )(burning       #f      ))                                                                                                                                                                                                              
79                 (candle (x      736     )(y     320     )(color 1       0.2     0.05    )(name  "torch2"        )(sprite        "images/objects/candle/torch/torch.sprite"      )(burning       #f      ))                                                                                                                                                                                                              
80                                                                                                                                                                                                                                                                                                                                                         
81                 (switch (script "       red.set_burning(!red.get_burning());                                                                                                                                                                                                                                                                                                                    
82                                 wait(   0.1     );                                                                                                                                                                                                                                                                                                      
83                                 orange.set_burning(!orange.get_burning());                                                                                                                                                                                                                                                                                                                      
84                                 wait(   0.1     );                                                                                                                                                                                                                                                                                                      
85                                 yellow.set_burning(!yellow.get_burning());                                                                                                                                                                                                                                                                                                                      
86                                 wait(   0.1     );                                                                                                                                                                                                                                                                                                      
87                                 green.set_burning(!green.get_burning());                                                                                                                                                                                                                                                                                                                        
88                                 wait(   0.1     );                                                                                                                                                                                                                                                                                                      
89                                 blue.set_burning(!blue.get_burning());                                                                                                                                                                                                                                                                                                                  
90                                 wait(   0.1     );                                                                                                                                                                                                                                                                                                      
91                                 purple.set_burning(!purple.get_burning());      ")(sprite       "images/objects/switch/switch.sprite"   )                                                                                                                                                                                                                                                                                               
92                         (x      96      )(y     448     ))                                                                                                                                                                                                                                                                                              
93                                                                                                                                                                                                                                                                                                                                                         
94                 (switch (script "       torch1.set_burning(!torch1.get_burning());                                                                                                                                                                                                                                                                                                                      
95                                 torch2.set_burning(!torch2.get_burning());      ")(sprite       "images/objects/switch/switch.sprite"   )                                                                                                                                                                                                                                                                                               
96                         (x      1216    )(y     448     ))                                                                                                                                                                                                                                                                                              
97                 (switch (script "       settings.set_ambient_light((settings.get_ambient_red() + 0.14 > 1) ? 0.02 : settings.get_ambient_red() + 0.14 , (settings.get_ambient_green() + 0.14 > 1) ? 0.02 : settings.get_ambient_green() + 0.14 , (settings.get_ambient_blue() + 0.14 > 1) ? 0.02 : settings.get_ambient_blue() + 0.14 );        ")(sprite       "images/objects/switch/switch.sprite"   )                                                                                                                                                                                                                                                                                               
98                         (x      320     )(y     576     ))                                                                                                                                                                                                                                                                                              
99                                                                                                                                                                                                                                                                                                                                                         
100                 (bonusblock     (x      544     )(y     352     )(contents      "icegrow"       )(count 0       ))                                                                                                                                                                                                                                                              
101                 (bonusblock     (x      608     )(y     352     )(contents      "star"  )(count 0       ))                                                                                                                                                                                                                                                              
102                 (bonusblock     (x      704     )(y     352     )(contents      "1up"   )(count 0       ))                                                                                                                                                                                                                                                              
103                 (bonusblock     (x      768     )(y     352     )(contents      "firegrow"      )(count 0       ))                                                                                                                                                                                                                                                              
104
105     (willowisp (x 48 )(y 544)(spawnpoint "top" ))
106     (willowisp (x 1232 )(y 544)(spawnpoint "top" ))
107
108     (powerup (x 0 )(y 320 )(sprite "images/powerups/iceflower/iceflower.sprite" ))
109     (powerup (x 0 )(y 480 )(sprite "images/powerups/fireflower/fireflower.sprite" ))
110
111     (weak_block (x 0 )(y 352 )(linked #f ))
112     (weak_block (x 32 )(y 352 ))
113     (weak_block (x 64 )(y 352 ))
114     (weak_block (x 96 )(y 352 ))
115     (weak_block (x 128 )(y 352 ))
116     (weak_block (x 160 )(y 352 ))
117
118     (magicblock (x 416 )(y 224 )(color 1 1 1 ))
119     (magicblock (x 448 )(y 224 )(color 1 1 1 ))
120     (magicblock (x 480 )(y 224 )(color 1 1 1 ))
121     (magicblock (x 512 )(y 224 )(color 1 1 1 ))
122     (magicblock (x 544 )(y 224 )(color 1 1 1 ))
123     (magicblock (x 576 )(y 224 )(color 1 1 1 ))
124     (magicblock (x 608 )(y 224 )(color 1 1 1 ))
125     (magicblock (x 640 )(y 224 )(color 1 1 1 ))
126     (magicblock (x 672 )(y 224 )(color 1 1 1 ))
127     (magicblock (x 704 )(y 224 )(color 1 1 1 ))
128     (magicblock (x 736 )(y 224 )(color 1 1 1 ))
129     (magicblock (x 768 )(y 224 )(color 1 1 1 ))
130     (magicblock (x 800 )(y 224 )(color 1 1 1 ))
131     (magicblock (x 832 )(y 224 )(color 1 1 1 ))
132     (magicblock (x 864 )(y 224 )(color 1 1 1 ))
133     (magicblock (x 896 )(y 224 )(color 1 1 1 ))
134 ))