News for hackers. Stuff that matters.
Re:Show HN: Pixel Physics by tingabing on Sunday April 18, 2021 @04:44PM (#26856181)
Connected water bodies do not behave correctly:

https://ibb.co/TBs4WD2

Re:Show HN: Pixel Physics by atum47 on Monday April 19, 2021 @01:34AM (#26859372)
Can you, or anyone in this thread share with me he Noita deal with this? Noita seems to be reference people use for this kind of stuff
Re:Show HN: Pixel Physics by atum47 on Sunday April 18, 2021 @05:17PM (#26856458)
Yeah, the rules are not great right now. When you drop sand into the water for instance it absorbs the water.
Re:Show HN: Pixel Physics by eurasiantiger on Sunday April 18, 2021 @05:30PM (#26856584)
My bottomless cup runneth over.
Re:Show HN: Pixel Physics by atum47 on Sunday April 18, 2021 @02:48PM (#26855161)
this experiment was created in about three hours of code on one Saturday and another two on Sunday. Before posting here I've cleaned the code a bit and added some icons.

I really don't like the code right now, because it has a lot of if else (i intend to get rid of that) and I also don't like the interactions.

The basic mechanics uses celular automata, where the next state of the simulation is defined by it's previous state plus some rules. To accomplish this, I'm using two maps. I have a branch where I'm using only one map, but I'm still not happy with some aspects of the simulation.

As soon as I have a better code base and better simulations, I'll release the source code on my github.

Re:Show HN: Pixel Physics by bredren on Monday April 19, 2021 @12:32AM (#26859122)
Well, congrats on the release anyway.
Re:Show HN: Pixel Physics by erezsh on Monday April 19, 2021 @11:14AM (#26863627)
https://imgur.com/a/xaRWqTY

Looks like you'll have to do some sort of value propagation.

Re:Show HN: Pixel Physics by atum47 on Tuesday April 20, 2021 @05:33PM (#26882043)
Re:Show HN: Pixel Physics by clarge1120 on Monday April 19, 2021 @07:25AM (#26861463)
It doesn’t work on mobile, which is unfortunate. I was very curious given the title.
Re:Show HN: Pixel Physics by atum47 on Monday April 19, 2021 @11:29AM (#26863838)
What device are you on? It was supposed to work on mobile
Re:Show HN: Pixel Physics by dmje on Monday April 19, 2021 @06:26PM (#26868584)
Works fine for me
Re:Show HN: Pixel Physics by atum47 on Monday April 19, 2021 @07:38PM (#26869102)
Yeah, I made the thing to run on mobile.