3 ms·
> Can we always iterate from back to front? (What if our particle was smoke?) What's the answer to this? How do you mix smoke and sand?
by Kiro 5y ago
> Can we always iterate from back to front? (What if our particle was smoke?)
What's the answer to this? How do you mix smoke and sand?
- jasonjmcghee 5y agoThe question I intended to prompt the reader with was, if a particle had a rule to rise instead of fall, which direction should we iterate? You can try this yourself by using dev tools to modify the code and check the position above instead of below.
- Kiro 5y agoI presume the answer is that we need to iterate the other direction but what I'm wondering is how we can mix these. Do we need to iterate the grid twice?
- 7373737373 5y agoYeah, I'm wondering how The Powder Toy does it (especially since it also has electronics/wires and changeable gravity)... Edit: I found a great intro to the cellular automata approach: https://blog.macuyiko.com/post/2017/an-exploration-of-cellular-automata-and-graph-based-game-systems-part-1.html https://blog.macuyiko.com/post/2017/an-exploration-of-cellul... https://blog.macuyiko.com/post/2017/an-exploration-of-cellular-automata-and-graph-based-game-systems-part-2.html https://blog.macuyiko.com/post/2017/an-exploration-of-cellul... https://blog.macuyiko.com/post/2018/an-exploration-of-cellular-automata-and-graph-based-game-systems-part-3.html https://blog.macuyiko.com/post/2018/an-exploration-of-cellul...
- Macuyiko 5y agoActually part 4 should be most interesting if you're interested to know how different materials can be mixed. It also looks at Noita: https://blog.macuyiko.com/post/2020/an-exploration-of-cellular-automata-and-graph-based-game-systems-part-4.html https://blog.macuyiko.com/post/2020/an-exploration-of-cellul... Kudos to the OP article. Although it doesn't go very far the presentation style is very clean and appealing.
- almostarockstar 5y agoI'm guessing here, but I assume a double buffer would solve this for many cases.