about summary refs log tree commit diff stats
path: root/js/canvas/game.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/canvas/game.js')
-rw-r--r--js/canvas/game.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/js/canvas/game.js b/js/canvas/game.js
index 56a2861..04519c8 100644
--- a/js/canvas/game.js
+++ b/js/canvas/game.js
@@ -3,7 +3,7 @@ const canvas = document.getElementById("gameCanvas");
 canvas.width = 512;
 canvas.height = 512;
 const ctx = canvas.getContext("2d");
-ctx.fillStyle = "#e0f8cf";
+ctx.fillStyle = "#E0F8CF";
 ctx.fillRect(0, 0, canvas.width, canvas.height);
 
 
@@ -50,11 +50,11 @@ document.addEventListener("keydown", (event) => {
       break;
     case "KeyZ":
     case "KeyN":
-      player.color = "#65ff00";
+      console.log('Action A');
       break;
     case "KeyX":
     case "KeyM":
-      player.color = player.colorAlt;
+      console.log('Action B');
       break;
   }
 });
@@ -81,7 +81,7 @@ function gameLoop() {
   }
 
   // draw
-  ctx.fillStyle = player.color;
+  // ctx.fillStyle = player.color;
   ctx.fillRect(player.x, player.y, player.width, player.height);  
   ctx.drawImage(playerSprite, player.x, player.y, player.width, player.height);