- What is a falling sand game / powder toy simulator?
- A falling sand game is a type of real-time physics sandbox where you paint different materials — sand, water, fire, oil — onto a grid and watch them interact. The original "Falling Sand" applet appeared around 2005 and inspired many successors including The Powder Toy (2008), Sandspiel, and countless browser versions. The core mechanic is a cellular automaton: each pixel checks its neighbours every frame and updates according to simple rules. The emergent complexity (dunes, floods, wildfires) comes from thousands of those simple rules running in parallel.
- How do I use this powder toy simulator?
- Select a material from the toolbar, then click or drag on the canvas to place particles. Adjust the brush size slider to paint larger areas. Use the Pause button to freeze the simulation and draw structures without them moving. The Clear button resets the grid. On a phone or tablet, drag with your finger; tilt the device to change the direction gravity pulls the particles.
- How does the tilt / gravity feature work?
- When you first visit on a mobile device the page may ask permission to use the gyroscope. Once granted, the
DeviceOrientationEvent API reads the device's beta (front-back tilt) and gamma (left-right tilt) angles and converts them into an (x, y) gravity vector. Particles then fall in that direction rather than straight down, so tilting left makes sand slide left and tilting forward makes everything cascade toward the bottom edge. On desktop the gravity is always downward.
- Does this run offline? Is my data private?
- Yes and yes. The simulation is 100% client-side — pure JavaScript + Canvas. No data is sent to any server. Once the page has loaded it works without an internet connection. Nothing you draw is recorded or stored anywhere outside your browser tab.
- Can I save or share my creation?
- Right-click the canvas and choose "Save image as…" to download a PNG snapshot of the current frame. Full save/load of simulation state is not implemented in this version — the focus is on instant, frictionless play without accounts or files.