fixed instructions test

This commit is contained in:
Garrett Finucane 2015-09-18 22:41:25 -04:00
parent 913b9c85be
commit d84f52f145

View file

@ -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 - 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');
renderText((trueCanvas.width)/2 + 1.5 * settings.scale, (trueCanvas.height/2)- (trueCanvas.height)/3 - 12 , 20, '#2c3e50', 'Use the right and left arrow keys', '20px Exo');
renderText((trueCanvas.width)/2 + 1.5 * settings.scale, (trueCanvas.height/2)- (trueCanvas.height)/3 + 5 , 20, '#2c3e50', 'to rotate the hexagon.', '20px Exo');
drawKey("",(trueCanvas.width)/2 + 1.5 * settings.scale - 2.5 , (trueCanvas.height/2)- (trueCanvas.height)/3 +5 );
renderText((trueCanvas.width)/2 + 1.5 * settings.scale, (trueCanvas.height/2)+ (trueCanvas.height)/3 ,20, '#2c3e50', 'Match 3+ blocks to score points.', '20px Exo');
}
else {
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)- (trueCanvas.height)/3 - 17 , 20, '#2c3e50', 'Use the right and left arrow keys', '20px Exo');
renderText((trueCanvas.width)/2 + 1.5 * settings.scale, (trueCanvas.height/2)- (trueCanvas.height)/3 , 20, '#2c3e50', 'to rotate the hexagon.', '20px Exo');
drawKey("",(trueCanvas.width)/2 + 1.5 * settings.scale - 2.5 , (trueCanvas.height/2)- (trueCanvas.height)/3);
renderText((trueCanvas.width)/2 + 1.5 * settings.scale, (trueCanvas.height/2)+ (trueCanvas.height)/3 ,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');