I'm writing a simple text-adventure game, the one found in some children's books or some sites. Here are the features:
- Uses classes "rooms" and "items", these have been finished already
- Has directions like north, west, east, south, etc, based on a map; for example, go north from room 1 and you'll reach room 2, go south from room 2 and you'll be back in room 1; go west from room 1 and you'll reach room 3, etc
- Rooms have items, that you can pick up, and go into inventory; those items can be used in other rooms later and some will trigger effects (such as a key opening a door) and add to score; these items are written on a .txt file, so they're not hardwired into the code itself, that way it's easier to edit; the code only reads the items written on .txt file
- A counter for amount of moves taken
- Plays a series of music tracks in the background
- Uses EasyGUI to display a menu of choices, such as movement direction, pick up/drop/use item, current location, check inventory, current score, amount of moves left, etc
Basically has most features of a simple text-adventure game. Can anyone give me a rough layout of how I should tackle this program? Something like:
[what kind of code is needed here, what types are needed?
[after defining objects, how can they be used? ie how to "save" an object to inventory?]
Of course you don't need to give the actual code, just a general idea of program flow; I just want to see how the program blueprint should look like, to see if I'm on the right track~
Thanks in advance!