• 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 - grzybkowy hałas - mushroom noise- JavaScript

Szczegóły
07 listopad 2020
2359

// Pokonaj szkielety i otwórz skrzynię.

function onSpawn (event) {
    // Pet should find the health potion (type is "potion"):
    var potion = pet.findNearestByType("potion");
    // and fetch it:
    pet.fetch(potion);

Więcej…

Codecombat - pustynia sarven - stranded in the dunes - uwięziony między wydmami - JavaScript

Szczegóły
16 sierpień 2020
2265

Ważna jest broń - kusza strzelająca trzema bełtami i zbroja

// Go to the far right edge of the level to find new areas.
// Check the guide for more details.
while(true) {
    var flag = hero.findFlag("green");
    var enemy = hero.findNearestEnemy();
    hero.moveXY(hero.pos.x + 5, hero.pos.y);
    if (flag) {
        hero.jumpTo(flag.pos.x , flag.pos.y);
        hero.pickUpFlag(flag);
    }
    if (enemy) {
        hero.attack(enemy);
    }
   
}

 

===============

 Inne rozwiązanie

==========

// Go to the far right edge of the level to find new areas.
// Check the guide for more details.
 while (true) {
     hero.moveXY(hero.pos.x +10, hero.pos.y);
     var flag = hero.findFlag("green");
    var enemy = hero.findNearestEnemy();
    var item = hero.findNearestItem();
    
    if (!enemy && item && item.type == "potion") {
    hero.moveXY(item.pos.x, item.pos.y);
        }
    if (flag) {
            hero.moveXY(flag.pos.x, flag.pos.y);
            hero.pickUpFlag(flag);
        }
                var enemy = hero.findNearestEnemy();        
    if (enemy) {
                hero.attack(enemy);
            }
}

 

 

 

 

 

 

 

 

 

 

 

 

 

   
   

 

 


 

Projektuję strony www Lublin na Joomla i WordPress

 

Codecombat - master of names - mistrz imion - JavaScript

Szczegóły
16 sierpień 2020
2550

Problem jest taki że przy 3 przeciwniku trzeba się przemieścić bo inaczej nie wyszukuje go, i trzeba aktywować potem ducha

 

// Twój bohater nie zna imion wrogów!
// Okulary dają ci zdolność findNearestEnemy.

// Assign the result of hero.findNearestEnemy() to the variable enemy1:
var enemy1 = hero.findNearestEnemy();
// enemy1 now refers to the nearest enemy. Use the variable to attack!
hero.attack(enemy1);
hero.attack(enemy1);

Więcej…

Codecombat - pustynia sarven - keeping time - zatrzymując czas - JavaScript

Szczegóły
16 sierpień 2020
2933

// Użyj swojej nowej umiejętności by wybrać co zrobić : hero.time

while(true) {
    // Jesli jest to 10 pierwszych sekund ,atakuj.
    if (hero.time < 10) {
        var enemy = hero.findNearestEnemy();
        hero.attack(enemy);
    }

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 - fast and furry ous - szybki i wściekły - JavaScript

Szczegóły
15 sierpień 2020
2167

// Umieść kod sterujący ruchem bohatera i zwierzaka w jednej pętli, aby mogli poruszać się jednocześnie!

function petMove() {
    pet.moveXY(50, 21);
}

// Użyj pet.on("spawn", petMove) zamiast petMove().
// W ten sposób, bohater i jego zwierzak dotrą do mety przed ogrem.

Więcej…

Codecombat - minesweeper - saper - JavaScript

Szczegóły
15 sierpień 2020
2230

// Prowadź wieśniaków i lekarza przez pole minowe.

while(true) {
    var coin = hero.findNearestItem();
    var healingThreshold = hero.maxHealth / 2;
    // Check to see if you are critically injured.
    if(hero.health < healingThreshold) {
        // Idź w lewo 10m.

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…

Strona 4 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