diff --git a/front/src/Phaser/Game/GameScene.ts b/front/src/Phaser/Game/GameScene.ts index 6b50109b..6faaf4fa 100644 --- a/front/src/Phaser/Game/GameScene.ts +++ b/front/src/Phaser/Game/GameScene.ts @@ -817,7 +817,7 @@ export class GameScene extends ResizableScene implements CenterListener { const y = Math.floor(key / layer.width); const x = key % layer.width; - possibleStartPositions.push({x: x*32, y: y*32}); + possibleStartPositions.push({x: x * this.mapFile.tilewidth, y: y * this.mapFile.tilewidth}); }); // Get a value at random amongst allowed values if (possibleStartPositions.length === 0) {