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