how to make snow & rain effect in 2D game
i want to make a rain and snow wether effect in my 2D game,but i have no idea of it. Does someone help me? Thanks!
particle engines!
there''s tutorials around, that''s what you are looking for.
~~~
Cheers!
Brett Porter
PortaLib3D : A portable 3D game/demo libary for OpenGL
Community Service Announcement: Read How to ask questions the smart way before posting!
there''s tutorials around, that''s what you are looking for.
~~~
Cheers!
Brett Porter
PortaLib3D : A portable 3D game/demo libary for OpenGL
Community Service Announcement: Read How to ask questions the smart way before posting!
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
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
Then the answer is tiling colorkeyed (possibly blended) bitmaps.
Reach out and torch someone.
Reach out and torch someone.
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.
henry
henry
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"
~~~
Cheers!
Brett Porter
PortaLib3D : A portable 3D game/demo libary for OpenGL
Community Service Announcement: Read How to ask questions the smart way before posting!
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"
~~~
Cheers!
Brett Porter
PortaLib3D : A portable 3D game/demo libary for OpenGL
Community Service Announcement: Read How to ask questions the smart way before posting!
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement