1-- Lua script of map tree. 2-- This script is executed every time the hero enters this map. 3 4-- Feel free to modify the code below. 5-- You can add more events and remove the ones you don't need. 6 7-- See the Solarus Lua API documentation: 8-- http://www.solarus-games.org/doc/latest 9 10local map = ... 11local game = map:get_game() 12 13-- Event called at initialization time, as soon as this map becomes is loaded. 14function map:on_started() 15 16 -- You can initialize the movement and sprites of various 17 -- map entities here. 18end 19 20-- Event called after the opening transition effect of the map, 21-- that is, when the player takes control of the hero. 22function map:on_opening_transition_finished() 23 24end 25