Skip to content

Commit

Permalink
good enough instruction text will add more
Browse files Browse the repository at this point in the history
  • Loading branch information
garrettdreyfus committed Sep 19, 2015
1 parent 1caf693 commit 913b9c8
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions js_v9/render.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,16 +72,16 @@ function render() {

function renderBeginningText() {
if(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {
renderText((trueCanvas.width)/2 + 1.5 * settings.scale, (trueCanvas.height)/3 - 35 - 135 * settings.scale, 20, '#2c3e50', 'Tap on the left or the right of the screen', '20px Exo');
renderText((trueCanvas.width)/2 + 1.5 * settings.scale, (trueCanvas.height)/3 - 35 - 105 * settings.scale, 20, '#2c3e50', 'to rotate the hexagon.', '20px Exo');
drawKey("",(trueCanvas.width)/2 + 1.5 * settings.scale - 5 , (trueCanvas.height)/3 - 35 - 107 * settings.scale);
renderText((trueCanvas.width)/2 + 1.5 * settings.scale, (trueCanvas.height * 3.1)/3 - 35 - 135 * settings.scale, 20, '#2c3e50', 'Match 3+ blocks to score points.', '20px Exo');
renderText((trueCanvas.width)/2 + 1.5 * settings.scale, (trueCanvas.height)/3 - 138 * settings.scale, 20, '#2c3e50', 'Tap on the left or the right of the screen', '20px Exo');
renderText((trueCanvas.width)/2 + 1.5 * settings.scale, (trueCanvas.height)/3 - 108 * settings.scale, 20, '#2c3e50', 'to rotate the hexagon.', '20px Exo');
drawKey("",(trueCanvas.width)/2 + 1.5 * settings.scale - 5 , (trueCanvas.height)/3 - 110 * settings.scale);
renderText((trueCanvas.width)/2 + 1.5 * settings.scale, (trueCanvas.height * 3.1)/3 - 135 * settings.scale, 20, '#2c3e50', 'Match 3+ blocks to score points.', '20px Exo');
}
else {
renderText((trueCanvas.width)/2 + 1.5 * settings.scale, (trueCanvas.height)/3 - 35 - 135 * settings.scale, 20, '#2c3e50', 'Use the right and left arrow keys', '20px Exo');
renderText((trueCanvas.width)/2 + 1.5 * settings.scale, (trueCanvas.height)/3 - 35 - 105 * settings.scale, 20, '#2c3e50', 'to rotate the hexagon.', '20px Exo');
drawKey("",(trueCanvas.width)/2 + 1.5 * settings.scale - 5 , (trueCanvas.height)/3 - 35 - 107 * settings.scale);
renderText((trueCanvas.width)/2 + 1.5 * settings.scale, (trueCanvas.height * 3.1)/3 - 35 - 120 * settings.scale, 20, '#2c3e50', 'Match 3+ blocks to score points.', '20px Exo');
renderText((trueCanvas.width)/2 + 1.5 * settings.scale, (trueCanvas.height)/3 - (170 * settings.scale), 20, '#2c3e50', 'Use the right and left arrow keys', '20px Exo');
renderText((trueCanvas.width)/2 + 1.5 * settings.scale, (trueCanvas.height)/3 - (145 * settings.scale), 20, '#2c3e50', 'to rotate the hexagon.', '20px Exo');
drawKey("",(trueCanvas.width)/2 + 1.5 * settings.scale - 2.5 , (trueCanvas.height)/3 - (140 * settings.scale));
renderText((trueCanvas.width)/2 + 1.5 * settings.scale, (trueCanvas.height * 3.1)/3 - (140 * settings.scale), 20, '#2c3e50', 'Match 3+ blocks to score points.', '20px Exo');
}

//renderText((trueCanvas.width)/2 + 1.5 * settings.scale, (trueCanvas.height)/2 - 35 - 65 * settings.scale, 20, '#2c3e50', (settings.platform == 'mobile' ? 'Tap the middle to toggle 2x speed!' : 'Hold the down arrow to toggle 2x speed!'), '20px Exo');
Expand Down

0 comments on commit 913b9c8

Please sign in to comment.