//

2048: The Jimmy & Luke Show Edition

 

// $(whichelement + ” .tile-inner”).width()) {
var newSize = (parseInt($(whichelement + ” .tile-text”).css(“fontSize”)) – 1) + “px”;
$(whichelement + ” .tile-text”).css(“fontSize”, newSize);
}

if (typeof newSize == “undefined”) { var newSize = “60px”; }

$(whichelement + ” .tile-text”).css(“lineHeight”, newSize);

if (parseInt(newSize) > 50) {
$(whichelement + ” .tile-text”).css(“position”, “relative”);
$(whichelement + ” .tile-text”).css(“top”, “5px”);
} else {
$(whichelement + ” .tile-text”).css(“position”, “relative”);
$(whichelement + ” .tile-text”).css(“top”, “0px”);
}

$(whichelement + ” .tile-inner”).css(“display”, “table”);
$(whichelement + ” .tile-text”).css(“display”, “table-cell”);

sizes[whichelement] = newSize;

} else {

newSize = sizes[whichelement];

$(whichelement + ” .tile-text”).css(“fontSize”, newSize);
$(whichelement + ” .tile-text”).css(“lineHeight”, newSize);

if (parseInt(newSize) > 50) {
$(whichelement + ” .tile-text”).css(“position”, “relative”);
$(whichelement + ” .tile-text”).css(“top”, “5px”);
} else {
$(whichelement + ” .tile-text”).css(“position”, “relative”);
$(whichelement + ” .tile-text”).css(“top”, “0px”);
}

$(whichelement + ” .tile-inner”).css(“display”, “table”);
$(whichelement + ” .tile-text”).css(“display”, “table-cell”);

}

//console.log(sizes);

}

$(document).keypress(function(event) {
if ( event.which == 61 ) {
$(“.tile-container”).empty();
var tile = new Tile({x:0,y:0},2);
HTMLActuator.prototype.addTile(tile);
var tile = new Tile({x:1,y:0},4);
HTMLActuator.prototype.addTile(tile);
var tile = new Tile({x:2,y:0},8);
HTMLActuator.prototype.addTile(tile);
var tile = new Tile({x:3,y:0},16);
HTMLActuator.prototype.addTile(tile);
var tile = new Tile({x:0,y:1},32);
HTMLActuator.prototype.addTile(tile);
var tile = new Tile({x:1,y:1},64);
HTMLActuator.prototype.addTile(tile);
var tile = new Tile({x:2,y:1},128);
HTMLActuator.prototype.addTile(tile);
var tile = new Tile({x:3,y:1},256);
HTMLActuator.prototype.addTile(tile);
var tile = new Tile({x:0,y:2},512);
HTMLActuator.prototype.addTile(tile);
var tile = new Tile({x:1,y:2},1024);
HTMLActuator.prototype.addTile(tile);
var tile = new Tile({x:2,y:2},2048);
HTMLActuator.prototype.addTile(tile);
}
});
// ]]>

 

2048:
The Jimmy & Luke Show Edition

by jimmyandluke

0
0

How to play: Use your arrow keys to move the tiles.
When two identical tiles touch, they merge and become the next level of tile. Get a tile to the eleventh level to win.



//

A complete ripoff of Gabriele Cirulli‘s MIT-licensed 2048, which was based on 1024 by Veewo Studio and conceptually similar to Threes by Asher Vollmer. All the words and images you see have been supplied by our users.

//


//
//
// =0)document.write(unescape(‘%3C’)+’\!-‘+’-‘)
// ]]>

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s