MUD-Castle Adventure

Rescue the Princess in a Castle

This is a simple game build with C++(when I was learning OOP).

STORY

THis is a text-based adventure game. The player has to explore in the castle with many levels and a lot of rooms. The task of the player is to find a room where the princess is prisoned and take her leave the castle. There are many types of rooms, and each type of room has different types of exits. Note that there's a monster in one of the rooms, which the exact location is not able to be aware. Once the player meets a monster, the game is over.

RULE

When the game starts, the player is at the lobby of the castle.Then the program shows information about the lobby:name of the room, how many exits are there, and names of all exits(e.g.: "east", "south", "up"), like:

Welcome to the lobby.There are 3 exits as : east, west and up. Enter your command :


The player then can input "go" followed by the name of one exit to enter the room connected with that door, like :


go east

The player goes into the room to the east.The program shows the information about that room, like what happened in the lobby just now.And the player may input command to choose another room. Once the player enters a room with a monster, the program shows a message and game over.Once the player enters the room of princess, the program shows a message about the princess, and the process is going to leave with the player.The player then has to find their way out the castle.The only way to leave the castle is via the lobby.


Flowchart

Portfolio Item

File Structure

  • main.cpp
  • Room.h
  • Game.h
  • Room.cpp
  • Game.cpp

There are two classes in this program: class Room, class Game.

Example

Game initial interface.

Single Project

Enter "help" to get room information.

Single Project

Enter the next room and receive a hint: Nothing happened.

Single Project

Find the Princess and take her to the Lobby room, and the Player wins.

Single Project

Encounter the Monster, and the game is over.

Single Project



Date: 12.2018
Team: Aris
Platforms: MS Windows
Tools: Eclipse, Visual Studio 2017
Share:



More Projects

Portfolio Item
HAHA & COCO A 2D PLATFORM GAME
Portfolio Item
SPIDEROAR Global Game Jam 2020
Portfolio Item
STYLE FASHION NEW BAG & STYLE FASHION