made combo / score text larger
This commit is contained in:
parent
1309a1867a
commit
75a103610f
2 changed files with 9 additions and 13 deletions
|
@ -9,7 +9,7 @@ function Text(x,y,text,font,color,incrementFunction){
|
|||
this.draw = function(){
|
||||
if (this.alive>0) {
|
||||
ctx.globalAlpha = this.opacity;
|
||||
renderText((this.x + gdx), (this.y + gdy),40,this.color,this.text);
|
||||
renderText((this.x + gdx), (this.y + gdy),50,this.color,this.text);
|
||||
ctx.globalAlpha =1;
|
||||
incrementFunction(this);
|
||||
return true;
|
||||
|
|
20
js/main.js
20
js/main.js
|
@ -10,13 +10,9 @@ $(document).ready(function(){
|
|||
}
|
||||
|
||||
setTimeout(function(){
|
||||
|
||||
document.body.addEventListener('touchstart', function(e) {
|
||||
handleClickTap(e.changedTouches[0].clientX);
|
||||
}, false);
|
||||
//document.body.addEventListener('mousedown', function(e) {
|
||||
//handleClickTap(e.clientX);
|
||||
//}, false);
|
||||
document.body.addEventListener('touchstart', function(e) {
|
||||
handleClickTap(e.changedTouches[0].clientX);
|
||||
}, false);
|
||||
}, 1);
|
||||
});
|
||||
});
|
||||
|
@ -178,8 +174,8 @@ function init(b) {
|
|||
op = 0;
|
||||
scoreOpacity = 0;
|
||||
gameState = 1;
|
||||
$("#restartBtn").show();
|
||||
$("#pauseBtn").show();
|
||||
$("#restartBtn").show();
|
||||
$("#pauseBtn").show();
|
||||
if(saveState.hex !== undefined) gameState = 1;
|
||||
|
||||
scaleCanvas();
|
||||
|
@ -404,9 +400,9 @@ window.onblur = function (e) {
|
|||
}
|
||||
};
|
||||
function showHelp(){
|
||||
if(gameState =1){
|
||||
pause();
|
||||
}
|
||||
if(gameState =1){
|
||||
pause();
|
||||
}
|
||||
if(document.getElementById("helpScreen").style.display=="none" || document.getElementById("helpScreen").style.display === ""){
|
||||
document.getElementById("helpScreen").style.display = "block";
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue