change scaling to not fully use division
This commit is contained in:
parent
58779f7f86
commit
e1032902ac
1 changed files with 3 additions and 3 deletions
|
@ -67,7 +67,7 @@ function Canvas(width, height, upscale) {
|
|||
|
||||
this.elem.addEventListener('mouseup', unclicker);
|
||||
|
||||
this.elem.addEventListener('touchend',unclicker);
|
||||
this.elem.addEventListener('touchend', unclicker);
|
||||
|
||||
|
||||
this.clicked = false;
|
||||
|
@ -228,7 +228,7 @@ Canvas.prototype.click = function () {
|
|||
this.firstY = this.pageY;
|
||||
}
|
||||
|
||||
var canvas = new Canvas(Math.floor(window.innerWidth / 4.5), Math.floor(window.innerHeight / 7.5), 4);
|
||||
var canvas = new Canvas(Math.floor(window.innerWidth / 4), Math.floor(window.innerHeight / 4) - 100, 4);
|
||||
var handler = new TickHandler(canvas);
|
||||
|
||||
setInterval(() => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue