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

3. Dungeoning

Andre Garzia1 
(1)
London, UK
 

In the previous chapter, we learned how to draw things to the screen and how to create a basic game loop. This chapter will build on that foundation to assemble a basic dungeon for our roguelike, but before delving into some more coding, it is important to understand a bit more about tilemaps and how they are used to assemble a dungeon.

What are tilemaps?

Tilemaps were initially used to save space and memory in games running in older computers and video game consoles. Instead of having a gigantic image with the whole level for a game, the level graphics could be assembled by combining smaller ...

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

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.