Creating A Text-Based RPG – 16/9/20

Variables:

Type Name Value – String message = “starting value”;

Different types of basic variables would include:

Integer – Whole number – 4 Bytes
Float – Number with Decimal Place – 4 Bytes
String – Stores a collection of text – Undetermined length of Bytes
Char – Stores letters and Characters – 1 Byte
Bool – True or False – 1 Byte

Command Line / Prompt:

When used in games, this can be used to debug / test features.

We are going to make Text Adventure Game:

My game is based on the current times problems, just a few decades later. Its an apocalypse and the story follows you on an adventure. The game is full of tricks and surprises that will make you want to replay the game just so you can feel a sense of accomplishment. The game is designed to be hard.. but failure will reward you with light-hearted banter.

The game needs to have a name the player can type and store, they need a location they can move to from input and an item the player can get.

Although most of my code is story driven dialogue, I have created numerous variables in the form of a list, I have also added a Game Over function and have even tried with a bool. The game features a location to move to, aswell as a couple of cheats which are activated by switches and if statements.

A copy of the game can be downloaded here, although, its not complete.

LINK || SOURCE


One thought on “Creating A Text-Based RPG – 16/9/20

  1. Pingback: Coding Recap – 16/10/20

Leave a comment