diff --git a/public/index.html b/public/index.html index 88fa4f0..dc135a1 100644 --- a/public/index.html +++ b/public/index.html @@ -7,6 +7,6 @@ - + \ No newline at end of file diff --git a/src/game.js b/src/game.js index d0c99fe..81d9dd4 100644 --- a/src/game.js +++ b/src/game.js @@ -5,13 +5,13 @@ export function init() { const canvas = document.getElementById("canvas"); const ctx = canvas.getContext("2d"); if (ctx) { - const game = new Game(500, 500, ctx, canvas); + const game = new Game(416, 416, ctx, canvas); game.start(); } } export class Game { - constructor(width = 500, height = 500, ctx) { + constructor(width = 416, height = 416, ctx) { this.gameField = new GameField(width, height, ctx, canvas); this.gameKeyAdapter = new TankKeyAdapter(this.gameField.tank); }