v
This commit is contained in:
parent
1bca591dcf
commit
9843499d78
|
@ -37,10 +37,10 @@ class Levels
|
|||
# "towers",
|
||||
# "edge",
|
||||
# "random",
|
||||
"plate",
|
||||
"nice",
|
||||
"entropy",
|
||||
"neutron",
|
||||
# "plate",
|
||||
# "nice",
|
||||
# "entropy",
|
||||
# "neutron",
|
||||
"strange",
|
||||
"core",
|
||||
# --- difficult
|
||||
|
|
|
@ -30,15 +30,15 @@ module.exports =
|
|||
]
|
||||
create: ->
|
||||
s = world.size
|
||||
{Face,MotorCylinder,MotorGear,Generator,Wire} = require '../items'
|
||||
{Face,MotorCylinder,MotorGear,Generator} = require '../items'
|
||||
|
||||
world.addObjectAtPos new MotorGear(Face.NY), s.x/2-1, s.y-1, s.z/2
|
||||
world.addObjectAtPos new MotorCylinder(Face.NY), s.x/2-1, s.y-2, s.z/2
|
||||
world.addObjectAtPos new Generator(Face.NY), s.x/2+1, s.y-1, s.z/2
|
||||
world.addObjectLine new Wire(Face.NY, Wire.VERTICAL), s.x/2, s.y-1, 0, s.x/2, s.y-1, s.z
|
||||
world.addObjectLine new Wire(Face.Y, Wire.VERTICAL), s.x/2, 0, 0, s.x/2, 0, s.z
|
||||
world.addObjectLine new Wire(Face.Z, Wire.VERTICAL), s.x/2, 0, 0, s.x/2, s.y, 0
|
||||
world.addObjectLine new Wire(Face.NZ, Wire.VERTICAL), s.x/2, 0, s.z-1, s.x/2, s.y, s.z-1
|
||||
world.addObjectLine 'new Wire(Face.NY, Wire.VERTICAL)', s.x/2, s.y-1, 0, s.x/2, s.y-1, s.z
|
||||
world.addObjectLine 'new Wire(Face.Y, Wire.VERTICAL)', s.x/2, 0, 0, s.x/2, 0, s.z
|
||||
world.addObjectLine 'new Wire(Face.Z, Wire.VERTICAL)', s.x/2, 0, 0, s.x/2, s.y, 0
|
||||
world.addObjectLine 'new Wire(Face.NZ, Wire.VERTICAL)', s.x/2, 0, s.z-1, s.x/2, s.y, s.z-1
|
||||
|
||||
world.addObjectAtPos 'WireStone', s.x/2+3, 0, s.z/2
|
||||
world.addObjectAtPos 'WireStone', s.x/2-3, 0, s.z/2
|
||||
|
|
|
@ -30,9 +30,9 @@ module.exports =
|
|||
for b in [1..3]
|
||||
# for (k,l) in [ (i,j) for i in range(b+1,s.x-b-1) for j in range(b+1,s.y-b-1) ]
|
||||
for k in [b+1..s.x-b]
|
||||
for j in [b+1..s.y-b]
|
||||
world.addObjectAtPos('new Stone(color:[0,1,0,0.5], slippery:true)', k,l,b*3)
|
||||
for l in [b+1..s.y-b]
|
||||
world.addObjectAtPos('new Stone({color:[0,1,0,0.5], slippery:true})', k,l,b*3)
|
||||
|
||||
world.addObjectAtPos('Wall', s.x/2,s.y/2,0)
|
||||
world.addObjectAtPos('new Stone(color:[0,1,0,0.5], slippery:true)', s.x/2,s.y/2,2)
|
||||
world.addObjectAtPos('new Stone({color:[0,1,0,0.5], slippery:true})', s.x/2,s.y/2,2)
|
||||
|
|
@ -24,7 +24,8 @@ module.exports =
|
|||
next to the exit
|
||||
"""
|
||||
player:
|
||||
position: [1,2,0]
|
||||
coordinates: [5,4,6]
|
||||
orientation: XdownZ
|
||||
exits: [
|
||||
name: "exit"
|
||||
active: 0
|
||||
|
|
Loading…
Reference in New Issue
Block a user