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