| S4ND | Super Satisfying Sand Simulator
Hiya 0/!
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...
Presenting... S4ND
Water Included
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?).
ENJOY!
- Epic project!
- Uh...The furret in your pfp is hidden by the hacker badge.
@FlaminHotValdez
1. Awesome, thanks!
2. Ya :/, wish I could do something about it but I have haxer till october :>
Awesome! Did you use a physics engine?
@DynamicSquid thank you! and nope :), I just used some really simple math and random number generation, but the physics looks mildly realistic because of the small scale of the project!
@RayhanADev Nice! How did you do the collisions with the walls?
@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.
@RayhanADev Oh nice! Thanks for the explanation :)
@DynamicSquid no problem :D, I'm actually happy that someone wants to know how it actually works lol
@RayhanADev This is random but you're Github page is actually really cool lol
@DynamicSquid oh that, thank you :) I spent something like a 100 commits to make it look perfect definitely not a perfectionist here
@RayhanADev If you think about it, a rectangle like that is really 4 slopes.
i love these sandbox type of games!
@kwe YAY glad you like it :D
@xXToluwaXx wow, what a pogchamp indeed
now that's actually funny ngl xD
So this is how god made earth huh
fun
@rrrrobb thanks!
Finally can you make a cool pfp for me too? The only thing is I have to be a black (racism) dot with MLG glasses on. Oh and if you want to join the MLG gang ( @Codemonkey51 & @ch1ck3n ) add MLG glasses to ur pfp.
Oh an you can substitute glue with water
@Whippingdot
@Whippingdot
1. The physics in this game is crappy xD, I didn't put enough effort into it clearly
2. Just follow the TikTok tutorials :). Go to https://picrew.me/ and make your own. The site is Japanese but you might understand enough of it.
3. Hmmm, i may consider it lol
PLEASE @RayhanADev
@Whippingdot i have mlg glasses on my pfp
i know i mentioned both of you cause both of you are in the MLG gang with me. Codemonkey founded it @ch1ck3n
@Whippingdot cool
i hereby accept your invitation to the mlg gang
lul okay @ch1ck3n
Cool project but the water doesn't have any inertia(neither does the sand but that's less noticeable)... Still epic though.
@svensk007 thanks!, and yeah they don't this was really just a basic hack I didn't spend any huge amount of time trying to code in physics
@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.
@svensk007 you're not :) I never mention any physics (I think) and I actually said I don't use a physics engine on this project just some math and rng. I looks mildly realistic because of the smaller scale of the project, but it's just sand falling.
@RayhanADev yeah I said I didn't think any physics simulations were happening
@RayhanADev Maybe make Water have no Sand collision, but Sand have Water collision.
So when water hits sand, the water isn't affected, but the sands like "Oh pardon you, I'm in the way."
Super Satisfying 0w0!
oh my god look at these typos! xD
lol really, as you tend to say it,
kewl
!I made an island. :)
edit: actually that's 2 islands! :)
@Bookie0 lol i guss my gammar is just thath bad xD
also kewl
noice islands
@RayhanADev hoh i unredstand yuo (:
yes islands xD
@Bookie0 lel