A pixel art sand simulation game created with Python and Pygame.
- 500x500 pixel grid for sand simulation
- Sand falls with realistic physics
- Sand color changes every 1.5 seconds when the mouse is pressed
- Simple controls: click and hold to create sand
- Save your sand creations as PNG images
- Python 3.6+
- Pygame 2.0+
- Make sure you have Python installed
- Install dependencies:
pip install -r requirements.txt
python main.py
- Click and hold: Create sand at mouse position
- C key: Clear the canvas
- S key: Save your creation as a PNG image
The simulator uses a simple grid-based physics system where:
- Sand falls downward due to gravity
- If blocked, sand tries to slide diagonally
- Sand particles interact with each other to create natural-looking pile formations
- Color changes every 1.5 seconds while the mouse is pressed
Enjoy creating beautiful sand art!