add proper wall building and ceiling building

This commit is contained in:
Justus Wolff
2026-02-15 12:40:44 +01:00
parent 22bdf30e1e
commit af9d6ddd39

View File

@@ -268,9 +268,35 @@ local function printdes(buf, dimensions)
move("forward")
for cy=1,dimensions["y"],1 do
for cz=1,dimensions["z"],1 do
for cx=1,dimensions["x"],1 do
placebuf(buf, cx, cy, cz)
for _=1,3,1 do -- build floor
for cz=1,dimensions["z"],1 do
for cx=1,dimensions["x"],1 do
placebuf(buf, cx, cy, cz)
move("forward")
end
-- return to standard pos but +1 to z
--move("back")
move("right")
move("forward")
move("right")
for _=1,dimensions["x"],1 do
move("forward")
end
move("right")
move("right")
end
-- return to standard pos but +1 to y
move("left")
for _=1,dimensions["z"],1 do
move("forward")
end
move("right")
move("up")
end
-- build ceiling/floor
for _=1,dimensions["z"],1 do
for _=1,dimensions["x"],1 do
place("down")
move("forward")
end
-- return to standard pos but +1 to z