I’m using the Allegro game library to make a tile game. I want the tiles to get exponentially brighter. Unfortunately Allegro does not have a “Brighten” feature. What I then decided to do, was blit a tile to the buffer, then for each pixel that it just blited for that tile, I increased their rgb values and putpixel. The big problem with this is it severely decreased my framerate since it does twice as much work. Is there any way I can achieve this without having a tile bitmap for each tile that is slightly brighter (which would be ridiculous). Thanks
Share
You can use:
draw_lit_sprite
what it does is take a BITMAP and draw it using a “light” that you have to set before by using this function:
set_trans_blender
so basically, what you have to do is:
hope it helps 🙂