|
@@ -8,8 +8,10 @@ const finalScoreElement = document.getElementById("final-score");
|
|
const canvas = document.getElementById("game-canvas");
|
|
const canvas = document.getElementById("game-canvas");
|
|
const context = canvas.getContext("2d");
|
|
const context = canvas.getContext("2d");
|
|
|
|
|
|
-canvas.width = window.innerWidth;
|
|
|
|
-canvas.height = window.innerHeight;
|
|
|
|
|
|
+//canvas.width = window.innerWidth;
|
|
|
|
+//canvas.height = window.innerHeight;
|
|
|
|
+canvas.width = window.innerWidth - 10; // todo think why got scrollbars
|
|
|
|
+canvas.height = window.innerHeight - 10;
|
|
|
|
|
|
const gameOverContainer = document.getElementById("game-over-container-div");
|
|
const gameOverContainer = document.getElementById("game-over-container-div");
|
|
|
|
|