diff options
| author | ne_mene <[email protected]> | 2026-03-31 11:38:32 +0200 |
|---|---|---|
| committer | ne_mene <[email protected]> | 2026-03-31 11:38:32 +0200 |
| commit | 791443b8e0d36c456aaf4f55b08782fdd7ac0a44 (patch) | |
| tree | d7f201a8698540c1a898e01b82bfcdbdbffa21ee | |
| parent | 73ede8a89358311cc8c8b89675c9dda1913937c8 (diff) | |
speck editor skeleton
| -rw-r--r-- | main.lua | 1 | ||||
| -rw-r--r-- | src/scenes/speck_editor.lua | 22 |
2 files changed, 23 insertions, 0 deletions
@@ -5,6 +5,7 @@ lg.setLineStyle("rough") function love.load() main_init() + -- start_speck_editor() start_game_scene() end 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 |
