Skip to content

Commit

Permalink
✨ use viewport dimensions for scene size
Browse files Browse the repository at this point in the history
  • Loading branch information
haliphax committed Dec 8, 2023
1 parent 78547aa commit 6d4f635
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ const constants = {
/** score label font size */
SCORE_SIZE: 26,
/** height of screen */
SCREEN_HEIGHT: 1080,
SCREEN_HEIGHT: window.innerHeight,
/** width of screen */
SCREEN_WIDTH: 1920,
SCREEN_WIDTH: window.innerWidth,
/** font stroke color */
STROKE_COLOR: "#000",
/** font stroke thickness */
Expand Down

0 comments on commit 6d4f635

Please sign in to comment.