This website requires JavaScript.
Explore
Help
Sign In
Mirrors
/
phaser
Watch
2
Star
0
Fork
You've already forked phaser
0
mirror of
https://github.com/photonstorm/phaser
synced
2024-12-25 20:43:26 +00:00
Code
Issues
Projects
Releases
Packages
Wiki
Activity
e91d890463
phaser
/
src
/
scale
History
Richard Davey
962ff04538
If you gave the
width
or
height
in the Game Config object as a string it would multiply the value given by the parent size, often leading to a huge game canvas, or causing WebGL errors as it tried to create a texture larger than the GPU could handle. This has now been strengthened. If you give a string with a % at the end, it works as before, i.e.
"100%"
or
"50%"
to set the scale based on the parent. If you don't include the %, or use another unit, such as
"800px"
it will now be treated as a fixed value, not a percentage.
2023-09-07 15:19:57 +01:00
..
const
Updated copyright year
2023-01-02 17:36:27 +00:00
events
Updated copyright year
2023-01-02 17:36:27 +00:00
index.js
Updated copyright year
2023-01-02 17:36:27 +00:00
ScaleManager.js
If you gave the
width
or
height
in the Game Config object as a string it would multiply the value given by the parent size, often leading to a huge game canvas, or causing WebGL errors as it tried to create a texture larger than the GPU could handle. This has now been strengthened. If you give a string with a % at the end, it works as before, i.e.
"100%"
or
"50%"
to set the scale based on the parent. If you don't include the %, or use another unit, such as
"800px"
it will now be treated as a fixed value, not a percentage.
2023-09-07 15:19:57 +01:00