Rain, Snow and Wind Effects
Weather is the cheapest way to make a level feel alive, and one of the easiest ways to drop frames on a phone. Here is how to get the first without the second.

Key takeaways
- Draw weather in a box that follows the camera, recycle particles instead of creating them, and cap counts for phones.
- One shared wind value should drive rain angle, snow drift, trees, smoke and, if you want, the player.
- Weather changes should take 10 to 30 seconds, include sound and light, and lightning flashes must stay within safe flashing limits.
Rain, snow and wind in a game are mostly particle effects layered over the scene: short streaks for rain, slow drifting flakes for snow, and a shared wind value that tilts and pushes both. To make them look good and run well on phones, spawn particles only in a box around the camera and recycle them, keep counts in the low hundreds, add splashes, sound and a light change for mood, and blend weather in over 10 to 30 seconds. Gameplay effects such as slippery ground or wind pushing a jump are optional and should be readable.
What weather does for a game
Weather changes mood more than almost any other single effect. The same forest reads as cozy in light snow, tense in a thunderstorm and lonely in drizzle. It also gives a level time: a storm rolling in tells the player something is coming. And it can change play, if you want it to: wind that carries jumps further, rain that puts out torches, snow that slows movement and shows footprints. Decide early whether your weather is mood only or gameplay, because gameplay weather needs to be telegraphed and tested like any other mechanic.
Rain
- Streaks, not drops. Rain reads as short lines stretched along the direction of fall, roughly 10 to 25 pixels long in 2D, semi-transparent (30 to 60 percent opacity), slightly lighter than the background.
- Speed: fast, crossing the screen in about 0.3 to 0.6 seconds. Slow rain looks like falling glitter.
- Counts: on phones, 150 to 400 streaks on screen for heavy rain in 2D; light rain needs 50 to 100. Desktop can go higher, but more is rarely better.
- Layers: two or three layers at different sizes, speeds and opacities fake depth cheaply. Thin, faint and slow behind; longer, brighter and fast in front.
- Splashes: instead of colliding each drop with the ground (expensive), spawn small splash sprites at random visible points on the ground, at a rate tied to rain intensity. Nobody tracks which drop made which splash.
- Surfaces: darken the ground slightly, add a few puddle reflections or ripples in 3D if the budget allows.
Snow
- Slow and wandering. Flakes fall at a fraction of rain speed, taking 4 to 8 seconds to cross the screen, with a sideways sway from a sine wave (each flake with its own phase and a sway of 10 to 30 pixels).
- Counts: 100 to 300 on phones. Vary size (2 to 6 pixels) and opacity; bigger flakes fall slightly faster and closer to the camera.
- Gentle rotation for larger flakes, none for small ones.
- Settling: real accumulation is expensive. Fake it by blending a snow texture or tint onto upward-facing surfaces over a minute or two, and by leaving footprint decals behind the player.
- Breath and sound: a faint breath puff from characters and the muffled hush of a quieter ambient track sell snow more than extra flakes.
Wind: one value that moves everything
Keep one wind value for the level: a direction and a strength, plus a gust value that rises and falls. Everything reads it:
- Rain angle tilts with wind strength (up to about 30 to 40 degrees in a storm).
- Snow drift adds wind to each flake's sideways sway.
- Trees, grass, flags and smoke sway further and faster in gusts.
- Leaves and dust: a few loose particles blown across the screen make wind visible even without rain.
- Gameplay, optionally: a horizontal push on airborne players (keep it small, around 10 to 20 percent of their air speed) or a force on projectiles. Always show it, with streaks or flags, before it affects a jump.
Gusts are a slow noise curve on top of the base strength: build up over 1 to 2 seconds, hold, fade over 2 to 3. Sudden changes look like a glitch.
Keeping it fast on phones
- A box that follows the camera. Spawn particles only in a region slightly larger than the view. When a particle leaves the box, move it to the opposite side instead of destroying it. The world can be huge; the weather is always the same few hundred particles.
- Pool and batch. Create particles once and reuse them. Draw them in one batch: a particle container in a 2D engine, an instanced mesh or a single points object in Three.js. Thousands of separate objects are what drops frames.
- No physics per particle. Move them with simple math; never give each drop a physics body.
- A quality setting. Halve counts on low quality, and drop splashes and the back layer first.
- Frame rate independence. Move particles by speed times elapsed time and spawn splashes by rate times elapsed time, or weather doubles at 120 frames per second.
Our phone performance guide covers draw calls and budgets in more detail. In 3D, keep the weather box around 30 to 50 meters across and centered slightly ahead of the camera, since players mostly look forward.
Changing weather, sound and light
Treat weather as a state with an intensity from 0 to 1 that blends over time, not as a switch. Going from clear to storm over 20 seconds, the cloud cover darkens first, wind rises, then the rain count ramps up, then thunder. Blend sound the same way: a light rain loop crossfading into heavy rain as intensity passes the middle, with wind as its own layer. The sound effects guide covers looping ambient layers.
- Light: dim and cool the scene for rain, brighten and blue-shift for snow. In Startbase 3D games, the level's sky, sun, ambient light and fog are set in the World Editor, so you can tune the clear-weather look by hand and have the weather code darken it from there.
- Fog: pull the fog closer in heavy rain and snow. It sells density and hides the edge of the weather box.
- Lightning: a brief brightening of the whole scene followed by thunder 1 to 3 seconds later. Keep flashes soft and rare: never more than three flashes in any one second, and an option to turn them off. Our accessibility guide explains flashing limits.
- Scheduling: pick the next weather from weighted choices (clear 50 percent, cloudy 25, rain 20, storm 5), and hold each for a few minutes. A seeded random choice lets every player see the same weather in a daily level.
Weather bugs to expect
- Rain indoors. The weather box follows the camera into a cave or a house. Mark indoor areas and fade weather out (and switch to muffled rain sound) inside them.
- Rain over the menus. Weather drawn on top of the HUD or the pause menu. Draw it in the world layer, below the interface.
- Particles keep falling while paused. Weather should use the game clock, like everything else in the world.
- Empty sky after a teleport. The camera jumps and the box needs a moment to refill. Re-scatter all particles across the box when the camera moves further than its size in one frame.
- Gameplay wind nobody noticed. A missed jump in wind the player could not see feels like a bug. Show wind before it matters.
A brief for weather
Add weather to my 2D farming game. Rain: three layers of streaks (300 total at heavy rain, 80 at light), tilted by wind, crossing the screen in 0.4 s, with splash sprites spawned on visible ground at a rate tied to intensity. Snow: 200 flakes of 2 to 6 px drifting on their own sine sway, falling in 6 s. One wind value with gusts that build over 1.5 s; crops and trees sway with it. Particles live in a box that follows the camera and wrap instead of being destroyed, use the game clock, and draw under the HUD. Weather blends over 20 s with matching rain and wind sound loops and a darker tint. Rain waters crops. Add a low quality option that halves counts.
Rain that waters crops is the kind of small gameplay hook that makes weather matter; our farming game guide covers crop timers and seasons that pair well with it.
Frequently asked questions
How many particles should rain use in a web game?
On phones, around 150 to 400 streaks on screen for heavy rain in 2D and 50 to 100 for light rain, recycled in a box that follows the camera. Layers at different speeds look denser than raw counts.
How do I make rain splash on the ground without collisions?
Spawn small splash sprites at random visible ground points at a rate tied to rain intensity. Players do not track individual drops, so the effect reads as real without any collision checks.
How do I stop rain inside buildings?
Mark indoor areas and fade the weather particles out when the camera enters them, switching to a muffled rain sound so the storm is still felt.
Is lightning safe for players with photosensitivity?
Keep flashes soft, rare and never more than three in any one second, avoid full-screen high-contrast white, and offer a setting to turn flashes off.

