about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--js/game-frame/game.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/js/game-frame/game.js b/js/game-frame/game.js
index 3eac852..935263d 100644
--- a/js/game-frame/game.js
+++ b/js/game-frame/game.js
@@ -10,7 +10,7 @@ const player = {
     y: 0,
     width: 8,
     height: 8,
-    speed: 8,
+    step: 8,
     color: 'blue',
     spriteUrl: "chickadee.svg"
 };
@@ -78,16 +78,16 @@ window.addEventListener('keydown', (e) => {
   
     switch (e.key) {
       case 'ArrowUp':
-        newY -= player.speed;
+        newY -= player.step;
         break;
       case 'ArrowDown':
-        newY += player.speed;
+        newY += player.step;
         break;
       case 'ArrowLeft':
-        newX -= player.speed;
+        newX -= player.step;
         break;
       case 'ArrowRight':
-        newX += player.speed;
+        newX += player.step;
         break;
     }