carbontwelve / roguelikedev2019

My attempt at learning roguelike gamedev in 2019
MIT License
2 stars 0 forks source link

Work out font alpha compositing #11

Closed carbontwelve closed 5 years ago

carbontwelve commented 5 years ago

In this PR I update the font file to replace the black background with a transparent one so that the raylib engine can display it against a changing background.

image

After spending a few hours coding this to work on the fly, I decided the best course of action would be to save the updated tileset and replace the arial10x10.png file. I could have more easily done this with photoshop or via this technique shared by larken on Discord.

I have kept the now no-longer-used-code for the compositing in image.go in case I want to create a library out of this in future that can support the different font image types.

Closes #3