summaryrefslogtreecommitdiff
path: root/doc/scripting.texi
diff options
context:
space:
mode:
authorDavid Thompson <dthompson@member.fsf.org>2013-09-24 21:06:41 -0400
committerDavid Thompson <dthompson@member.fsf.org>2013-09-24 21:06:41 -0400
commit1f1deea662da4328bf588c0642c8a90c7b1f2144 (patch)
treea7973b46b580ca2a9e8fb65f459e0004ae87b64f /doc/scripting.texi
parent7937b85219607a6e7755907e0752343344ed036c (diff)
Rough draft of manual.
Diffstat (limited to 'doc/scripting.texi')
-rw-r--r--doc/scripting.texi21
1 files changed, 21 insertions, 0 deletions
diff --git a/doc/scripting.texi b/doc/scripting.texi
new file mode 100644
index 0000000..951fe2d
--- /dev/null
+++ b/doc/scripting.texi
@@ -0,0 +1,21 @@
+@node Scripting
+@chapter Scripting
+
+The ability to write scripts is very important for most games. Scripts
+are short programs that modify game state. In an RPG, one might want
+to write a script that causes an NPC to walk up to the player and
+begin a conversation with them. Guile-2D allows for easy, linear
+script writing by using cooperative multitasking, also known as
+coroutines. Agendas are used to schedule scripts to be run at distinct
+points in game time, and actions provide an API to describe
+transformations that happen over a period of game time.
+
+@menu
+* Coroutines
+* Agendas
+* Actions
+@end menu
+
+@include scripting/coroutine.texi
+@include scripting/agenda.texi
+@include scripting/actions.texi