52 lines
2.0 KiB
CoffeeScript
52 lines
2.0 KiB
CoffeeScript
|
|
# 0000000 00000000 0000000 0000000 00000000
|
|
# 000 000 000 000 000 000 000 000
|
|
# 000 0000 0000000 000000000 0000000 00000000
|
|
# 000 000 000 000 000 000 000 000
|
|
# 0000000 000 000 000 000 0000000 000
|
|
|
|
module.exports =
|
|
name: "grasp"
|
|
design: "Owen Hay"
|
|
scheme: "blue_scheme"
|
|
intro: "grasp"
|
|
size: [11,11,11]
|
|
help: """
|
|
$scale(1.5)mission:activate the exit!
|
|
|
|
to shoot, press $key(shoot)
|
|
"""
|
|
player:
|
|
coordinates: [3,0,3]
|
|
nostatus: 0
|
|
exits: [
|
|
name: "exit"
|
|
active: 0
|
|
position: [0,0,0]
|
|
]
|
|
create: ->
|
|
|
|
s = world.size
|
|
|
|
world.addObjectAtPos('KikiStone', s.x/2-1, s.y/2+1, 0)
|
|
world.addObjectAtPos('KikiStone', s.x/2+1, s.y/2+1, 0)
|
|
world.addObjectAtPos('KikiStone', s.x/2+1, s.y/2-1, 0)
|
|
world.addObjectAtPos('KikiStone', s.x/2-1, s.y/2-1, 0)
|
|
world.addObjectAtPos('KikiStone', s.x/2-1, s.y/2, 0)
|
|
world.addObjectAtPos('KikiStone', s.x/2+1, s.y/2, 0)
|
|
world.addObjectAtPos('KikiStone', s.x/2, s.y/2-1, 0)
|
|
world.addObjectAtPos('KikiStone', s.x/2, s.y/2+1, 0)
|
|
|
|
world.addObjectAtPos('KikiStone', s.x/2, s.y/2, 1)
|
|
world.addObjectAtPos('KikiStone', s.x/2+1, s.y/2, 2)
|
|
world.addObjectAtPos('KikiStone', s.x/2-1, s.y/2, 2)
|
|
world.addObjectAtPos('KikiStone', s.x/2+2, s.y/2, 1)
|
|
world.addObjectAtPos('KikiStone', s.x/2-2, s.y/2, 1)
|
|
world.addObjectAtPos('KikiStone', s.x/2+2, s.y/2, 4)
|
|
world.addObjectAtPos('KikiStone', s.x/2-2, s.y/2, 4)
|
|
|
|
Switch = require '../switch'
|
|
exit_switch = new Switch
|
|
exit_switch.getEventWithName("switched").addAction continuous -> world.toggle "exit"
|
|
world.addObjectAtPos exit_switch, s.x/2, s.y/2, 0
|
|
|