Level: The Final Kithmaze


#1

I ran into a bit of a bug in the Final Kithmaze. Using this code, instead of finishing the maze, I’d run up and into spikes once I got to the dungeon door:
loop {
this.moveRight();
this.moveUp();
var enemy = this.findNearestEnemy();
this.attack(enemy);
this.attack(enemy);
this.moveRight();
this.moveDown();
this.moveDown();
this.moveUp();
}

I then tried adding more code so that I could break out of the loop, break down the dungeon door, and then continue right, since that seemed to be what I needed to do. I got that to work, but not in under 12 lines so the game didn’t consider it a success. I then started writing up a forum post about the problem I was having and trying to get suggestions…while doing this, I closed out of the level, then re-entered it, and this code worked. I’m not sure what was going on, but I didn’t change the code between it working and not working.


#2

I think I know what caused this: the goal trigger didn’t fully load, so it couldn’t end the level for you when you won. The next time you refreshed, it fully loaded. I’ll be happy once I solve this bug!