★★★ Sandbox, a Game by @Real_Jason ★★★ Yep! Here is a Sandbox Simulator! ★★★ Controls ★★★ Mouse - Move around to push sand. Click - Drop New Sand Drag - Click and drag a sand dropper to move or delete T - Tool - (Spray, Pencil, Eraser, etc) M - Material - (Sand, Water, Concrete, etc) S - Size - (of brush / pen) H - Hand - (for pushing sand) P - Pause R - Reset Space - Change backdrop color As always - Have fun!
★★★ So how does it work? ★★★ I have 3 main lists in my scripts: ★Level Grid (a row for every possible pixel location) ★Active Sand (a list of the active sand locations on the grid) ★Invalidate (a list of screen locations that need repainting) ★Power (used by water to evaporate old water) I only look for movement of active sand pixels, and when one moves, it looks for new sand pixels to add to the active sand pixel list. The pushing of sand is done by tracing from the current mouse position across the sand piles looking for a possible empty space on the other side.