Hey guys,
So I’m making a game and I’m using an array to store the rooms.
For example:
short roomData[49] =
{0,0,0,0,0,0,0,
0,0,0,0,1,0,0,
0,0,0,1,2,1,0,
1,0,0,0,1,0,0,
2,0,0,0,0,0,0,
3,0,0,0,0,0,0,
4,3,2,1,0,0,0,};
So I have a ton of these now and I get:
“Global variables use 3093 bytes (120%) of dynamic memory, leaving -533 bytes for local variables.”
However, I’m overwriting old rooms with new rooms in my roomData[] array when the player changes rooms. So why am I running out of memory?
Is there a way I could do this without running out of memory?
Thanks