Comment by throwaway_yy2Di

11 years ago

For those "playing" in the javascript console, here's one way to get a handle on the (inaccessibly scoped) game objects:

    GameManager.prototype.__actuate = 
        GameManager.prototype.actuate;
    
    GameManager.prototype.actuate = function() { 
        window.gm = this; 
        this.__actuate();
    }

On the next move, the game object will exfiltrate itself into the global window namespace.

    gm.grid.eachCell(function(x,y,_) { 
        gm.grid.cells[x][y] = new Tile({x:x, y:y}, 1024); 
    });
    
    gm.actuate();