Log In  

Cart #packbat_rain_gif-7 | 2020-04-25 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

No big story here - I'm a big fan of the bot rain.gif and wanted to make something in PICO-8 that would produce similar images. Is configured to loop seamlessly for 8-second gifs (PICO-8's default), but the parameter should be obvious and easy to change. Rain noise is implemented in a fairly basic form (the point of the cart is generating GIFs, not a full simulation) and disabled by default.

Currently has 16 palettes, all chosen to have reasonably good contrast ratio - should be clear how to edit those as well.


Edit 2019-12-15: Replaced green palettes, tweaked drop rendering, added more drop pattern randomization, added controls:

←/→ = change palette

[x]/[o] = reroll drops

The number that displays on the left is proportional to how many raindrops there are, the number that displays on the right is the palette index.

Edit 2020-01-18: Added some basic rain sounds with modes for light, medium, and heavy rain - option is stored in cart data and can be accessed via the menu when you first load or through the pause menu. Should be moderately quiet.

(9:29 p.m. UTC-05:00: Did a small tweak to the first-load menu to indicate how to change the setting.)

Edit 2020-01-22: Added granular volume control. ↑/↓ to adjust.

Edit 2020-04-06: Added pause menu items to (a) reroll both palette and rain pattern together and (b) automatically wait the loop length and save a GIF that will loop correctly.

Edit 2020-04-25: New graphical effect - raindrops now vary in length and in contrast with sky, which produces a bit of an illusion of depth.

P#70455 2019-12-01 17:11 ( Edited 2020-04-25 18:32)

:: dw817
1

Nice ! Rain effects was one of the first things I did in Pico on my Notepad release.

https://www.lexaloffle.com/bbs/?tid=27743

P#70456 2019-12-01 17:14
:: dw817

Ah, you updated it, @packbat. You might add lightning. What I did simply was flip the BLACK palette to white and back again, quickly twice about every 5-7 seconds.

P#71039 2019-12-15 17:04

Interesting thought!

...I could do that. Rather than flipping between black and white palettes, I might add a set of lightning palettes and use that for the lightning strikes.

I'll ponder that one.

P#71046 2019-12-15 20:34

Right - here's a version with a lightning effect. Photosensitive epilepsy warning on the lightning effect. ↑/↓ to toggle lightning on or off.

Cart #packbat_rain_gif_lightning-0 | 2019-12-15 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

Thank you for the note about two quick flashes - I didn't realize that'd be critical but it seems to be.

P#71047 2019-12-15 21:30
:: dw817

Cart #segizefuji-0 | 2019-12-16 | Code ▽ | Embed ▽ | No License

Hi Packbat. Here is using the rain method from one of my earlier carts.

Look at the timing. Notice that when the lightning flashes you don't hear the thunder until a short time later. This is actually correct for storms.

You don't hear the thunder the moment lightning strikes (unless you're in a dangerous position). :)

No, normally you see the lightning flash and a few seconds after that, then you hear the thunder.

P#71065 2019-12-16 19:10
1

I don't want to be curt, but please stop trying to help. The purpose of this project was to make looping gifs of rain effects, and it doesn't need sound effects to do that, and while I am grateful for your comment about making a double flash for a lightning strike effect, it didn't need lightning effects to do what I built it for either. It has the CC license on it for anyone who wants to extend it, but I'm not interested in continuing work on this in the foreseeable future - it's done its purpose and I'm done with it.

P#71067 2019-12-16 20:11
:: dw817

Wow, sorry @packbat. Usually with me I get something in my head and I tend to take it to the limit. That's fine. Your cart is done. It's good. I'm still working here on something else so will leave you to it.

P#71071 2019-12-16 21:47

[Please log in to post a comment]

Follow Lexaloffle:        
Generated 2020-07-02 15:57 | 0.075s | 2097k | Q:67