| S4ND | Super Satisfying Sand Simulator
So I recently got a new profile pic, and I guess I made a new game as well (two very irrelevant things)? Anyways I always thought falling sand games were super satisfying, so I made this basic falling sand game! So here we go...
Want To Play It?
CLICK THIS LINK
You basically get to drop some sand, and it's super satisfying! Coding it took
<canvas>, several ES6 Classes and I used external CSS (big wow right?).
@DynamicSquid the abridged version is I iterate through an array containing all the particles and check if the x/y points match up and stop it's descent. It gets a little more complicated on edge cases since at that point I have it randomly hop some distance to simulate the sand falling on the edges ;D. The one problem with my setup is the array can get huge and like someone mentioned it can get awfully laggy after some time but that's a-okay with me XD.
Cool project but the water doesn't have any inertia(neither does the sand but that's less noticeable)... Still epic though.
@RayhanADev xD I'm not gonna look in the code and I don't know JS but as far as physics goes I don't think any physics sims are happening. I just see the particles going straight down from wherever they are because the ramps are well, ramps and the particles would slide. The only thing being calculated is collisions I think, but correct me if I'm wrong.