38 lines
1.4 KiB
CoffeeScript
38 lines
1.4 KiB
CoffeeScript
|
|
# 000 000 000 0000000 00000000
|
|
# 0000 000 000 000 000
|
|
# 000 0 000 000 000 0000000
|
|
# 000 0000 000 000 000
|
|
# 000 000 000 0000000 00000000
|
|
|
|
module.exports =
|
|
|
|
name: "nice"
|
|
design: 'Michael Abel'
|
|
scheme: "tron"
|
|
size: [11,11,11]
|
|
help: "$scale(1.5)mission:\nget to the exit!"
|
|
player: position: [2,-1,0]
|
|
exits: [
|
|
name: "exit"
|
|
active: 1
|
|
position: [0,0,0]
|
|
]
|
|
create: ->
|
|
|
|
supercube = (point=[5,5,5],size=2,obj='Wall') ->
|
|
p=point
|
|
s=size
|
|
world.addObjectPoly obj,[[p[0]+s,p[1]+s,p[2]], [p[0]+s,p[1]-s,p[2]], [p[0]-s,p[1]-s,p[2]], [p[0]-s,p[1]+s,p[2]]]
|
|
world.addObjectPoly obj,[[p[0]+s,p[1],p[2]+s], [p[0]+s,p[1],p[2]-s], [p[0]-s,p[1],p[2]-s], [p[0]-s,p[1],p[2]+s]]
|
|
world.addObjectPoly obj,[[p[0],p[1]+s,p[2]+s], [p[0],p[1]+s,p[2]-s], [p[0],p[1]-s,p[2]-s], [p[0],p[1]-s,p[2]+s]]
|
|
|
|
s = world.size
|
|
world.addObjectLine 'Wall', 1,1,1, 9,9,9
|
|
world.addObjectLine 'Wall', 1,1,9, 9,9,1
|
|
world.addObjectLine 'Wall', 1,9,1, 9,1,9
|
|
world.addObjectLine 'Wall', 9,1,1, 1,9,9
|
|
world.getOccupantAtPos(world.decenter(0,0,0)).del()
|
|
supercube point=[5,5,5],size=5,obj='Wall'
|
|
supercube point=[5,5,5],size=3,obj='Stone'
|
|
|