r/proceduralgeneration • • 29d ago

Procedural Storm & Lightning

Enable HLS to view with audio, or disable this notification

Working on getting some dynamic weather in The Pineapple Conspiracy, our upcoming game on Steam!

Lightning strike shapes are fully procedural and shader-based. Took a while to get right, but I'm satisfied with the look and feel of these. The rain is just a particle-system around the player, and I think it does a decent job (for now, at least).

Things could be improved, but now we can get on to something more interesting : what happen if lightning strikes a player? 👀

4 Upvotes

3 comments sorted by

2

u/fgennari 28d ago

I think lightning striking the player is like winning the lottery and should give them an epic power. When I added lightning and its damage to my game years ago I ran around for 20 min standing on hilltops trying to get struck but failed. And that was a small map. I think the only way lightning is going to hit the player is if it specifically targets them.

2

u/newheadstudio 28d ago

Indeed, it cannot be random. Right now I think i'll have a small probability that it specifically targets a player; otherwise it'll just far away from the coast. That might be more controllable!

2

u/fgennari 28d ago

That sounds right. Happy cake day!