Refactor spine-prototype to use lib-core.composition for the Sign:
template defines sprite_color + sprite_w + sprite_h + text + position;
create instantiates with per-instance position + text override.
Render switches from direct draw_rect to render.draw_entities{tag=
"renderable"}; interaction.register reads position from entity-properties.
Direct hardcoded `local sign = {x, y, text}` Lua-local + SIGN_R/G/B
constants entfernt. Sign demo-behavior identisch (12×12 yellow rect at
tile-center (4,4) = (144,144); E within 40px → print text).
Bumps: render dep 0.1.0 → 0.2.0; +composition v0.1.0; module 0.1.0 →
0.2.0.
Stones + Player bleiben Lua-locals (A.5/A.6 territory).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
24 lines
811 B
Plaintext
24 lines
811 B
Plaintext
{
|
|
"id": "spine-prototype",
|
|
"version": "0.2.0",
|
|
"kind": "module",
|
|
"api": "^0.1",
|
|
"ci_frames": 30,
|
|
"entry_point": "init.lua",
|
|
"asset_aliases": {
|
|
"fa_terrain_v1": "lib-asset.prototype-fa-starter"
|
|
},
|
|
"deps": [
|
|
{"id":"lib-core.maps","version":"0.5.7"},
|
|
{"id":"lib-core.render","version":"0.2.0"},
|
|
{"id":"lib-core.camera","version":"0.3.0"},
|
|
{"id":"lib-core.selection","version":"0.1.0"},
|
|
{"id":"lib-core.input","version":"0.4.0"},
|
|
{"id":"lib-core.player_control","version":"0.1.0"},
|
|
{"id":"lib-core.interaction","version":"0.1.0"},
|
|
{"id":"lib-core.command","version":"0.1.0"},
|
|
{"id":"lib-core.composition","version":"0.1.0"},
|
|
{"id":"lib-asset.prototype-fa-starter","version":"0.2.0"}
|
|
]
|
|
}
|