kiki/coffee/levels/captured.coffee
monsterkodi d4c28ee1d6 levels
2016-08-23 18:35:44 +02:00

39 lines
1.6 KiB
CoffeeScript

# 0000000 0000000 00000000 000000000 000 000 00000000 00000000 0000000
# 000 000 000 000 000 000 000 000 000 000 000 000 000
# 000 000000000 00000000 000 000 000 0000000 0000000 000 000
# 000 000 000 000 000 000 000 000 000 000 000 000
# 0000000 000 000 000 000 0000000 000 000 00000000 0000000
module.exports =
name: "captured"
design: 'Niko Boehm'
scheme: "default"
size: [9,9,9]
help: """
$scale(1.5)mission:
get to the exit!
to get to the exit,
move the stones
"""
player: position: [0,-3,0]
exits: [
name: "exit"
active: 1
position: [0,0,0]
]
create: ->
s = world.size
for i in [-2, 2]
world.addObjectPoly 'Stone', [world.decenter(1, 1, i), world.decenter(1, -1, i), world.decenter(-1, -1, i), world.decenter(-1, 1, i)]
world.addObjectPoly 'Stone', [world.decenter(1, i, 1), world.decenter(1, i, -1), world.decenter(-1, i, -1), world.decenter(-1, i, 1)]
world.addObjectPoly 'Stone', [world.decenter(i, 1, 1), world.decenter(i, 1, -1), world.decenter(i, -1, -1), world.decenter(i, -1, 1)]
for i in [-4, -2, 2, 4]
world.addObjectAtPos 'Stone', world.decenter i, 0, 0
world.addObjectAtPos 'Stone', world.decenter 0, i, 0
world.addObjectAtPos 'Stone', world.decenter 0, 0, i