Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


how to make snow & rain effect in 2D game

This topic is 6109 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Thank you very much!
But i have just wrote a 2D game engine,i do not want any GL or Direct3D function in my engine,i just want to simulate snow & rain weather effect like Diablo II

Share this post

Link to post
Share on other sites
If you want simple snow/rain, randomly create points(snow) lines(rain) at the top of the screen in 2D and move their position down each frame. Destroy them when they get to the bottom. simple but effective. You can also have different layers, moving at different velocities to simulate z distance in a 2D game.


Share this post

Link to post
Share on other sites
particle engines still work in 2d.. and the maths is easier
I''d recommend this for snow, actually rain looks better with a bunch of random lines because its velocity is too fast to see it "falling"

Brett Porter
PortaLib3D : A portable 3D game/demo libary for OpenGL
Community Service Announcement: Read How to ask questions the smart way before posting!

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!