New mechanism for automatic generation of the puzzle screenshots on
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Tue, 26 Dec 2006 16:47:28 +0000 (16:47 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Tue, 26 Dec 2006 16:47:28 +0000 (16:47 +0000)
commitafc306fc5098945e25027fd6bce572d44a8a139f
tree3b06ffca17a9c7b2294cbabf90cc8a22d948dc63
parented656ed455d045a49dfb3dae64f9135727d7f788
New mechanism for automatic generation of the puzzle screenshots on
the web, which I hope will also end up being extended to generate
both Windows and X icons for each individual puzzle. The mechanism
is: for each puzzle there's a save file in the `icons' subdirectory
showing a game state which I think is a decent illustration of the
puzzle, and then there's a nasty set of scripts which runs each
puzzle binary, loads that save file, grabs a screenshot using xwd,
and munges it into shape.

In order to support this I've added two new options (--redo and
--windowid) to all the GTK puzzles, which I don't expect ever to be
used outside the icons makefile. I've also added two more options
(--load and --id) which force a GTK puzzle to treat its command-line
option as a save file or as a game ID respectively (the previous
behaviour was always to guess, and sometimes it guessed wrong).

git-svn-id: svn://svn.tartarus.org/sgt/puzzles@7014 cda61777-01e9-0310-a592-d414129be87e
31 files changed:
CHECKLST.txt
gtk.c
icons/Makefile [new file with mode: 0644]
icons/blackbox.sav [new file with mode: 0644]
icons/bridges.sav [new file with mode: 0644]
icons/cube.sav [new file with mode: 0644]
icons/dominosa.sav [new file with mode: 0644]
icons/fifteen.sav [new file with mode: 0644]
icons/flip.sav [new file with mode: 0644]
icons/guess.sav [new file with mode: 0644]
icons/inertia.sav [new file with mode: 0644]
icons/lightup.sav [new file with mode: 0644]
icons/loopy.sav [new file with mode: 0644]
icons/map.sav [new file with mode: 0644]
icons/mines.sav [new file with mode: 0644]
icons/net.sav [new file with mode: 0644]
icons/netslide.sav [new file with mode: 0644]
icons/pattern.sav [new file with mode: 0644]
icons/pegs.sav [new file with mode: 0644]
icons/rect.sav [new file with mode: 0644]
icons/samegame.sav [new file with mode: 0644]
icons/screenshot.sh [new file with mode: 0755]
icons/sixteen.sav [new file with mode: 0644]
icons/slant.sav [new file with mode: 0644]
icons/solo.sav [new file with mode: 0644]
icons/square.pl [new file with mode: 0755]
icons/tents.sav [new file with mode: 0644]
icons/twiddle.sav [new file with mode: 0644]
icons/untangle.sav [new file with mode: 0644]
midend.c
puzzles.h