The main challenge here is the performance. All particles are updated if needed and redrawn every cycle. The Particles array stores the state of all "game pixels". A value of 0 means that the pixel is empty. Other values mean that there is a particle on that pixel. Sand particles move down or...
The main challenge here is the performance. All particles are updated if needed and redrawn every cycle. The Particles array stores the state of all "game pixels". A value of 0 means that the pixel is empty. Other values mean that there is a particle on that pixel. Sand particles move down or...
Based on the original example: https://www.b4x.com/android/forum/threads/b4x-bitmapcreator-cross-platform-falling-sand-game.94276/ This is just a conversion from individual platform into B4XPages. I also uploaded to my github.