Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

phaser matrix rotate

 var matrix = [
        [ 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 ]
];

// rotated matrix
matrix = Phaser.Utils.Array.Matrix.RotateRight(matrix);
Source by github.com #
 
PREVIOUS NEXT
Tagged: #phaser #matrix #rotate
ADD COMMENT
Topic
Name
8+9 =