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

22 lines
742 B
CoffeeScript

module.exports =
name: "love"
scheme: "red"
size: [13,13,13]
help: "$scale(1.5)mission:\nget to the exit!"
player:
position: [0,1,-4]
orientation: rot0
exits: [
name: "peace"
active: 1
position: [0,0,4]
]
create: ->
heart = [[0,0], [ 1,1], [ 2,1], [ 3,0], [ 3,-1], [ 2,-2], [ 1,-3], [0,-4],
[-1,1], [-2,1], [-3,0], [-3,-1], [-2,-2], [-1,-3]]
for h in heart
world.addObjectAtPos('Bomb', world.decenter(h[0],h[1]+1,4))
world.addObjectAtPos('Stone', world.decenter(h[0],h[1]+1,-4))
world.addObjectAtPos('Mutant', world.decenter(0,-4,0))