-
|
For both bigger & smaller screens |
Beta Was this translation helpful? Give feedback.
Answered by
lajbel
Oct 18, 2024
Replies: 1 comment 4 replies
-
|
There is an optimization guide in the docs. But it really depends on what you're trying to achieve. |
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
width()andheight()returns the current size of canvaskaplay({ stretch: true, letterbox: true })will create black bars to mantain aspect ratio betweenwidthandheightscale()component provides a way to scale game objects as you wantonResize()triggers when the window or canvas is resizedI think there can be a guide in the near future anyway, but this info will help you now!