![]() |
![]()
| ![]() |
![]()
NAMExsokoban - Pushing objects around... SYNOPSISxsokoban [{ -nn | -s[level] | -r | -u <username> -c[scorefile-text]} -C -display <disp> {-w | -walls} {-rv | -reverse} {-f | -font} <fn> {-b | -bitdir} <path> {-fg | -foreground} <color> {-bg | -background} <color> {-bd | -border} <color> {-pr | -pointer} <color> -xrm <arg> ] DESCRIPTIONxsokoban is an implementation of the game sokoban, written on top of X(1). The goal of xsokoban is to push all the round objects into the score area of each level using the mouse or the arrow keys. The arrow keys move the player in the corresponding direction, pushing an object if it is in the way and there is a clear space on the other side. The mouse buttons each have a distinct function. If the left mouse button is pressed on a clear square, the player will move to that location via the optimal path if such a path exists; otherwise, the game will beep. If the middle button is pressed on an object that is adjacent to the player, the object will be pushed one step. If the middle mouse button is pressed on an empty space, the player will move the closest object that is on a straight line with the destination, such that the object can be pushed in that direction, and the player is not directly between the destination and the object. Before pushing the object, the player is moved optimally to start the push. Either the left or middle mouse buttons may be used to "drag" an object from an initial to a final position. If a straightforward way exists for the player to push the object without moving any other objects, the player will execute appropriate moves and pushes to get the object to the desired destination. The right button mouse undoes the last user action, and may be used any number of times. The rest of the functions are bound to the keyboard:
The score file can be viewed at any time during the playing of the game. The scores are also displayed whenever a level is completed. Scores of the current user are initially highlighted. While viewing scores, the following keys may be used to control the listing:
Scores are saved in the score file if they are of high enough rank. A score is ranked according to how many scores are better than it; there are no scores superior to a rank 1 score, only one score superior to a rank 2 score, and so on. If two scores are identical, the first one entered is ranked higher. It is possible for other users to have the same username as you, and thus collide in the score file. One symptom of this problem is that when you first play the game, you are not started at level 1. To avoid this problem, set your "xsokoban.username" X resource to the desired unique username. OPTIONS
OTHER INFORMATIONThere is more information about xsokoban in the WWW, at http://xsokoban.lcs.mit.edu/xsokoban.html A global score file is also located there. AUTHORSUnknown Hacker - Original curses(3) implementation. Joseph L. Traub - X windows interface. Kevin Solie - simultaneously developed X implementation (merged in). Mark Linderman, Christos Zoulas - Mouse code (added to Solie's version). Andrew Myers(http://www.pmg.lcs.mit.edu/~andru) - Improved mouse UI, score ranking, color and WWW support. Code has also been donated by many xsokoban users. Thanks for all your contributions and suggestions! RESOURCESxsokoban understands the following resources.
SPECIAL BITMAPSIn order to define your own bitmaps for xsokoban you only need to know the names of which files it is looking for. The standard bitmap files are:
BUGSAuto bitmap resizing code doesn't take into account font sizes.
|