Files
cacaus-arcade/data/live_scene.lua
T

42 lines
948 B
Lua

live_scene = {
--scene_update = nil,
--scene_end = nil,
}
-- function live_scene.scene_update()
-- -- buida
-- end
--
-- function live_scene.scene_end()
-- -- buida
-- end
function live_scene.update_stage1_ending()
stage1_ending:update_scene()
end
function live_scene.end_stage1_ending()
stage1_ending:end_scene()
end
function live_scene.start( name, op )
local flow_name = "live_scene_"..name
local update_func = live_scene["update_"..name]
local end_func = live_scene["end_"..name]
--live_scene.scene_update = update_func
--live_scene.scene_end = end_func
print("LIVE SCENE START")
if op=="add" then
print("ADD")
flow:registrar(flow_name,{update_func,end_func})
flow:add(flow_name);
else
print("EXEC")
flow:executar("live_scene", true);
end
end
flow:registrar("live_scene",{
live_scene.scene_update,
live_scene.scene_end
})