home *** CD-ROM | disk | FTP | other *** search
/ Más de 2,500 Juegos / CD1.iso / ZIPDAT / 0606 / 0606.ZIP / FACTORY.DOC < prev    next >
Encoding:
Text File  |  1996-04-30  |  25.2 KB  |  517 lines

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