phaser/v3/typings/utils/array/matrix/CheckMatrix.d.ts
2017-01-16 22:43:07 +01:00

13 lines
335 B
TypeScript

/**
* A Matrix is simply an array of arrays, where each sub-array (the rows) have the same length:
*
* let matrix2 = [
* [ 1, 1, 1, 1, 1, 1 ],
* [ 2, 0, 0, 0, 0, 4 ],
* [ 2, 0, 1, 2, 0, 4 ],
* [ 2, 0, 3, 4, 0, 4 ],
* [ 2, 0, 0, 0, 0, 4 ],
* [ 3, 3, 3, 3, 3, 3 ]
*];
*/
export default function (matrix: any): boolean;