Wrap-Up
In this chapter, you added some intelligence to your monsters—possibly too much intelligence as they now hunt down the player unerringly, with omniscient knowledge of the player’s location. Don’t worry, though. You’ll limit their hunting capabilities in the next chapter.
You also gave the player a way to face the very real possibility of defeat. As such, you added a game over screen to notify them of their defeat, giving the player an option to try again. In contrast, you added the mythical Amulet of Yala to the game, carefully placing it as far from the player’s starting position as possible. When the player reaches the amulet, they’re rewarded with a victory screen and the ability to play again.
As you added these new features to your ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access