Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
 Welcome to our latest new user Harvey ! (Registered 2024-11-25) 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: 490
byte 3 is probably version number as per char pad format
2017-10-03 09:28
Shine

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

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

Registered: Jun 2002
Posts: 2014
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: 490
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: 479
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: 479
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
csabanw
zscs
Acidchild/Padua
Didi/Laxity
CreaMD/React
psych
Freeze/Blazon
iAN CooG/HVSC
Visage/Lethargy
Mason/Unicess
rexbeng
Guests online: 99
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Coma Light 13  (9.7)
4 Edge of Disgrace  (9.6)
5 Mojo  (9.6)
6 What Is The Matrix 2  (9.6)
7 The Demo Coder  (9.6)
8 Uncensored  (9.6)
9 Wonderland XIV  (9.6)
10 Comaland 100%  (9.6)
Top onefile Demos
1 Layers  (9.6)
2 Party Elk 2  (9.6)
3 Cubic Dream  (9.6)
4 Copper Booze  (9.6)
5 Libertongo  (9.5)
6 Rainbow Connection  (9.5)
7 Onscreen 5k  (9.5)
8 Morph  (9.5)
9 Dawnfall V1.1  (9.5)
10 It's More Fun to Com..  (9.5)
Top Groups
1 Performers  (9.3)
2 Booze Design  (9.3)
3 Oxyron  (9.3)
4 Nostalgia  (9.3)
5 Triad  (9.2)
Top Fullscreen Graphicians
1 Joe  (9.7)
2 Veto  (9.6)
3 Facet  (9.6)
4 The Sarge  (9.6)
5 Carrion  (9.5)

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