X-Git-Url: https://jxself.org/git/?p=ibg.git;a=blobdiff_plain;f=chapters%2F03.rst;h=06fcffb3fe2418a7162260d7a585f6785790cb7b;hp=a50db44d9bc817d6656e53f1cbcde639a7bdccbb;hb=8009937904cf79341a9c23c9c5e7b541606bfcb6;hpb=9f5abf3a7762275e6ae1f1a29c6594994ba07e2c diff --git a/chapters/03.rst b/chapters/03.rst index a50db44..06fcffb 100644 --- a/chapters/03.rst +++ b/chapters/03.rst @@ -47,6 +47,8 @@ that we design will start out like this. Follow these steps: #. In that folder, use your text editor to create this source file ``Heidi.inf``: + .. include:: /config/typethis.rst + .. code-block:: inform !% -SD @@ -92,20 +94,23 @@ that we design will start out like this. Follow these steps: learn Inform more quickly by trying it for yourself, rather than just taking our word for how things work. - .. todo:: +#. In the same folder, use your text editor to create the compilation + support file ``Heidi.bat`` (on a PC): - Again, revisit the TYPE symbol. Maybe a standard indicator above - each snippet? + .. include:: /config/typethis.rst -#. In the same folder, use your text editor to create the compilation - support file ``Heidi.bat`` (on a PC):: + :: ..\..\Lib\Base\Inform Heidi +include_path=.\,..\..\Lib\Base,..\..\Lib\Contrib | more pause "at end of compilation" - or ``Heidi.command`` (on a Macintosh):: + or ``Heidi.command`` (on a Macintosh): + + .. include:: /config/typethis.rst + + :: cd ~/Inform/Games/Heidi/ @@ -495,6 +500,8 @@ At this stage, you should study the four room definitions, comparing them with the sketch map until you're comfortable that you understand how to create simple rooms and define the connections between them. +.. include:: /config/typethis.rst + .. code-block:: inform !============================================================================ @@ -596,6 +603,8 @@ relevant vocabulary so that the player can use whatever term seems appropriate to her, with a good chance of it being understood. We add a line to each definition: +.. include:: /config/typethis.rst + .. code-block:: inform Object bird "baby bird" @@ -752,6 +761,8 @@ Adding the tree and the branch The description of the clearing mentions a tall sycamore tree, up which the player character supposedly "climbs". We'd better define it: +.. include:: /config/typethis.rst + .. code-block:: inform Object tree "tall sycamore tree" clearing @@ -769,6 +780,8 @@ labelling the tree as :attr:`scenery` we suppress that, and also prevent it from being picked up by the player character. One final object: the branch at the top of the tree. Again, not many surprises in this definition: +.. include:: /config/typethis.rst + .. code-block:: inform Object branch "wide firm bough" top_of_tree @@ -853,6 +866,8 @@ carrying the bird and the nest separately: we want the player character to put the bird into the nest first. One easy way to enforce this is by adding a line near the top of the file: +.. include:: /config/typethis.rst + .. code-block:: inform !============================================================================ @@ -875,6 +890,8 @@ to put the bird in the nest, take the nest to the top of the tree, and place it on the branch; when that happens, the game should be over. This is one way of making it happen: +.. include:: /config/typethis.rst + .. code-block:: inform Object branch "wide firm bough" top_of_tree