© Andre Alves Garzia 2020
A. A. GarziaRoguelike Development with JavaScripthttps://doi.org/10.1007/978-1-4842-6059-3_9

9. Finished Game

Andre Garzia1 
(1)
London, UK
 

Any self-respecting dungeon has more than one level in it. There is no point in digging an underground lair and reusing some eldritch cave structure if you’re not going to make it deep. Up to this point in our game, we treated dungeons as a single-level structure because it was easier to code and reason about it. In this chapter, we’re going to add multiple levels to the dungeon and create the other scenes necessary for the game introduction, game over, and winning the game. The most complex part is the multiple-level support because it requires refactoring some of our game files.

Adding ...

Get Roguelike Development with JavaScript: Build and Publish Roguelike Genre Games with JavaScript and Phaser now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.