From 04b28e73dce97c95494d1eb241ecca8e173892f4 Mon Sep 17 00:00:00 2001
From: "david.schimmel" <>
Date: Thu, 14 Jun 2018 14:23:04 +0200
Subject: [PATCH] resize canvas

---
 scripts/game_logic/graphics.js | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/scripts/game_logic/graphics.js b/scripts/game_logic/graphics.js
index 39351a5..993e28a 100644
--- a/scripts/game_logic/graphics.js
+++ b/scripts/game_logic/graphics.js
@@ -1,6 +1,8 @@
 var playerPic = document.createElement("img");
 var tilePics=[   ];
 var picsToLoad = 2;
+//
+var SQUARE_SIZE = 900/11;
 
 function countLoadedImageAndLaunchIfReady(){
     picsToLoad-=1;
@@ -47,4 +49,17 @@ function drawCenteredRotatingBitMap(pic, picX, picY, angle){
     canvasContext.rotate(angle);
     canvasContext.drawImage(pic, -pic.width/2, -pic.height/2);
     canvasContext.restore();
+}
+
+//provisorische graphiken
+function drawBall(ballX,ballY,ballRadius,ballColour){
+    canvasContext.fillStyle = ballColour;
+    canvasContext.beginPath();
+    canvasContext.arc(ballX, ballY, ballRadius, 0, 2*Math.PI, true);
+    canvasContext.fill();
+}
+
+function drawRectangle(X, Y, width, height, colour){
+    canvasContext.fillStyle = colour;
+    canvasContext.fillRect(X, Y, width, height);
 }
\ No newline at end of file
-- 
GitLab