Hi,
I’m currently making a grid-based puzzle game (8x8) and I would like to store the level data.
I know I could use files to store the “level data” but couldn’t I simply use arrays (an array of arrays) to store the data?
Like (simplified (3x3)):
Level1
101
110
010
Level2
001
010
011
...
Pseudocode:
LevelData[] = [
[
[1,0,1],
[1,1,0],
[0,1,0]],
[
[0,0,1],
[0,1,0],
[0,1,1]]
It’s de facto an arrray of multidimensional arrays. I would than read the data like
CurrentLevel[,] = LevelData[0];
Is it even possible? Have been googling w/o success.
If it is impossible, I will use a badly readable version like
string LevelData = {“101110010”,“001010011”…} and do some converting and calculations or the file-based version. But I’d prefer the other version if possible.
Best regards