Skip to content

AlamRoman/Sandbox-simulator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Sandbox Simulator

Sandbox Simulator is an interactive particle simulation, where you can create and manipulate various elements like sand, water, fire, and more. The simulation allows you to experiment with different materials and observe their interactions in a dynamic environment.

Sandbox Simulator

Features

  • Interactive Simulation: Add particles to the canvas and watch them interact in real-time.
  • Multiple Elements: Includes elements like Sand, Water, Fire, Stone, Wood, Steam, and Ash.
  • Physics-Based Behavior: Each particle type has unique properties like gravity, density, and flammability.
  • Customizable Hotbar: Quickly switch between elements using the hotbar.
  • Responsive Design: Optimized for different screen sizes.

Installation

  1. Clone the repository:
    git clone https://github.com/AlamRoman/Sandbox-simulator.git
  2. Navigate to the project directory:
    cd Sandbox-simulator/src
  3. Open index.html in your browser to start the simulation.

How to Use

  • Add Particles: Click and drag on the canvas to add particles.
  • Switch Elements: Use the hotbar to select different elements.
  • Clear All: Click the clear button on the hotbar to reset the simulation.

File Structure

  • src/
    • index.html: Main HTML file.
    • style.css: Styles for the simulation.
    • js/: JavaScript files for simulation logic.
    • img/: Icons for the hotbar.

License

This project is licensed under the MIT License. See the LICENSE file for details.

About

Interactive particle simulation with dynamic element interactions and physics-based behavior

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors