• 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 - jailbreak - Ucieczka z więzienia - JavaScript

Szczegóły
08 sierpień 2020
2246

// Grasz musi pokonać tylko kilku wrogów.
game.spawnPlayerXY("guardian", 62, 25);

// Użyj addDefeatGoal(X)  by umożliwić graczowi wygraną.
// po pokonaniu X wrogów ( w tym przypadku ,  X powinien  wynosić 4)
game.addDefeatGoal(4);

Więcej…

Codecombat - risk and reward - ryzyko i nagroda - JavaScript

Szczegóły
08 sierpień 2020
2000

// Grasz musi zebrać tylko niektóre klejnoty.
game.spawnPlayerXY("knight", 39, 23);

// Use game.addCollectGoal(X) to allow the player to win
// after collecting only X gems! (In this case, X should be 6)
game.addCollectGoal(6);

Więcej…

Codecombat - army training 2 - Trening armii 2 - JavaScript

Szczegóły
06 sierpień 2020
2612

// Pokonaj  ogry  przywołując i dowodząc jednostkami.

// Przywołaj 2 rycerzy.
game.spawnXY("soldier", 35, 20);
game.spawnXY("soldier", 45, 20);
// Przywołaj 2  łuczników.
game.spawnXY("archer", 24, 25);
game.spawnXY("archer", 63, 18);
function fightEnemies(event) {

Więcej…

Codecombat - dont touch them - Nie dotykaj ich - JavaScript

Szczegóły
13 lipiec 2020
2281

// Use manual goals to specify which ogres to defeat.

function createGenerator(spawnType, x, y, spawnAI) {
    var generator = game.spawnXY("generator", x, y);
    generator.spawnType = spawnType;
    generator.spawnAI = spawnAI;
}

// Scouts are aggressive and munchkins are just walking.
createGenerator("scout", 12, 12, "AttacksNearest");
createGenerator("scout", 68, 56, "AttacksNearest");
createGenerator("munchkin", 12, 56, "Scampers");
createGenerator("munchkin", 68, 12, "Scampers");

var player = game.spawnPlayerXY("duelist", 40, 34);
player.maxHealth = 1000;
player.attackDamage = 20;
player.maxSpeed = 20;

// These are our goals. Notice we save them in variables!
var spawnMunchkinsGoal = game.addManualGoal("Let 6 munchkins spawn.");
var dontTouchGoal = game.addManualGoal("Don't attack munchkins.");
var defeatScoutsGoal = game.addManualGoal("Defeat 6 scouts.");
// game properties used to count new and defeated ogres.
game.spawnedMunchkins = 0;
game.defeatedScouts = 0;
ui.track(game, "spawnedMunchkins");
ui.track(game, "defeatedScouts");

function onSpawn(event) {
    game.spawnedMunchkins += 1;
}

function onDefeat(event) {
    var unit = event.target;
    if (unit.type == "scout") {
        game.defeatedScouts += 1;
    }
    if (unit.type == "munchkin") {
        // dontTouchGoal is failed if a munchkin is defeated.
        game.setGoalState(dontTouchGoal, false);
        player.say("Oops.");
    }
}

Więcej…

Codecombat - from-dust-to-dust - Z prochu w proch - JavaScript

Szczegóły
13 lipiec 2020
2647

// Block passages with forest tiles.
// Then destroy them when the player defeats some ogres.

// Set up the player.
var player = game.spawnPlayerXY("duelist", 6, 34);
player.attackDamage = 35;
player.maxHealth = 750;
player.maxSpeed = 15;
// The player should move through the forest to win.
game.addMoveGoalXY(76, 34);

Więcej…

Codecombat - lernaean hydra - Hydra Lejnerska - JavaScript

Szczegóły
13 lipiec 2020
3088

// For each defeated ogre, spawn two new ogres.

var player = game.spawnPlayerXY("knight", 40, 34);
player.attackDamage = 20;

// Use this to count defeated ogres.
game.defeated = 0;
// How many ogres the player needs to defeat
game.toDefeat = 16;
game.addDefeatGoal(game.toDefeat);
// Show these useful variables to the player using ui.track
ui.track(player, "health");
ui.track(game, "defeated");
ui.track(game, "toDefeat");

// Starter enemies.
game.spawnXY("munchkin", 30, 14);
game.spawnXY("munchkin", 50, 54);

// This makes new enemies aggresive.
function onSpawn(event) {
    var unit = event.target;
    unit.behavior = "AttacksNearest";
}

Więcej…

Codecombat - disappearing act - Znikająca sztuka - JavaScript

Szczegóły
13 lipiec 2020
2310

<!-- JavaScript can be used to show and hide elements! -->

<script>
    var showButton = $("#showButton");
    // Create the variable 'hideButton' to store #hideButton
    var hideButton = $("#hideButton");
    var image = $("#image");
    function showElement() {
        image.show();
    }

Więcej…

Codecombat - stick shift - JavaScript

Szczegóły
13 lipiec 2020
2462

// Now you can create a custom goal for your game
// using the game.addManualGoal(description) method!

// Spawn a few scouts, a boss, and a maze.
game.spawnMaze(5);
game.spawnXY("scout", 60, 58);
game.spawnXY("scout", 28, 29);
game.spawnXY("scout", 61, 24);
var ogref = game.spawnXY("ogre-f", 60, 12);

Więcej…

Strona 14 z 27

  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • Strony internetowe Lublin
  • Strony internetowe Puławy
  • Strony www Puławy
  • Strony www Lublin
  • Strony responsywne Lublin
wykonanie: kasai1.com