Skip to content

Commit 054e3ba

Browse files
committed
better sizing
1 parent f817a8f commit 054e3ba

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

src/App.css

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,10 @@ footer {
8484
}
8585

8686
.game-container {
87-
width: 640px;
88-
height: 576px;
87+
max-width: 800px;
88+
max-height: 720px;
89+
width: 100%;
90+
height: 100%;
8991
border-radius: 0;
9092
overflow: hidden;
9193
box-shadow: none;
@@ -110,8 +112,10 @@ footer {
110112
align-items: center;
111113
justify-content: center;
112114
position: relative;
113-
width: 640px;
114-
height: 576px;
115+
width: 100%;
116+
height: 100%;
117+
max-width: 800px;
118+
max-height: 720px;
115119
margin: auto;
116120
}
117121

src/game/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export const gameConfig: Phaser.Types.Core.GameConfig = {
1010
backgroundColor: "#9bbc0f",
1111
width: 160,
1212
height: 144,
13-
zoom: 4,
13+
zoom: 5,
1414
physics: {
1515
default: "arcade",
1616
arcade: {

0 commit comments

Comments
 (0)