Question: IN JAVA!!! Goal: Design a text adventure game (ex. Zork.) http://textadventures.co.uk/games/view/5zyoqrsugeopel3ffhz_vq/zork The user will navigate through a dungeon that you create, picking up items for

IN JAVA!!!

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

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:

Initial Rooms:

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

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

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

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:

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.

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

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

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.

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

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

Final Room: User Options

1. Use weapon

2. Use potion

3. Show health

4. Flee

KEY:

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

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!