Restore aspect-correct Phaser viewport

This commit is contained in:
Admin 2026-09-22 01:09:09 +00:00
parent f924e2439a
commit 0a778685e1
2 changed files with 3 additions and 13 deletions

View File

@ -1388,8 +1388,8 @@ const game = new Phaser.Game({
pixelArt: false
},
scale: {
mode: Phaser.Scale.NONE,
autoCenter: Phaser.Scale.NO_CENTER,
mode: Phaser.Scale.FIT,
autoCenter: Phaser.Scale.CENTER_HORIZONTALLY,
width: WIDTH,
height: HEIGHT
},
@ -1400,7 +1400,7 @@ const game = new Phaser.Game({
})
window.__DOLLHOUSE__ = {
version: '0.10.2',
version: '0.10.3',
game,
async resetAll() {
await clearGameState()

View File

@ -40,13 +40,3 @@ canvas {
box-shadow: 0 6px 18px rgb(122 61 91 / 24%);
}
#game {
display: flex;
align-items: stretch;
justify-content: center;
}
#game > canvas {
width: 100% !important;
height: 100% !important;
margin: 0 !important;
}