codecombat js

13922 단어 code
#1
// Move to the gem.

// Don't touch the walls!

// Type your code below.



this.moveRight();

this.moveDown();

this.moveRight();

#2
// Grab all the gems using your movement commands.



this.moveRight();

this.moveDown();

this.moveUp();

this.moveUp();

this.moveRight();

#3
//         ,    。

this.moveRight();

this.moveUp();

this.moveRight();

this.moveDown();

this.moveRight();

#4
//     ,        。

this.moveRight();

this.moveUp();

this.moveRight();

this.moveRight();

this.moveDown();

this.moveDown();

this.moveUp();

this.moveRight();

#5
//   Brak and Treg!

//

this.moveRight();

this.attack("Brak");

this.attack("Brak");

this.moveRight();

this.moveRight();

this.attack("Treg");

this.attack("Treg");

this.moveRight();

#6
//      

//   ,      。



var kiss=this.findNearestEnemy();

this.attack(kiss);

this.attack(kiss);

kiss=this.findNearestEnemy();

this.attack(kiss);

this.attack(kiss);

kiss=this.findNearestEnemy();

this.attack(kiss);

this.attack(kiss);

#7
loop{

    this.moveRight();

    this.moveRight();

    this.moveUp();

    this.moveUP();

}

#8
//   loop      !

loop{

    this.moveRight();

    this.moveUp();

    this.moveRight();

    this.moveDown();

}

#9
//     (Door)

//        ,   loop  



loop {

    var kiss=this.findNearestEnemy();

    this.attack(kiss);   

}

#10
//



loop{

    var kiss=this.findNearestEnemy();

    this.attack(kiss);

}

#11
//////



loop{

    var kiss=this.findNearestEnemy();

    this.attack(kiss);

}

#12
//            .



var enemy1 = this.findNearestEnemy();

this.attack(enemy1);

this.attack(enemy1);

var enemy2 = this.findNearestEnemy();

this.attack(enemy2);

this.attack(enemy2);

this.moveRight();

this.moveDown();

this.moveRight();

#13
this.moveRight();



//        ,        。

var enemy1 = this.findNearestEnemy();

//   ,      ,

this.attack(enemy1);

this.attack(enemy1);

this.moveRight();

this.moveRight();

enemy1=this.findNearestEnemy();

this.attack(enemy1);

this.attack(enemy1);

this.moveRight();

#14
loop{ 

    this.moveRight();

    this.moveUp();

    var a=this.findNearestEnemy();

    this.attack(a);

    this.attack(a);

    this.moveRight();

    this.moveDown();

    this.moveDown();

    this.moveUp()

}

#15
//



this.moveDown();

this.buildXY("fence", 36, 34);

this.buildXY("fence", 36, 30);

this.buildXY("fence", 36, 27);

loop{

this.moveRight();

}

#16
//           

// Hover your mouse over the world to get X,Y coordinates.

this.buildXY("fence", 40, 52);

this.buildXY("fence", 40, 20);

#17
//        ,         。

//      moveXY(x, y)      。



this.moveXY(34, 45);

this.moveXY(36, 61);

this.moveXY(37, 13);

this.buildXY("fence", 71,25);

뒤에 관문 사진이 끊겼어요. 너무 심심해요. 이 사이트가 요금을 받다니...

좋은 웹페이지 즐겨찾기