hotfix for walls
This commit is contained in:
parent
ff4ced57d2
commit
57a2c07fe0
8
main.lua
8
main.lua
|
@ -96,13 +96,13 @@ function generate_museum(x,y,z)
|
|||
|
||||
-- make the walls
|
||||
for w = 0, width, 1 do for h = 0, height, 1 do
|
||||
table.insert(obj_list,g3d.newModel("objects/wall.obj","objects/wall/texture.png",{x+w,y-h,z},{0,math.pi/2,0},{-1,1,-1}))
|
||||
table.insert(obj_list,g3d.newModel("objects/wall.obj","objects/wall/texture.png",{x+w,y-h,z+depth},{0,math.pi/2,0},{-1,1,-1}))
|
||||
table.insert(obj_list,g3d.newModel("objects/wall.obj","objects/wall/texture.png",{x+w,y-h-1,z},{0,math.pi/2,0},{-1,1,-1}))
|
||||
table.insert(obj_list,g3d.newModel("objects/wall.obj","objects/wall/texture.png",{x+w,y-h-1,z+depth},{0,math.pi/2,0},{-1,1,-1}))
|
||||
end end
|
||||
|
||||
for d = 0, depth, 1 do for h = 0, height, 1 do
|
||||
table.insert(obj_list,g3d.newModel("objects/wall.obj","objects/wall/texture.png",{x,y-h,z+d},{0,0,0},{-1,1,-1}))
|
||||
table.insert(obj_list,g3d.newModel("objects/wall.obj","objects/wall/texture.png",{x+width,y-h,z+d},{0,0,0},{-1,1,-1}))
|
||||
table.insert(obj_list,g3d.newModel("objects/wall.obj","objects/wall/texture.png",{x,y-h-1,z+d},{0,0,0},{-1,1,-1}))
|
||||
table.insert(obj_list,g3d.newModel("objects/wall.obj","objects/wall/texture.png",{x+width,y-h-1,z+d},{0,0,0},{-1,1,-1}))
|
||||
end end
|
||||
|
||||
-- decorate with paintings
|
||||
|
|
Loading…
Reference in New Issue