Consolidated code for walkingflame and swalking flame, added new dormant state
[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     (dwalkingflame (x 128)(y 192))
28
29                 (tilemap        (name   "Interactive"   )                                                                                                                                                                                                                                                                                                               
30                         (z-pos  0       )(solid #t      )                                                                                                                                                                                                                                                                                               
31                         (width  42      )(height        30      )                                                                                                                                                                                                                                                                                               
32                         (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            
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               
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       ;       32
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       ;       64
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       ;       96
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       ;       128
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       ;       160
39 0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       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
40 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
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       0       0       ;       256
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       130     133     ;       288
43 0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       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
44 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
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       ;       384
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       ;       416
47 0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       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
48 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
49 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
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       ;       544
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       ;       576
52 0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       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
53 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
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       ;       672
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       0       0       ;       704
56 0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       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
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      ;       768
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      ;       800
59 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
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      ;       864
61 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
62 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
63                 ))                                                                                                                                                                                                                                                                                                                                      
64                                                                                                                                                                                                                                                                                                                                                         
65                 (candle (x      128     )(y     480     ))                                                                                                                                                                                                                                                                                              
66                 (candle (x      96      )(y     736     )(color 1       0       0       )(name  "red"   ))                                                                                                                                                                                                                                              
67                 (candle (x      320     )(y     736     )(color 1       0.5     0       )(name  "orange"        ))                                                                                                                                                                                                                                              
68                 (candle (x      544     )(y     736     )(color 1       1       0       )(name  "yellow"        ))                                                                                                                                                                                                                                              
69                 (candle (x      768     )(y     736     )(color 0       1       0       )(name  "green" ))                                                                                                                                                                                                                                              
70                 (candle (x      992     )(y     736     )(color 0       0       1       )(name  "blue"  ))                                                                                                                                                                                                                                              
71                 (candle (x      1216    )(y     736     )(color 0.5     0       0.5     )(name  "purple"        ))                                                                                                                                                                                                                                              
72                 (candle (x      1184    )(y     480     )(color 1       1       1       ))                                                                                                                                                                                                                                                              
73                                                                                                                                                                                                                                                                                                                                                         
74                 (candle (x      608     )(y     960     )(color 0.4     0.1     0       )(flicker       #f      ))                                                                                                                                                                                                                                              
75                 (candle (x      640     )(y     960     )(color 0.4     0.1     0       )(flicker       #f      ))                                                                                                                                                                                                                                              
76                 (candle (x      672     )(y     960     )(color 0.4     0.1     0       )(flicker       #f      ))                                                                                                                                                                                                                                              
77                 (candle (x      704     )(y     960     )(color 0.4     0.1     0       )(flicker       #f      ))                                                                                                                                                                                                                                              
78                                                                                                                                                                                                                                                                                                                                                         
79                 (candle (x      576     )(y     320     )(color 1       0.2     0.05    )(name  "torch1"        )(sprite        "images/objects/candle/torch/torch.sprite"      )(burning       #f      ))                                                                                                                                                                                                              
80                 (candle (x      736     )(y     320     )(color 1       0.2     0.05    )(name  "torch2"        )(sprite        "images/objects/candle/torch/torch.sprite"      )(burning       #f      ))                                                                                                                                                                                                              
81                                                                                                                                                                                                                                                                                                                                                         
82                 (switch (script "       red.set_burning(!red.get_burning());                                                                                                                                                                                                                                                                                                                    
83                                 wait(   0.1     );                                                                                                                                                                                                                                                                                                      
84                                 orange.set_burning(!orange.get_burning());                                                                                                                                                                                                                                                                                                                      
85                                 wait(   0.1     );                                                                                                                                                                                                                                                                                                      
86                                 yellow.set_burning(!yellow.get_burning());                                                                                                                                                                                                                                                                                                                      
87                                 wait(   0.1     );                                                                                                                                                                                                                                                                                                      
88                                 green.set_burning(!green.get_burning());                                                                                                                                                                                                                                                                                                                        
89                                 wait(   0.1     );                                                                                                                                                                                                                                                                                                      
90                                 blue.set_burning(!blue.get_burning());                                                                                                                                                                                                                                                                                                                  
91                                 wait(   0.1     );                                                                                                                                                                                                                                                                                                      
92                                 purple.set_burning(!purple.get_burning());      ")(sprite       "images/objects/switch/switch.sprite"   )                                                                                                                                                                                                                                                                                               
93                         (x      96      )(y     448     ))                                                                                                                                                                                                                                                                                              
94                                                                                                                                                                                                                                                                                                                                                         
95                 (switch (script "       torch1.set_burning(!torch1.get_burning());                                                                                                                                                                                                                                                                                                                      
96                                 torch2.set_burning(!torch2.get_burning());      ")(sprite       "images/objects/switch/switch.sprite"   )                                                                                                                                                                                                                                                                                               
97                         (x      1216    )(y     448     ))                                                                                                                                                                                                                                                                                              
98                 (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"   )                                                                                                                                                                                                                                                                                               
99                         (x      320     )(y     576     ))                                                                                                                                                                                                                                                                                              
100                                                                                                                                                                                                                                                                                                                                                         
101                 (bonusblock     (x      544     )(y     352     )(contents      "icegrow"       )(count 0       ))                                                                                                                                                                                                                                                              
102                 (bonusblock     (x      608     )(y     352     )(contents      "star"  )(count 0       ))                                                                                                                                                                                                                                                              
103                 (bonusblock     (x      704     )(y     352     )(contents      "1up"   )(count 0       ))                                                                                                                                                                                                                                                              
104                 (bonusblock     (x      768     )(y     352     )(contents      "firegrow"      )(count 0       ))                                                                                                                                                                                                                                                              
105
106     (willowisp (x 48 )(y 544)(spawnpoint "top" ))
107     (willowisp (x 1232 )(y 544)(spawnpoint "top" ))
108
109     (powerup (x 0 )(y 320 )(sprite "images/powerups/iceflower/iceflower.sprite" ))
110     (powerup (x 0 )(y 480 )(sprite "images/powerups/fireflower/fireflower.sprite" ))
111
112     (weak_block (x 0 )(y 352 )(linked #f ))
113     (weak_block (x 32 )(y 352 ))
114     (weak_block (x 64 )(y 352 ))
115     (weak_block (x 96 )(y 352 ))
116     (weak_block (x 128 )(y 352 ))
117     (weak_block (x 160 )(y 352 ))
118
119     (magicblock (x 416 )(y 224 )(color 1 1 1 ))
120     (magicblock (x 448 )(y 224 )(color 1 1 1 ))
121     (magicblock (x 480 )(y 224 )(color 1 1 1 ))
122     (magicblock (x 512 )(y 224 )(color 1 1 1 ))
123     (magicblock (x 544 )(y 224 )(color 1 1 1 ))
124     (magicblock (x 576 )(y 224 )(color 1 1 1 ))
125     (magicblock (x 608 )(y 224 )(color 1 1 1 ))
126     (magicblock (x 640 )(y 224 )(color 1 1 1 ))
127     (magicblock (x 672 )(y 224 )(color 1 1 1 ))
128     (magicblock (x 704 )(y 224 )(color 1 1 1 ))
129     (magicblock (x 736 )(y 224 )(color 1 1 1 ))
130     (magicblock (x 768 )(y 224 )(color 1 1 1 ))
131     (magicblock (x 800 )(y 224 )(color 1 1 1 ))
132     (magicblock (x 832 )(y 224 )(color 1 1 1 ))
133     (magicblock (x 864 )(y 224 )(color 1 1 1 ))
134     (magicblock (x 896 )(y 224 )(color 1 1 1 ))
135 ))