home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD1.mdf / pascal / library / dos / grafik / sprite / composer.doc < prev    next >
Encoding:
Text File  |  1986-04-29  |  4.6 KB  |  92 lines

  1.  
  2.  
  3.                                  COMPOSER.DOC
  4.  
  5.                      TURBO PASCAL SPRITE ARRANGING UTILITY
  6.  
  7.      {   Requires : IBM Compatible Computer, PC or MS.DOS 2.xx, 256 k,  }
  8.      {              and a CGA compatible color card.                    }
  9.  
  10.                      Copyrignt  1986   by Donald L. Pavia
  11.  
  12.           This is a rather unsophisticated utility that I created to do a
  13.       very specific job.  It is presented here without apologies. If you
  14.       can make use of it, so much the better.
  15.  
  16.           Composer.Doc allows you to load any screen you have saved to disk
  17.       or to start with a blank screen (Med Res Graphics, 320 x 200, 4 color).
  18.       You may then load a sprite table, choose a sprite from the table,
  19.       move it around freely by use of the cursor keys. You may place it
  20.       at any allowed postion on the screen. Once you have the location you
  21.       desire, you may fix the sprite in that position and send a string to
  22.       your printer that records : table name, sprite number, col and row.
  23.       You may than choose another sprite from the table move it to a second
  24.       desired position relative to the first one. Once you are sastisfied with
  25.       the location, you may fix the position of the second sprite and send its
  26.       location to the printer. A sprite that has been fixed may be erased by
  27.       calling it up again, placing it directly over the undesired sprite, and
  28.       then "fixing' it again. You may also load other sprite tables at will
  29.       and use them for this same procedure.
  30.  
  31.           I devised the Composer utility to help me arrange sprites for
  32.       drawing complicated chemical structures. With this utility it is quite
  33.       easy to arrange even 10 - 20 sprites into a structure. An example may be
  34.       found in Demo2.Pas.
  35.  
  36.           The utility should also be useful as a guide to arranging animation
  37.       sequences which involve a number of sprites. The chemical animation
  38.       sequence in Demo3 was invented with the help of this utility.
  39.  
  40.           You may load screens from PC Paint if you process them with the
  41.       utility SaveScrn.Com which is also found on this distribution diskette.
  42.       Screens from other Paint programs may be used if you use PC Paint's
  43.       Screen Capture utility and store them in uncompressed form (16 kbytes).
  44.  
  45.           The following commands are available by pressing the indicated key:
  46.  
  47.       (R)ecord   Sends current coordinates of the active sprite to the printer
  48.       (S)et      Fixes the active sprite at the current screen position - A
  49.                    second fix will remove the sprite (xor).
  50.       (C)hoose   Allows you to choose another sprite from the current table.
  51.       (L)oad     Allows you to load a new sprite table.
  52.       (W)rite    Saves the entire screen to disk so that you may come back to
  53.                    work on it later.
  54.       (+) Steps  When active the cursor moves sprites in increments of eight
  55.                    pixels in both x and y directions (Default mode).
  56.       (-) Steps  When active the cursor moves sprites in x increments of four
  57.                    pixels (minimum for x) and y increments of one pixel.
  58.       (X) Exit   Return to DOS, saves nothing.
  59.  
  60.           These commands are found in a menu line at the top of the screen:
  61.  
  62.                  (R)ec  (S)et  (C)h  (L)d  (W)rit  (+)/(-)  (X)
  63.  
  64.           At the bottom of the screen are coordinates of the current sprite.
  65.  
  66.  
  67.  
  68.  
  69.                                         2
  70.  
  71.          When you first start the utility you will be asked three questions:
  72.  
  73.                 Screen File ? :        If you wish to load a saved screen from
  74.                                        disk,  enter its name.  If instead you
  75.                                        press  <ENTER>  you will have a  blank
  76.                                        screen to work with (except for menus).
  77.  
  78.                 TableName ?   :        Enter the filename of the spritetable
  79.                                        you would like to load.
  80.  
  81.                 WhichSprite ? :        Enter the number of the sprite you want
  82.                                        to begin with.
  83.  
  84.          While you are moving sprites around on the screen they are "Put" and
  85.       you will see even their blank edges. However, to allow a subsequent
  86.       erasure, when you (S)et them they are "xor'ed" onto the screen.
  87.       In your own programs you can, of course, do this differently, but some
  88.       choice had to be made here. The main function of this utility is to
  89.       provide sprite coordinates not to actually compose the picture. That
  90.       will be done in your code.
  91.  
  92.