Oscilous / Rusticles

Simple sand/water particle physics simulation implemented in Rust
1 stars 1 forks source link

Rusticles

Simple sand/water particle cellular automata implemented in Rust

Running the project

Before you start, make sure you have rustc and cargo installed. You can check with

rustc --version
cargo --version
  1. Clone the repo
git clone https://github.com/Oscilous/Rusticles.git
  1. Change directory to the Rusticles project
cd Rusticles
  1. Build the executable
    cargo build
  2. Run the executable
    cargo run

    Interacting with the simulation

    • Left click on a empty pixel, to place a particle.
    • Sand is selected by default.
    • To change selected particle, left click on the wanted particle.
    • Additionally, selected particle can be selected with the keyboard.
    • Pressing "w" will select water as the selected particle.
    • Pressing "s" will select sand as the selected particle.