game.js
/* Create an affine transformation matrix.
 * This matrix is suitable for the transform() method on a drawing
 * context.
 */
Create an affine transformation matrix.
This matrix is suitable for the transform() method on a drawing
context.
Create an affine transformation matrix . This matrix is suitable for the transform () method on a drawing context .
function affine(x, y, scale, rotate) {
    return new Float32Array([
        +Math.cos(rotate) * scale,
        +Math.sin(rotate) * scale,
        -Math.sin(rotate) * scale,
        +Math.cos(rotate) * scale,
        x,
        y
    ]);
}
function affine ( x , y , scale , rotate ) { return new Float32Array ( [ + Math . cos ( rotate ) * scale , + Math . sin ( rotate ) * scale , - Math . sin ( rotate ) * scale , + Math . cos ( rotate ) * scale , x , y ] ) ; }
Create an affine transformation matrix.
Create an affine transformation matrix .