Hi. I’m generating randomized terrain using Perlin Noise and drawing to a 1024 x 512 cavas, pixel by pixel. When an attack is used which damages the terrain, or when the level is being played with during generation (such as flood_fill() algorithms and such) I need to send a msg with the pixels to edit to the canvas.script game object. Since sending lots of pixels in a table gives me an error (table too large to pass), how should I go about doing this? I’m thinking maybe use Lua modules, but I’m not super experienced in this area. Is this a good idea?
Thanks for reading. I’m new to Defold and this website, but I’ve gotta say this is one of the best places I’ve experienced for getting quality help and quick replies. I’m trying to contribute here whenever I can.