summaryrefslogtreecommitdiff
path: root/stage.txt
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2011-12-11 10:01:52 -0700
committerMike Buland <eichlan@xagasoft.com>2011-12-11 10:01:52 -0700
commit4d5d24f1da11a1279da0b5ea9351c4372a74bc43 (patch)
tree90e2e93ee24518fc098b0109871f83fbd07ac392 /stage.txt
downloadstage-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.txt29
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 @@
1Simple, Textual, Adventure Game Environemnt
2===========================================
3
4This is a program that loads games from files that use the Stage language to
5describe a complete adventure game. There are lots and lots of possibilities.
6
7This documentation is primarily aimed at game developers initially.
8
9Structure
10=========
11
12A game is divided into several pieces. At any point during the play of a game
13a player will be "in" a situation. Each situation provides context for the
14player. They can be thought of like rooms in a MUD game or locations in an old
15text adventure title, but are more flexible, as they allow different possible
16transitions between them as well as different contexts for commands.
17
18Each situation is effectively a block of code that is run when the situation is
19made active. I.e. that code runs when the player enters a room, say. Every
20time a situation starts it contains an empty context, but may have access to
21global parameters.
22
23Variables may be set and used, and there are some special variables that you
24have access to that control the way the system works and interactions with the
25player.
26
27New functions can be defined that can be used from any code.
28
29