mirror of
https://github.com/Oreolek/gamebookformat.git
synced 2024-06-16 15:10:45 +03:00
Removed some whitespace from output.
This commit is contained in:
parent
68834df8b4
commit
c17d336baa
|
@ -6,7 +6,6 @@ Introduction
|
|||
More Introduction
|
||||
Any number of these optional pre-game sections are possible really. It would be useful to be able to do sub-sections here to mark up a complete rulebook as part of the paragraph booklet, but there is no such feature (yet?).
|
||||
|
||||
|
||||
Turn to 1 to begin.
|
||||
1 (start) - This is the first section (or paragraph, if you prefer). From here you can go to section 4 or 3.
|
||||
2 (end) - This is the end. There is nothing more in this gamebook.
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
digraph gamebook {
|
||||
|
||||
1->4
|
||||
1->4
|
||||
1->3
|
||||
3->2
|
||||
4->2
|
||||
|
|
|
@ -30,7 +30,6 @@
|
|||
Any number of these optional pre-game sections are possible really. It would be useful to be able to do sub-sections here to mark up a complete rulebook as part of the paragraph booklet, but there is no such feature (yet?).
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="resumelink nodisplay"
|
||||
onclick="gamebook.loadGame()">Resume saved game.</div>
|
||||
|
||||
|
@ -89,7 +88,7 @@ href="#section3">3</a>.
|
|||
if (typeof gamebook !== 'undefined') {
|
||||
gamebook.addSection(4, document.getElementById('section4'));
|
||||
}
|
||||
</script> <div id="counters" class="counters">
|
||||
</script> <div id="counters" class="counters">
|
||||
</div>
|
||||
<div id="counterTemplate" class="counterTemplate">
|
||||
<span class="counterheading"></span>
|
||||
|
|
|
@ -24,7 +24,6 @@
|
|||
|
||||
\ql Any number of these optional pre-game sections are possible really. It would be useful to be able to do sub-sections here to mark up a complete rulebook as part of the paragraph booklet, but there is no such feature (yet?). \
|
||||
\
|
||||
|
||||
\b Turn to 1 to begin.
|
||||
\b0\
|
||||
\
|
||||
|
|
|
@ -45,7 +45,6 @@
|
|||
Any number of these optional pre-game sections are possible really. It would be useful to be able to do sub-sections here to mark up a complete rulebook as part of the paragraph booklet, but there is no such feature (yet?).
|
||||
\vspace{1em}
|
||||
|
||||
|
||||
Turn to 1 to begin.
|
||||
\phantomsection
|
||||
\refstepcounter{sectionnr}
|
||||
|
|
|
@ -7,7 +7,6 @@ More Introduction
|
|||
Any number of these optional pre-game sections are possible really. It would be useful to be able to do sub-sections here to mark up a complete rulebook as part of the paragraph booklet, but there is no such feature (yet?).
|
||||
|
||||
|
||||
|
||||
Turn to 1 to begin.
|
||||
1
|
||||
This is the first section (or paragraph, if you prefer). From here you can go to section 4 or 3.
|
||||
|
|
|
@ -2,7 +2,6 @@ BEGIN DEBUG OUTPUT
|
|||
Book title: Gamebook
|
||||
Number of sections: 9
|
||||
|
||||
|
||||
Turn to 1 to begin.
|
||||
1 (start) - Demonstrating how [COLLECT code]Codewords[/COLLECT] (AKA sightings) can be used. Go to 2.
|
||||
2 (second) - Got codeword [ADD code]warrior[/ADD]. Simple enough to set a codeword. Turn to 9.
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
digraph gamebook {
|
||||
|
||||
1->2
|
||||
1->2
|
||||
2->9
|
||||
4->3
|
||||
4->2
|
||||
|
|
|
@ -18,7 +18,6 @@
|
|||
<div class="hideintrolink nodisplay"
|
||||
onclick="gamebook.hideIntroSections()">(hide instructions)</div>
|
||||
<div class="gamebook">
|
||||
|
||||
<div class="resumelink nodisplay"
|
||||
onclick="gamebook.loadGame()">Resume saved game.</div>
|
||||
|
||||
|
@ -143,7 +142,7 @@ href="#section4">4</a>.
|
|||
if (typeof gamebook !== 'undefined') {
|
||||
gamebook.addSection(9, document.getElementById('section9'));
|
||||
}
|
||||
</script> <div id="counters" class="counters">
|
||||
</script> <div id="counters" class="counters">
|
||||
</div>
|
||||
<div id="counterTemplate" class="counterTemplate">
|
||||
<span class="counterheading"></span>
|
||||
|
|
|
@ -8,7 +8,6 @@
|
|||
|
||||
\b \qc Gamebook
|
||||
\b0\
|
||||
|
||||
\b Turn to 1 to begin.
|
||||
\b0\
|
||||
\
|
||||
|
|
|
@ -33,7 +33,6 @@
|
|||
|
||||
\pagestyle{empty}
|
||||
|
||||
|
||||
Turn to 1 to begin.
|
||||
\phantomsection
|
||||
\refstepcounter{sectionnr}
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
Gamebook
|
||||
|
||||
|
||||
|
||||
Turn to 1 to begin.
|
||||
1
|
||||
Demonstrating how Codewords (AKA sightings) can be used. Go to 2.
|
||||
|
|
|
@ -4,7 +4,6 @@ Number of sections: 9
|
|||
Introduction
|
||||
This example gamebook shows how to use counters.
|
||||
|
||||
|
||||
Turn to 1 to begin.
|
||||
1 (start) - This is where the gamebook starts. We have counters for [COUNT life]Life Points[/COUNT] and for [COUNT gold]Gold[/COUNT]. You start the adventure with [SET life]10[/SET] Life Points and [SET gold]12[/SET] Gold. You can never have less than [MIN gold]0[/MIN] Gold. FIXME need to figure out best syntax for death when life points go below 1. Go to 9 to get more Gold or 8 to lose some Life Points. Go to 3 for testing the init value markup.
|
||||
2 (inittest2) - OK, we increase that something counter by [INC something]1[/INC] here, and also increase the other counter by [INC other]1[/INC]. You can go back to see the difference between set and init here (3), stuck in an infinite loop.
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
digraph gamebook {
|
||||
|
||||
1->9
|
||||
1->9
|
||||
1->8
|
||||
1->3
|
||||
2->3
|
||||
|
|
|
@ -24,7 +24,6 @@
|
|||
This example gamebook shows how to use counters.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="resumelink nodisplay"
|
||||
onclick="gamebook.loadGame()">Resume saved game.</div>
|
||||
|
||||
|
@ -162,7 +161,7 @@ href="#section6">6</a>.
|
|||
if (typeof gamebook !== 'undefined') {
|
||||
gamebook.addSection(9, document.getElementById('section9'));
|
||||
}
|
||||
</script> <div id="counters" class="counters">
|
||||
</script> <div id="counters" class="counters">
|
||||
</div>
|
||||
<div id="counterTemplate" class="counterTemplate">
|
||||
<span class="counterheading"></span>
|
||||
|
|
|
@ -16,7 +16,6 @@
|
|||
|
||||
\ql This example gamebook shows how to use counters. \
|
||||
\
|
||||
|
||||
\b Turn to 1 to begin.
|
||||
\b0\
|
||||
\
|
||||
|
|
|
@ -39,7 +39,6 @@
|
|||
This example gamebook shows how to use counters.
|
||||
\vspace{1em}
|
||||
|
||||
|
||||
Turn to 1 to begin.
|
||||
\phantomsection
|
||||
\refstepcounter{sectionnr}
|
||||
|
|
|
@ -4,7 +4,6 @@ Introduction
|
|||
This example gamebook shows how to use counters.
|
||||
|
||||
|
||||
|
||||
Turn to 1 to begin.
|
||||
1
|
||||
This is where the gamebook starts. We have counters for Life Points and for Gold. You start the adventure with 10 Life Points and 12 Gold. You can never have less than 0 Gold. FIXME need to figure out best syntax for death when life points go below 1. Go to 9 to get more Gold or 8 to lose some Life Points. Go to 3 for testing the init value markup.
|
||||
|
|
|
@ -6,7 +6,6 @@ Introduction
|
|||
Another Heading
|
||||
This starts another non-shuffled section. [FOOTNOTE]A footnote in Another Heading.[/FOOTNOTE]
|
||||
|
||||
|
||||
Adventure begins in section 1.
|
||||
1 (start) - This examples tests gamebook formatting, not so much game mechanics or references. Currently there is nothing here really. This section contains some tricky characters to quote, like } and { and " and ' and \. HTML will probably not like <div> or &boom;. You can make named references like this (5) (just happens to be exactly the same syntax as in emacs org-mode btw). There should be an image below as well. If something broke, turn to 2, otherwise turn to 3.[FOOTNOTE]Good footnote.[/FOOTNOTE] [IMG]testimage.png[/IMG]
|
||||
2 (bad) - Bad.
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
digraph gamebook {
|
||||
|
||||
1->5
|
||||
1->5
|
||||
1->2
|
||||
1->3
|
||||
4->3
|
||||
|
|
|
@ -31,7 +31,6 @@
|
|||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="resumelink nodisplay"
|
||||
onclick="gamebook.loadGame()">Resume saved game.</div>
|
||||
|
||||
|
@ -103,7 +102,7 @@ href="#section3">good end</a>.
|
|||
if (typeof gamebook !== 'undefined') {
|
||||
gamebook.addSection(5, document.getElementById('section5'));
|
||||
}
|
||||
</script> <div id="counters" class="counters">
|
||||
</script> <div id="counters" class="counters">
|
||||
</div>
|
||||
<div id="counterTemplate" class="counterTemplate">
|
||||
<span class="counterheading"></span>
|
||||
|
|
|
@ -25,7 +25,6 @@
|
|||
\ql This starts another non-shuffled section. (A footnote in Another Heading.)
|
||||
\
|
||||
\
|
||||
|
||||
\b Adventure begins in section 1.
|
||||
\b0\
|
||||
\
|
||||
|
|
|
@ -46,7 +46,6 @@
|
|||
|
||||
\vspace{1em}
|
||||
|
||||
|
||||
Adventure begins in section 1.
|
||||
\phantomsection
|
||||
\refstepcounter{sectionnr}
|
||||
|
|
|
@ -8,7 +8,6 @@ Another Heading
|
|||
|
||||
|
||||
|
||||
|
||||
Adventure begins in section 1.
|
||||
1
|
||||
This examples tests gamebook formatting, not so much game mechanics or references. Currently there is nothing here really. This section contains some tricky characters to quote, like } and { and " and ' and \. HTML will probably not like <div> or &boom;. You can make named references like this (5) (just happens to be exactly the same syntax as in emacs org-mode btw). There should be an image below as well. If something broke, turn to 2, otherwise turn to 3. (Good footnote.)
|
||||
|
|
|
@ -2,7 +2,6 @@ BEGIN DEBUG OUTPUT
|
|||
Book title: Items
|
||||
Number of sections: 12
|
||||
|
||||
|
||||
Turn to 1 to begin.
|
||||
1 (start) - Demonstrating how to manage player [COLLECT item]Inventory[/COLLECT]. You start the book carrying a [ADD item]sword[/ADD] and a [ADD item]shield[/ADD]. Turn to 12 or go to the autotest at 2.
|
||||
2 (autotest) - If you have the [HAS item]stick[/HAS] then you must turn immediately to ((automatic))12, and everything else in this section is ignored. You find a [ADD item]book[/ADD] here. If you have the [HAS item]sword[/HAS] you must turn immediately to ((automatic))5, again ignoring everything that follows. You drop the [DROP item]something valuable[/DROP] here if you have it, then go on to 7.
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
digraph gamebook {
|
||||
|
||||
1->12
|
||||
1->12
|
||||
1->2
|
||||
2->12
|
||||
2->5
|
||||
|
|
|
@ -18,7 +18,6 @@
|
|||
<div class="hideintrolink nodisplay"
|
||||
onclick="gamebook.hideIntroSections()">(hide instructions)</div>
|
||||
<div class="gamebook">
|
||||
|
||||
<div class="resumelink nodisplay"
|
||||
onclick="gamebook.loadGame()">Resume saved game.</div>
|
||||
|
||||
|
@ -195,7 +194,7 @@ href="#section9">9</a>.
|
|||
if (typeof gamebook !== 'undefined') {
|
||||
gamebook.addSection(12, document.getElementById('section12'));
|
||||
}
|
||||
</script> <div id="counters" class="counters">
|
||||
</script> <div id="counters" class="counters">
|
||||
</div>
|
||||
<div id="counterTemplate" class="counterTemplate">
|
||||
<span class="counterheading"></span>
|
||||
|
|
|
@ -8,7 +8,6 @@
|
|||
|
||||
\b \qc Items
|
||||
\b0\
|
||||
|
||||
\b Turn to 1 to begin.
|
||||
\b0\
|
||||
\
|
||||
|
|
|
@ -33,7 +33,6 @@
|
|||
|
||||
\pagestyle{empty}
|
||||
|
||||
|
||||
Turn to 1 to begin.
|
||||
\phantomsection
|
||||
\refstepcounter{sectionnr}
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
Items
|
||||
|
||||
|
||||
|
||||
Turn to 1 to begin.
|
||||
1
|
||||
Demonstrating how to manage player Inventory. You start the book carrying a sword and a shield. Turn to 12 or go to the autotest at 2.
|
||||
|
|
|
@ -2,7 +2,6 @@ BEGIN DEBUG OUTPUT
|
|||
Book title: Letter
|
||||
Number of sections: 1
|
||||
|
||||
|
||||
Turn to 1 to begin.
|
||||
1 (start) - LaTeX output (and this PDF output) from this book should be in letter size rather than the default A5 size (see command-line options used in letter.gamebook.options).
|
||||
END DEBUG OUTPUT
|
||||
|
|
|
@ -1,3 +1,2 @@
|
|||
digraph gamebook {
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
@ -18,7 +18,6 @@
|
|||
<div class="hideintrolink nodisplay"
|
||||
onclick="gamebook.hideIntroSections()">(hide instructions)</div>
|
||||
<div class="gamebook">
|
||||
|
||||
<div class="resumelink nodisplay"
|
||||
onclick="gamebook.loadGame()">Resume saved game.</div>
|
||||
|
||||
|
@ -42,7 +41,7 @@
|
|||
if (typeof gamebook !== 'undefined') {
|
||||
gamebook.addSection(1, document.getElementById('section1'));
|
||||
}
|
||||
</script> <div id="counters" class="counters">
|
||||
</script> <div id="counters" class="counters">
|
||||
</div>
|
||||
<div id="counterTemplate" class="counterTemplate">
|
||||
<span class="counterheading"></span>
|
||||
|
|
|
@ -8,7 +8,6 @@
|
|||
|
||||
\b \qc Letter
|
||||
\b0\
|
||||
|
||||
\b Turn to 1 to begin.
|
||||
\b0\
|
||||
\
|
||||
|
|
|
@ -32,7 +32,6 @@
|
|||
|
||||
\pagestyle{empty}
|
||||
|
||||
|
||||
Turn to 1 to begin.
|
||||
\phantomsection
|
||||
\refstepcounter{sectionnr}
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
Letter
|
||||
|
||||
|
||||
|
||||
Turn to 1 to begin.
|
||||
1
|
||||
LaTeX output (and this PDF output) from this book should be in letter size rather than the default A5 size (see command-line options used in letter.gamebook.options).
|
||||
|
|
|
@ -4,7 +4,6 @@ Number of sections: 400
|
|||
Introduction
|
||||
This gamebook demonstrates simple references between sections. Also notice that an intro section like this one can reference sections, like the start at 1 or the next section at 400. References can include an optional name that is used in some formats, so the same links could also be rendered as start (1) and next (400).
|
||||
|
||||
|
||||
Turn to 1 to begin.
|
||||
1 (start) - This is where the adventure begins. You can go on to the next section, see 400 or try the random selection feature at 399.
|
||||
2 () - (EMPTY)
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
digraph gamebook {
|
||||
|
||||
1->400
|
||||
1->400
|
||||
1->399
|
||||
399->400
|
||||
399->397
|
||||
|
|
|
@ -28,7 +28,6 @@ href="#section1">start</a> and <a class="sectionref enabledlink" data-ref="400"
|
|||
href="#section400">next</a>.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="resumelink nodisplay"
|
||||
onclick="gamebook.loadGame()">Resume saved game.</div>
|
||||
|
||||
|
@ -98,7 +97,7 @@ href="#section397">397</a>.
|
|||
if (typeof gamebook !== 'undefined') {
|
||||
gamebook.addSection(400, document.getElementById('section400'));
|
||||
}
|
||||
</script> <div id="counters" class="counters">
|
||||
</script> <div id="counters" class="counters">
|
||||
</div>
|
||||
<div id="counterTemplate" class="counterTemplate">
|
||||
<span class="counterheading"></span>
|
||||
|
|
|
@ -28,7 +28,6 @@
|
|||
)
|
||||
. \
|
||||
\
|
||||
|
||||
\b Turn to 1 to begin.
|
||||
\b0\
|
||||
\
|
||||
|
|
|
@ -41,7 +41,6 @@
|
|||
.
|
||||
\vspace{1em}
|
||||
|
||||
|
||||
Turn to 1 to begin.
|
||||
\phantomsection
|
||||
\refstepcounter{sectionnr}
|
||||
|
|
|
@ -4,7 +4,6 @@ Introduction
|
|||
This gamebook demonstrates simple references between sections. Also notice that an intro section like this one can reference sections, like the start at 1 or the next section at 400. References can include an optional name that is used in some formats, so the same links could also be rendered as start (1) and next (400).
|
||||
|
||||
|
||||
|
||||
Turn to 1 to begin.
|
||||
1
|
||||
This is where the adventure begins. You can go on to the next section, see 400 or try the random selection feature at 399.
|
||||
|
|
|
@ -4,7 +4,6 @@ Number of sections: 2
|
|||
Introduction
|
||||
Testing trade of things. You can buy things using [COUNT gold]Gold[/COUNT] of which you start with [SET gold]100[/SET]. You also have an [COLLECT item]Inventory[/COLLECT]. At start you carry a [ADD item]sword[/ADD].
|
||||
|
||||
|
||||
Turn to 1 to begin.
|
||||
1 (start) - You can buy a [FOUND item]shield[/FOUND] here for 50 Gold. There is also a [FOUND item]chain mail[/FOUND] costing 150. You can pick up some [FOUND item]spiderweb[/FOUND] for free. You can go on to the end at 2.
|
||||
2 (theend) - It ends here.
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
digraph gamebook {
|
||||
|
||||
1->2
|
||||
1->2
|
||||
}
|
||||
|
|
|
@ -28,7 +28,6 @@
|
|||
data-what="sword">sword</span>.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="resumelink nodisplay"
|
||||
onclick="gamebook.loadGame()">Resume saved game.</div>
|
||||
|
||||
|
@ -78,7 +77,7 @@ if (typeof gamebook !== 'undefined') {
|
|||
if (typeof gamebook !== 'undefined') {
|
||||
gamebook.addSection(2, document.getElementById('section2'));
|
||||
}
|
||||
</script> <div id="counters" class="counters">
|
||||
</script> <div id="counters" class="counters">
|
||||
</div>
|
||||
<div id="counterTemplate" class="counterTemplate">
|
||||
<span class="counterheading"></span>
|
||||
|
|
|
@ -16,7 +16,6 @@
|
|||
|
||||
\ql Testing trade of things. You can buy things using Gold of which you start with 100. You also have an Inventory. At start you carry a sword. \
|
||||
\
|
||||
|
||||
\b Turn to 1 to begin.
|
||||
\b0\
|
||||
\
|
||||
|
|
|
@ -39,7 +39,6 @@
|
|||
Testing trade of things. You can buy things using Gold of which you start with 100. You also have an Inventory. At start you carry a \textbf{sword}.
|
||||
\vspace{1em}
|
||||
|
||||
|
||||
Turn to 1 to begin.
|
||||
\phantomsection
|
||||
\refstepcounter{sectionnr}
|
||||
|
|
|
@ -4,7 +4,6 @@ Introduction
|
|||
Testing trade of things. You can buy things using Gold of which you start with 100. You also have an Inventory. At start you carry a sword.
|
||||
|
||||
|
||||
|
||||
Turn to 1 to begin.
|
||||
1
|
||||
You can buy a shield here for 50 Gold. There is also a chain mail costing 150. You can pick up some spiderweb for free. You can go on to the end at 2.
|
||||
|
|
|
@ -2,7 +2,6 @@ BEGIN DEBUG OUTPUT
|
|||
Book title: Gamebook
|
||||
Number of sections: 6
|
||||
|
||||
|
||||
Turn to 1 to begin.
|
||||
1 (start) - It starts here. You can get to 6.
|
||||
2 (secondfake) - Another fake section that is also ignored.
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
digraph gamebook {
|
||||
|
||||
1->6
|
||||
1->6
|
||||
}
|
||||
|
|
|
@ -18,7 +18,6 @@
|
|||
<div class="hideintrolink nodisplay"
|
||||
onclick="gamebook.hideIntroSections()">(hide instructions)</div>
|
||||
<div class="gamebook">
|
||||
|
||||
<div class="resumelink nodisplay"
|
||||
onclick="gamebook.loadGame()">Resume saved game.</div>
|
||||
|
||||
|
@ -83,7 +82,7 @@ if (typeof gamebook !== 'undefined') {
|
|||
if (typeof gamebook !== 'undefined') {
|
||||
gamebook.addSection(6, document.getElementById('section6'));
|
||||
}
|
||||
</script> <div id="counters" class="counters">
|
||||
</script> <div id="counters" class="counters">
|
||||
</div>
|
||||
<div id="counterTemplate" class="counterTemplate">
|
||||
<span class="counterheading"></span>
|
||||
|
|
|
@ -8,7 +8,6 @@
|
|||
|
||||
\b \qc Gamebook
|
||||
\b0\
|
||||
|
||||
\b Turn to 1 to begin.
|
||||
\b0\
|
||||
\
|
||||
|
|
|
@ -33,7 +33,6 @@
|
|||
|
||||
\pagestyle{empty}
|
||||
|
||||
|
||||
Turn to 1 to begin.
|
||||
\phantomsection
|
||||
\refstepcounter{sectionnr}
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
Gamebook
|
||||
|
||||
|
||||
|
||||
Turn to 1 to begin.
|
||||
1
|
||||
It starts here. You can get to 6.
|
||||
|
|
|
@ -2,7 +2,6 @@ BEGIN DEBUG OUTPUT
|
|||
Book title: Gamebook
|
||||
Number of sections: 5
|
||||
|
||||
|
||||
Turn to 1 to begin.
|
||||
1 (start) - This gamebook contains a few sections tagged as demo, that will be included when building the example (see withdemo.gamebook.options file). There are also some sections without the demo tag that will be ignored. Go on to 5 or 4 or 2.
|
||||
2 (demoinfo) - This is where references to non-demo sections will lead you. It is configured at the top of the gamebook file. Remember to tag this section correctly to be included. Go on to 4.
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
digraph gamebook {
|
||||
|
||||
1->5
|
||||
1->5
|
||||
1->4
|
||||
1->2
|
||||
2->4
|
||||
|
|
|
@ -18,7 +18,6 @@
|
|||
<div class="hideintrolink nodisplay"
|
||||
onclick="gamebook.hideIntroSections()">(hide instructions)</div>
|
||||
<div class="gamebook">
|
||||
|
||||
<div class="resumelink nodisplay"
|
||||
onclick="gamebook.loadGame()">Resume saved game.</div>
|
||||
|
||||
|
@ -89,7 +88,7 @@ href="#section3">3</a>.
|
|||
if (typeof gamebook !== 'undefined') {
|
||||
gamebook.addSection(5, document.getElementById('section5'));
|
||||
}
|
||||
</script> <div id="counters" class="counters">
|
||||
</script> <div id="counters" class="counters">
|
||||
</div>
|
||||
<div id="counterTemplate" class="counterTemplate">
|
||||
<span class="counterheading"></span>
|
||||
|
|
|
@ -8,7 +8,6 @@
|
|||
|
||||
\b \qc Gamebook
|
||||
\b0\
|
||||
|
||||
\b Turn to 1 to begin.
|
||||
\b0\
|
||||
\
|
||||
|
|
|
@ -33,7 +33,6 @@
|
|||
|
||||
\pagestyle{empty}
|
||||
|
||||
|
||||
Turn to 1 to begin.
|
||||
\phantomsection
|
||||
\refstepcounter{sectionnr}
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
Gamebook
|
||||
|
||||
|
||||
|
||||
Turn to 1 to begin.
|
||||
1
|
||||
This gamebook contains a few sections tagged as demo, that will be included when building the example (see withdemo.gamebook.options file). There are also some sections without the demo tag that will be ignored. Go on to 5 or 4 or 2.
|
||||
|
|
|
@ -2,7 +2,6 @@ BEGIN DEBUG OUTPUT
|
|||
Book title: Example Gamebook With Maps
|
||||
Number of sections: 99
|
||||
|
||||
|
||||
Turn to 1 to begin.
|
||||
1 () - (EMPTY)
|
||||
2 () - (EMPTY)
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
digraph gamebook {
|
||||
|
||||
10->99
|
||||
10->99
|
||||
}
|
||||
|
|
|
@ -18,7 +18,6 @@
|
|||
<div class="hideintrolink nodisplay"
|
||||
onclick="gamebook.hideIntroSections()">(hide instructions)</div>
|
||||
<div class="gamebook">
|
||||
|
||||
<div class="resumelink nodisplay"
|
||||
onclick="gamebook.loadGame()">Resume saved game.</div>
|
||||
|
||||
|
@ -53,7 +52,7 @@ if (typeof gamebook !== 'undefined') {
|
|||
if (typeof gamebook !== 'undefined') {
|
||||
gamebook.addSection(99, document.getElementById('section99'));
|
||||
}
|
||||
</script> <div id="counters" class="counters">
|
||||
</script> <div id="counters" class="counters">
|
||||
</div>
|
||||
<div id="counterTemplate" class="counterTemplate">
|
||||
<span class="counterheading"></span>
|
||||
|
|
|
@ -8,7 +8,6 @@
|
|||
|
||||
\b \qc Example Gamebook With Maps
|
||||
\b0\
|
||||
|
||||
\b Turn to 1 to begin.
|
||||
\b0\
|
||||
\
|
||||
|
|
|
@ -33,7 +33,6 @@
|
|||
|
||||
\pagestyle{empty}
|
||||
|
||||
|
||||
Turn to 1 to begin.
|
||||
\refstepcounter{sectionnr}
|
||||
\refstepcounter{sectionnr}
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
Example Gamebook With Maps
|
||||
|
||||
|
||||
|
||||
Turn to 1 to begin.
|
||||
10
|
||||
This should have number 10, as specified in first map file. The end, at 99, should be at 99.
|
||||
|
|
|
@ -2,7 +2,6 @@ BEGIN DEBUG OUTPUT
|
|||
Book title: Gamebook
|
||||
Number of sections: 8
|
||||
|
||||
|
||||
Turn to 1 to begin.
|
||||
1 (start) - This gamebook contains a few sections tagged as demo, that will be included when building the example as withdemo.gamebook (see withdemo.gamebook.options file). There are also some sections without the demo tag that will be ignored. This version is built without options and includes all sections. Go on to 7 or 5 or 8.
|
||||
2 (altend) - Alternative end. Not included in the demo.
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
digraph gamebook {
|
||||
|
||||
1->7
|
||||
1->7
|
||||
1->5
|
||||
1->8
|
||||
3->5
|
||||
|
|
|
@ -18,7 +18,6 @@
|
|||
<div class="hideintrolink nodisplay"
|
||||
onclick="gamebook.hideIntroSections()">(hide instructions)</div>
|
||||
<div class="gamebook">
|
||||
|
||||
<div class="resumelink nodisplay"
|
||||
onclick="gamebook.loadGame()">Resume saved game.</div>
|
||||
|
||||
|
@ -123,7 +122,7 @@ href="#section6">6</a>.
|
|||
if (typeof gamebook !== 'undefined') {
|
||||
gamebook.addSection(8, document.getElementById('section8'));
|
||||
}
|
||||
</script> <div id="counters" class="counters">
|
||||
</script> <div id="counters" class="counters">
|
||||
</div>
|
||||
<div id="counterTemplate" class="counterTemplate">
|
||||
<span class="counterheading"></span>
|
||||
|
|
|
@ -8,7 +8,6 @@
|
|||
|
||||
\b \qc Gamebook
|
||||
\b0\
|
||||
|
||||
\b Turn to 1 to begin.
|
||||
\b0\
|
||||
\
|
||||
|
|
|
@ -33,7 +33,6 @@
|
|||
|
||||
\pagestyle{empty}
|
||||
|
||||
|
||||
Turn to 1 to begin.
|
||||
\phantomsection
|
||||
\refstepcounter{sectionnr}
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
Gamebook
|
||||
|
||||
|
||||
|
||||
Turn to 1 to begin.
|
||||
1
|
||||
This gamebook contains a few sections tagged as demo, that will be included when building the example as withdemo.gamebook (see withdemo.gamebook.options file). There are also some sections without the demo tag that will be ignored. This version is built without options and includes all sections. Go on to 7 or 5 or 8.
|
||||
|
|
|
@ -155,12 +155,12 @@ def make_output(outputfilename, templatedirs):
|
|||
def write_book(book, shuffle, output_format, outputfilename):
|
||||
shuffled_sections = book.shuffle(shuffle)
|
||||
output = open(outputfilename, 'w')
|
||||
print >> output, output_format.format_begin(book.config),
|
||||
print >> output, output_format.format_intro_sections(book.introsections,
|
||||
shuffled_sections)
|
||||
print >> output, output_format.format_sections_begin(book.config),
|
||||
print >> output, output_format.format_shuffled_sections(shuffled_sections),
|
||||
print >> output, output_format.format_end(book.config),
|
||||
print >> output, ''.join((output_format.format_begin(book.config),
|
||||
output_format.format_intro_sections(book.introsections,
|
||||
shuffled_sections),
|
||||
output_format.format_sections_begin(book.config),
|
||||
output_format.format_shuffled_sections(shuffled_sections),
|
||||
output_format.format_end(book.config))),
|
||||
save_section_mapping(shuffled_sections, outputfilename)
|
||||
|
||||
def import_default_nr_map(outputfilename, book):
|
||||
|
|
|
@ -41,6 +41,9 @@ subdirectory (next to the default *templates* subdirectory) that
|
|||
contains useful overrides for some behavior of the default output
|
||||
formats. For example adding *-o letter* to the command-line will
|
||||
produce LaTeX files in Letter size rather than the default A5 size.
|
||||
You can use *-o list* to generate a text file listing all sections and
|
||||
their numbers, or *-o list -t todo* to only list sections tagged as
|
||||
todo (or substitute whatever other tag(s) you are interested in).
|
||||
|
||||
| Name | Formats | Description |
|
||||
|----------+---------+--------------------------------------|
|
||||
|
@ -48,9 +51,9 @@ produce LaTeX files in Letter size rather than the default A5 size.
|
|||
| a5 | tex | A5 paper size documents (PDF). |
|
||||
| htmlbook | html | Generate [[https://github.com/oreillymedia/HTMLBook][HTMLBook]] compatible HTML. |
|
||||
| letter | tex | Letter paper size documents (PDF). |
|
||||
| list | txt | Only generate list of sections. |
|
||||
| static | html | Remove script link from HTML output. |
|
||||
|
||||
|
||||
** Number Map Files
|
||||
Whenever formatgamebook.py runs it looks for a file with the same
|
||||
name as the output file, but with a .map suffix (eg output.map if
|
||||
|
|
Loading…
Reference in a new issue