Java Adventure Continued

Before this assignment, you should finish Java Method Adventure.

Features You Can  Add

Money

  • Create a money variable.
  • Have ways for your player to acquire and spend money.

Score

  • Cause certain actions to give your player points such as finding a hidden item or exploring an area for the first time.
  • Print the score when it changes or when the game ends.

Status Report

  • When the user types “status,” print their location, score, money, or anything else relevant that your game keeps track of.
  • You will need to use variables to remember these pieces of information.

Remember Previous Actions

  • Use boolean variables to remember important events and actions. For example, make something happen only if the player is carrying a certain item (like a key) or if they have been to this room before.

Open Access to New Areas

  • Make an area that the player can’t get into at first.
  • When they complete some task in your game, let them explore the new area.

Quit / Restart

  • Allow the player to quit the game.
  • You can ask them if they want to play again from the beginning, if desired.

Help

  • Create instructions that give the player a list of commands that work in your game.
  • Make the instructions appear if the user types “help.”

Look

  • Let your player look at things in the room. For example, if the room description mentions a strange door, create code that gives the player more details about the door when they say “look at door” or something similar.

Items / Inventory

  • Let the player find various items. After they pick up an item, it should not longer appear in the room.
  • Give the player a way to look in their inventory list.
  • FYI, inventory is a little complicated since you need to use some sort of List or Array to do it right; you could also use boolean variables if you only have a couple of different items in your game.

Character Creation

  • When the game starts, ask the user their name.
  • Ask other questions, if desired.
  • Remember to use variables to remember the answers.
  • Use this information in the game somehow. Print their name instead of a generic pronoun, for example.

Other???

You can add a million features. Think of your best ideas and add them to your game. Make your game unique and fun.