Recorded Video Session: Text Adventure Game Part 2

Tutorial

·

Beginner

·

+0XP

·

90 mins

·

(279)

Unity Technologies

Recorded Video Session: Text Adventure Game Part 2

In this second session we will continue to learn how to program a text based adventure game in C# by adding items which can be examined, taken and used, along with a very simple inventory system. In this session we will see the finished project and introduce what we aim to learn in this series of sessions.

Languages available:

1. Introduction and Goals

In this second session we will continue to learn how to program a text based adventure game in C# by adding items which can be examined, taken and used, along with a very simple inventory system. In this session we will see the finished project and introduce what we aim to learn in this series of sessions.


Creating a Text Based Adventure Part 2 - Introduction and Goals [1/10] Live 2017/3/29


InteractableObject


[@portabletext/react] Unknown block type "code", specify a component for it in the `components.types` prop

Interaction


[@portabletext/react] Unknown block type "code", specify a component for it in the `components.types` prop

InteractableItems


[@portabletext/react] Unknown block type "code", specify a component for it in the `components.types` prop

Room


[@portabletext/react] Unknown block type "code", specify a component for it in the `components.types` prop

GameController


[@portabletext/react] Unknown block type "code", specify a component for it in the `components.types` prop

InputAction


[@portabletext/react] Unknown block type "code", specify a component for it in the `components.types` prop

Examine


[@portabletext/react] Unknown block type "code", specify a component for it in the `components.types` prop

Take


[@portabletext/react] Unknown block type "code", specify a component for it in the `components.types` prop

Inventory


[@portabletext/react] Unknown block type "code", specify a component for it in the `components.types` prop

ActionResponse


[@portabletext/react] Unknown block type "code", specify a component for it in the `components.types` prop

ChangeRoomResponse


[@portabletext/react] Unknown block type "code", specify a component for it in the `components.types` prop

Use


[@portabletext/react] Unknown block type "code", specify a component for it in the `components.types` prop

2. Project Architecture and Review

In this second session we will continue to learn how to program a text based adventure game in C# by adding items which can be examined, taken and used, along with a very simple inventory system. In this episode we will review what we did in the first half of our session and look at an overview of the architecture we will create in part two.


Creating a Text Based Adventure Part 2 - Project Architecture and Review [2/10] Live 2017/3/29


InteractableObject


[@portabletext/react] Unknown block type "code", specify a component for it in the `components.types` prop

Interaction


[@portabletext/react] Unknown block type "code", specify a component for it in the `components.types` prop

InteractableItems


[@portabletext/react] Unknown block type "code", specify a component for it in the `components.types` prop

Room


[@portabletext/react] Unknown block type "code", specify a component for it in the `components.types` prop

GameController


[@portabletext/react] Unknown block type "code", specify a component for it in the `components.types` prop

InputAction


[@portabletext/react] Unknown block type "code", specify a component for it in the `components.types` prop

Examine


[@portabletext/react] Unknown block type "code", specify a component for it in the `components.types` prop

Take


[@portabletext/react] Unknown block type "code", specify a component for it in the `components.types` prop

Inventory


[@portabletext/react] Unknown block type "code", specify a component for it in the `components.types` prop

ActionResponse


[@portabletext/react] Unknown block type "code", specify a component for it in the `components.types` prop

ChangeRoomResponse


[@portabletext/react] Unknown block type "code", specify a component for it in the `components.types` prop

Use


[@portabletext/react] Unknown block type "code", specify a component for it in the `components.types` prop

3. Displaying Item Descriptions

In this second session we will continue to learn how to program a text based adventure game in C# by adding items which can be examined, taken and used, along with a very simple inventory system. In this episode we will learn how to to display the descriptions of all the items in a room when we enter it.


Creating a Text Based Adventure Part 2 - Displaying Item Descriptions [3/10] Live 2017/3/29


InteractableObject


[@portabletext/react] Unknown block type "code", specify a component for it in the `components.types` prop

