64x64 sprite , 16 color with pal in the basic?

All aspects of programming on the Commander X16.
hstubbs3
Posts: 72
Joined: Thu Oct 26, 2023 12:14 pm

Re: 64x64 sprite , 16 color with pal in the basic?

Post by hstubbs3 »

Funkheld,

I worked up a quick Python script that tests which palette offset to use and then converts a RGBA PNG ..
https://github.com/hstubbs3/CommanderX1 ... png_to_bin

the png I started with was 128x64 ... random shot of spider mastermind sculpture from DOOM that I delete background from to make alpha..

Image


it so happened to choose palette offset 1 (greyscale) for this image but you can probably sus out what its doing or force it around..

this just spits text I could copy into my assembler code to make the _very_ quick/dirty test PRG by copying the sprite data to VRAM and creating 2 sprites - one for the left side one for the right side (because the image I started with was 128x64 )

but definitely seemed to work OK ...
Image

Hope that gives you a best. Catch ya round.
funkheld
Posts: 322
Joined: Mon Feb 26, 2024 11:11 am

Re: 64x64 sprite , 16 color with pal in the basic?

Post by funkheld »

Hi good afternoon.

That's a great, great thing with Pyhton
Thanks.
greeting
Post Reply