0% found this document useful (0 votes)
14 views4 pages

Game

The document outlines a text-based adventure game where the player explores a haunted castle to collect six magical items and defeat a sorcerer. It provides details on the game's theme, storyline, rooms, items, map layout, and pseudocode for moving between rooms and collecting items to guide the game's development.

Uploaded by

juliejoe122jj
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views4 pages

Game

The document outlines a text-based adventure game where the player explores a haunted castle to collect six magical items and defeat a sorcerer. It provides details on the game's theme, storyline, rooms, items, map layout, and pseudocode for moving between rooms and collecting items to guide the game's development.

Uploaded by

juliejoe122jj
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

Storyboard (Description and Map)

Theme and Storyline: The game is set in a haunted castle where the player needs to collect magical
artifacts to defeat a powerful sorcerer who has taken over the castle. The player starts in the Grand Hall
and needs to explore various rooms to find six essential items: a magic wand, a protective amulet, an
ancient spell book, a healing potion, a fire crystal, and an enchanted cloak. The villain, the sorcerer,
resides in the Throne Room and must be avoided until all items are collected.

Rooms and Items:

 Grand Hall (Start Room, no item)

 Library (Item: Ancient Spell Book)

 Armory (Item: Protective Amulet)

 Potion Room (Item: Healing Potion)

 Crystal Cave (Item: Fire Crystal)

 Study (Item: Magic Wand)

 Wardrobe (Item: Enchanted Cloak)

 Throne Room (Villain: Sorcerer)

Map Layout:

Pseudocode for Moving Between Rooms


START

DISPLAY "Welcome to the Haunted Castle Adventure!"

DISPLAY "Collect all 6 magical items to defeat the sorcerer."

DISPLAY "Move commands: go North, go South, go East, go West"

DISPLAY "Add to Inventory: get 'item name'"

SET current_room TO "Grand Hall"

SET inventory TO []

WHILE current_room != "Throne Room" OR length(inventory) < 6 DO

DISPLAY "You are in " + current_room

DISPLAY "Inventory: " + inventory

DISPLAY "Enter your move:"

GET player_input

IF player_input STARTS WITH "go" THEN

SET direction TO player_input SPLIT BY " " GET SECOND ELEMENT

IF direction IS VALID THEN

UPDATE current_room BASED ON direction

DISPLAY "You moved to " + current_room

ELSE

DISPLAY "Invalid direction! Try again."

END IF

ELSE IF player_input STARTS WITH "get" THEN

SET item TO player_input SPLIT BY " " GET SECOND ELEMENT

IF item IS IN current_room AND item IS NOT IN inventory THEN

ADD item TO inventory

DISPLAY item + " retrieved!"

ELSE
DISPLAY "Can't get " + item + "!"

END IF

ELSE

DISPLAY "Invalid command! Try again."

END IF

END WHILE

IF current_room IS "Throne Room" AND length(inventory) == 6 THEN

DISPLAY "You have all the items!"

DISPLAY "You face the sorcerer and defeat him!"

DISPLAY "Congratulations! You win!"

ELSE

DISPLAY "You are in the Throne Room"

DISPLAY "You see the sorcerer"

DISPLAY "NOM NOM…GAME OVER!"

DISPLAY "Thanks for playing the game. Hope you enjoyed it."

END IF

END

Pseudocode for Getting an Item

START

DISPLAY "Enter your move:"

GET player_input

IF player_input STARTS WITH "get" THEN

SET item TO player_input SPLIT BY " " GET SECOND ELEMENT

IF item IS IN current_room AND item IS NOT IN inventory THEN

ADD item TO inventory

DISPLAY item + " retrieved!"


ELSE

DISPLAY "Can't get " + item + "!"

END IF

ELSE

DISPLAY "Invalid command! Try again."

END IF

END

Summary

This design document outlines the theme, storyline, rooms, and items of the text-based adventure
game. It includes a detailed map of the game environment and pseudocode for moving between rooms
and collecting items. This comprehensive design will guide the development of the actual game in
Project Two.

You might also like