diff options
author | Mike Buland <eichlan@xagasoft.com> | 2011-12-11 10:01:52 -0700 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2011-12-11 10:01:52 -0700 |
commit | 4d5d24f1da11a1279da0b5ea9351c4372a74bc43 (patch) | |
tree | 90e2e93ee24518fc098b0109871f83fbd07ac392 /stage.txt | |
download | stage-4d5d24f1da11a1279da0b5ea9351c4372a74bc43.tar.gz stage-4d5d24f1da11a1279da0b5ea9351c4372a74bc43.tar.bz2 stage-4d5d24f1da11a1279da0b5ea9351c4372a74bc43.tar.xz stage-4d5d24f1da11a1279da0b5ea9351c4372a74bc43.zip |
Basic parser coming together.
Diffstat (limited to 'stage.txt')
-rw-r--r-- | stage.txt | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/stage.txt b/stage.txt new file mode 100644 index 0000000..751b1f0 --- /dev/null +++ b/stage.txt | |||
@@ -0,0 +1,29 @@ | |||
1 | Simple, Textual, Adventure Game Environemnt | ||
2 | =========================================== | ||
3 | |||
4 | This is a program that loads games from files that use the Stage language to | ||
5 | describe a complete adventure game. There are lots and lots of possibilities. | ||
6 | |||
7 | This documentation is primarily aimed at game developers initially. | ||
8 | |||
9 | Structure | ||
10 | ========= | ||
11 | |||
12 | A game is divided into several pieces. At any point during the play of a game | ||
13 | a player will be "in" a situation. Each situation provides context for the | ||
14 | player. They can be thought of like rooms in a MUD game or locations in an old | ||
15 | text adventure title, but are more flexible, as they allow different possible | ||
16 | transitions between them as well as different contexts for commands. | ||
17 | |||
18 | Each situation is effectively a block of code that is run when the situation is | ||
19 | made active. I.e. that code runs when the player enters a room, say. Every | ||
20 | time a situation starts it contains an empty context, but may have access to | ||
21 | global parameters. | ||
22 | |||
23 | Variables may be set and used, and there are some special variables that you | ||
24 | have access to that control the way the system works and interactions with the | ||
25 | player. | ||
26 | |||
27 | New functions can be defined that can be used from any code. | ||
28 | |||
29 | |||