kiki/coffee/levels/slick.coffee
monsterkodi e0677dc82c levels
2016-08-22 01:45:48 +02:00

39 lines
1.2 KiB
CoffeeScript

# 0000000 000 000 0000000 000 000
# 000 000 000 000 000 000
# 0000000 000 000 000 0000000
# 000 000 000 000 000 000
# 0000000 0000000 000 0000000 000 000
module.exports =
name: "slick"
design: 'Michael Abel'
scheme: "tron_scheme"
size: [9,11,15]
intro: "slick"
help: """
$scale(1.5)mission:
get to the exit!
The green stone is slicky
you can't grab it while falling
"""
player:
coordinates: [4,10,0]
orientation: rotx90
exits: [
name: "exit"
active: 1
position: [0,0,4]
]
create: ->
s=world.size
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)
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)