Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

Java text based game?

so I am creating a fairly simple text based game in java (like zork) and I want the player to have an inventory so they can pick up objects and in certain places use them, as well as being able to view the inventory and drop objects in random places. I'm kinda new to java so im not sure how I could do this

help?

btw my main code is just a switch that calls on different methods for the different rooms

1 Answer

Relevance
  • Chris
    Lv 7
    8 years ago
    Favorite Answer

    Unless you're doing this to learn Java: create the game with Inform:

    http://inform7.com/

    That way you can focus on creating the game without having to worry about the engine or the parser.

    In case you don't like the natural language programming style: use Inform 6.

    http://www.ifwiki.org/index.php/Inform_6

Still have questions? Get your answers by asking now.