game.js
/* Collapse the blob under the pixel coordinate (px, py).
 */
Collapse the blob under the pixel coordinate (px, py).
Collapse the blob under the pixel coordinate ( px py ) .
function clear(game, px, py) {
    let [x, y] = transform(game.inv, px, py);
    x = Math.floor(x);
    y = Math.floor(y);
    mark(game, x, y);
    for (let y = 0; y < game.height; y++) {
        for (let x = 0; x < game.width; x++) {
            let i = y * game.width + x;
            if (game.marked[i])
                game.grid[i] = 0;
        }
    }
    collapse(game);
}
function clear ( game , px , py ) { let [ x , y ] = transform ( game . inv , px , py ) ; x = Math . floor ( x ) ; y = Math . floor ( y ) ; mark ( game , x , y ) ; for ( let y = 0 ; y < game . height ; y ++ ) { for ( let x = 0 ; x < game . width ; x ++ ) { let i = y * game . width + x ; if ( game . marked [ i ] ) game . grid [ i ] = 0 ; } } collapse ( game ) ; }
Collapse the blob under the pixel coordinate (px, py).
Collapse the blob under the pixel coordinate ( px py ) .