home *** CD-ROM | disk | FTP | other *** search
/ Collection of Hack-Phreak Scene Programs / cleanhpvac.zip / cleanhpvac / CEL2SPR.ZIP / SPRFMT.NFO < prev   
Text File  |  1994-12-29  |  2KB  |  39 lines

  1. Sprite (I usuallly use the extension .spr) File Format
  2. ------------------------------------------------------
  3. By Zoombapup // Code-X // Mage
  4.  
  5. Although we dont actually use this, i needed to code it, to test out some
  6. idea's for my own sprite stuff.. basically it takes an autodesk animator
  7. .cel file (not AAPRO cel files, which are different) and makes a sprite file
  8. format thats suitable for fast sprite routines in Mode-X (unchain modes).
  9.  
  10. Note: the cel file format only allows sprites of upto 320x200 in size, I also
  11.       place the restriction that .cel files must have a width of a multiple 
  12.       divisible by 4, ie 40,44,16,8 etc.. this is so that I know there are
  13.       4 planes worth of data.. in practice this adds little or no time to
  14.       youre sprite routines.. be my guest to change the formats etc..
  15.       
  16. The resulting .spr <my usual ext> file has the following format
  17.  
  18. 1 word  - width of sprite
  19. 1 word  - height of same
  20. Width*Height bytes of sprite image, in the form
  21.     W*H/4 bytes for plane 0
  22.     W*H/4 bytes for plane 1
  23.     W*H/4 bytes for plane 2
  24.     W*H/4 bytes for plane 3
  25.     
  26. Thats about all you should need to get going to create sprites from cel
  27. files for use in mode-x, I assume .cel files are easy enough for you
  28. to use em in mode 13h without any conversion :))
  29.  
  30. This source code and utility is dedicated to the public domain, do with it
  31. as you will.. <as if that ever stopped anyone> :))
  32.  
  33. Seeya..
  34.  
  35. Phil. aka Zoombapup // Code-X // M.a.g.e
  36. 28-12-94
  37.  
  38.     
  39.