Designing Items
Discover how we can design items in this lesson.
We'll cover the following...
Item design is fun, and you probably have some ideas for the items we could include in our game.
Here, we’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
We already have most of the components we need to describe the healing potion and dungeon map items, they need a name, appearance, and position ...