Skip to content

Commit

Permalink
Update Resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
rachitkakkar committed Nov 30, 2023
1 parent 55a11d6 commit 87bdc0a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions raycaster.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import { OptionsHandler } from "./src/OptionsHandler.js";

import * as Utils from "./src/Utils.js";

// Screen dimensions (scaled to 70% of window with 16/10 aspect ratio)
// Screen dimensions (scaled to 55% of window with 16/10 aspect ratio)
const aspectRatio = 16.0 / 10.0;
const screenWidth = Utils.castToInt(window.innerWidth * 0.7);
const screenWidth = Utils.castToInt(window.innerWidth * 0.55);
const screenHeight = Utils.castToInt(screenWidth / aspectRatio);

// Dealing with canvas (setting dimensions, creating context)
Expand Down

0 comments on commit 87bdc0a

Please sign in to comment.