We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8454a78 commit e4f8d3bCopy full SHA for e4f8d3b
src/js/game/camera.js
@@ -168,7 +168,11 @@ export class Camera extends BasicSerializableObject {
168
* Finds a good initial zoom level
169
*/
170
findInitialZoom() {
171
- const desiredWorldSpaceWidth = 18 * globalConfig.tileSize;
+ let desiredWorldSpaceWidth = 18 * globalConfig.tileSize;
172
+ if (window.innerWidth < 1000) {
173
+ desiredWorldSpaceWidth = 12 * globalConfig.tileSize;
174
+ }
175
+
176
const zoomLevelX = this.root.gameWidth / desiredWorldSpaceWidth;
177
const zoomLevelY = this.root.gameHeight / desiredWorldSpaceWidth;
178
0 commit comments