This repository was archived by the owner on Nov 12, 2024. It is now read-only.
Best dimensions to fit mobile devices #709
Unanswered
bloodylupin
asked this question in
Q&A
Replies: 0 comments
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.
-
Hola,
I am developing a simple platform game with kaboom and I can't figure out what's the best way to set kaboom width and height to make the design consistent on different devices. I tried to use default options and setting the sprites dimensions to a portion of the screen
width()/27but the results are different and on mobile the screen exceeds the viewport. When I used Phaser there was an option on scale to fit the window, is there something similar? I also noticed when inspecting the canvas that when the device pixel ratio is 2, the width and the height on the html are doubled, have I to set a scale based on different device pixel ratios?Thanks in advance 🙏
Beta Was this translation helpful? Give feedback.
All reactions