Skip to content

Commit

Permalink
width controls height
Browse files Browse the repository at this point in the history
  • Loading branch information
wulfdewolf committed Mar 11, 2024
1 parent 54e2f1e commit 76f1898
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions kaja_game/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ window.onload = function() {
type: Phaser.AUTO,
parent: "gameCanvas1",
width: parentElement.offsetWidth,
height: parentElement.offsetHeight,
backgroundColor: '#000001',
// scene: {
// preload: preload,
Expand All @@ -24,9 +23,9 @@ window.onload = function() {
debug: false,
}
},
//scale: {
// mode: Phaser.Scale.RESIZE,
//}
scale: {
mode: Phaser.Scale.WIDTH_CONTROLS_HEIGHT,
}
}

const game = new Phaser.Game(config);
Expand Down

0 comments on commit 76f1898

Please sign in to comment.