1
0
Fork 0
mirror of https://github.com/Oreolek/gamebookformat.git synced 2024-06-26 03:41:04 +03:00
Commit graph

47 commits

Author SHA1 Message Date
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 d1e67a2532 Rules to build all examples of specific type. 2013-06-08 19:59:55 +02:00
Pelle Nilsson ee27c2b6ee Oops, endsWith is not standard Javascript at all. Using regexp. 2013-06-08 15:57:49 +02:00
Pelle Nilsson ecf8a28384 Items examples grammar in text. 2013-06-08 15:57:21 +02:00
Pelle Nilsson 1cc0550baf Managed to get centered section headings in Mac text editor. 2013-06-08 09:02:26 +02:00
Pelle Nilsson ffbac7868a Attempt to fix LaTeX/PDF output a bit. 2013-06-07 23:29:20 +02:00
Pelle Nilsson f7cf60dbc1 Centered section headers in RTF output. 2013-06-07 23:27:01 +02:00
Pelle Nilsson af2a459cc9 Items and codewords.
Gamebooks are now quite playable in HTML version. Planning to
redesign inventory and codewords to be handled the same way, to allow
adding other things that behave in a similar way to a gamebook (eg
skills or spells). Also some obvious things are missing like being
able to check if NOT having an item or codeword, or preventing a player
from finding the same item twice (if redirected back to a section where
it can be found after dropping it).
2013-06-07 23:18:33 +02:00
Pelle Nilsson ddf6ed3046 Codewords set in HTML.
Feel bad about how copy-pasted codewords are from items.
Ideally the same code would handle both. Not now though.
2013-06-07 22:03:28 +02:00
Pelle Nilsson ac0b806c73 Can pick up items in HTML version. First stubs for HTML Javascript.
Ugly hack warning. Too tired to design.
2013-06-07 21:41:52 +02:00
Pelle Nilsson 1bf91169c5 Codewords and items.
Need to think more about design and code is not pretty.
2013-06-07 00:14:06 +02:00
Pelle Nilsson f723ee0a9c Text format brackets.
Switched to text mark-up even more similar to org-mode, also more
similar to typical wiki mark-up, removing python-style format from
sections (but not from the templates).
2013-06-05 00:19:57 +02:00
Pelle Nilsson a58a237bc1 Better API for tags in sections. 2013-06-04 22:44:50 +02:00
Pelle Nilsson 3a1f8821c1 Cleaned up old automatic tests.
Ought to add some more soon.
2013-06-04 22:40:09 +02:00
Pelle Nilsson dd7b1281ca todo 2013-06-04 22:39:46 +02:00
Pelle Nilsson 84243fafa8 Examples structure. New examples. Verification stub. Tags parsing. 2013-06-04 22:36:09 +02:00
Pelle Nilsson 4dc609c1a2 Now an error to have sections with the same name. 2013-06-04 22:32:51 +02:00
Pelle Nilsson 5e187d3252 Improved LaTeX references.
Includes some ugly hacks like the empty sections to increase counter.
2013-06-04 22:32:03 +02:00
Pelle Nilsson ad1bbe65ae LaTeX with cross-references.
Seems to work, but following links in PDF brings you to the top
of the section below the heading, sometimes meaning that the
number is not visible on screen. Also section headings could
perhaps have better layout with less empty space above and below.
2013-06-04 00:57:45 +02:00
Pelle Nilsson f5eb63be46 Two-column LaTeX output with section numbers on separate lines. 2013-06-04 00:34:01 +02:00
Pelle Nilsson 7c255b2bab Usage documentation. 2013-06-04 00:27:32 +02:00
Pelle Nilsson 8a4a3401b4 Flag -t to add custom template dirs to override default templates. 2013-06-04 00:22:54 +02:00
Pelle Nilsson f8ba31300a Target to find FIXMEs in code. 2013-06-04 00:02:02 +02:00
Pelle Nilsson 8e1ac6353d Export and import JSON mapping of section numbers.
Except if flag -M is given.
2013-06-03 23:46:11 +02:00
Pelle Nilsson 18f313666e Do not crash when there are gaps in section numbering. 2013-06-03 23:45:31 +02:00
Pelle Nilsson c17d00872b Cleaned up output and templates handling a bit. 2013-06-03 22:19:06 +02:00
Pelle Nilsson 2dfd2dca24 todo 2013-06-03 22:08:07 +02:00
Pelle Nilsson 5d42472385 Use term section instead of paragraph.
Because it will become confusing later when there is support
for sections split up in several paragraphs otherwise.
2013-06-03 21:57:55 +02:00
Pelle Nilsson 81f27d0648 Created GNU Makefile to help build files. 2013-06-03 21:48:28 +02:00
Pelle Nilsson 84bf6baea5 Renamed templates directory to templates, because that is what it contains. 2013-06-03 21:48:01 +02:00
Pelle Nilsson 4e9312e4e0 Ignore some leftovers from working in another branch. 2013-06-03 21:30:00 +02:00
Pelle Nilsson 707d5692cb Switched from JSON to simpler format.
Code is a bit of a mess at the moment. Might have to generate some JSON
later anyway to make it easier to make playable game in browser.
2013-05-30 00:18:05 +02:00
Pelle Nilsson bdc101a6db Added simple HTML output support. 2013-05-29 00:01:17 +02:00
Pelle Nilsson f01eb0a3f3 Fixed bugs in DOT and RTF output. 2013-05-29 00:00:30 +02:00
Pelle Nilsson f0ad6ea094 Halfway through refactoring output formats.
The idea now is that only simple plain-text template files are used
for all formats, rather than having a Python class for each one.
At least for the currently supported formats this seems to work very well.
Need to clean up and remove all the reduntant class definitions sometime.
2013-05-28 23:31:09 +02:00
Pelle Nilsson 3791e8c688 readme 2013-05-28 23:28:13 +02:00
Pelle Nilsson 0bd449d1b2 Basic RTF output added. 2013-05-28 07:02:47 +02:00
Pelle Nilsson f2dd2c3bfb Instead typo. 2013-05-28 06:56:54 +02:00
Pelle Nilsson 7e140e0990 Ignore *.out and *.png files. 2013-05-27 23:49:07 +02:00
Pelle Nilsson 74cd2958ab Removed generated files from git. 2013-05-27 23:48:44 +02:00
Pelle Nilsson 31c49e8118 Raise error if attempting to us RTF, as it is not yet implemented. 2013-05-27 23:48:13 +02:00
Pelle Nilsson 3b551f74e7 Todo list updated and in better format. 2013-05-27 23:40:21 +02:00
Pelle Nilsson d12e43ff67 Added PDF from LaTeX generation to test.sh. Script also now executable. 2013-05-27 23:40:08 +02:00
Pelle Nilsson 4986b40cf0 Initial basic version of gamebook formatter.
Reused old paragraphs.py and test_paragraphs.py.
Implemented very basic output for Graphviz DOT and LaTeX files.
Basic plain-text debug output.
2013-05-27 23:33:36 +02:00