home *** CD-ROM | disk | FTP | other *** search
/ The Pier Shareware 6 / The_Pier_Shareware_Number_6_(The_Pier_Exchange)_(1995).iso / 035 / os2games.zip / GAMEREAD.ME < prev    next >
Text File  |  1994-12-21  |  10KB  |  205 lines

  1.    *** OS/2 Warp Version 3.00 Chess and Klondike Game Update ***
  2.  
  3. This package contains the 12/19/94 Release Version of the OS/2 Chess
  4. and Klondike Solitaire programs.  This code may be distributed freely
  5. to all users of OS/2 Warp.
  6.  
  7. This program Requires OS/2 Version 2.00 or later, including OS/2 Warp.
  8.  
  9. To install this code, run the INSTALL.CMD file that came with this code.
  10. It will install the new Chess and Klondike applications over top of your
  11. original copies.  (If, for any reason, you need to restore your original
  12. versions, you can use the Selective Install process to reinstall them
  13. from your original OS/2 Warp diskettes or CD-ROM.  I doubt you'll ever
  14. want to do that, though.)
  15.  
  16. As you will notice, the primary enhancements over the current
  17. OS/2 Chess and Klondike Solitaire programs are in the user interface.
  18.  
  19. Major enhancements to OS2CHESS include:
  20.  
  21. * New high-resolution bitmaps for pieces.
  22. * 2-dimentional view.
  23. * Context sensitive popup menus for background, board, and pieces.
  24.   (Use the right mouse button to bring up the popup menus.)
  25. * The Menu Bar at the top of the window is now optional.
  26. * Notebook settings (from background popup).
  27. * Move by Drag and Drop, or Click on piece then Click on "to" square.
  28. * Support for background bitmaps within the game window.
  29. * Support for customizable MMPM Sound effect for events.
  30. * Variable animation speed for piece movement.
  31. * Support for drag-n-drop of a bitmap onto the game window,
  32.   or onto the bitmap page of the Settings Notebook.
  33. * A new and improved Print function, to print the board and game record.
  34. * Various performance enhancements.
  35.  
  36. Major enhancements to KLONDIKE include:
  37.  
  38. * Two 'Popup' menus for cards and for the background.
  39.   (Use the right mouse button to bring up the popup menus.)
  40. * More flexible algorithm for dropping cards on the correct pile.
  41. * Notebook settings (from the background popup).
  42. * The Menu Bar is now optional.
  43. * Support for MMPM Sound effects for various events.
  44. * Support for 'autoflip', from the settings notebook.
  45. * Support for background bitmaps within the game window.
  46. * Support for custom bitmaps for card backs.
  47. * Support for dropping a bitmap onto the game window, or on
  48.   the Background or Card Backs page of the Settings Notebook.
  49.  
  50. We have also included, in the settings notebooks, the ability to define
  51. alternate decks of card faces (for Klondike) and piece sets (for Chess).
  52. To do that will require building a custom DLL with bitmaps for whatever
  53. cards or pieces you want to replace.  Below are some details for
  54. programmers on how to build such a DLL with alternate bitmaps.
  55.  
  56. We hope you enjoy this upgrade.
  57.  
  58. The A-Team,
  59. The Applet Team of Developers within IBM.
  60.  
  61.  - - - - - - - - - - (For Programmers Only) - - - - - - - - - - -
  62.  
  63. Below is a quick summary of how to go about creating alternate
  64. Chess pieces and Klondike Card decks.  You'll need to use the
  65. Resource Compiler in order to create the final DLL file, and of course
  66. you'll need a collection of bitmap (*.BMP) files that contain your images.
  67.  
  68. For both Chess Pieces and Klondike Cards, you must create a DLL that
  69. contains the bitmaps to be used.  It should also contain a single entry
  70. in the string table, with the name of the set (used by the notebook page).
  71. We recommend alternate Chess Piece files be named CHES????.DLL and Card
  72. Decks be named CARD????.DLL, where you get to choose the last 4 characters
  73. of the filename, but that is not required.  The .DLL extension IS required.
  74.  
  75. So, your RC file should look something like this:
  76.  
  77.  - - - - start of your *.RC file - - - -
  78.  
  79. #define INCL_PM
  80. #include <os2.h>
  81.  
  82. BITMAP  NUMBER1         BITMAP1.BMP
  83. BITMAP  NUMBER2         BITMAP2.BMP
  84. ...  etc. - one for each bitmap ...
  85.  
  86. STRINGTABLE
  87. BEGIN
  88.         0       "This is an alternate set of something."
  89. END
  90.  - - - - end of your *.RC file - - - -
  91.  
  92. The string in the stringtable is used by the pieces/faces page title
  93. to help identify the pieces/faces that you've loaded.
  94.  
  95. The only other thing you need to know are the numbers represented by NUMBER1,
  96. NUMBER2, etc.  Here are the bitmap resource numbers you need to know:
  97.  
  98. For chess, they are:
  99. #define WHITE_PAWN      1
  100. #define WHITE_KNIGHT    2
  101. #define WHITE_BISHOP    3
  102. #define WHITE_ROOK      4
  103. #define WHITE_QUEEN     5
  104. #define WHITE_KING      6
  105. #define BLACK_PAWN      7               /* Black pieces are optional. */
  106. #define BLACK_KNIGHT    8
  107. #define BLACK_BISHOP    9
  108. #define BLACK_ROOK      10
  109. #define BLACK_QUEEN     11
  110. #define BLACK_KING      12
  111.  
  112. These define the 3D pieces used.  The 2D pieces are numbered likewise,
  113. starting at 13 and continuing up to 24.  Right now, the black pieces are
  114. actually generated from the white resources, so you actually only have to
  115. provide bitmaps for the white pieces.  It is (or should be - it currently
  116. doesn't yet work) possible to have black and white pieces shaped
  117. differently, but for now you can just provide the white pieces and we will
  118. shade the black pieces accordingly.  So, for a complete chess set, provide
  119. the 3-D views as resources 1-6, and the 2-D views as resources 13-18.
  120. We do not currently support separate black resources.
  121.  
  122. For Klondike, cards are numbered starting at the 2 of Hearts (card number
  123. 1) up through the Ace of Hearts (card 13), then likewise for Spades
  124. (14-26), Diamonds (27-39), and finally Clubs (40-52).  There are actually
  125. two copies of the card bitmaps stored, one for VGA 16-color and one for 256
  126. color modes.  For the VGA versions, add 4300 to the numbers (4301-4352),
  127. and for the 256-color versions, add 4400 to them (4401-4452).
  128.  
  129. In Klondike, specifying an alternate deck of card faces also allows you to
  130. replace the 9 default card backs as well, if you so desire.  ID numbers of
  131. 4101-4109 are the 9 default card backs for VGA, 4121-4129 are smaller
  132. versions of those card backs, used to place on the buttons.  For higher
  133. resolutions, 4201-4209 represent the actual card backs, 4221-4229 the
  134. smaller versions for buttons.  So, we have 4 sets of bitmaps here.  The
  135. 'full' bitmap for both 16 and 256 colors, and the 'small' bitmaps for use
  136. on the buttons for both color sets.
  137.  
  138. For both Klondike and Chess, failure to specify any particular resource in
  139. your DLL will cause the code to go look for the default bitmap from the EXE
  140. file and will use that instead.  For Klondike, bitmaps are provided for the
  141. 12 face cards and the Ace of Spades.  All other cards are drawn by the
  142. program.  But, if a bitmap is specified for that card, the bitmap will be
  143. used and the drawing routine bypassed.  In chess, if you were to specify a
  144. new default 3-D set without their 2-D equivalents, the standard 2-D set
  145. would be used for that view.
  146.  
  147. In all cases, there are some special considerations when creating your
  148. bitmaps.  First and foremost, is size.  Although any bitmap size should
  149. work, we recommend sticking with our same default sizes.  For Klondike,
  150. larger bitmaps will simply cause the code to slow down greatly whenever the
  151. card is drawn.  For chess, non-standard sizes can cause problems, unless
  152. it is an exact multiple of the default.  (32x64 is the default for 3D,
  153. so 64x128 should also work, but 48x96 may not.  This is a temporary
  154. restriction.)  So use larger bitmaps at your own risk in Klondike, but
  155. for Chess, please be sure to stick with our default sizes, or even multiples
  156. thereof.
  157.  
  158. Recommended sizes for bitmaps are:
  159.  
  160. Klondike:
  161.  VGA Card Face: 36x60 (16 colors)
  162.  Hires Card Face: 54x90 (256 colors)
  163.  Card Back VGA Bitmap: 72x108 (16 colors)
  164.  Card Back VGA Button: 36x54  (16 colors)
  165.  Card Back Hires Bitmap: 72x108 (256 colors)
  166.  Card Back Hires Button: 36x54  (256 colors)
  167.  
  168. Chess:
  169.  3D Pieces: 32x64 (256 colors)
  170.  2D Pieces: 32x32 (256 colors)
  171.  
  172. Another tidbit of info on Chess bitmaps has to do with the background
  173. and the image.  The pixel at the lower-left corner of the bitmap is used to
  174. identify the background color, which is 'seen through' when displaying the
  175. piece.  Please be sure to use that color for all non-piece pixels to get
  176. the proper show-through effect.  Also, the code that determines the region
  177. for the piece (used to click on the piece) assumes the piece is one solid
  178. object, not two separate parts, one floating on top of or sitting beside
  179. the other.  It also doesn't support 'holes' or windows showing through in
  180. the middle of the piece.  So, please be sure your pieces are one solid
  181. object, not a collection of parts.  (You can still create images that appear
  182. to be floating on top of the other parts, as long as they are actually
  183. connected through shadows or other non-background-color pixels.)
  184.  
  185. Also, for best shading effect, we also recommend you generate your pieces to
  186. be black-and-white (with shades of grey) images, not color images.  We allow
  187. the user to control the color of the pieces from the Colors Dialog, so we
  188. do not currently support multi-colored and fixed-colored pieces.
  189.  
  190. That should do it!  That's all the gory details you need to know in order
  191. to create your own card face or chess piece DLL files.  So, start rounding
  192. up your spare bitmaps, and start creating alternate cards and pieces!
  193.  
  194. Finally, if you do generate a nice Chess Piece set or a nice Card Face set,
  195. (without any possible copyright infringements!) then we would ask you toto
  196. make you work available for others to download off of the internet.
  197. We'll be looking for some a nice collections of alternative sets.
  198.  
  199. We hope you enjoy this upgrade, and we look forward to seeing what
  200. kind of alternate card or piece sets that y'all come up with.
  201.  
  202. Cheers,
  203. The General, Robert E. Lee Jr.
  204. Member: The A-Team.
  205.