11-09-2016, 04:22 PM
rikokun Wrote:Hallo.
edit: well i guess i can make a 3D array and instead of loading data into 2D array, simply switch to another layer of 3D array. But i dont know what is better memory-wise. The data needs to be there any way, but i don't know, i just don't like having huuuuge 3D array of all the screens in the game in memory at all times...
Plus i was hoping i could load data to new area from file...
I'm not sure I understand your question.
You mean change the ARRAY Shape (dimensions)? Unfortuntely this is not implemented (yet) in ZX BASIC. This are called Dynamic Arrays. They are a bit slower but better under many circumstances.
If your question is not related to this, please tell me so I can help you.