From c701672b6b489d6ebf9a79cfb19145bf938beccc Mon Sep 17 00:00:00 2001 From: Garrett Finucane Date: Mon, 18 Aug 2014 17:39:57 -0400 Subject: [PATCH 1/2] share on twitter --- js/view.js | 5 ++++- style/style.css | 4 ++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/js/view.js b/js/view.js index 4a498a8..131b18b 100644 --- a/js/view.js +++ b/js/view.js @@ -95,7 +95,8 @@ function showText(text) { 'paused': "
Paused

Press p to resume
", 'pausedMobile': "
Paused

Press to resume
", 'start': "
Press enter to start
", - 'gameover': "
Game Over: " + score + " pts

High Scores:
" + 'gameover': "
Game Over: " + score + " pts

High Scores:
" + }; if (text == 'paused') { @@ -131,10 +132,12 @@ function showText(text) { } } } + messages['gameover'] += "
Share Your Score on Twitter!!!
" $("#overlay").html(messages[text]); $("#overlay").fadeIn("1000", "swing"); if (text == 'gameover') { + if (settings.platform == 'mobile') { $('.tg').css('margin-top', '4px'); } diff --git a/style/style.css b/style/style.css index 365343b..4f9e563 100644 --- a/style/style.css +++ b/style/style.css @@ -9,6 +9,10 @@ margin:0; } +.tweet { + font-size:2em; + color:#4099FF; +} a { color:#232323; From 22e9205c22e92a5c993a2c66e4f2475202584deb Mon Sep 17 00:00:00 2001 From: lengstrom Date: Mon, 18 Aug 2014 19:12:12 -0400 Subject: [PATCH 2/2] Update Block.js --- js/Block.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/Block.js b/js/Block.js index 040880e..97e316f 100644 --- a/js/Block.js +++ b/js/Block.js @@ -5,7 +5,7 @@ function Block(fallingLane, color, iter, distFromHex, settled) { //the lane which the block was shot from this.fallingLane = fallingLane; - this.checked=0; + this.checked=0; //the angle at which the block falls this.angle = 90 - (30 + 60 * fallingLane); //for calculating the rotation of blocks attached to the center hex