CPCWiki forum

General Category => Programming => Topic started by: funkheld on 07:58, 23 July 20

Title: what size should the pictures have for the Img2CPC? horizontal: 8,16,24,32,40 ..
Post by: funkheld on 07:58, 23 July 20

Hi good afternoon.

i want to develop sprites for cpctelera. the format should be bmp.
what color depth is suggested and what size should the images have for the Img2CPC?
horizontal: 8,16,24,32,40 .....

what color depth?


greeting

Title: Re: what size should the pictures have for the Img2CPC? horizontal: 8,16,24,32,40 ..
Post by: Norman on 16:52, 23 July 20
You can create sprites in any software and export it to e.g. PNG (other formats might work as well). The image size doesn't have to be a power of two or something, and the limit is the following:
Quote
(1B C ) widthSprite Width in bytes [1-63] (Beware, not in pixels!)
(1B B ) heightSprite Height in bytes (>0)
(from the CPCTelera docs) (https://lronaldo.github.io/cpctelera/files/sprites/cpct_drawSprite-asm.html)
Apart from that, have a look at the cfg/image_conversion.mk file in your CPCTelera project folder, there you'll find a detailed explanation of how Img2CPC works, what parameters it takes etc.

Cheers




Title: Re: what size should the pictures have for the Img2CPC? horizontal: 8,16,24,32,40 ..
Post by: funkheld on 17:00, 23 July 20
hello, thanks for info.


greting
Powered by SMFPacks Menu Editor Mod