Tick some things off the TODO list.
[ibg.git] / appendices / d.rst
1 ===================================
2  Appendix D -- "Captain Fate" story
3 ===================================
4
5 .. only:: html
6
7   .. image:: /images/picC.png
8      :align: left
9
10 |C|\aptain Fate is our third and final game; it's a little longer and more
11 complex than its predecessors. See "Captain Fate: take 1" on page 119,
12 "Captain Fate: take 2" on page 131, "Captain Fate: take 3" on page 147 and
13 "Captain Fate: the final cut" on page 157.
14
15 Transcript of play
16 ==================
17
18 .. literalinclude:: /examples/Fate.txt
19    :language: transcript
20
21 Game source code
22 ================
23
24 .. literalinclude:: /examples/Fate.inf
25    :language: inform6
26
27 Compile-as-you-go
28 =================
29
30 "Captain Fate" suffers from the same difficulty as "William Tell": if 
31 you type the code sequentially as you read through the guide, the game 
32 won't compile until you reach the end of Chapter 13. To compile and test 
33 as you go, add these stubs to the end of the game file when you reach 
34 the end of Chapter 10:
35
36 .. code-block:: inform
37
38         ! ================================================================
39         ! TEMPORARY DEFINITIONS NEEDED TO COMPILE AT THE END OF CHAPTER 10
40         Room    cafe;
41         Object  clothes;
42
43 Replace those stubs with these at the end of Chapter 11:
44
45 .. code-block:: inform
46
47         ! ================================================================
48         ! TEMPORARY DEFINITIONS NEEDED TO COMPILE AT THE END OF CHAPTER 11
49
50         Room    toilet;
51         Object  clothes;
52         Object  costume;
53
54 and with these at the end of Chapter 12:
55
56 .. code-block:: inform
57
58         ! ================================================================
59         ! TEMPORARY DEFINITIONS NEEDED TO COMPILE AT THE END OF CHAPTER 12
60
61         Room    toilet;
62         Object  clothes;
63         Object  costume;
64         Object  coin;
65         Object  coffee;
66         Object  food;
67         Object  menu;
68
69 At the end of Chapter 13 the game is complete, so you can delete the 
70 temporary stubs.