Designing Items
Item design is fun. You probably have some ideas for the items you want to include in your game. Taken alongside Chapter 15, Combat Systems and Loot, this chapter will give you the experience you need to add items to your game and build a unique experience.
Here, you’re going to add two items: Healing Potions and Dungeon Maps. Healing potions restore the player’s hit points, and dungeon maps reveal the entire map, allowing the player to carefully plan a route to the Amulet of Yala. The graphics for these items are included in the dungeonfont.png file.
Let’s start by giving the new items some component definitions.
Describing the Items with Components
You already have most of the components you need to describe the healing ...
Get Hands-on Rust 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.