home *** CD-ROM | disk | FTP | other *** search
/ 500 Game Surplus / XSurplus.iso / 252 / FACTORY.DOC < prev    next >
Text File  |  1995-05-31  |  25KB  |  499 lines

  1.  
  2.                                 Tile Factory
  3.                           Version 1.1  June 1, 1995
  4.  
  5.                                 Nels Anderson
  6.                               585 Edmands Road
  7.                           Framingham, MA 01701-3088
  8.                                     U.S.A.
  9.  
  10.  
  11.  
  12. USING TILE FACTORY
  13.  
  14. The Tile Factory utility allows you to make your own sets of tiles or
  15. modify sets made by others. These tiles can be used with my solitaire
  16. games Dragons Bane: Mah Jongg II and Second Guess. The editor supports
  17. both SVGA (256 color mode) and standard VGA (16 color mode). You can
  18. recognize tile sets by the file extension .TL (for 256 color tiles) and
  19. .TLV (for 16 color tiles). Please note that these are not compatible with
  20. my earlier EGA tile games and the tiles from those games are not
  21. compatible with the VGA/SVGA games though they can be loaded, edited and
  22. saved in the new format using Tile Factory.
  23.  
  24. The utility is similar to many paint programs with which you might be
  25. familiar, though because of its specialized nature it includes less
  26. functions. Tile Factory requires a mouse and VGA or SuperVGA graphics
  27. (640x480, 256 colors).
  28.  
  29. The best thing to do is get Tile Factory running and experiment. You'll
  30. find designing good tiles is quite a challenge, but it will allow you to
  31. have your own personalized version of the game when you're done.
  32.  
  33. You might want to look at other tile sets to see some of the techniques
  34. used. Because the drawing area is so small you often have to trick the eye
  35. to get the effect you want. One thing to avoid is changing the sloping
  36. sides of the tiles. Generally this will ruin the 3D effect and simply
  37. doesn't look good when tiles are stacked up. The little triangular areas
  38. in the upper-left and lower-right corners should also be left alone as
  39. these are needed to make that portion of the tile see through when used
  40. in the game.
  41.  
  42. HOW TILES ARE STORED ON DISK
  43.  
  44. First, some basics about working with tile sets. A Mah Jongg tile set
  45. includes 42 different tiles. Eight of them are in the "wild card" suits
  46. (normally the flowers and seasons suits) where any tile in the suit
  47. matches any other. The other 34 tiles use the standard matching rule where
  48. there are four of each tile on the board and the tiles must be matched
  49. exactly to be removed. You'll want to keep the matching rules in mind when
  50. designing tiles for compatibility with Dragons Bane: Mah Jongg II.
  51.  
  52. Second Guess only needs 36 tiles. Tiles 1 through 34 are used plus tiles
  53. 35 and 39.
  54.  
  55. All 42 tiles are stored in a single disk file. You'll need to know how the
  56. tiles are numbered so that you store your new tiles in the proper place.
  57. For reference, the standard Mah Jongg tile set is numbered as follows:
  58.  
  59.             Tiles 1 - 9:  suit of dots
  60.                 Tile 10:  white dragon
  61.           Tiles 11 - 19:  suit of bamboo
  62.                 Tile 20:  green dragon
  63.           Tiles 21 - 29:  suit of characters
  64.                 Tile 30:  red dragon
  65.           Tiles 31 - 34:  suit of winds
  66.           Tiles 35 - 38:  suit of seasons
  67.           Tiles 39 - 42:  suit of flowers
  68.  
  69. GETTING STARTED
  70.  
  71. Start up "FACTORY.EXE" by typing "factory" on the command line. You can
  72. include the name of a tile set file on the command line and that tile set
  73. will be immediately loaded once Tile Factory starts up. Note the drawing
  74. area on the left and the tile set display on the right. If you did not
  75. include a tile set name on the command line the tile set displayed will be
  76. blank, but as soon as you read in a tile set it will be shown.
  77.  
  78. The editor will automatically start up in the best available graphics mode.
  79. If Tile Factory can run in 256 color mode it will, otherwise it will run
  80. in standard 16 color VGA mode. If you wish you can force the editor to run
  81. in 16 color mode by using a command line option. To force 16 color VGA
  82. start up the editor with this command:
  83.  
  84. FACTORY -16
  85.  
  86. Please note that the space and dash are required.
  87.  
  88. Once the editor is running, along the top of the screen are a series of
  89. menus you can select. If you're using a mouse you just need to point to
  90. the word you want and click. If using the keyboard you can use the
  91. functions keys (each menu is numbered sequentially so Help is F1, Info is
  92. F2, etc.). You can also select menus by holding down the Alt key while
  93. also hitting the first letter of the menu name; for example, you'd hit
  94. Alt-F to open the File menu.
  95.  
  96. DRAWING
  97.  
  98. Normal drawing (single dot at a time) can be done with the keyboard or
  99. mouse. Using the mouse, select the desired color by pointing at the color
  100. chart and clicking. Then to draw just point at the drawing area and click
  101. on each spot where you want to draw.
  102.  
  103. Because it's common to switch back and forth between two colors, Tile
  104. Factory remembers the last color you've selected as well as the current
  105. one. Use the right mouse button at any time to toggle back and forth
  106. between the current and previous drawing color.
  107.  
  108. There are a few basic drawing shapes available in addition to the simple
  109. dot. Under the drawing area is a set of push buttons where you can select
  110. dots, line, circle, rectangle, filled circle or box. Click on the desired
  111. button and you'll see it push in to confirm proper selection.
  112.  
  113. When using the line or rectangles, move the mouse cursor to one end
  114. (corner) and hold down the mouse button. Then move to the other end
  115. (corner) and release the button. When using the circles you start in the
  116. center and pull away until the circle is the desired size. You can pull in
  117. any direction since the circle is symmetrical.
  118.  
  119. The seventh drawing tool is a special one. It allows you to outline an
  120. area and then change all pixels within that area that are a specific color
  121. into a different color. Select this tool and then outline a rectangle just
  122. as you would with the rectangle drawing tool. When the area you want is
  123. outlined, release the mouse button.  You'll be prompted to select the
  124. color you want to change; point anywhere you want on the screen and click
  125. when pointing to the desired color. Then you'll be prompted for the color
  126. you want to change to; again you can point anywhere on the screen and
  127. click. Now the selected color will change.
  128.  
  129. The eighth function is fill. Using this function you can fill in an area
  130. of any shape with the currently selected color. When you select fill the
  131. cursor will change to the word "FILL" with a little target to the upper
  132. left. Position the target in the area you want filled and click to fill.
  133. Using the keyboard you can fill by moving the keyboard cursor within the
  134. area to be filled and hitting the Z key.
  135.  
  136. Fill can also use a range of colors instead of just a single color.
  137. Instead of left clicking, click the center button (or both buttons if you
  138. have a two button mouse). You'll be prompted for a range of colors similar
  139. to the shade function and the area will be filled with randomly selected
  140. colors from the range you chose.
  141.  
  142. The ninth function is text entry. Because of the small size of the tiles
  143. only two simple fonts are used. The smaller font is 5 pixels high and the
  144. larger one is 7 pixels high. Several different widths are available and
  145. Tile Factory will try to use the widest characters possible given the space
  146. available. Depending on whether you have border set on or off (from the
  147. Text menu) the letters may go right to the edge of the tile face or a one
  148. pixel border will be enforced.
  149.  
  150. To enter text, position the mouse to the upper left corner of where the
  151. text should start (if using the keyboard, use the arrow keys to position
  152. the keyboard cursor and then hit the L key). You'll then be prompted to
  153. enter the text you want. Lower case letters are not available but capital
  154. letters and most other characters can be used.  If the text you enter is
  155. too much to fit in the available space you'll be told how many pixels too
  156. wide it is and you can then adjust accordingly.
  157.  
  158. When within the drawing area, the mouse cursor snaps to the center of each
  159. pixel when moving around or drawing dots, lines or rectangles. If you
  160. prefer that the cursor move smoothly you can turn off the snap function by
  161. using Snap Cursor on/off under the Options menu. For most drawing you'll
  162. probably find the snap cursor useful as you'll be able to more clearly
  163. tell what pixel is being pointed to.
  164.  
  165. Some people find using the keyboard useful for some drawing situations. To
  166. draw with the keyboard move the cursor around with the arrow keys and hit
  167. space when you want to draw a dot. If you hold down the space bar a line
  168. of dots will be drawn in the direction of the last arrow key used.
  169.  
  170. When drawing the position of the mouse cursor is shown just below the
  171. color selection area. If you wish to see the position of the keyboard
  172. cursor instead, just move the mouse cursor outside the drawing area and
  173. move the keyboard cursor with the arrow keys.
  174.  
  175. COLORS IN 256 COLOR SVGA MODE
  176.  
  177. A color bar is shown in the middle of the screen. To select a color just
  178. move the mouse over it and click. In SVGA mode only 32 colors are shown at
  179. a time out of the 256 colors available. The remaining colors can be shown
  180. by clicking on the arrows at the top and bottom of the color bar.
  181.  
  182. When you select a color its number is displayed at the bottom of the color
  183. bar. Because some colors are so similar it's often easier to reference the
  184. number than to try to recognize a color by appearance.
  185.  
  186. In addition, the color and its composition is shown below the drawing.
  187. Each color is made up of a combination of red, green and blue and its
  188. makeup is shown here. Each color can have brightness values of 0 through
  189. 63. By clicking on the arrows over and under the individual colors you can
  190. change their values. Remember, though, that when you do this you change
  191. every place that color is used in your tile set. You will see the change
  192. take place immediately. Any changes you make to the color palette will be
  193. saved with the tile set the next time you save a tile.
  194.  
  195. Colors numbered 0 through 23 cannot be changed as they are used for game
  196. menus, etc. Color 16 is special; it is used for the "see through" corners
  197. of the tiles. You should avoid using colors 16 through 23.
  198.  
  199. When running 256 color mode you can load 16 color tile sets (files ending
  200. in .TLV). They will load correctly but you will not be able to save them
  201. in 16 color mode. You can, however, convert the entire set to 256 colors
  202. and save it as a 256 color tile set (a file ending in .TL).
  203.  
  204. COLORS IN 16 COLOR VGA MODE
  205.  
  206. As with 256 color mode a color bar is shown in the center of the screen.
  207. To select a drawing color just point to it and click the mouse. All 16
  208. available colors are shown at all times.
  209.  
  210. Unlike SVGA mode you cannot change the available colors. You also do not
  211. have to worry about the see through color or other special colors. You
  212. should, however, be sure to leave the white triangles in the corners
  213. unchanged as these will become see through when the tiles are used in
  214. the game.
  215.  
  216. When running 16 color mode you can load 256 color tile sets (files ending
  217. in .TL) and they will automatically be converted to 16 colors. How well
  218. the conversion works varies but you will at least get a usable tile set
  219. that you can further touch up and save as a 16 color file.
  220.  
  221. MENUS
  222.  
  223. Many functions have keyboard shortcuts that are shown in parentheses after
  224. the name of the function. You can use these keys to access functions
  225. directly without going through the menus. A list of all keyboard shortcuts
  226. is at the end of this document.
  227.  
  228. If using a mouse you just point to the function you want and click. If
  229. using the keyboard you can select menus using the function keys or the Alt
  230. key plus the first letter of the menu name. Within the menus you can
  231. select functions by number or by using the arrow keys to move to the
  232. function you want and the Enter key to select it.
  233.  
  234. Most of the functions available from the menu are pretty self-explanatory,
  235. but let's cover each menu and function in detail.
  236.  
  237. HELP
  238.  
  239. Under the help function is an abbreviated set of instructions for using
  240. Tile Factory. To move from one help screen to another click on the Next
  241. or Prev (previous) box. To quit help click on the Quit box. You can also
  242. use the letters shown in red for next, quit or previous.
  243.  
  244. FILE MENU
  245.  
  246. This is the menu used for disk access. The first choice allows you to
  247. clear any current drawing and start a new tile. You'll be prompted to make
  248. sure you mean to do this.
  249.  
  250. Save Tile allows you to save your work into a tile set file. You'll first
  251. be prompted for the name of the file that your tile should become part of.
  252. If you are creating a new tile set you must type in the file name
  253. otherwise you can just click on the file name in the list. If the file you
  254. choose is different from the last one you read in, the new file will be
  255. read in and displayed on the right side of the screen; if creating a brand
  256. new set the right side of the screen will be blank. Finally, you must
  257. choose what position your tile will take. If you're editing an existing
  258. tile and just want to put it back in the same position you just need to
  259. click on OK. Otherwise you can either enter the new position number from
  260. the keyboard or you can point and click on the tile on the right side of
  261. the screen you wish to replace.
  262.  
  263. Read Tile Set allows you to read tiles from the disk. The entire tile set
  264. is always loaded and displayed on the right side of the screen. If the set
  265. does not contain all 42 tiles blanks will be shown at some positions.
  266.  
  267. The Load Tile function is only needed if you don't have a mouse. It allows
  268. you to transfer a single tile from the tile set shown on the right side of
  269. the screen into the editor. When prompted enter either the number of the
  270. tile you want to edit or hit the Esc key to abort.
  271.  
  272. Import .PCX Picture gives you the ability to load tile faces from PCX
  273. drawings, such as you might create with a full-featured paint program or
  274. with a scanner. Note that this feature may not work with all .PCX files.
  275. It may be helpful to convert images to 640x480, 256 color images with an
  276. external utility before attempting to load them into Tile Factory.
  277.  
  278. If running in SVGA mode Tile Factory gives you three options on how the
  279. color palette is used when importing a .PCX picture. If adding the image
  280. to an existing tile set you should choose "Current palette" as this will
  281. prevent your existing tiles from changing colors. This choice may cause
  282. the picture to not look right, though, as its colors will have to be
  283. changed to match those available in the current palette.
  284.  
  285. If starting a new tile set you should choose "Palette from picture". This
  286. will load the picture in its original colors and change the current color
  287. palette to match.
  288.  
  289. The third choice is a combination of the first two. Choosing "Combined
  290. palette" prevents any of your current tiles from changing colors while
  291. using as many of the original colors as possible from the imported
  292. picture. This will result in changes to your current palette, but only to
  293. colors that had not been used in any tiles.
  294.  
  295. When you select import .PCX picture, the normal file selection box will
  296. pop up and you should select the PCX file you want. The picture will load
  297. and a square cursor will appear. Use the cursor to surround the portion of
  298. the picture you want (the square is exactly the size of a tile face) and
  299. click. You'll be switched back to the editing screen with the PCX image
  300. now on the tile face. If you're using the keyboard you can use the arrow
  301. keys to move the cursor around and the Enter key to select. Hit Esc to
  302. abort.
  303.  
  304. When you're done with your tile set, use the add name function. The name
  305. you enter will be displayed in the Info screen when playing Second Guess
  306. and at the top of the screen when viewing the complete tile set. The name
  307. for the currently loaded tile set is also shown at the right bottom of the
  308. Tile Factory screen.
  309.  
  310. At some point you may wish to rearrange the order of the tiles in the set.
  311. You can use the swap two tiles function to swap the positions of any two
  312. tiles in the currently displayed set. When prompted, select each of the
  313. tiles that you want swapped either by entering the tile number or by using
  314. the mouse to point and click. If you change your mind hit the Esc key or
  315. select "No" when asked to confirm.
  316.  
  317. Tile sets are normal files that can be copied, moved, deleted, etc. like
  318. any other file. You can, if you wish, also delete tile sets that are no
  319. longer needed from the file menu using the Delete Tile Set function.
  320.  
  321. If using 256 color mode you can load and save the current color palette
  322. for use in other tile sets using functions from the File menu.
  323.  
  324. EDIT MENU
  325.  
  326. This menu allows you to do special editing functions on the current tile.
  327. These functions are described below.
  328.  
  329. The flip functions let you reverse the image left/right or top/bottom.
  330. Hitting the same function a second time will flip the image back the way
  331. it originally was.
  332.  
  333. The shift functions move the image in the specified direction by one
  334. pixel. This is handy if, for example, you want to center an image.
  335.  
  336. Sometimes when drawing you'll want to match a color already in the picture.
  337. The Get Color function lets you select your current drawing color from
  338. within the drawing rather than from within the color bar.  When you select
  339. this function the cursor will change to a cross plus the word "get". Move
  340. the cross over the color you want and click to select the new active color.
  341.  
  342. The Copy function lets you outline and copy one part of your picture to
  343. another part. After selecting Copy move the cursor to the upper left
  344. corner of the area you want to copy. Then hold down the left mouse button
  345. and move to the lower right corner. When you release the button the area
  346. inside the rectangle will be saved. You can then use the Paste function to
  347. copy the saved image back into the tile or into another tile. You can use
  348. Paste as many times as you wish.
  349.  
  350. The Shade function lets you take advantage of the SVGA color palette.
  351. After selecting Shade, position the cursor at the upper left corner of the
  352. area you want to shade then hold down the left mouse button while moving
  353. to the lower right corner. You'll then select which color within this area
  354. you want changed. Finally, you'll select the range of colors you wish the
  355. area to be changed to. For example, if you select first color 24 and then
  356. color 28 the area will be filled from the top with color 24 gradually
  357. changing to color 28 at the bottom.
  358.  
  359. Note that the order you select the color range effects the way the shading
  360. is done. Shading always starts at the top of the selected rectangle with
  361. the first selected color. You can thus control whether the shading will go
  362. from dark to light or light to dark.
  363.  
  364. If you don't want shading but just randomly selected colors within a
  365. specific range use fill instead.
  366.  
  367. Undo is also available from this menu. Using this will restore the tile as
  368. it was before the most recent change. The image that will be restored is
  369. shown along the left side of the screen directly below the current image.
  370. You can also undo by clicking directly on the previous image, or on any
  371. other image that is below it. Up to five previous images are kept along
  372. the left side of the screen.
  373.  
  374. OPTIONS MENU
  375.  
  376. This menu allows you to select options that affect how other functions
  377. work. Each option can be toggled on or off. If an option is currently on a
  378. check mark will be shown to the right of the option name.
  379.  
  380. When Tile Factory starts up it is set with snap cursor on. In this mode
  381. the mouse cursor jumps to the center of each pixel when in the drawing
  382. area, which ensures that you know exactly what pixel you're drawing. If
  383. you prefer you can turn this mode off and the cursor will then move
  384. smoothly.
  385.  
  386. When drawing with the dot tool (freehand drawing) you can have your
  387. drawing mirrored left to right, top to bottom, or both. Toggle the
  388. appropriate mirror settings on and off to fit your needs.
  389.  
  390. TEXT MENU
  391.  
  392. The first three options let you choose whether text you enter will be left
  393. justified, right justified or centered. A check mark will indicate which
  394. choice is currently selected.
  395.  
  396. Two fonts are available, the smaller one being 5x5 pixels and the larger
  397. 5x7 pixels. Choose the font you want from this menu. The currently
  398. selected font will be indicated with a check mark.
  399.  
  400. When entering text using the text tool you have a choice on how close to
  401. the edge the text will be entered. Text usually looks best if there is a
  402. border around it at the edge of the tile face. However, if you have a long
  403. word that you wish to display you might want to disable this border to
  404. make the text fit. Try entering text first with the border enabled, but if
  405. you only need one or two more pixels to make it fit you can turn the
  406. border off and try again.
  407.  
  408. SPECIAL MENU
  409.  
  410. This menu accesses special functions that will not be used often.
  411.  
  412. There are many tile sets available for my older tile solitaire games. The
  413. tiles were drawn in a 640x350 pixel, 16 color mode. The Special menu
  414. allows you to load and convert these tiles to VGA or SVGA format.
  415.  
  416. The Load EGA Tiles function simply loads an old style tile set. These
  417. tiles are 40x40 pixels whereas Tile Factory tiles are 40x55, so an area at
  418. the top of the tile is filled in. Tile Factory attempts to fill with a
  419. color that will match the rest of the tile.
  420.  
  421. If simply loading the tile sets does not produce a pleasing result two
  422. options are available to modify tiles. The first simply centers the tile
  423. face image in the new, larger tile. In many cases this is all that's
  424. needed to use an older tile set.
  425.  
  426. However, the aspect ratio of old and new tile sets is quite different so
  427. many old tile sets look "squished" when loaded into Tile Factory. An
  428. option is available to scale old tiles to the new format. This will
  429. correct the aspect ratio, but quite often you'll need to do additional
  430. editing to make the tiles look good.
  431.  
  432. Note that the center and scale functions work on the entire tile set as
  433. currently displayed on the right side of the screen.
  434.  
  435. With so many colors available it can be hard to keep track of which ones
  436. you've actually used. The Color Usage Graph function displays a chart of
  437. all colors with line height indicating frequency of use for each color.
  438. You can move the cursor into the chart to get exact values for colors of
  439. interest. The color number, what the color looks like, and how often it is
  440. used in your tile set are then shown. You can also use the chart to select
  441. a new color for drawing. Point to the color you want and click. The cursor
  442. will move to the Done button; click again to close the window and the new
  443. color will be selected.
  444.  
  445. Share Your Creations!
  446.  
  447. If you develop any tile sets you'd like to share please upload them to the
  448. support BBS (Xevious: 508-788-6951) or mail them to the author on a
  449. diskette. I'd suggest that you include a text file describing your tile
  450. set. If you do include a text file give it the same basic file name as the
  451. tile set file; for example, the tile set MYTILES.TL would have a text file
  452. MYTILES.TXT. You should also include your name in both the tile set itself
  453. and in the text file. I'm looking forward to seeing what you come up with!
  454.  
  455. KEYBOARD SHORTCUTS
  456.  
  457. Many Tile Factory functions can be accessed from the keyboard. Below is the
  458. complete list of keys and their function.
  459.  
  460.                    Key  Function
  461.           ------------  ------------------------------------
  462.            F1 or Alt-H  Help
  463.            F2 or Alt-I  Info
  464.            F3 or Alt-F  File Menu
  465.            F4 or Alt-E  Edit Menu
  466.            F5 or Alt-O  Options Menu
  467.            F6 or Alt-T  Text Menu
  468.            F7 or Alt-S  Special Menu
  469.           F10 or Alt-Q  Quit (exit Tile Factory)
  470.  
  471.                      X  New (clear tile)
  472.                      S  Save Tile
  473.                      R  Read Tile Set
  474.                  Alt-L  Load Tile Into Editor
  475.                      P  Import .PCX Picture
  476.                      N  Add Name To File
  477.                  Alt-D  Delete Tile Set
  478.                      Q  Quit (exit Tile Factory)
  479.  
  480.                      <  Flip left to right
  481.                      >  Flip top to bottom
  482.                      -  Shift Right
  483.                      +  Shift Left
  484.                      ^  Shift Up
  485.                      |  Shift Down
  486.                      G  Get Color
  487.                      U  Undo
  488.                      L  Use the letter function (enter text)
  489.                      Z  Use the fill function
  490.  
  491.                      #  Snap Cursor on/off
  492.                      M  Mirroring left/right on/off
  493.                  Alt-M  Mirroring top/bottom on/off
  494.                      T  Text Border on/off
  495.  
  496.                                   - - - - -
  497.  
  498.    Tile Factory is copyright 1995 by Nels Anderson.  All rights reserved.
  499.