Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

JAVA Goal: Design a text adventure game (ex. Zork.) MUST USE THIS LINK: http://textadventures.co.uk/games/view/5zyoqrsugeopel3ffhz_vq/zork The user will navigate through a dungeon that you create, picking

JAVA

Goal: Design a text adventure game (ex. Zork.)

MUST USE THIS LINK:

http://textadventures.co.uk/games/view/5zyoqrsugeopel3ffhz_vq/zork

The user will navigate through a dungeon that you create, picking up items for their inventory along the way. They must defeat the boss in the final room in order to win.

Throughout this project, you will use many of the programming concepts that you have learned throughout the semester: variables, loops, conditionals, methods, arrays, strings.

Specifications that must be followed:

Initial Rooms:

1.Your dungeon must have at least 4 rooms, which includes the starting room and the final room.

2.Every time the user enters a room, print a message that displays the rooms name, as well as the user options (see slide #8).

3.The user will start with 10/10 health (int) and an empty inventory (array).

4. At least one room must contain a potion and at least one other room must contain a weapon. When the user enters one of these rooms, you must add the item to the users inventory. Also, print a message to inform the user of the new item addition.

Final Room:

1.In order to win the game, the user must battle and defeat the boss, reducing the boss to 0 heath. The user will lose if his/her health goes down to 0 first.

2.Every time the user attacks, print how much damage the attack has performed and the bosss remaining health.

3.The boss starts with X health, where X is a random integer between 5 and 20.

4.The bosss attack performs Y damage, where Y is a random integer between 1 and 5. This attack damage changes randomly every time the boss attacks.

5.The user may flee at anytime during the battle (see slide #8).

6.Once the user or the bosss health goes down to 0, print a winner or loser message to the screen and terminate the game.

The user will enter these numbers in order navigate through the dungeon:

Initial Rooms: User Options

1.Go north

2.Go south

3.Show inventory

Key for initial rooms

1 - Travel to the room immediately to the north

2 - Travel to the room immediately to the south

3 - Print all items in the users inventory

Final Room: User Options

Use weapon

Use potion

Show health

Flee

Key for final rooms/numbers:

1- Perform X damage to opponent

2 - Give back Y health to user

3 - Print users current health

4 - Teleport user to the first room of the dungeon

Note: The user can only use a potion and/or weapon

if it exists within his/her inventory. Each potion expires after on use.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Sams Teach Yourself Beginning Databases In 24 Hours

Authors: Ryan Stephens, Ron Plew

1st Edition

067232492X, 978-0672324925

More Books

Students also viewed these Databases questions