- Szczegóły
- 2120
// Pokonaj Ogry i lecz bohatera.
// Zwierzak to twoja jedyna nadzieja.
function onSpawn(e) {
while(true) {
// Pokonaj Ogry i lecz bohatera.
// Zwierzak to twoja jedyna nadzieja.
function onSpawn(e) {
while(true) {
// Learn the difference between destroy and defeat.
// Spawn the enemies.
var ogre1 = game.spawnXY("ogre", 12, 18);
ogre1.behavior = "AttacksNearest";
var ogre2 = game.spawnXY("ogre", 68, 50);
ogre2.behavior = "AttacksNearest";
// Count collected item values and use them for scoring.
// Setup characters.
var player = game.spawnPlayerXY("captain", 40, 34);
player.maxSpeed = 20;
// Chests of gems are the most valuable items.
game.spawnXY("chest", 68, 56);
game.spawnXY("chest", 14, 14);
// You can use a database to store persistent data.
// Persistent data stays the same between plays of your game!
var generator = game.spawnXY("generator", 60, 40);
generator.spawnType = "munchkin";
generator.spawnDelay = 1;
var player = game.spawnPlayerXY("raider", 36, 30);
player.maxHealth = 70;
player.attackDamage = 10;
game.addSurviveGoal(8);
// Collect 25 gold, and then tell Naria the total.
// Use break to stop collecting when totalGold >= 25.
var totalGold = 0;
while(true) {
var coin = hero.findNearestItem();
if(coin) {
// Mushrooms allow the player to destroy fences for a time.
var player = game.spawnPlayerXY('captain', 12, 34);
player.maxSpeed = 15;
game.addMoveGoalXY(76, 34);
ui.track(game, "time");
// Zbierz skarb i ucieknij.
// Przygotuj bohatera i zwierzaka.
pet.moveXY(32, 28);
hero.moveXY(10, 19);
// Odwróć uwagę szkieletów.
// Zbierz trzy klucze i uwolnij paladyna.
function onSpawn(event) {
// Zwierzak powinien znaleźć i przynieść trzy klucze.
// Potrzebujesz przedmiotów następującego typu:
// "bronze-key", "silver-key" i "gold-key".