0% found this document useful (0 votes)
1K views4 pages

Project1 Pseudocode IT 140 SNHU

The document outlines the structure and logic of a text-based adventure game. It describes 8 rooms that the player can navigate between by entering directional commands. In each room, the player can find items to add to their inventory or pick direction to move. Based on the player's choices, the game will output descriptive text and move the player between rooms until they reach the final 9th room, where they can choose to talk or fight an enemy for rewards.

Uploaded by

Nina Forlini
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)
1K views4 pages

Project1 Pseudocode IT 140 SNHU

The document outlines the structure and logic of a text-based adventure game. It describes 8 rooms that the player can navigate between by entering directional commands. In each room, the player can find items to add to their inventory or pick direction to move. Based on the player's choices, the game will output descriptive text and move the player between rooms until they reach the final 9th room, where they can choose to talk or fight an enemy for rewards.

Uploaded by

Nina Forlini
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

 Output options to player (Enter lighthouse (main room))

 If player chooses to leave

 Output flavor text to player and end game

 If player chooses enter

 Output player into Room1

 Output player Room1 text and options

 Get player input

 If player tries locked door:

 Output locked door info to player

 If player tries unlocked door (input up)

 Output move up

 Output player into Room2

 Output player Room2 (1st floor) text and options

 Get player input

 If player chooses Matches

 Output add Matches to

 If player chooses Door (input forward)

 Output player forward into Room3

 Output player Room3 (1st floor, second room) text and options

 Get player input

 If player chooses Sword

 Output flavor text

 Output add Sword to inventory

 If player chooses Door (input up)

 Output move up

 Output player into Room4

 Output player Room4 (2nd floor) text and options

 Get player input


 If player chooses Cloak

 Output add Cloak to

 If player chooses Door (input forward)

 Output player into forward Room5

 Output player Room5 (2nd Floor, Second Room) text and options

 Get player input

 If player chooses Jar of Freshwater

 Output flavor text

 Output add Jar of Freshwater to inventory

 If player chooses Door (input up)

 Output move up

 Output player into Room6

 Output player Room6 (3rd floor, first room) text and options

 Get player input

 If player chooses Dry Seaweed

 Output add Dry Seaweed to

 If player chooses Door (input forward)

 Output player into forward Room7

 Output player Room7 text and options

 Get player input

 If player chooses Medkit

 Output flavor text

 Output add Medkit to inventory

 If player chooses Door (input up)

 Output move up

 Output player into Room8

 Output player Room8 text and options

 Get player input


 If player chooses Key

 Output flavor text and add Key to Inventory

 If player chooses Door (input down)

 Output player down into Room7

 Output player Room7 text and options

 Get player input

 If player chooses Door (input back)

 Output move back

 Output player into Room6

 Output player Room6 text and options

 Get player input

 If player chooses Door (input down)

 Output player down into Room5

 Output player Room5 text and options

 Get player input

 If player chooses Door (input back)

 Output move back

 Output player into Room4

 Output player Room4 text and options

 Get player input

 If player chooses Door (input down)

 Output player down into Room3

 Output player Room3 text and options

 Get player input

 If player chooses Door (input back)

 Output move back

 Output player into Room2

 Output player into Room1


 If player chooses locked door (input unlock)

 Output option for key use

 Open door

 Output player into Room9

 Output player Room9 text and options

 If player chooses talk

 Output give text loop options for short conversation

 If player chooses fight

 Output turn based fight sequence

 If player wins fight

 Output flavor text and chest of seeds, gold and two (2) backstage passes to Toto

 If player loses fight

 Output flavor text and start at beginning

You might also like