[Metalab] Fwd: [intern] Sandcraft - 2 Players (WAS: Re: Sandcraft (Re: A Falling Sand Simulation))

Amir amir at viel-zu.org
Wed Oct 20 12:35:27 CEST 2021


Bitte Antworten an mich direkt, da ich nicht auf dieser Liste bin.


-------- Forwarded Message --------
Subject: [intern] Sandcraft - 2 Players (WAS: Re: Sandcraft (Re: A 
Falling Sand Simulation))
Date: Wed, 20 Oct 2021 10:59:42 +0200
From: Amir via intern <intern at lists.metalab.at>
Reply-To: Amir <amir at viel-zu.org>
To: Interne Metalab Liste (members only) <intern at lists.metalab.at>

Based on WebRTC i implemented 2 player support. Things are still not 
very smooth, but it works. To try it u need to do the following:

* use chromium/chrome (i know that sucks, but for now...)
* open https://phokis.at/sandcraft.html
* if the background is initially dark gray that means you are waiting 
for a peer
* once the background turns black that means you are connected to a peer.
* if it goes gray _after_ you had a successful connection, you need to 
reload to initiate another session.

happy hacking,
amir


On 10/13/21 03:38, Amir via intern wrote:
> Now i re-implemented the port of a port of the re-implementation and 
> renamed it "Sandcraft". :D
> Why? The code was a bit messy (one big spaghetti file) and geared 
> towards an old system. I refactored, reimplemented and... i replaced
> the ghetto gui with https://libagar.org/ (which i ported to emscripten).
> There are still numerous bugs and some features missing. Also the gui is 
> still pretty spartan.
> 
> have fun,
> amir
> 
> On 10/2/21 21:27, Amir wrote:
>> I've ported the port of the re-implementation of a falling sand 
>> simulation to emscripten. That means it runs in the browser!
>> Different materials flow, trickle, float, burn and more. They also 
>> interact with each other. It is based on a cellular automaton. At the 
>> bottom left you can select materials and use the mouse to apply them. 
>> There are many keyboard shortcuts and even joystick support, but atm 
>> you need to read the source code or figure them out brute force. :)
>>
>> source code: https://github.com/kallaballa/SDLSand
>> demo: https://viel-zu.org/sand/
>>
>> btw. I also played around with loading images into the cellular space 
>> and created a music video based on SDLSand.
>>
>> video: https://www.youtube.com/watch?v=1VvaDrqsrjY
>>
>> happy hacking,
>> amir
> 
> 
> _______________________________________________
> intern mailing list
> intern at lists.metalab.at
> https://metalab.at/wiki/Intern_Abonnement_Verwalten
> https://lists.metalab.at/mailman/listinfo/intern


_______________________________________________
intern mailing list
intern at lists.metalab.at
https://metalab.at/wiki/Intern_Abonnement_Verwalten
https://lists.metalab.at/mailman/listinfo/intern



More information about the Metalab mailing list