input fix

This commit is contained in:
Marty Killian 2023-12-14 13:56:13 +01:00
parent cdcbfb4102
commit f6cd4c30b7
2 changed files with 3 additions and 1 deletions

View file

@ -6,6 +6,8 @@ html, body{
align-items: center;
justify-content: center;
overflow: hidden;
width: 100vw;
height: 100vh;
}
#canvas{

View file

@ -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;