• 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 - agrippa defense A - JavaScript

Szczegóły
05 styczeń 2020
2356

while(true) {
    var enemy = hero.findNearestEnemy();
    if(enemy) {
        // Find the distance to the enemy with distanceTo.
        var distance = hero.distanceTo(enemy);
        // If the distance is less than 5 meters...
        if(distance < 5) {
            
        

Więcej…

Codecombat - agrippa defense B - JavaScript

Szczegóły
05 styczeń 2020
2804

while(true) {
    var enemy = hero.findNearestEnemy();
    if(enemy) {
        // Find the distance to the enemy with distanceTo.
        var distance = hero.distanceTo(enemy);
        // If the distance is less than 5 meters...
        if (distance < 5) {
            

Więcej…

Codecombat - long range division - JavaScript - Dywizja dalekiego zasięgu

Szczegóły
04 styczeń 2020
2604

// Destroy the mines!
// Use `say` to call out the range to the mines.
// Use division to calculate the range.

var enemy = hero.findNearestEnemy();
var distanceToEnemy = hero.distanceTo(enemy);
// Say first Range: distanceToEnemy divided by 3
hero.say(distanceToEnemy / 3);
hero.say("Fire!");
// Say second range: distanceToEnemy divided by 1.5
hero.say(distanceToEnemy / 1.5);
hero.say("Fire!");

Więcej…

Codecombat - munchkin swarm - JavaScript - Rój Munchkinów

Szczegóły
04 styczeń 2020
2594

while(true) {
    // Check the distance to the nearest enemy.
    var nearestEnemy = hero.findNearestEnemy();
    var distance = hero.distanceTo(nearestEnemy);
    // If it comes closer than 10 meters, cleave it!
    if (distance<10) {
        hero.cleave(nearestEnemy);
    }

Więcej…

Codecombat - maniac munchkins - JavaScript - Obsesja Munchkinów

Szczegóły
04 styczeń 2020
2750

// Kolejny kufer do otwarcia!
// Atakuj kufer, aby go otworzyć.
// Munchkiny na pewno nie będą się biernie przyglądać, kiedy dobierasz się do ich skarbu!
// Kiedy munchkiny podejdą blisko Bohatera, zaatakuj je.

while(true) {
    var enemy = hero.findNearestEnemy();
    var distance = hero.distanceTo(enemy);

Więcej…

Codecombat - forest fire dancing- JavaScript - Leśny taniec z ogniem

Szczegóły
04 styczeń 2020
2585

// Kule `evilstone` oznaczają zagrożenie. Zatem unikaj ich, jak ognia.
while (true) {
    var evilstone = hero.findNearestItem();
    if (evilstone) {
        var pos = evilstone.pos;
        if (pos.x == 34) {     // == oznacza "równy"
            // Jeśli kula `evilstone` jest po LEWEJ, idź na PRAWO.
            hero.moveXY(46, 22);
        } else {

Więcej…

Codecombat - village rover - JavaScript

Szczegóły
04 styczeń 2020
2406

// This defines a function called findAndAttackEnemy
function findAndAttackEnemy() {
    var enemy = hero.findNearestEnemy();
    if (enemy) {
        hero.attack(enemy);
    }
}

Więcej…

Codecombat - Shrapnel - JavaScript

Szczegóły
26 grudzień 2019
2501

// Use charges to soften up packs of ogres.
// Then pick them off with your bow.

while(true) {
    var enemy = hero.findNearestEnemy();
    if (enemy) {
        if (hero.isReady("throw")) {
            var distance = hero.distanceTo(enemy);
            // Only throw if the ogres are more than 15m away.
            // Use "if" to compare distance to 15.
            if (distance>15) {
                hero.throw(enemy);
                
            }

Więcej…

Strona 26 z 27

  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • Strony internetowe Lublin
  • Strony internetowe Puławy
  • Strony www Puławy
  • Strony www Lublin
  • Strony responsywne Lublin
wykonanie: kasai1.com