chroma_solstice/rooms/village_1.sav
Your Name 7d84f595e4 Replace box variants with a moveable adhesion property
Collapse the spiky/sticky/skewer box-variant assets into a single per-
instance `adhesion` property on any moveable block, chosen in the editor
via a dropdown next to the colour picker and stored in the .sav alongside
the class.

- spiky -> sticky: soft grab on every true edge (goopy shader)
- skewer -> gluey: rigid weld on every true edge (spiked outline)
- old trailing-face sticky is removed; its saves fold into new sticky

Move the spike geometry + drawGlueySprite into shaders.lua, fold drawing
and the adhesion flag into GenericMoveable, and delete the three
Generic{Sticky,Spiky,Skewer} classes and box_variants.lua. Room:createEntity
normalises legacy spiky_/skewer_/sticky_ class prefixes so old saves load,
and serialization emits `adhesion`. World/map previews and the movement
proxy follow the rename.

Backfill rooms/*.sav to the new format via tools/backfill_adhesion.lua
(41 objects across 8 files). Update tests to the two-mode model; the two
tests asserting the removed lateral-shear limitation are dropped and a
legacy-load migration test added. 27/27 pass.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-08-21 16:34:01 -04:00

607 lines
No EOL
5.9 KiB
Text

{
wires={
},
objects={
{
x=1,
y=1,
class="static_wall",
color="red"
},
{
x=11,
y=1,
class="static_wall",
color="red"
},
{
x=1,
y=2,
class="static_wall",
color="red"
},
{
x=11,
y=2,
class="static_wall",
color="red"
},
{
x=1,
y=3,
class="static_wall",
color="red"
},
{
x=11,
y=3,
class="static_wall",
color="red"
},
{
x=1,
y=4,
class="static_wall",
color="red"
},
{
x=11,
y=4,
class="static_wall",
color="red"
},
{
x=1,
y=5,
class="static_wall",
color="red"
},
{
x=11,
y=5,
class="static_wall",
color="red"
},
{
x=1,
y=6,
class="static_wall",
color="red"
},
{
x=11,
y=6,
class="static_wall",
color="red"
},
{
x=1,
y=7,
class="static_wall",
color="red"
},
{
x=11,
y=7,
class="static_wall",
color="red"
},
{
x=1,
y=8,
class="static_wall",
color="red"
},
{
x=11,
y=8,
class="static_wall",
color="red"
},
{
x=1,
y=9,
class="static_wall",
color="red"
},
{
x=11,
y=9,
class="static_wall",
color="red"
},
{
x=1,
y=10,
class="static_wall",
color="red"
},
{
x=11,
y=10,
class="static_wall",
color="red"
},
{
x=1,
y=11,
class="static_wall",
color="red"
},
{
x=2,
y=11,
class="static_wall",
color="red"
},
{
x=3,
y=11,
class="static_wall",
color="red"
},
{
x=4,
y=11,
class="static_wall",
color="red"
},
{
x=5,
y=11,
class="static_wall",
color="red"
},
{
x=7,
y=11,
class="static_wall",
color="red"
},
{
x=8,
y=11,
class="static_wall",
color="red"
},
{
x=9,
y=11,
class="static_wall",
color="red"
},
{
x=10,
y=11,
class="static_wall",
color="red"
},
{
x=11,
y=11,
class="static_wall",
color="red"
},
{
x=9,
y=1,
class="box",
color="red"
},
{
x=7,
y=1,
adhesion="sticky",
color="red",
class="box_2x1_11"
},
{
x=5,
y=1,
adhesion="sticky",
color="red",
class="box_2x1_11"
},
{
x=1,
y=1,
class="static_wall",
color="green"
},
{
x=11,
y=1,
class="static_wall",
color="green"
},
{
x=1,
y=2,
class="static_wall",
color="green"
},
{
x=11,
y=2,
class="static_wall",
color="green"
},
{
x=1,
y=3,
class="static_wall",
color="green"
},
{
x=11,
y=3,
class="static_wall",
color="green"
},
{
x=1,
y=4,
class="static_wall",
color="green"
},
{
x=11,
y=4,
class="static_wall",
color="green"
},
{
x=1,
y=5,
class="static_wall",
color="green"
},
{
x=11,
y=5,
class="static_wall",
color="green"
},
{
x=1,
y=6,
class="static_wall",
color="green"
},
{
x=11,
y=6,
class="static_wall",
color="green"
},
{
x=1,
y=7,
class="static_wall",
color="green"
},
{
x=11,
y=7,
class="static_wall",
color="green"
},
{
x=1,
y=8,
class="static_wall",
color="green"
},
{
x=11,
y=8,
class="static_wall",
color="green"
},
{
x=1,
y=9,
class="static_wall",
color="green"
},
{
x=11,
y=9,
class="static_wall",
color="green"
},
{
x=1,
y=10,
class="static_wall",
color="green"
},
{
x=11,
y=10,
class="static_wall",
color="green"
},
{
x=1,
y=11,
class="static_wall",
color="green"
},
{
x=2,
y=11,
class="static_wall",
color="green"
},
{
x=3,
y=11,
class="static_wall",
color="green"
},
{
x=4,
y=11,
class="static_wall",
color="green"
},
{
x=5,
y=11,
class="static_wall",
color="green"
},
{
x=7,
y=11,
class="static_wall",
color="green"
},
{
x=8,
y=11,
class="static_wall",
color="green"
},
{
x=9,
y=11,
class="static_wall",
color="green"
},
{
x=10,
y=11,
class="static_wall",
color="green"
},
{
x=11,
y=11,
class="static_wall",
color="green"
},
{
x=1,
y=1,
class="static_wall",
color="blue"
},
{
x=11,
y=1,
class="static_wall",
color="blue"
},
{
x=1,
y=2,
class="static_wall",
color="blue"
},
{
x=11,
y=2,
class="static_wall",
color="blue"
},
{
x=1,
y=3,
class="static_wall",
color="blue"
},
{
x=11,
y=3,
class="static_wall",
color="blue"
},
{
x=1,
y=4,
class="static_wall",
color="blue"
},
{
x=11,
y=4,
class="static_wall",
color="blue"
},
{
x=1,
y=5,
class="static_wall",
color="blue"
},
{
x=1,
y=6,
class="static_wall",
color="blue"
},
{
x=11,
y=6,
class="static_wall",
color="blue"
},
{
x=1,
y=7,
class="static_wall",
color="blue"
},
{
x=11,
y=7,
class="static_wall",
color="blue"
},
{
x=1,
y=8,
class="static_wall",
color="blue"
},
{
x=11,
y=8,
class="static_wall",
color="blue"
},
{
x=1,
y=9,
class="static_wall",
color="blue"
},
{
x=11,
y=9,
class="static_wall",
color="blue"
},
{
x=1,
y=10,
class="static_wall",
color="blue"
},
{
x=11,
y=10,
class="static_wall",
color="blue"
},
{
x=1,
y=11,
class="static_wall",
color="blue"
},
{
x=2,
y=11,
class="static_wall",
color="blue"
},
{
x=3,
y=11,
class="static_wall",
color="blue"
},
{
x=4,
y=11,
class="static_wall",
color="blue"
},
{
x=5,
y=11,
class="static_wall",
color="blue"
},
{
x=7,
y=11,
class="static_wall",
color="blue"
},
{
x=8,
y=11,
class="static_wall",
color="blue"
},
{
x=9,
y=11,
class="static_wall",
color="blue"
},
{
x=10,
y=11,
class="static_wall",
color="blue"
},
{
x=11,
y=11,
class="static_wall",
color="blue"
},
{
x=9,
y=10,
adhesion="sticky",
color="blue",
class="box_2x1_11"
},
{
x=7,
y=10,
adhesion="sticky",
color="blue",
class="box_2x1_11"
},
{
x=9,
y=9,
adhesion="sticky",
color="blue",
class="box_2x1_11"
},
{
x=8,
y=8,
class="box_2x2_11-10",
color="blue"
},
{
x=3,
y=10,
adhesion="sticky",
color="blue",
class="box_2x1_11"
},
{
x=5,
y=10,
adhesion="sticky",
color="blue",
class="box_2x1_11"
},
{
x=2,
y=9,
class="box_2x2_11-10",
color="blue"
}
}
}