Coder Social home page Coder Social logo

qiboda / liquid-simulator-godot Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tterrasson/liquid-simulator-godot

0.0 0.0 0.0 2.72 MB

2D Liquid simulator with cellular automaton in Godot (GDNative / C++) - Godot 3.2

License: MIT License

C++ 76.93% Python 18.85% GAP 2.17% GDScript 2.05%

liquid-simulator-godot's Introduction

Hello, welcome to AJ-Wi the space where we learn together

LiquidSim

2D Liquid simulator with cellular automaton in Godot Engine (GDNative / C++) - NativeScript 1.1

prerequisites

  • Godot 3.x executable

  • C++ compiler

  • SCons as a build tool

  • emcc compiler


API

$LiquidSim.start() : Start the simulation (started by default)

$LiquidSim.stop() : Stop the simulation

$LiquidSim.update_simulation() : Force an update

$LiquidSim.cleanup_empty_cells() : Cleanup all empty cell (automatic)

$LiquidSim.add_liquid(int x, int y, float amount) : Add some liquid to the cell

$LiquidSim.del_liquid(int x, int y) : Empty a cell

$LiquidSim.set_liquid(int x, int y, float amount) : Set a fixed amount of liquid to the cell

$LiquidSim.get_liquid(int x, int y) float : Return the amount of liquid for the cell




Original repository

$ git clone --recurse-submodules https://github.com/tterrasson/liquid-simulator-godot

For more details, see "Using the Guide"



Remember We can all code, but together we can learn

liquid-simulator-godot's People

Contributors

tterrasson avatar wipodev avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.