module.exports = name: "green" scheme: "green" size: [13,5,13] help: """ $scale(1.5)mission: activate the exit! place a powered wire stone next to it. a wirestone is powered by a rotating generator or it shares at least one edge with another powered wirestone. this one is hard, really hard, but it's possible. good luck! """ player: position: [1,1,1] exits: [ name: "exit" active: 0 position: [0,0,4] ] create: -> # [sx, sy, sz] = [13,5,13] { MotorGear, MotorCylinder, Generator} = require '../items' for z in range(-sz/2+2, sz/2) world.addObjectAtPos('Wall', world.decenter(-sx/2+2, 0, z)) world.addObjectAtPos('Wall', world.decenter( sx/2-1, 0, z)) for z in range(-sz/2+4, sz/2-2) world.addObjectAtPos('Wall', world.decenter(-sx/2+4, 0, z)) world.addObjectAtPos('Wall', world.decenter( sx/2-3, 0, z)) for x in range(-sx/2+3, sx/2-1) world.addObjectAtPos('Wall', world.decenter(x, 0, -sz/2+2)) world.addObjectAtPos('Wall', world.decenter(x, 0, sz/2-1)) for x in range(-sx/2+4, sx/2-2) world.addObjectAtPos('Wall', world.decenter(x, 0, -sz/2+4)) world.addObjectAtPos('Wall', world.decenter(x, 0, sz/2-3)) world.addObjectAtPos('WireStone', world.decenter(0,-1,0)) world.addObjectAtPos( new MotorGear(Face.Y), world.decenter(0,0,0)) world.addObjectAtPos( new MotorCylinder(Face.Y), world.decenter(0,1,0)) world.addObjectAtPos( new Generator(Face.PY), world.decenter(0,0,-4)) world.addObjectAtPos('WireStone', world.decenter(4,0,0)) world.addObjectAtPos('WireStone', world.decenter(-4,0,0)) world.addObjectAtPos('WireStone', world.decenter(0,-2,0)) world.addObjectAtPos('Bomb', world.decenter(0, 2,0)) world.addObjectAtPos('Bomb', world.decenter( 1, 0,0)) world.addObjectAtPos('Bomb', world.decenter(-1, 0,0)) world.removeObject(world.getOccupantAtPos(world.decenter(0, 0, 3))) world.addObjectAtPos('WireStone', world.decenter(0,0,3))