SPR Files


SPR Files General

SPR files are simple text files which contain sprite information, for example bubbles, explosions and splashes.


Each SPR file has only one line of information:

#material   type  width  height  geo  light  tex  extralight  xoff  yoff  zoff
debrisx.mat 0     0.05   0.05    4    0      0    0.0         0.0   0.00  0.0

materialMAT file to use for sprite
typealways seems to equal 0
widthwidth of sprite (float)
heightheight of sprite (float)
geogeometry mode ? (always = 4, except in twinkle.spr where = 3)
lightlighting mode ? (integer, seems to always = 0)
textexture mode ? (seems to always = 0)
extralightlight intensity of sprite above surroundings (float)
xoff, yoff, zoffProbably the offsets of the insertion point

Note: together, width and height seem to determine the size of the sprite. This probably means that each sprite is rectangular in shape, with the 4 corners of the MAT fitted to the sprite's 4 corners. Consider the 3 bubble sprites: each are identical except that they have different sizes.