Fix up the remaining hardcoded page refs.
[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 :doc:`/chapters/10`,
12 :doc:`/chapters/11`, :doc:`/chapters/12` and :doc:`/chapters/13`.
13
14 Transcript of play
15 ==================
16
17 .. literalinclude:: /examples/Fate.txt
18    :language: transcript
19
20 Game source code
21 ================
22
23 .. literalinclude:: /examples/Fate.inf
24    :language: inform6
25
26 Compile-as-you-go
27 =================
28
29 "Captain Fate" suffers from the same difficulty as "William Tell": if 
30 you type the code sequentially as you read through the guide, the game 
31 won't compile until you reach the end of Chapter 13. To compile and test 
32 as you go, add these stubs to the end of the game file when you reach 
33 the end of Chapter 10:
34
35 .. code-block:: inform
36
37         ! ================================================================
38         ! TEMPORARY DEFINITIONS NEEDED TO COMPILE AT THE END OF CHAPTER 10
39         Room    cafe;
40         Object  clothes;
41
42 Replace those stubs with these at the end of Chapter 11:
43
44 .. code-block:: inform
45
46         ! ================================================================
47         ! TEMPORARY DEFINITIONS NEEDED TO COMPILE AT THE END OF CHAPTER 11
48
49         Room    toilet;
50         Object  clothes;
51         Object  costume;
52
53 and with these at the end of Chapter 12:
54
55 .. code-block:: inform
56
57         ! ================================================================
58         ! TEMPORARY DEFINITIONS NEEDED TO COMPILE AT THE END OF CHAPTER 12
59
60         Room    toilet;
61         Object  clothes;
62         Object  costume;
63         Object  coin;
64         Object  coffee;
65         Object  food;
66         Object  menu;
67
68 At the end of Chapter 13 the game is complete, so you can delete the 
69 temporary stubs.