commit c8c5b2f556fb1ea28ee10a35626dfd958f8ad9aa Author: Axel Meyer Date: Sat May 9 15:43:39 2026 +0200 feat: P.0.module.skeleton spine-prototype module (declares lib-core.maps dep) diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..41ae811 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +build/ +*.log diff --git a/README.md b/README.md new file mode 100644 index 0000000..1f26cb2 --- /dev/null +++ b/README.md @@ -0,0 +1,5 @@ +# spine-prototype + +P.0.module.skeleton end-to-end demo module. Loads `lib-core.maps`, +holds 6 inline-stubs for libs that get extracted in subsequent slices. +Self-exits after 60 frames. diff --git a/init.lua b/init.lua new file mode 100644 index 0000000..8c6341c --- /dev/null +++ b/init.lua @@ -0,0 +1,34 @@ +local maps = require("lib-core.maps") + +-- inline stubs (extract in P.0.lib.{render,camera,input,player_control,actor,interaction}) +local render = { hello = function() return "render stub" end } +local camera = { hello = function() return "camera stub" end } +local input = { hello = function() return "input stub" end } +local player_control = { hello = function() return "player_control stub" end } +local actor = { hello = function() return "actor stub" end } +local interaction = { hello = function() return "interaction stub" end } + +local frames = 0 +local TARGET_FRAMES = 60 + +function init(ctx) + engine.print("spine-prototype init: " .. maps.hello()) + engine.print("inline stubs loaded: " + .. render.hello() .. ", " + .. camera.hello() .. ", " + .. input.hello() .. ", " + .. player_control.hello() .. ", " + .. actor.hello() .. ", " + .. interaction.hello()) +end + +function update(ctx, dt) + frames = frames + 1 + if frames >= TARGET_FRAMES then + engine.exit(0) + end +end + +function cleanup(ctx) + engine.print("spine-prototype cleanup: total_frames=" .. frames) +end diff --git a/manifest.core b/manifest.core new file mode 100644 index 0000000..26ce345 --- /dev/null +++ b/manifest.core @@ -0,0 +1,6 @@ +{ + "id": "spine-prototype.core", + "kind": "lib", + "version": "0.1.0", + "license": "Proprietary" +} diff --git a/manifest.module b/manifest.module new file mode 100644 index 0000000..f3a3dd5 --- /dev/null +++ b/manifest.module @@ -0,0 +1,8 @@ +{ + "id": "spine-prototype", + "version": "0.1.0", + "kind": "module", + "api": "^0.1", + "entry_point": "init.lua", + "deps": [{"id":"lib-core.maps","version":"0.1.0"}] +}