function(x,y){
this.repeatMap = function (repeatX, repeatY) {
this.repeatX = repeatX;
this.repeatY = repeatY;
return this;
}
this.aMartix= function (){
var flagMatrix = new Array();
for ( i = 0; i < tileNumX; i++) {
flagMatrix[i] = new Array();
}
for ( x = 0; x < tileNumX; x++) {
for ( y = 0; y < tileNumY; y++) {
flagMatrix[x][y] = new repeatMap(repeatX, repeatY);
//这里报错了
}
}
}
}