• 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 - multiplayer treasure grove - JavaScript

Szczegóły
12 sierpień 2020
2172

Używamy zielonej flagi tylko bo zablokuje grę

// Be the first to 100 gold!
// If you are defeated, you will respawn at 67% gold.

while(true) {
    //  Find coins and/or attack the enemy.
    // Use flags and your special moves to win!
    var coin = hero.findNearestItem();
    var enemy = hero.findNearestEnemy();
    var flag = hero.findFlag("green");

Więcej…

Codecombat - hold the forest pass - leśny posterunek - JavaScript

Szczegóły
12 sierpień 2020
2118

// Użyj flag, aby dołączyć do bitwy lub się wycofać z pola walki.
// Jeśli przegrasz, spróbuj ponownie pamiętając o ustawianiu flag!
// Zalecany minimalny poziom zdrowia (health) 300.
while(true) {
    var enemy = hero.findNearestEnemy();
    var flag = hero.findFlag();
    if(flag) {

Więcej…

Codecombat - siege of stonehold - oblężenie twierdzy - JavaScript

Szczegóły
12 sierpień 2020
2349

// Help your friends beat the minions that Thoktar sends against you.
// You'll need great equipment and strategy to win.
// Flags might help, but it's up to you–be creative!
// There is a doctor behind the fence. Move to the X to get healed!
while(true) {
var enemy = hero.findNearestEnemy();

Więcej…

Codecombat - white rabbit - JavaScript

Szczegóły
10 sierpień 2020
2323

To nie jest całkiem dobre rozwiązanie - "hero" gubi "item" i nie może go znaleźć - był zbyt wolny

dodaliśmy więc "else" ale to powinno być coś ogólnego bo tu pasuje tylko do pozycji gdzie "hero" stracił kontakt z "item" - w innej pozycji by nie zadziałało. 

 

// Follow the lightstone to navigate the traps.

while (true) {
    var item = hero.findNearestItem();
    if (item) {
        // Store the item's position in a new variable using item.pos:
        var position = item.pos;
        // Store the X and Y coordinates using pos.x and pos.y:
        var itemX = item.pos.x;
        var itemY = item.pos.y;

Więcej…

Codecombat - salted earth - słona ziemia - JavaScript

Szczegóły
10 sierpień 2020
2665

// Ogres are attacking a nearby settlement!
// Be careful, though, for the ogres have sown the ground with poison.
// Gather coins and defeat the ogres, but avoid the burls and poison!

while(true) {
    var enemy = hero.findNearestEnemy();
    if(enemy.type == "munchkin" || enemy.type == "thrower") {
        hero.attack(enemy);

Więcej…

Codecombat - the wizards plane - JavaScript

Szczegóły
10 sierpień 2020
2511

// Move to 'Eszter' and get the secret number from her.
hero.moveXY(16, 32);
var esz = hero.findNearestFriend().getSecret();

// Multiply by 3 and subtract 2 to get 'Tamas's number.
// Remember to use parentheses to do calculations in the right order.
// Move to 'Tamas' and say his magic number.
var tam = esz * 3 - 2;
hero.moveXY(24, 28);
hero.say(tam);

Więcej…

Codecombat - endangered burl - zagrożony burl - JavaScript

Szczegóły
10 sierpień 2020
2363

// Atakuj tylko wrogów typu "munchkin" i "thrower".
// Nie atakuj typu "burl". Uciekaj od typu "ogre"!
while(true) {
    var enemy = hero.findNearestEnemy();
    
    // Pamiętaj: nie atakuj typu "burl"!
    if (enemy.type == "burl") {
        hero.say("Nie zatakuję tego Burla!");
    }

Więcej…

Codecombat - chameleon - kameleony - JavaScript

Szczegóły
10 sierpień 2020
2200

// Ogry przebrały się za -monety i klejnoty !

while (true) {
    var enemy = hero.findNearestEnemy();
    // Jesli widzisz wroga -zaatakuj go.
    if (enemy) {
        hero.attack(enemy);
    }

Więcej…

Strona 9 z 27

  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • Strony internetowe Lublin
  • Strony internetowe Puławy
  • Strony www Puławy
  • Strony www Lublin
  • Strony responsywne Lublin
wykonanie: kasai1.com