Log In  

Cart #vignette-1 | 2020-08-17 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
4

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.

P#80866 2020-08-16 23:41 ( Edited 2020-08-17 00:21)

1

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 :)

P#80872 2020-08-17 07:18 ( Edited 2020-08-17 07:18)

Sweet! I'm glad it helped you :D Your game is looking great!

P#80887 2020-08-17 17:02

[Please log in to post a comment]

Follow Lexaloffle:        
Generated 2020-11-30 17:49 | 0.018s | 4194k | Q:33