Just a simple vignette fade effect (like on loony tunes cartoons, that circular fade in/out).
Use X to open the vignette, Z to close it.
Arrow keys move the smiley face.
Can also be used to create a fake flashlight effect.
The code is very simple and commented, so it can be easily modified/repurposed.
The vignette works with a sprite that you can customize (to create other shapes).
Mine uses 4 sprite slots on the sprite sheet, but you could easily make it work with only one if you really need to save sprites. Just remember to also customize the draw_vignette function to make it work with different sized sprites.


Hey! Thanks for this, was just going to do something similar, this works great! :)
Working on cleaning up an old game, so this makes it a lot nicer :)



Wow that game looks fun! :D let me know when you release it, so I can try it out!


interested people should check out this excellent exploration of techniques: https://www.lexaloffle.com/bbs/?tid=46286


That is true, @merwok. It was indeed an interest back then most of us participated in the conversation.
I did some work along this line 3-years ago, @profpatonildo, just using the circ()
command.
[Please log in to post a comment]