Interaction


[@portabletext/react] Unknown block type "code", specify a component for it in the `components.types` prop

InteractableItems


[@portabletext/react] Unknown block type "code", specify a component for it in the `components.types` prop

Room


[@portabletext/react] Unknown block type "code", specify a component for it in the `components.types` prop

GameController


[@portabletext/react] Unknown block type "code", specify a component for it in the `components.types` prop

InputAction


[@portabletext/react] Unknown block type "code", specify a component for it in the `components.types` prop

Examine


[@portabletext/react] Unknown block type "code", specify a component for it in the `components.types` prop

Take


[@portabletext/react] Unknown block type "code", specify a component for it in the `components.types` prop

Inventory


[@portabletext/react] Unknown block type "code", specify a component for it in the `components.types` prop

ActionResponse


[@portabletext/react] Unknown block type "code", specify a component for it in the `components.types` prop

ChangeRoomResponse


[@portabletext/react] Unknown block type "code", specify a component for it in the `components.types` prop

Use


[@portabletext/react] Unknown block type "code", specify a component for it in the `components.types` prop

4. Examining Items

In this second session we will continue to learn how to program a text based adventure game in C# by adding items which can be examined, taken and used, along with a very simple inventory system. In this episode we will add the ability for the player to examine items and see a second more detailed description of them.


Creating a Text Based Adventure Part 2 - Examining Items [4/10] Live 2017/3/29


InteractableObject


[@portabletext/react] Unknown block type "code", specify a component for it in the `components.types` prop

Interaction


[@portabletext/react] Unknown block type "code", specify a component for it in the `components.types` prop

InteractableItems


[@portabletext/react] Unknown block type "code", specify a component for it in the `components.types` prop

Room


[@portabletext/react] Unknown block type "code", specify a component for it in the `components.types` prop

GameController


[@portabletext/react] Unknown block type "code", specify a component for it in the `components.types` prop

InputAction


[@portabletext/react] Unknown block type "code", specify a component for it in the `components.types` prop

Examine


[@portabletext/react] Unknown block type "code", specify a component for it in the `components.types` prop

Take


[@portabletext/react] Unknown block type "code", specify a component for it in the `components.types` prop

Inventory


[@portabletext/react] Unknown block type "code", specify a component for it in the `components.types` prop

ActionResponse


[@portabletext/react] Unknown block type "code", specify a component for it in the `components.types` prop

ChangeRoomResponse


[@portabletext/react] Unknown block type "code", specify a component for it in the `components.types` prop

Use


[@portabletext/react] Unknown block type "code", specify a component for it in the `components.types` prop

5. Taking Items

In this second session we will continue to learn how to program a text based adventure game in C# by adding items which can be examined, taken and used, along with a very simple inventory system. In this episode we will add the ability for the player to take items and add them to their inventory.


Creating a Text Based Adventure Part 2 - Taking Items [5/10] Live 2017/3/29


InteractableObject


[@portabletext/react] Unknown block type "code", specify a component for it in the `components.types` prop

Interaction


[@portabletext/react] Unknown block type "code", specify a component for it in the `components.types` prop

InteractableItems


[@portabletext/react] Unknown block type "code", specify a component for it in the `components.types` prop

Room


[@portabletext/react] Unknown block type "code", specify a component for it in the `components.types` prop

GameController


[@portabletext/react] Unknown block type "code", specify a component for it in the `components.types` prop

InputAction


[@portabletext/react] Unknown block type "code", specify a component for it in the `components.types` prop

Examine


[@portabletext/react] Unknown block type "code", specify a component for it in the `components.types` prop

Take


[@portabletext/react] Unknown block type "code", specify a component for it in the `components.types` prop

Inventory


[@portabletext/react] Unknown block type "code", specify a component for it in the `components.types` prop

ActionResponse


[@portabletext/react] Unknown block type "code", specify a component for it in the `components.types` prop

ChangeRoomResponse


