# level design by Michael Abel

Quaternion = require '../lib/quaternion'
Vector     = require '../lib/vector'

module.exports =
    name:       "plate"
    scheme:     "blue_scheme"
    size:       [7,7,9]
    intro:      "plate"
    help:       """
                $scale(1.5)mission:\nget to the exit!
                
                use the bombs :)
                """
    player:   
        coordinates:    [3,2,1]
        nostatus:        0
        orientation:    Quaternion.rotationAroundVector(270, new Vector(1,0,0))
    exits:    [
        name:         "exit"
        active:       1
        position:  [0,0,0]
    ]
    create: ->
    
        stone = () -> KikiStone(KColor(0.6,0.6,0.6),true)
        world.addObjectAtPos(KikiStone(KColor(0.8,0.8,0.3),true), world.decenter(0,0,0))
        
        world.addObjectPoly(stone, [world.decenter(1,1,0),world.decenter(1,-1,0), world.decenter(-1,-1,0),world.decenter(-1,1,0)], 1)
        
        world.addObjectAtPos 'KikiBomb', world.decenter 0,1,-4
        world.addObjectAtPos 'KikiBomb', world.decenter 0,-1,-4
        world.addObjectAtPos 'KikiBomb', world.decenter 1,0,-4
        world.addObjectAtPos 'KikiBomb', world.decenter -1,0,-4
        
        world.addObjectAtPos 'KikiBomb', world.decenter 0,0,-2
