Conversation
A rain effect that can be used in levels. Like the clouds shadow or fog visual effects, it has a randomize method.
|
Extracted as-is from the time & weather exploration #1913 |
|
Play this branch at https://play.threadbare.game/branches/endlessm/rain-overlay-fx. (This launches the game from the start, not directly at the change(s) in this pull request.) |
|
|
||
|
|
||
| func randomize() -> void: | ||
| var rain_type := randf() |
There was a problem hiding this comment.
I don't think you need to change this, but you could instead represent this as a Curve, domain and codomain both in the range [0, 1]; then you pick a random number between 0 and 1, index the curve with it, and the amount_ratio is the y-axis value; and the curve could be edited visually.
There was a problem hiding this comment.
Oh that is a great idea!
|
I'll make it draft for now, so I can play with the "visual curve as setting for random values" idea. |
wjt
left a comment
There was a problem hiding this comment.
I think this is great as-is. If you find the Curve approach is worth it (I guess it would make it easier to customise the heaviness curve) then perhaps that could be a follow-up?

A rain effect that can be used in levels. Like the clouds shadow or fog visual effects, it has a randomize method.