phaser/src/scale
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