Class matrix{
Used to store the initial interface of the game's Guanzhong
static Var Matrixs:array;
function Matrix () {
Matrixs=new Array ();
0:null
1:wall
2:player
3:box
4:target
5:target and Box
1 2 3 4 5 6 7 8 9
matrixs[0]= [[0, 0, 0, 0, 0, 0, 0, 0, 0],//1
[0, 0, 0, 0, 0, 0, 0, 0, 0],//2
[0, 0, 0, 0, 0, 0, 0, 0, 0],//3
[0, 0, 0, 0, 0, 0, 0, 0, 0],//4
[0, 0, 0, 0, 0, 0, 0, 0, 0],//5
[0, 0, 0, 0, 0, 0, 0, 0, 0],//6
[0, 0, 0, 0, 0, 0, 0, 0, 0],//7
[0, 0, 0, 0, 0, 0, 0, 0, 0],//8
[0, 0, 0, 0, 0, 0, 0, 0, 0]//9
];
1 2 3 4 5 6 7 8 9
matrixs[1]= [[0, 1, 1, 1, 1, 1, 1, 0, 0],//1
[1, 1, 1, 0, 0, 0, 1, 0, 0],//2
[1, 0, 3, 0, 1, 0, 1, 1, 0],//3
[1, 0, 1, 0, 0, 4, 0, 1, 0],//4
[1, 0, 0, 0, 0, 1, 0, 1, 0],//5
[1, 1, 0, 1, 0, 0, 0, 1, 0],//6
[0, 1, 2, 0, 0, 1, 1, 1, 0],//7
[0, 1, 1, 1, 1, 1, 0, 0, 0],//8
[0, 0, 0, 0, 0, 0, 0, 0, 0]//9
];
1 2 3 4 5 6 7 8 9
matrixs[2]= [[0, 0, 1, 1, 1, 1, 1, 0, 0],//1
[1, 1, 1, 0, 0, 0, 1, 0, 0],//2
[1, 0, 3, 0, 1, 0, 1, 1, 0],//3
[1, 0, 1, 0, 0, 4, 0, 1, 0],//4
[1, 0, 0, 0, 0, 1, 0, 1, 0],//5
[1, 1, 3, 1, 4, 0, 0, 1, 0],//6
[0, 1, 2, 0, 0, 1, 1, 1, 0],//7
[0, 1, 1, 1, 1, 1, 0, 0, 0],//8
[0, 0, 0, 0, 0, 0, 0, 0, 0]//9
];1 2 3 4 5 6 7 8 9
matrixs[3]= [[1, 1, 1, 1, 1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