1
0
Fork 0
mirror of https://github.com/Oreolek/gamebookformat.git synced 2024-07-01 06:05:11 +03:00
Commit graph

89 commits

Author SHA1 Message Date
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 d431d1f47e Ignore generated readme.html. 2013-06-16 09:06:40 +02:00
Pelle Nilsson e80199ffbe templates.py can be executed now to extract a template from command-line. 2013-06-16 09:06:21 +02:00
Pelle Nilsson 7a2f1d66b8 Rule to make readme.html.
Approximates what the readme will look like on github.
2013-06-15 18:45:31 +02:00
Pelle Nilsson 01b7cc63f9 todo 2013-06-14 23:36:59 +02:00
Pelle Nilsson c2faf5fad7 Improved OutputFormat by removing direct printing to output file.
Whitespace changed in small ways again in expected output.
Now with expected results files updated too.
2013-06-14 23:25:52 +02:00
Pelle Nilsson 4f260e2307 Improved OutputFormat by removing direct printing to output file.
Whitespace changed in small ways again in expected output.
2013-06-14 23:24:43 +02:00
Pelle Nilsson c7938a3080 Small refactoring and testing of OutputFormat.
Minor fix in whitespace generated from templates. Not
100% sure this is an improvement, but the effect very small either way
2013-06-14 23:05:42 +02:00
Pelle Nilsson b0f70ff39f Adding first output unit tests. Doing some refactoring to improve testability. 2013-06-14 22:49:22 +02:00
Pelle Nilsson 5bd01ef289 Removed unused old code. 2013-06-14 22:25:16 +02:00
Pelle Nilsson b3ed663dc3 Updated expected HTML. 2013-06-14 22:24:56 +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 83d1ab0880 Windhammer Prize link. 2013-06-14 07:02:43 +02:00
Pelle Nilsson d1845d2a1a Flag --random instead of --seed.
Hoping that will be slightly easier to understand.
2013-06-14 07:00:05 +02:00
Pelle Nilsson 155c0ab2f3 Fixed some problems with make clean and expectedcheck. 2013-06-14 00:24:33 +02:00
Pelle Nilsson 4806ac05ef unittest 2013-06-13 23:35:51 +02:00
Pelle Nilsson 2032d0d082 Expected actually now what is expected. 2013-06-13 23:35:11 +02:00
Pelle Nilsson ca4b8389a8 Checking generated examples against saved expected outputs. 2013-06-13 23:21:34 +02:00
Pelle Nilsson d99ca50fa2 Fixed output of supported formats in command usage. 2013-06-13 23:11:25 +02:00
Pelle Nilsson 9831aae42a Optional seed to get predictable shuffling of sections (for tests). 2013-06-13 23:07:36 +02:00
Pelle Nilsson 9aa32a1071 Removing obsolete test.sh. 2013-06-12 00:52:53 +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 5a468bdd65 Makefile upload target. 2013-06-11 21:56:21 +02:00
Pelle Nilsson bd4631553d todo 2013-06-11 00:09:02 +02:00
Pelle Nilsson 0c0a3f7afd Basic quoting of different output formats.
Need to be improved and also add strict filtering later.
2013-06-11 00:02:29 +02:00
Pelle Nilsson 160519e7e5 Make plain text txt from all rule. 2013-06-10 23:58:33 +02:00
Pelle Nilsson 02f6459acf Book config option for max section number to use.
Not sure how useful it is since you can always force one section to have the
max number you want instead.
Anyway also added filling up with dummy sections to make shuffled numbers
on sections in the correct range from 1 to max.
2013-06-10 23:06:37 +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 2d9ee26818 todo 2013-06-09 01:04:02 +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 d10177efd6 Fixed bugs in importing and exporting map file with sections not in gamebook. 2013-06-08 20:50:08 +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 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