O'Reilly logo

Creating Adventure Games for Teens by Jason Darby

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

CHAPTER 6TEXT ADVENTURES IN DEPTH

In this chapter, we will be taking a closer look at the text features that you can add in to your own text adventure games. We will be using a number of simple example files to show you how to create some of the features that you would see in any text-based adventure game.

Note

In Chapter 16, we’ll cover a number of example files and editors that can be used to save and load data.

SIMPLE TEXT-ENTRY DIRECTIONS

In the Dungeon of Text game in Chapter 5, players were able to move in different directions using directional buttons, but to be a true text adventure game, we need to create a game that allows a player to move in a particular direction if he types “Go North” or “Go N” into an edit box.

In this example, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required