Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
 Welcome to our latest new user ltk_tscc ! (Registered 2018-07-15) You are not logged in 
CSDb User Forums


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

Registered: Feb 2015
Posts: 12
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: 182
byte 3 is probably version number as per char pad format
2017-10-03 09:28
Shine

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

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

Registered: Jun 2002
Posts: 1332
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: 182
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: 387
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: 387
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: 12
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
AmiDog
psych858o/MSL/Elysiu..
Matt
Dymo/G★P
rexbeng
pcollins/Excess
Guests online: 42
Top Demos
1 Uncensored  (9.7)
2 Edge of Disgrace  (9.7)
3 Coma Light 13  (9.6)
4 Comaland 100%  (9.6)
5 The Shores of Reflec..  (9.6)
6 Wonderland XII  (9.6)
7 Lunatico  (9.6)
8 We Come in Peace  (9.5)
9 Incoherent Nightmare  (9.5)
10 Wonderland XIII  (9.5)
Top onefile Demos
1 FMX Music Demo  (9.6)
2 Daah, Those Acid Pil..  (9.5)
3 Pandemoniac Part 2 o..  (9.5)
4 Treu Love [reu]  (9.5)
5 Merry Xmas 2017  (9.4)
6 Dawnfall V1.1  (9.4)
7 Arok 20 Invitation  (9.4)
8 In Memoriam BHF  (9.4)
9 Dawnfall  (9.4)
10 Synthesis  (9.4)
Top Groups
1 Oxyron  (9.4)
2 Booze Design  (9.4)
3 Censor Design  (9.4)
4 Finnish Gold  (9.4)
5 Crest  (9.3)
Top Coders
1 Axis  (9.8)
2 CRT  (9.8)
3 Graham  (9.8)
4 Crossbow  (9.8)
5 Trap  (9.8)

Home - Disclaimer
Copyright © No Name 2001-2018
Page generated in: 0.063 sec.