xjig(6) | Games Manual | xjig(6) |
xjig - the jigsaw puzzle
xjig <options>
XJig is a puzzle, that tries to replicate a jigsaw puzzle on the screen as close as possible. As in every jigsaw puzzle, the goal is to set all the pieces together. If you like, you can watch the time that you spent for it.
Any image-file in GIF, JPEG, or PPM format can be used as the source for the puzzle, which is then randomly created regarding the sizes selected by the options.
The control should be as intuitive as possible in the way that you will usually pull the freely rotatable pieces at one edge, drag them to the desired destination and drop them so they will snap together easily when close to an neighboured tile.
Tiles are freely formed and rotatable with texture mapping routines to give the appearance of a real mess on the screen.
Tiles snap together very easy if they are dropped somewhere close to another matching tile, when turned in the correct direction.
Puzzles can be doubled sided so you might have to flip the tiles to the correct side to let them snap together.
If the Xserver supports the Shape-Extension, the tiles can be opened directly on the desktop, which is a pretty showcase, but you need a very fast machine for really getting this playable. (Any ideas on how to add double buffering to the shaped-window approach of the jigsaw are warmly welcome!)
The usual way to move the pieces on the screen should be to drag the piece with the left mouse button to their destination by pulling them at on edge. The piece will automatically rotate like if you pull or push them with your fingertip on a table.
In addition, the following movements are possible:
click left: rotate 90 degrees left click right: rotate 90 degrees right click middle: flip tile to backside drag left: rotator drag (as mentioned above)
+middle: pause rotator drag for a straight drag drag middle: straight drag
+left: pause drag for a static rotation
+click left: rotate 90 degrees left during drag
+click right: rotate 90 degrees right during drag CTRL+click left: same as click middle
The right button has actually the same functionality as the middle button so that 2 button systems shouldn't have problems. Only the "drag middle+click right" move will not work in that mode, and the flipping has to be done with the help of the CTRL-key.
For not losing tiles at the window border and for getting more workspace, the game has some zooming and panning features to control the view on your desk. They are controlled via the keyboard with the following functionality:
Cursor Keys: Pan View Page-Up or Add: Zoom in Page-Down or Sub: Zoom out Home: Reset to original size End: Set maximum zooming to view all tiles
The image quality usually suffers from zooming, since gif-images are usually dithered to be viewed best in their original size. This also applies to the size options -ww and -wh.
The program was tested on PseudoColor- and TrueColor-displays. On PseudoColor-displays the program might run out of colors, since colors are very limited and it has to share its colors with other clients. It tries to share similar colors with other clients. But if too may color consuming clients are running, the image-quality will suffer. You should stop other clients in that case or you might quantize the image to a fewer number of colors with packages like ImageMagick, xv or netpbm.
Copyright 1996, Helmut Hoenig, Heiligenhaus
Helmut.Hoenig@hub.de
Helmut Hoenig
Hopfenstrasse 8a
65520 Bad Camberg
GERMANY
********************************************************
By the way, I am collecting banknotes! If you want
to join into my collection, get any bill of your
country, sign it on the backside and send it to me
so I will pin it on my world map.
(Don't forget the exact location for the pin :-)
But you can also just send me a picture postcard ...
********************************************************
Permission to use, copy, modify, and distribute this software for any purpose and without fee is hereby granted, provided that the above copyright notice appear in all copies.
xcol (1990) - color selector for editing text-files flying (94/95) - pool billard simulation xdefmap (1995) - enhanced tool for setting up standard colormaps xmemory (95/96) - memory with simultaneous multiplayer action available at ftp.x.org and its mirrors
July-23-1996 | X Version 11 |