Prevent WA scale manager from zooming too much

This commit is contained in:
David Négrier
2021-05-04 14:08:40 +02:00
parent 613ff5d463
commit 59b391e983
4 changed files with 63 additions and 11 deletions
+1 -1
View File
@@ -69,7 +69,7 @@ switch (phaserMode) {
throw new Error('phaserMode parameter must be one of "auto", "canvas" or "webgl"');
}
const hdpiManager = new HdpiManager(640*480);
const hdpiManager = new HdpiManager(640*480, 196*196);
const { game: gameSize, real: realSize } = hdpiManager.getOptimalGameSize({width, height});
const config: GameConfig = {