Replies: 1 comment 4 replies
-
|
You can just use CSS lol. The canvas will match the size of the parent element Example: 640x480 canvas: |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I've been bothered for a while now that there's no integer scaling option, so I decided I'd do it myself. I think I've figured out how to add a setting, but I'm not sure where to put code that references it. What I plan to do is make it so that if integer scaling is disabled then the canvas is the normal size, but if it's enabled, the canvas's height is set to
this.gameManager.getVideoDimensions("height") * this.getSettingValue("integerScaleFactor")and the width is set tothis.gameManager.getVideoDimensions("width") * this.getSettingValue("integerScaleFactor"). Where should I put this code, and how should I make it so that it doesn't mess anything else up?Beta Was this translation helpful? Give feedback.
All reactions