input fix
This commit is contained in:
parent
cdcbfb4102
commit
f6cd4c30b7
2 changed files with 3 additions and 1 deletions
|
@ -6,6 +6,8 @@ html, body{
|
|||
align-items: center;
|
||||
justify-content: center;
|
||||
overflow: hidden;
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
}
|
||||
|
||||
#canvas{
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue