Hello! I'm trying to develop a game in which I need to create a destructible terrain... I started using an array (3500x2500) as a way to control each and every single pixel at the screen to check if the terrain was or wasn't available for collision. While previewing it on my browser (Waterfox), everything was working fine. My problem is that after exporting to NWJS, the game closes everytime I try to load the layout. After running a few tests, I found out that it is crashing when trying to resize the array. I'm not sure why it is happening...
Do you have any other idea on how can I store 3500x2500 values, without crashing the NWJS?
Thank you so much!