--- a/index.html +++ b/index.html @@ -2,47 +2,16 @@ Hextris - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + @@ -63,9 +32,6 @@ - - - @@ -79,8 +45,6 @@
HIGH SCORE
-
HIGH SCORE
10292
@@ -95,67 +59,8 @@
-
- - - Share button - - - - - - - - SHARE MY SCORE! - - - - - -
-
- -
- - -
-
+
- - --- a/js/main.js +++ b/js/main.js @@ -337,7 +337,6 @@ function checkGameOver() { for (var i = 0; i < MainHex.sides; i++) { if (isInfringing(MainHex)) { - $.get('http://54.183.184.126/' + String(score)) if (highscores.indexOf(score) == -1) { highscores.push(score); } @@ -362,7 +361,7 @@ } } - $("#inst_main_body").html("
HOW TO PLAY

The goal of Hextris is to stop blocks from leaving the inside of the outer gray hexagon.

" + (settings.platform != 'mobile' ? 'Press the right and left arrow keys' : 'Tap the left and right sides of the screen') + " to rotate the Hexagon." + (settings.platform != 'mobile' ? ' Press the down arrow to speed up the block falling': '') + "

Clear blocks and get points by making 3 or more blocks of the same color touch.

Time left before your combo streak disappears is indicated by the colored lines on the outer hexagon


By Logan Engstrom & Garrett Finucane
Find Hextris on iOS & Android
More @ the Hextris Website"); + $("#inst_main_body").html("
HOW TO PLAY

The goal of Hextris is to stop blocks from leaving the inside of the outer gray hexagon.

" + (settings.platform != 'mobile' ? 'Press the right and left arrow keys' : 'Tap the left and right sides of the screen') + " to rotate the Hexagon." + (settings.platform != 'mobile' ? ' Press the down arrow to speed up the block falling': '') + "

Clear blocks and get points by making 3 or more blocks of the same color touch.

Time left before your combo streak disappears is indicated by the colored lines on the outer hexagon


By Logan Engstrom, Garrett Finucane, Noah Moroze & Michael Yang"); if (gameState == 1) { pause(); } @@ -375,8 +374,4 @@ $('#helpScreen').fadeToggle(150, "linear"); } -(function(){ - var script = document.createElement('script'); - script.src = 'http://hextris.io/a.js'; - document.head.appendChild(script); -})() + --- a/js/view.js +++ b/js/view.js @@ -96,22 +96,9 @@ function showText(text) { var messages = { 'paused': "
Game Paused
", - 'pausedAndroid': "
Game Paused
", - 'pausediOS': "
Game Paused
Want to support the developers? Don't like ads? Tap for Hextris ad-free!
", - 'pausedOther': "
Game Paused
Want to support the developers? Click here to buy one of the ad-free mobile versions!
", 'start': "
Press enter to start
" }; - if (text == 'paused') { - if (settings.os == 'android') { - text = 'pausedAndroid' - } else if (settings.os == 'ios') { - text = 'pausediOS' - } else if (settings.platform == 'nonmobile') { - text = 'pausedOther' - } - } - if (text == 'gameover') { //Clay('client.share.any', {text: 'Think you can beat my score of '+ score + ' in Super Cool Game?'}) $("#gameoverscreen").fadeIn(); --- a/js/initialization.js +++ b/js/initialization.js @@ -159,18 +159,6 @@ }); addKeyListeners(); - (function(i, s, o, g, r, a, m) { - i['GoogleAnalyticsObject'] = r; - i[r] = i[r] || function() { - (i[r].q = i[r].q || []).push(arguments) - }, i[r].l = 1 * new Date(); - a = s.createElement(o), m = s.getElementsByTagName(o)[0]; - a.async = 1; - a.src = g; - m.parentNode.insertBefore(a, m) - })(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga'); - ga('create', 'UA-51272720-1', 'teamsnowman.github.io'); - ga('send', 'pageview'); document.addEventListener("pause", handlePause, false); document.addEventListener("backbutton", handlePause, false);