3 local keys = state.world2_keys;
17 Effect.sixteen_to_nine(2);
18 Text.set_text(translate("---Insert Cutscene Here---"));
24 Effect.four_to_three();
28 /***************************************
29 * Handling of the "keys" in the world *
30 ***************************************/
31 if(! ("world2_keys" in state))
32 state.world2_keys <- {}
34 local keys = state.world2_keys;
37 if(! ("earth" in keys))
39 if(! ("wood" in keys))
41 if(! ("fire" in keys))
43 if(! ("water" in keys))
46 /// this function updates the key images (call this if tux has collected a key)
47 function update_keys()
49 local keys = state.world2_keys;
50 key_air.set_action(keys.air ? "display" : "outline");
51 key_earth.set_action(keys.earth ? "display" : "outline");
52 key_wood.set_action(keys.wood ? "display" : "outline");
53 key_fire.set_action(keys.fire ? "display" : "outline");
54 key_water.set_action(keys.water ? "display" : "outline");
61 key_air <- FloatingImage("images/objects/keys/key_air.sprite");
62 key_air.set_anchor_point(ANCHOR_TOP_LEFT);
63 key_air.set_pos(x, y);
64 key_air.set_visible(true);
67 key_earth <- FloatingImage("images/objects/keys/key_earth.sprite");
68 key_earth.set_anchor_point(ANCHOR_TOP_LEFT);
69 key_earth.set_pos(x, y);
70 key_earth.set_visible(true);
73 key_wood <- FloatingImage("images/objects/keys/key_wood.sprite");
74 key_wood.set_anchor_point(ANCHOR_TOP_LEFT);
75 key_wood.set_pos(x, y);
76 key_wood.set_visible(true);
79 key_fire <- FloatingImage("images/objects/keys/key_fire.sprite");
80 key_fire.set_anchor_point(ANCHOR_TOP_LEFT);
81 key_fire.set_pos(x, y);
82 key_fire.set_visible(true);
85 key_water <- FloatingImage("images/objects/keys/key_water.sprite");
86 key_water.set_anchor_point(ANCHOR_TOP_LEFT);
87 key_water.set_pos(x, y);
88 key_water.set_visible(true);