Skip to content

Commit 6d4f635

Browse files
committed
✨ use viewport dimensions for scene size
1 parent 78547aa commit 6d4f635

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/constants.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ const constants = {
3030
/** score label font size */
3131
SCORE_SIZE: 26,
3232
/** height of screen */
33-
SCREEN_HEIGHT: 1080,
33+
SCREEN_HEIGHT: window.innerHeight,
3434
/** width of screen */
35-
SCREEN_WIDTH: 1920,
35+
SCREEN_WIDTH: window.innerWidth,
3636
/** font stroke color */
3737
STROKE_COLOR: "#000",
3838
/** font stroke thickness */

0 commit comments

Comments
 (0)