Git Product home page Git Product logo

yqshao / sand-game-js Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hartrik/sand-game-js

0.0 0.0 0.0 407 KB

Sand Game JS is a fast, free and open-source falling-sand game for desktop & mobile browsers. It allows players to experiment with various elements, such as sand, soil, water and fire. With grass and trees growing on soil, and other natural processes, Sand Game JS offers a unique experience.

Home Page: https://harag.cz/app/sand-game-js

JavaScript 97.32% CSS 1.83% HTML 0.86%

sand-game-js's Introduction

Sand Game JS

Sand Game JS is a fast, free and open-source falling-sand game for desktop & mobile browsers. It allows players to experiment with various elements, such as sand, soil, water and fire. With grass and trees growing on soil, and other natural processes, Sand Game JS offers a unique experience. It is primarily tested on Google Chrome and Google Chrome for Android.

Browser-based successor to Sand Game 2, which was originally developed in Java (JavaFX).

You can play it here: https://harag.cz/app/sand-game-js

Preview

Sand Game JS preview

Development

npm run build builds the library to dist.

npm run dev builds the library, then keeps rebuilding it whenever the source files change using rollup-watch.

npm test builds the library, then tests it.

Debugging tips:

  • Use alt + ctrl + shift + middle mouse button to debug an element.
  • Stop processing using ctrl + enter and then press (or hold) ctrl + space for running one simulation iteration.
    • Alternatively ctrl + shift + space will run the specified number of iterations โ€“ at once, without rendering and delays.
  • Global variables, accessible from browser console: sandGame, brushes

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.