Bottom-anchor fitted Phaser canvas
This commit is contained in:
parent
0a778685e1
commit
52e0441153
@ -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()
|
||||||
|
|||||||
@ -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;
|
||||||
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user