3 ms·
Show HN: Pixel Physics
- atum47 6y agothis 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.
- bredren 6y agoWell, congrats on the release anyway.
- tingabing 6y agoConnected water bodies do not behave correctly: https://ibb.co/TBs4WD2 https://ibb.co/TBs4WD2
- atum47 6y agoYeah, the rules are not great right now. When you drop sand into the water for instance it absorbs the water.
- eurasiantiger 6y agoMy bottomless cup runneth over.
- atum47 6y agoCan 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
- clarge1120 6y agoIt doesn’t work on mobile, which is unfortunate. I was very curious given the title.
- erezsh 6y agohttps://imgur.com/a/xaRWqTY https://imgur.com/a/xaRWqTY Looks like you'll have to do some sort of value propagation.
- atum47 6y agohttps://imgur.com/a/lj8edEe https://imgur.com/a/lj8edEe