Restore aspect-correct Phaser viewport
This commit is contained in:
parent
f924e2439a
commit
0a778685e1
@ -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()
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user