blob: d36443e5f2e706955661ca3c6e2186d8899faa51 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
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
|