Improving the foundation of our falling sand simulator
jason.today
jason.today
Disclaimer: I did some minor development work on TPT and am involved in the community. Still though, great game.
Making a falling sand simulator - https://news.ycombinator.com/item?id=31309616 - May 2022 (65 comments)
It was like magic at those times.
This is so far abstracted from the magic hyperoptimizations that were used for those demos it's mindblowing, but it's still fun to see and neat to play with.
I notice on my machine the background is initially white and only acquires the grey background color after a sand has fallen past a given pixel. I encountered the same bug when building my own version off of this from your last post, my fix was to initialize the dirty set to be the full set of indexes for the first frame. Also, some of the buttons are pure white, the text is invisible. (I suspect both of these are light mode only bugs)
Anyone remember Sony-J5 Mobile? I first seen falling sand there. Jason's version is a ultra fast version (and cool!).
https://www.sony.ee/electronics/support/res/manuals/3227/322...
I want to stay up to date on this blog. Is there an RSS feed anywhere?
I'm hosting on Github Pages, which seems to have a feed plugin for RSS, so I'll investigate that! Right now I've just been posting to Twitter (so far it's the only thing I've used it for) and HN.
As someone else mentioned, this has intense nostalgic vibes. Something about the acceleration of the sand maybe?
You really knocked it out of the park in any case, the end result is fantastic. I’m looking forward to digging in deeper.
Small bug: if you two finger touch on iOS (or hit clear all), the screen clears to a different color background, lighter than the new sand dispenser, so now the sky becomes darker as you drag around.
My current plan was to introduce some new particle types as there is some pretty stimulating emergent behavior that comes out particles with different rules interacting with one another.
I'm also really interested in exploring 2D velocity and acceleration- how we could go about enabling particles to be thrown and bounce off of walls- or each other.
Nothing gets rendered.
You might need to force refresh.