diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/scenes/speck_editor.lua | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/scenes/speck_editor.lua b/src/scenes/speck_editor.lua new file mode 100644 index 0000000..d36443e --- /dev/null +++ b/src/scenes/speck_editor.lua @@ -0,0 +1,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 |
