- Description:
- text adventure
- Last Change:
- Clone URL:
ssh://anon@git.omarpolo.com/text-adventure.git https://git.omarpolo.com/text-adventure.git
Commit Briefs
added load and save command
Saving is straightforward: dump to a file the location and some property of the objects. Loading also is simple: just read all the data and apply it (with some sanity check tho.)
added config file
only the PROMPT is configurable as of now tho.
Branches
Tree
README.md
a text adventure ================= "a text adventure" is a text adventure based on the (unfortunately) unfinished tutorial: http://home.hccnet.nl/r.helderman/adventures/htpataic01.html The code is more or less the same that you'll find on the tutorial, except for the stile and some minor difference in the structure. building -------- make It requires awk(1), a C compiler and the GNU readline library. It builds on OpenBSD without external packages installed btw. grammar ------- While you can look for the grammar in `parseexec.c:/^parseexec`, I would ask you not to do so: you may read spoilers. Instead, try to express what you want to accomplish in plain english, it should work. (note: no punctuation or conjunctions are supported as of now) Some examples > quit > look around > look guard > go to east > pick up the coin > ...