touchscreen input no longer buffers
This commit is contained in:
@@ -322,6 +322,12 @@ class SnekGame {
|
||||
else if(inputs.right && trySet([ 1, 0])) return delete inputs.right;
|
||||
else if(inputs.up && trySet([ 0,-1])) return delete inputs.up;
|
||||
else if(inputs.down && trySet([ 0, 1])) return delete inputs.down;
|
||||
|
||||
if(inputs.clearBuffer) {
|
||||
Object
|
||||
.keys(inputs)
|
||||
.forEach(k => delete inputs[k]);
|
||||
}
|
||||
}
|
||||
|
||||
start() {
|
||||
|
||||
Reference in New Issue
Block a user