3 Do YOU want to make your own GOB-files?
4 Then you have to know the GOB format!
5 Here you can find a brief desciption of it.
6 (this is all about how the file is saved)
7 Note: Everything is saved in Intel byteorder,
8 ie the least significant byte first.
13 Offset Size Description
14 0 2 Number of images in the file
17 For I=1 to Number of images
19 Offset Size Description
20 2+I*4 4 Offset in file to image data
25 The above offsets are offsets from the beginning of
26 the file. Each image has it's own image data.
27 The image data is like this:
32 Offset Size Description
33 0 2 Image width in pixels (W)
34 2 2 Image height in pixels (H)
40 The offsets above are offsets in the image data (for each image).
42 The Hotspot x/y of a specific image works like this:
43 Whenever a sprite is drawn at (x, y) with that image,
44 the image is drawn at (x - hotspot x, y - hotspot y),
45 where hotspot x/y are the hotspots for that image.
47 The bitmap data is just a block of colordata for each pixel.
48 It scans the image horisontally left/down. This means that
49 the first byte represents the upper left pixel, the second
50 represents the pixel to the right of that and so on.
51 If the width is 10 pixels then the 10th byte of bitmap data
52 will represent the pixel (0, 1).