• Start
      • Back
      • Blog
      • Joomla 3 - administracja
      • Joomla 4 - administracja
      • Wordpress - administracja
      • Code Combat
      • Joomla czy Wordpress
      • Polityka prywatności
  • Portfolio
  • Strony internetowe
      • Back
      • Aktualizacje i szkolenia
      • Strony Responsywne
      • Jak pracuję
      • CMS Joomla
      • Pozycjonowanie strony
      • Hosting

Codecombat - sarven sentry - strażnik na sarven - JavaScript

Szczegóły
15 sierpień 2020
2238

// Użyj flag o innych kolorach do wykonywania różnych zadań.

while(true) {
    var flagGreen = hero.findFlag("green");
    var flagBlack = hero.findFlag("black");
    
    // Jeśli jest zielona flaga...
    if (flagGreen) {
        
    
        // Zbuduj płot ("fence") w miejscu zielonej.
    hero.buildXY("fence", flagGreen.pos.x, flagGreen.pos.y);
        
        // Podnieś flagę!

Więcej…

Codecombat - pustynia sarven - thunderhooves - JavaScript

Szczegóły
15 sierpień 2020
2301

// Move right, to the oasis.
// Build a "fence" above or below when you see a yak.

while(true) {
    var yak = hero.findNearestEnemy();
    if (yak) {
        // If yak.pos.y is greater than hero.pos.y
        if(yak.pos.y > hero.pos.y) {
        
            // buildXY a "fence" 10m below the yak
            hero.buildXY("fence", yak.pos.x, yak.pos.y-10);
            

Więcej…

Codecombat - the great yak stampede - JavaScript

Szczegóły
15 sierpień 2020
2083

// Save the village by blocking the path of the incoming sand yak herd.
// Move closer to the red X.
// Build a fence at the red X.
hero.moveXY(54, 16);

Więcej…

Codecombat - operation killdeer - operacja zabij jelenia - JavaScript

Szczegóły
15 sierpień 2020
2124

// Zwab Ogry do pułapki.Te ogry są ostrożne.
// Będą cię gonić tylko gdy bohater jest ranny.

// Ta funkcja sprawdza punkty życia bohatera
// i zwraca prawdę lub fałsz (boolean).
function shouldRun() {
    if (hero.health < hero.maxHealth / 2) {
        return true;
    } else {
        return false;

Więcej…

Codecombat - cursed valley - przeklęta dolina - JavaScript

Szczegóły
15 sierpień 2020
2159

// Ciepło słońca odejmuje życie bohatera!

while (true) {
    var enemy = hero.findNearestEnemy();
    // Attack if enemy exists AND enemy.team is "ogres"
    // AND enemy.type is "skeleton"
    if (enemy && enemy.team === "ogres" && enemy.type === "skeleton") {
        hero.attack(enemy);
    }
    

Więcej…

Codecombat - pustynia sarven - sarven road - dorzecze paniki - JavaScript

Szczegóły
15 sierpień 2020
2930

// Get to the oasis. Watch out for new enemies: ogre scouts!
// Go up and right by adding to the current X and Y position.

while(true) {
    // If there's an enemy, attack.
    var enemy = hero.findNearestEnemy();
    if (enemy) {
        hero.attack(enemy);

Więcej…

Codecombat - pustynia sarven - hunter valley - dolina łowcy - JavaScript

Szczegóły
15 sierpień 2020
2551

// Ucieknij na prawą stronę doliny..

// Funkcja  porusza bohaterem w dól i w prawo.
function moveDownRight(shift) {
    hero.moveXY(hero.pos.x + shift, hero.pos.y - shift);
}

// Funkcja  porusza bohaterem w  górę i w prawo.
function moveUpRight(shift) {
    // Uzupełnij  tą funkcję.
    hero.moveXY(hero.pos.x + shift, hero.pos.y + shift);
}

Więcej…

Codecombat - pustynia sarven - basin stampede help - dorzecze paniki - JavaScript

Szczegóły
15 sierpień 2020
2906

// Keep moving right, but adjust up and down as you go.

while(true) {
    var enemy = hero.findNearestEnemy();
    var xPos = hero.pos.x + 5;
    var yPos = 17;
    if(enemy) {
        // Adjust y up or down to get away from yaks.
        if(enemy.pos.y > hero.pos.y) {
            // If the Yak is above you, subtract 3 from yPos.
            yPos -= 3;
        }

Więcej…

Strona 5 z 27

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • Strony internetowe Lublin
  • Strony internetowe Puławy
  • Strony www Puławy
  • Strony www Lublin
  • Strony responsywne Lublin
wykonanie: kasai1.com