Compare commits
1 Commits
63211af391
...
28602d3501
Author | SHA1 | Date | |
---|---|---|---|
28602d3501 |
12
index.html
12
index.html
@ -145,15 +145,15 @@
|
||||
console.log(event);
|
||||
});
|
||||
|
||||
//let x = Math.max(0, (window.innerWidth - $canvas.width) / 2); // $canvas x offset
|
||||
//x = x + ($canvas.width - BOX_WIDTH) / 2; // box x offset
|
||||
let x = ($canvas.width - BOX_WIDTH) / 2;
|
||||
let x = Math.max(0, (window.innerWidth - $canvas.width) / 2); // $canvas x offset
|
||||
x = x + ($canvas.width - BOX_WIDTH) / 2; // box x offset
|
||||
//let x = ($canvas.width - BOX_WIDTH) / 2;
|
||||
x = x + (BOX_WIDTH - START_BUTTON_WIDTH) / 2; // left of start button
|
||||
x = x + START_BUTTON_WIDTH / 2; // ~ middle of start button x
|
||||
|
||||
//let y = (window.innerHeight - $canvas.height) / 2; // $canvas y offset
|
||||
//y = y + $canvas.height; // $canvas bottom
|
||||
let y = $canvas.height;
|
||||
let y = (window.innerHeight - $canvas.height) / 2; // $canvas y offset
|
||||
y = y + $canvas.height; // $canvas bottom
|
||||
//let y = $canvas.height;
|
||||
y = y - BUTTON_Y_OFFSET_FROM_BOTTOM; // start button bottom
|
||||
y = y - START_BUTTON_HEIGHT / 2; // ~ middle of start button y
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user