On the first game development island (level 14) it won’t spawn what I’ve typed in for code.
Here is my program so far.
// Skeletons are afraid of lightstones.
var player = game.spawnHeroXY("champion", 15, 35);
player.attackDamage = 60;
player.maxSpeed = 8;
game.addSurviveGoal();
game.addDefeatGoal();
// Spawn a "generator"
game.spawnXY("generator",21,20)
generator.spawnDelay=5
generator.spawnType="skeleton"
generator.maxHealth=100
// Spawn a "lightstone"
game.spawnXY("lightstone",65,52)
// Now beat your game!
(As you can see, the specifics for a hero to spawn was already put in place. I set for the generator to be spawned, but that didn’t even appear either. I feel like I’m overlooking something…)