- Szczegóły
- 1681
// 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");
// 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");
// 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) {
// Zbierz 9 grzybów.
// Ta funkcja każe zwierzakowi przynosić eliksiry.
function onSpawn(event) {
while(true) {
// Zwierzaki mogą wyszukiwać przedmioty na podstawie ich typów.
var potion = pet.findNearestByType("potion");
// Niech zwierzak przyniesie eliksir, jeśli jakiś istnieje:
if (potion) {
pet.fetch(potion);
// 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);
// 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);
// 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".
// Pokonaj Ogry i lecz bohatera.
// Zwierzak to twoja jedyna nadzieja.
function onSpawn(e) {
while(true) {
// Accumulate 300 gold and escape from the dungeon.
function onSpawn(event) {
// Send the pet to walk around the dungeon:
pet.moveXY(21, 57);
pet.moveXY(71, 57);