Giter Site home page Giter Site logo

kallaballa / sandcraft Goto Github PK

View Code? Open in Web Editor NEW
4.0 4.0 1.0 42.72 MB

A falling sand simulation for the web using libagar and emscripten

License: GNU General Public License v2.0

Makefile 2.13% Shell 2.20% C++ 1.57% PHP 0.01% HTML 0.03% C 74.16% Ada 5.22% Roff 7.88% Scheme 0.01% Lua 4.91% Perl 0.70% Objective-C 0.30% SourcePawn 0.03% CSS 0.01% M4 0.05% XS 0.58% CMake 0.09% TypeScript 0.01% JavaScript 0.12%

sandcraft's Introduction

Sandcraft

A two player (and soon more) falling sand game for the web.

The Game

The players are joined in a sandbox where they play and express whatever they want with diverse materials that act and interact.

Heritage

The Particle logic is based on https://github.com/zear/SDLSand, which itself is based on a series of reimplementations and ports. At the moment Sandcraft still looks almost identical to SDLSand but much has changed codewise.

Tech

The game is written in C++ though its primary target is the web, Emscripten is used to compile the code to WebAssembly which runs in the browser. To achieve direct communication between the game instances a complex setup of various channels is performed (websocket, webrtc, stun). The signaling server (websocket) is called SandcraftServer and you can find it here; https://github.com/kallaballa/SandcraftServer. The particle behaviour is based on a cellular automaton. At the moment it doesn't compile for native platforms but that is only temporary (till i get around to it).

Demo: https://phokis.at/sandcraft.html

sandcraft's People

Contributors

kallaballa avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

ford442

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.