MMBasic: Knightmare Game


Author Message
LeoNicolas

Guru

Joined: 07/10/2020
Location: Canada
Posts: 562
Posted: 09:38pm 10 Dec 2023      

  matherp said  
Transparent pixels must be RGB(0,0,0,0) and not rgb(BLACK) = rgb(&HFF,0,0,0)
The best way to load a sprite is from a png file. If you view a suitable png file the background will be a grey checkerboard and not black


Yes, it is what I'm doing. On GIMP I'm exporting the image as PNG 8bpc RGBA.

This is the PNG from the project repo:
https://github.com/leonicolas/knightmare-cmm2/blob/main/tiles/objects.png


Edited 2023-12-11 07:41 by LeoNicolas