Lurker News

Comments (410) 175 threads

Show all comments

Showing thread 5 of 175

throwaway_yy2Di1 reply#
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();
terabytest1 reply#
Heh, nice trick! The only way to get high score is to actually play, though :P
thronoprocrast#
Hey Steven, you should include the actual clickable URL. Noob