yuzhoumo / simulake

A cellular automata physics sandbox

Home Page:http://simulake.joemo.dev/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Simulake

A cellular automata physics simulator.

Showcase screenshot

Cloning

External dependencies are included as git submodules in lib. Clone source files and dependencies using:

git clone git@github.com:patilatharva/simulake.git --recursive

Building with CMake

mkdir build && cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
make

For debug build, use the -DCMAKE_BUILD_TYPE=Debug flag.

Usage

./simulake [OPTION...]

-x, --width arg     grid width in cells (default: 400)
-y, --height arg    grid height in cells (default: 200)
-c, --cellsize arg  cell size in pixels (default: 4)
-g, --gpu           enable GPU acceleration
-l, --load arg      load scene from disk
-h, --help          print help
Command Key
Exit the program ESC
Select AIR cell type 0
Select SMOKE cell type 1
Select FIRE cell type 2
Select WATER cell type 3
Select OIL cell type 4
Select SAND cell type 5
Select JET_FUEL cell type 6
Select STONE cell type 7
Print app state to console P
Save grid to disk S
Enter edit mode (pause) SPACEBAR
Change "brush" size (Scroll wheel)

Dependencies

Resources

About

A cellular automata physics sandbox

http://simulake.joemo.dev/

License:GNU General Public License v3.0


Languages

Language:C 59.8%Language:C++ 37.4%Language:GLSL 1.8%Language:CMake 1.0%