add proper wall building and ceiling building
This commit is contained in:
26
src/main.lua
26
src/main.lua
@@ -268,6 +268,7 @@ local function printdes(buf, dimensions)
|
||||
move("forward")
|
||||
|
||||
for cy=1,dimensions["y"],1 do
|
||||
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)
|
||||
@@ -292,6 +293,31 @@ local function printdes(buf, dimensions)
|
||||
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
|
||||
--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
|
||||
end
|
||||
|
||||
while true do
|
||||
|
||||
Reference in New Issue
Block a user