Pelle Nilsson
ed0ae335e0
Fixed some whitespace and HTML quoting problems in twine2 format.
2014-12-22 17:31:42 +01:00
Pelle Nilsson
f90e662993
Better quoting and formatting for twine2 output.
2014-12-22 17:14:32 +01:00
Pelle Nilsson
e9b7c88775
Added missing text content for many Twine 2 output tags.
2014-12-22 17:01:13 +01:00
Pelle Nilsson
7b11888164
Made twine2 its own output format instead of option for html.
2014-12-22 16:55:12 +01:00
Pelle Nilsson
0cecd4cf63
Started documentation.
...
Also some tricks to get everything through checkexpected,
and a new b tag for bold text (only in html and json for now).
2014-10-28 00:06:26 +01:00
Pelle Nilsson
cc3e0c9033
Merge branch 'master' of rn:git/gamebookformat
2014-09-25 21:00:20 +02:00
Pelle Nilsson
849d2bb48a
RTF cross-references added.
2014-09-25 20:59:55 +02:00
Pelle Nilsson
ff60c5826b
Changed name of format from debug to json.
2014-09-24 22:01:02 +02:00
Pelle Nilsson
4828d693d3
Changed debug output format from unformatted plain text to JSON.
2014-09-23 21:33:01 +02:00
Pelle Nilsson
be2bc017bc
Added trade tag.
...
Also documented a couple of bugs related to cost
and trade. Seems like that system needs some rethinking.
2014-03-07 21:22:10 +01:00
Pelle Nilsson
86667922ec
Pay something (a counter, eg gold) to follow a reference.
...
Also refactored old code to pay for item slightly.
2014-03-04 23:02:51 +01:00
Pelle Nilsson
213008aa2b
Templates for footnotes in gamebooks.
...
Only rendered well in LaTeX (PDF). Just shown in parenthesis in other formats.
Should be possible, I think, to render in RTF as well, and HTML probably.
Only needed them for PDF output at the moment though.
2013-10-08 23:35:09 +02:00
Pelle Nilsson
370530222e
Merge branch 'master' of rn:git/gamebookformat
2013-08-15 21:55:42 +02:00
Pelle Nilsson
f6716ef69d
Improved LaTeX titlepage layout.
2013-08-15 21:27:01 +02:00
Pelle Nilsson
6fa4245e02
Initial value for counters (something it is not reset to when revisiting).
...
Also fixed DOT output that was quite broken.
2013-08-04 00:16:02 +02:00
Pelle Nilsson
f5e555e3cf
Workaround for image filename being displayed in RTF output bug.
2013-07-28 18:57:57 +02:00
Pelle Nilsson
e5723bdf70
Named references.
...
Instead of just [[section]] you can have [[section][name]] and
depending on format the name will be displayed instead of or
in addition to the section number referred to.
2013-07-28 18:45:02 +02:00
Pelle Nilsson
d92b5847d4
Added option (-o static) to make static HTML output.
2013-06-29 22:21:06 +02:00
Pelle Nilsson
0936c768c3
DOT templates no longer relying on hack to get refs.
...
Also fixed bug in template for img that resulted in filename being
visible in some output formats.
2013-06-26 18:47:14 +02:00
Pelle Nilsson
6897e5e11a
Template for plain non-tagged text.
2013-06-26 11:37:48 +02:00
Pelle Nilsson
f1d2f933ba
Cost tag that sets a price on something found.
2013-06-24 01:14:30 +02:00
Pelle Nilsson
17257b7970
Removed counter names from html and default templates.
...
It didn't work for writing some things, even though often correct.
2013-06-24 00:00:00 +02:00
Pelle Nilsson
9f9e613d4d
HTML output now playable with JavaScript disabled or missing js file.
2013-06-18 22:59:13 +02:00
Pelle Nilsson
25fb3ec60c
Checking counters to enable or disable HTML links.
2013-06-18 22:41:50 +02:00
Pelle Nilsson
4cfcc4888f
Counters.
2013-06-18 22:21:40 +02:00
Pelle Nilsson
4928bd0f14
Correct A5 size output in LaTeX template.
2013-06-18 20:38:55 +02:00
Pelle Nilsson
3a75168d02
Split out html gamebook scripts (most of them) and style.
2013-06-16 22:12:53 +02:00
Pelle Nilsson
1fac366e19
Gamebook id to allow saved games from different games in browser.
...
Default id is basename of file without extension.
Override id by setting book config, as seen in format.gamebook.
2013-06-16 21:54:18 +02:00
Pelle Nilsson
cf8f805255
Fixed bug with rendering of introduction sections.
2013-06-16 21:42:02 +02:00
Pelle Nilsson
1d9ed7d7b7
Save and restore HTML game.
2013-06-16 21:18:28 +02:00
Pelle Nilsson
ad7fcf1e26
Player tests and refactorings.
2013-06-16 19:43:04 +02:00
Pelle Nilsson
0bad58abe3
Stubs for testing html template javascript using node.js.
2013-06-16 09:41:32 +02:00
Pelle Nilsson
b794571d1f
HTML typo.
2013-06-14 22:24:24 +02:00
Pelle Nilsson
5c70a94cce
Split up HTML templates to give more hooks to more easily extend.
2013-06-14 22:20:45 +02:00
Pelle Nilsson
21bac3679c
Minor style and layout fixes.
2013-06-12 00:49:57 +02:00
Pelle Nilsson
35bdf21ecf
Fixed some problems with RTF output.
...
Images hidden instead of filename visible.
Line-breaks after sections_begin text and introsectionheadings.
2013-06-12 00:29:10 +02:00
Pelle Nilsson
df76c64e7f
Random link selection. Stylesheet fixes for links. Some fixes with hiding/showing.
2013-06-12 00:16:21 +02:00
Pelle Nilsson
f60a650598
More formatting options.
2013-06-11 21:59:39 +02:00
Pelle Nilsson
3421ba7aaa
Gamebook configuration (title and author for now).
2013-06-10 22:50:06 +02:00
Pelle Nilsson
54e03105e7
Default templates. Added plain text output.
...
Made default section template constisting of sectionheader and sectionbody.
Improved Makefile with more dependencies to rebuild examples when needed.
2013-06-10 22:15:54 +02:00
Pelle Nilsson
116ca6fad1
Include templates from a template.
...
Should make it much easier to override specific parts of default templates.
2013-06-10 21:43:03 +02:00
Pelle Nilsson
18c76ce0b0
Xor (ex-haselse) and Auto modifiers on secrion references.
2013-06-10 21:21:13 +02:00
Pelle Nilsson
ec7a054d42
haselse hack to enable or disable one link the opposite of the previous one
2013-06-10 19:13:45 +02:00
Pelle Nilsson
c4a777ebad
Updated debug output for new collections.
2013-06-09 01:08:06 +02:00
Pelle Nilsson
98b2583f68
Inventory and codewords now both generic collections.
...
Some new code to handle tags with arguments.
2013-06-09 00:55:24 +02:00
Pelle Nilsson
d886b26210
ff
2013-06-08 20:24:03 +02:00
Pelle Nilsson
9cb51eddae
Allow player to follow a link if not having a specific codeword.
2013-06-08 20:18:05 +02:00
Pelle Nilsson
4d1728cda8
Allow player to follow a link if not carrying a specific item.
2013-06-08 20:13:30 +02:00
Pelle Nilsson
1688e7f4ed
HTML output for small screens somewhat more readable/playable.
2013-06-08 20:00:19 +02:00
Pelle Nilsson
ee27c2b6ee
Oops, endsWith is not standard Javascript at all. Using regexp.
2013-06-08 15:57:49 +02:00