It is rather a question of how to request some advice, which templates / approaches I should use. I have done some research on this issue - with poor results.
Essentially, I have an idea for a game in which the key gameplay mechanic is based on falling snow - or, in the case of this idea of โโthe game, falling particles.
Snow / particles should fall across the screen - but accumulate in piles. The problem is that I need the snow to "drain" on the sides of the piles when they are at a certain angle, and continue to accumulate. Perhaps the holes are open under piles of snow, and the snow should fall - think about how the sand falls through the hourglass.
I tried this Box2d - it is clear that Box2d is not the right choice for 10,000 small particles that persist over long periods of time. Box 2D bit off pretty quickly.
I tried drawing 1px bitmaps on the screen, but handling 10,000 collisions with each update also turned out to be bad.
Any ideas would be appreciated.
Greetings
c # xna game-physics
Dave bish
source share