[@portabletext/react] Unknown block type "code", specify a component for it in the `components.types` prop

Use


[@portabletext/react] Unknown block type "code", specify a component for it in the `components.types` prop

6. Displaying Inventory

In this second session we will continue to learn how to program a text based adventure game in C# by adding items which can be examined, taken and used, along with a very simple inventory system. In this episode we will add the ability for the player to display the items they have taken into their inventory.


Creating a Text Based Adventure Part 2 - Displaying Inventory [6/10] Live 2017/3/29


InteractableObject


[@portabletext/react] Unknown block type "code", specify a component for it in the `components.types` prop

Interaction


[@portabletext/react] Unknown block type "code", specify a component for it in the `components.types` prop

InteractableItems


[@portabletext/react] Unknown block type "code", specify a component for it in the `components.types` prop

Room


[@portabletext/react] Unknown block type "code", specify a component for it in the `components.types` prop

GameController


[@portabletext/react] Unknown block type "code", specify a component for it in the `components.types` prop

InputAction


[@portabletext/react] Unknown block type "code", specify a component for it in the `components.types` prop

Examine


[@portabletext/react] Unknown block type "code", specify a component for it in the `components.types` prop

Take


[@portabletext/react] Unknown block type "code", specify a component for it in the `components.types` prop

Inventory


[@portabletext/react] Unknown block type "code", specify a component for it in the `components.types` prop

ActionResponse


[@portabletext/react] Unknown block type "code", specify a component for it in the `components.types` prop

ChangeRoomResponse


[@portabletext/react] Unknown block type "code", specify a component for it in the `components.types` prop

Use


[@portabletext/react] Unknown block type "code", specify a component for it in the `components.types` prop

7. Action Responses

In this second session we will continue to learn how to program a text based adventure game in C# by adding items which can be examined, taken and used, along with a very simple inventory system. In this episode we will add ActionResponses which we will use to execute functions when the player chooses the Use action with an item.


Creating a Text Based Adventure Part 2 - Action Responses [7/10] Live 2017/3/29


InteractableObject


[@portabletext/react] Unknown block type "code", specify a component for it in the `components.types` prop

Interaction


[@portabletext/react] Unknown block type "code", specify a component for it in the `components.types` prop

InteractableItems


[@portabletext/react] Unknown block type "code", specify a component for it in the `components.types` prop

Room


[@portabletext/react] Unknown block type "code", specify a component for it in the `components.types` prop

GameController


[@portabletext/react] Unknown block type "code", specify a component for it in the `components.types` prop

InputAction


[@portabletext/react] Unknown block type "code", specify a component for it in the `components.types` prop

Examine


[@portabletext/react] Unknown block type "code", specify a component for it in the `components.types` prop

Take


[@portabletext/react] Unknown block type "code", specify a component for it in the `components.types` prop

Inventory


[@portabletext/react] Unknown block type "code", specify a component for it in the `components.types` prop

ActionResponse


[@portabletext/react] Unknown block type "code", specify a component for it in the `components.types` prop

ChangeRoomResponse


[@portabletext/react] Unknown block type "code", specify a component for it in the `components.types` prop

Use


[@portabletext/react] Unknown block type "code", specify a component for it in the `components.types` prop

8. Preparing The Use Item Dictionary

In this second session we will continue to learn how to program a text based adventure game in C# by adding items which can be examined, taken and used, along with a very simple inventory system. In this episode we will add Action Responses to our system in order to create pluggable functions that will be executed when the player chooses to Use an item.


Creating a Text Based Adventure Part 2 - Preparing The Use Item Dictionary [8/10] Live 2017/3/29


InteractableObject


[@portabletext/react] Unknown block type "code", specify a component for it in the `components.types` prop

Interaction


[@portabletext/react] Unknown block type "code", specify a component for it in the `components.types` prop

InteractableItems


[@portabletext/react] Unknown block type "code", specify a component for it in the `components.types` prop

Room


[@portabletext/react] Unknown block type "code", specify a component for it in the `components.types` prop

GameController


[@portabletext/react] Unknown block type "code", specify a component for it in the `components.types` prop

InputAction


[@portabletext/react] Unknown block type "code", specify a component for it in the `components.types` prop

Examine


[@portabletext/react] Unknown block type "code", specify a component for it in the `components.types` prop

Take


[@portabletext/react] Unknown block type "code", specify a component for it in the `components.types` prop

Inventory


[@portabletext/react] Unknown block type "code", specify a component for it in the `components.types` prop

ActionResponse


[@portabletext/react] Unknown block type "code", specify a component for it in the `components.types` prop

ChangeRoomResponse


[@portabletext/react] Unknown block type "code", specify a component for it in the `components.types` prop

Use


[@portabletext/react] Unknown block type "code", specify a component for it in the `components.types` prop

9. Creating The Use Action

In this second session we will continue to learn how to program a text based adventure game in C# by adding items which can be examined, taken and used, along with a very simple inventory system. In this episode we will finish adding the capacity for players to change the state of the game based on using an item in the correct room using Action Responses by creating the 'Use' Input Action.


Creating a Text Based Adventure Part 2 - Creating The Use Action [9/10] Live 2017/3/29


InteractableObject


[@portabletext/react] Unknown block type "code", specify a component for it in the `components.types` prop

Interaction


[@portabletext/react] Unknown block type "code", specify a component for it in the `components.types` prop

InteractableItems


[@portabletext/react] Unknown block type "code", specify a component for it in the `components.types` prop

Room


[@portabletext/react] Unknown block type "code", specify a component for it in the `components.types` prop

GameController


[@portabletext/react] Unknown block type "code", specify a component for it in the `components.types` prop

InputAction


[@portabletext/react] Unknown block type "code", specify a component for it in the `components.types` prop

Examine


[@portabletext/react] Unknown block type "code", specify a component for it in the `components.types` prop

Take


[@portabletext/react] Unknown block type "code", specify a component for it in the `components.types` prop

Inventory


[@portabletext/react] Unknown block type "code", specify a component for it in the `components.types` prop

ActionResponse


[@portabletext/react] Unknown block type "code", specify a component for it in the `components.types` prop

ChangeRoomResponse


[@portabletext/react] Unknown block type "code", specify a component for it in the `components.types` prop

Use


[@portabletext/react] Unknown block type "code", specify a component for it in the `components.types` prop

10. Questions and Answers

In this second session we will continue to learn how to program a text based adventure game in C# by adding items which can be examined, taken and used, along with a very simple inventory system. In this episode we will finish the session by taking questions and answers.


Creating a Text Based Adventure Part 2 - Displaying Inventory [10/10] Live 2017/3/29


InteractableObject


[@portabletext/react] Unknown block type "code", specify a component for it in the `components.types` prop

Interaction


[@portabletext/react] Unknown block type "code", specify a component for it in the `components.types` prop

InteractableItems


[@portabletext/react] Unknown block type "code", specify a component for it in the `components.types` prop

Room


[@portabletext/react] Unknown block type "code", specify a component for it in the `components.types` prop

GameController


[@portabletext/react] Unknown block type "code", specify a component for it in the `components.types` prop

InputAction


[@portabletext/react] Unknown block type "code", specify a component for it in the `components.types` prop

Examine


[@portabletext/react] Unknown block type "code", specify a component for it in the `components.types` prop

Take


[@portabletext/react] Unknown block type "code", specify a component for it in the `components.types` prop

Inventory


[@portabletext/react] Unknown block type "code", specify a component for it in the `components.types` prop

ActionResponse


[@portabletext/react] Unknown block type "code", specify a component for it in the `components.types` prop

ChangeRoomResponse


[@portabletext/react] Unknown block type "code", specify a component for it in the `components.types` prop

Use


[@portabletext/react] Unknown block type "code", specify a component for it in the `components.types` prop

Complete this tutorial