This commit is contained in:
monsterkodi 2016-08-24 02:20:49 +02:00
parent 1bca591dcf
commit 9843499d78
4 changed files with 14 additions and 13 deletions

View File

@ -37,10 +37,10 @@ class Levels
# "towers", # "towers",
# "edge", # "edge",
# "random", # "random",
"plate", # "plate",
"nice", # "nice",
"entropy", # "entropy",
"neutron", # "neutron",
"strange", "strange",
"core", "core",
# --- difficult # --- difficult

View File

@ -30,15 +30,15 @@ module.exports =
] ]
create: -> create: ->
s = world.size 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 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 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.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.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.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.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.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
world.addObjectAtPos 'WireStone', s.x/2-3, 0, s.z/2 world.addObjectAtPos 'WireStone', s.x/2-3, 0, s.z/2

View File

@ -30,9 +30,9 @@ module.exports =
for b in [1..3] 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,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 k in [b+1..s.x-b]
for j in [b+1..s.y-b] 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('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('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)

View File

@ -24,7 +24,8 @@ module.exports =
next to the exit next to the exit
""" """
player: player:
position: [1,2,0] coordinates: [5,4,6]
orientation: XdownZ
exits: [ exits: [
name: "exit" name: "exit"
active: 0 active: 0