From 552a271c6fea8d36390858ca6d12c4c98f663002 Mon Sep 17 00:00:00 2001 From: Franklin Wei Date: Sat, 3 Jun 2017 13:45:07 -0400 Subject: puzzles: remove redundant help content It used to be that each puzzle had a complete copy of the entire puzzles manual and the "quick help" text for every single puzzle. This was obviously a waste, so now each puzzle only has the sections of the manual that apply to it, saving about 100KB or so per puzzle. This also has the added benefit of shrinking binary size enough to allow full help support on the c200v2, which has been enabled. Change-Id: I76c799635de058e4a48e0c18b79537857af7cf85 --- apps/plugins/puzzles/help/fifteen.c | 38 +++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 apps/plugins/puzzles/help/fifteen.c (limited to 'apps/plugins/puzzles/help/fifteen.c') diff --git a/apps/plugins/puzzles/help/fifteen.c b/apps/plugins/puzzles/help/fifteen.c new file mode 100644 index 0000000000..dfe7ed11da --- /dev/null +++ b/apps/plugins/puzzles/help/fifteen.c @@ -0,0 +1,38 @@ +/* auto-generated by genhelp.sh */ +/* DO NOT EDIT! */ +const char help_text[] = +"#Chapter 5: Fifteen " +"\n" +"The old ones are the best: this is the good old `15-puzzle' with " +"sliding tiles. You have a 4x4 square grid; 15 squares contain " +"numbered tiles, and the sixteenth is empty. Your move is to choose a " +"tile next to the empty space, and slide it into the space. The aim " +"is to end up with the tiles in numerical order, with the space in " +"the bottom right (so that the top row reads 1,2,3,4 and the bottom " +"row reads 13,14,15,_space_). " +"\n" +"\n#5.1 Fifteen controls " +"\n" +"This game can be controlled with the mouse or the keyboard. " +"\n" +"A left-click with the mouse in the row or column containing the " +"empty space will move as many tiles as necessary to move the space " +"to the mouse pointer. " +"\n" +"The arrow keys will move a tile adjacent to the space in the " +"direction indicated (moving the space in the _opposite_ direction). " +"\n" +"Pressing `h' will make a suggested move. Pressing `h' enough times " +"will solve the game, but it may scramble your progress while doing " +"so. " +"\n" +"(All the actions described in section 2.1 are also available.) " +"\n" +"\n#5.2 Fifteen parameters " +"\n" +"The only options available from the `Custom...' option on the `Type' " +"menu are _Width_ and _Height_, which are self-explanatory. (Once " +"you've changed these, it's not a `15-puzzle' any more, of course!) " +"\n" +; +const char quick_help_text[] = "Slide the tiles around to arrange them into order."; -- cgit v1.2.3