Log In  


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

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.

8


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


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


1

This is great, thank you! I'm using it for level transitions in my prototype game


1

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


1

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


1

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.

https://www.lexaloffle.com/bbs/?pid=70990


Nice! That's helpful!



[Please log in to post a comment]