June 2021
Beginner
344 pages
8h 9m
English
You win the game when you collect the Amulet of Yala. Yala is an acronym for “yet another lost amulet,” a gentle poke at Nethack’s—and its many derivatives—plot.
You’ll use two new tag components to denote the amulet:
| | #[derive(Clone, Copy, Debug, PartialEq)] |
| | pub struct Item; |
| | |
| | #[derive(Clone, Copy, Debug, PartialEq)] |
| | pub struct AmuletOfYala; |
The Item component denotes that an entity is an item. It doesn’t move or have health, but it should still appear on the map. You’ll add further support for items in Chapter 13, Inventory and Power-Ups. The AmuletOfYala tag indicates that the tagged item is the item that wins the game.
The amulet also ...
Read now
Unlock full access