A simple simulation game based on particle system, called "God Particles", allows users to draw and interact on the canvas with various materials (such as sand, water, lava, etc.). Here are the instructions for using the game:
Page structure
Canvas area: used to display and manipulate particles.
Control panel: used to select materials, adjust the number of particles, and clean the canvas.
Full screen button: used to switch full screen mode.
Confirm cleanup pop-up window: used to confirm whether to clean the canvas.
Usage steps
#1. Select material
In the control panel, there is a drop-down menu to select different materials, such as sand, water, lava, etc. Each material has different characteristics and behaviors.
#2. Adjust the number of particles
In the control panel, there is a particle number slider. You can adjust the number of particles added each time by sliding, ranging from 1 to 10.
#3. Add particles
Click or touch on the canvas to add particles of the selected material. You can drag the mouse or finger to add particles continuously. Different materials will have different interactive effects, for example:
Sand: Falls and accumulates
Water: flows and fills gaps.
Lava: interacts with water to create obsidian.
Snow: falls and accumulates.
Oil: floats on the surface of water.
Plants: grow under the influence of water.
Acid: corrodes other materials.
Ice: melts into water.
Steam: rises and gradually disappears.
#4. Clean the canvas
Click the "Cleanup" button in the control panel, and a confirmation pop-up window will pop up. Click the "Yes" button to clean all particles on the canvas, and click the "No" button to cancel the cleanup operation.
#5. Switch fullscreen mode
Click the fullscreen button in the upper right corner of the page to switch fullscreen mode. Click again to exit fullscreen mode.
Notes
Window resizing: When the window size or device orientation changes, the canvas will automatically resize and recalculate the particle grid.
Particle interaction: Particles of different materials will have different interaction effects. Try different combinations to explore all possible reactions.