Storing arrays in seperate file
Hello I am making a maze game in actionscript 3. For each level i have a two dimensional array like this one (but much bigger):
var Maze_1:Array = [
[1,1,0,0,0,0],
[0,1,1,0,0,0],
[0,0,0,1,0,0]
];
In my MainClass i have a variable called currentMaze. I want to set that variable to the maze of the currentLevel. How would I make a seperate file containing all the mazes and then load them in the MainClass?. I've heard about some people using XML but i have never used it so i don't know anything about it. Is there a more simple way to this?
