From f6cd4c30b792a9c121f8b8fc2dc55a953398db78 Mon Sep 17 00:00:00 2001 From: Marty Killian Date: Thu, 14 Dec 2023 13:56:13 +0100 Subject: [PATCH] input fix --- public_html/css/game.css | 2 ++ public_html/js/input.js | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/public_html/css/game.css b/public_html/css/game.css index 498577b..5b76ede 100644 --- a/public_html/css/game.css +++ b/public_html/css/game.css @@ -6,6 +6,8 @@ html, body{ align-items: center; justify-content: center; overflow: hidden; + width: 100vw; + height: 100vh; } #canvas{ diff --git a/public_html/js/input.js b/public_html/js/input.js index 9a978ee..1203b48 100644 --- a/public_html/js/input.js +++ b/public_html/js/input.js @@ -78,7 +78,7 @@ class Input { this.dir = 3; } }else if(this.keysDown.has('s') || this.keysDown.has('arrowdown')){ - if(this.keysDown.has('q') || this.keysDown.has('arrowLeft')){ + if(this.keysDown.has('q') || this.keysDown.has('arrowleft')){ this.dir = 6; }else{ this.dir = 5;