Skip to content

Commit

Permalink
✨ scale to fit screen
Browse files Browse the repository at this point in the history
  • Loading branch information
haliphax committed Oct 4, 2023
1 parent c51028b commit a5a6dff
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ new PhaserGame({
render: {
transparent: true,
},
scale: {
autoCenter: Phaser.Scale.CENTER_BOTH,
mode: Phaser.Scale.FIT,
},
scene: [Game],
type: Phaser.AUTO,
width: constants.SCREEN_WIDTH,
Expand Down

0 comments on commit a5a6dff

Please sign in to comment.