The Dink Network

Reply to Re: The state of PNG support in 2023

If you don't have an account, just leave the password field blank.
Username:
Password:
Subject:
Antispam: Enter Dink Smallwood's last name (surname) below.
Formatting: :) :( ;( :P ;) :D >( : :s :O evil cat blood
Bold font Italic font hyperlink Code tags
Message:
 
 
June 2nd 2023, 11:12 AM
peasantmb.gif
yeoldetoast
Peasant They/Them Australia
LOOK UPON MY DEFORMED FACE! 
I use PNGs purely for the sake of saving disk space at high bit-depths. The equivalent PNG of a tilescreen BMP can sometimes be several hundred KBs smaller which adds up significantly if you have multiple tilescreens, and sometimes they can have a bit more shaved off with pngcrush/oxipng etc. It looks like if you change tiles to load with loadBitmapImage(), the extension trick should work without any further intervention, and also enable every other compression format that SDL2_Image supports.

In Yeoldedink, transparent tiles will overlap the previous screen's tiles because I was lazy, while Seth did it properly so it displays white. My testing is limited though, and it may be possible to perform interesting graphical effects with map_tile() by painting over existing screen tiles with semi-transparent ones.