function start_speck_editor() local scn = new_scene() set_scene(scn) event_bind(scn.on_update, "Speck_System", speck_update_sys) event_bind(scn.on_draw, "Speck_System", speck_draw_sys) local editor = new_entity() add_comp(editor, "Position", SCR_WIDTH/2, SCR_HEIGHT/2) add_comp(editor, "Speck_Editor") return scn end register_comp("Speck_Editor", function (editor) add_comp(editor, "Speck_System", "res/speck/test.speck.lua") end) function speck_editor_update_sys(editor) end