juniper-wright / UtopianEngine

The Simple Text Adventure Game Engine
BSD 3-Clause "New" or "Revised" License
1 stars 0 forks source link

State-Based Operation #7

Closed juniper-wright closed 11 years ago

juniper-wright commented 11 years ago

Currently, the game is running in a group of do-whiles and while(true)s and just a whole mess of really bad code. Instead, the game should be in a single default state -- and even the menu is a Room.

Subsequently, add "Load Game" to Utopia script. This will be in #1.

juniper-wright commented 11 years ago

The shape of the program evolved past state-based operation, and there is no "Menu" game. That assertion was asinine, and would have required jumping through a lot of silly hoops.

It is now a very short Main function that either accepts a filename as a command line parameter, or displays a list of games for the user, one of which would be chosen via keyboard input.

Once the game ends, the program closes. This simplifies the process.