Hello
I am in the process of creating a falling sand game, and to create a simple prototype for the testing of panning and zooming, implemented a naive approach to displaying each sand 'particle' by creating a Box struct that holds the data of individual 'particles' - to later iterate over the box and create a sprite for each of the particles.
Of course, now that I've finalized the tests of my camera systems I want to expand the amount of particles that can be present significantly and thus the naive approach does not work anymore. I had the thought of dynamically creating an Image of each 'chunk' of 32x32 particles, and displaying that as a larger sprite - updating the image every time a particle is changed, I am however new to bevy, and I'm not entirely sure what the best way forward to do such a thing would be. Or even if my theoretical way forward would be the best.
Is this something I might be able to get some comments on? I have a pretty good idea of how to update a chunk's assigned Image during runtime, however I'm not entirely sure how to 'convert' this Image into a Handle<Image> that should be supplied to the Sprite struct