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

5. Treasures and Equipment

Andre Garzia1 
(1)
London, UK
 

In this chapter, we are going to learn how to add treasures and equipment to our game. These items will be game entities like our player character and the monsters and will be placed into random positions inside the dungeon.

Adding support for such items is not just a matter of creating the entities and throwing them onto the map. There needs to be some user interface to handle inventory. Before working on the items themselves, we need to work on the game UI.

Creating a user interface for our game

We’ve reached the point in our game development in which we need a better UI to be ...

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.