Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
You are not logged in - nap
CSDb User Forums


Forums > CSDb Discussions > Details of the SpritePad SPD format
2017-10-03 08:25
awsm

Registered: Feb 2015
Posts: 13
Details of the SpritePad SPD format

I’m currently working on a sprite tool that supports the Spritepad 2.x format.
I was hoping someone could help my understand the internal format better?

Bytes $00, $01, $02
always „SPD“

Byte $03
?? - What does this one do?

Byte $04
The number of sprites

Byte $05
?? - What does this one do?

Bytes $06, $07, $08
Transparent, multicolor 1, multicolor 2

Byte $09
Start of sprite data (63 bytes)
followed by the 64th byte with multicolor/singlecolor (high nibble) and sprite color (low nibble)

I figured that after the last sprite some more data follows, which I expect to contain the animation sequences?
Anything else I should know?

Thanks in advance!
2017-10-03 09:25
oziphantom

Registered: Oct 2014
Posts: 478
byte 3 is probably version number as per char pad format
2017-10-03 09:28
Shine

Registered: Jul 2012
Posts: 326
Maybe Soci could help.

View64 V1.60
...
- Support for Spritepad SPD files
...
2017-10-03 09:42
JackAsser

Registered: Jun 2002
Posts: 1987
Do you now see why open sourcing the tools is a good idea, even if they're hacks in VB or something. :)
2017-10-03 10:31
oziphantom

Registered: Oct 2014
Posts: 478
The CharPad format is documented with the release though, guess since the SpritePad is BETA they haven't..
2017-10-03 20:30
soci

Registered: Sep 2003
Posts: 472
I haven't checked 2.x much as it's not possible to run it on ReactOS (1.8.1 works ok).

Bit 4 is the sprite overlay flag in the last byte, rest is ok.

The animation stuff I haven't researched as it was out of scope for view64. Byte 5 might be related to it.
2017-10-03 21:33
soci

Registered: Sep 2003
Posts: 472
I think this is it:

v1:
1 byte    - 0-3 background
1 byte    - 0-3 multicolour 1
1 byte    - 0-3 multicolour 2

repeated for each sprite:
63 bytes  - sprite data
1 byte    - flags 0-3 colour, 4 overlay, 7 multi

v2:
3 bytes   - magic "SPD"
1 byte    - version (1)
1 byte    - number of sprites - 1
1 byte    - number of animations - 1
1 byte    - 0-3 background
1 byte    - 0-3 multicolour 1
1 byte    - 0-3 multicolour 2

repeated for each sprite:
63 bytes  - sprite data
1 byte    - flags 0-3 colour, 4 overlay, 7 multi

animation settings split into 4 arrays:
n bytes   - animation starts
n bytes   - animation ends
n bytes   - timers
n bytes   - flags 4 ping-pong, 5 overlay, 7 valid
2017-10-04 09:50
awsm

Registered: Feb 2015
Posts: 13
Thank you soci for the analysis, this was very helpful.
RefreshSubscribe to this thread:

You need to be logged in to post in the forum.

Search the forum:
Search   for   in  
All times are CET.
Search CSDb
Advanced
Users Online
iAN CooG/HVSC
Zoid
Zorch
Krill/Plush
Shake/Role
t0m3000/ibex-crew
Exile/Anubis
jmin
Guests online: 295
Top Demos
1 Next Level  (9.8)
2 Mojo  (9.7)
3 Coma Light 13  (9.7)
4 Edge of Disgrace  (9.6)
5 No Bounds  (9.6)
6 Comaland 100%  (9.6)
7 Uncensored  (9.6)
8 The Ghost  (9.6)
9 Wonderland XIV  (9.6)
10 Bromance  (9.6)
Top onefile Demos
1 Party Elk 2  (9.7)
2 Cubic Dream  (9.6)
3 Copper Booze  (9.5)
4 Rainbow Connection  (9.5)
5 TRSAC, Gabber & Pebe..  (9.5)
6 Onscreen 5k  (9.5)
7 Dawnfall V1.1  (9.5)
8 Quadrants  (9.5)
9 Daah, Those Acid Pil..  (9.5)
10 Birth of a Flower  (9.5)
Top Groups
1 Booze Design  (9.3)
2 Nostalgia  (9.3)
3 Oxyron  (9.3)
4 Censor Design  (9.3)
5 Crest  (9.3)
Top Crackers
1 Mr. Z  (9.9)
2 S!R  (9.9)
3 Mr Zero Page  (9.8)
4 Antitrack  (9.8)
5 OTD  (9.8)

Home - Disclaimer
Copyright © No Name 2001-2024
Page generated in: 0.045 sec.