Bottom-anchor fitted Phaser canvas

This commit is contained in:
Admin 2026-09-22 01:11:16 +00:00
parent 0a778685e1
commit 52e0441153
2 changed files with 12 additions and 2 deletions

View File

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

View File

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