3 local keys = state.world2_keys;
10 foreach(name in ["air", "earth", "wood", "fire", "water"])
15 Effect.sixteen_to_nine(2);
16 Text.set_text(translate("---Insert Cutscene Here---"));
22 Effect.four_to_three();
26 /***************************************
27 * Handling of the "keys" in the world *
28 ***************************************/
29 if(! ("world2_keys" in state))
30 state.world2_keys <- {}
32 local keys = state.world2_keys;
33 foreach(name in ["air", "earth", "wood", "fire", "water"])
39 /// this function updates the key images (call this if tux has collected a key)
40 function update_keys()
42 local keys = state.world2_keys;
43 foreach(name in ["air", "earth", "wood", "fire", "water"])
45 key[name].set_action(keys[name] ? "display" : "outline");
55 foreach(name in ["air", "earth", "wood", "fire", "water"])
57 if(! (name in key) ) {
58 key[name] <- FloatingImage("images/objects/keys/key_" + name + ".sprite");
59 key[name].set_anchor_point(ANCHOR_TOP_LEFT);
60 key[name].set_pos(x, y);
61 key[name].set_visible(true);