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.
[Please log in to post a comment]