made down key on hold
This commit is contained in:
parent
9f8d338394
commit
5d949656ec
1 changed files with 5 additions and 3 deletions
|
@ -19,10 +19,12 @@ function addKeyListeners() {
|
|||
keypress.register_combo({
|
||||
keys: "down",
|
||||
on_keydown: function() {
|
||||
if(gameState==1){
|
||||
toggleRush();
|
||||
}
|
||||
rush=2;
|
||||
},
|
||||
on_release: function() {
|
||||
rush=1;
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
keypress.register_combo({
|
||||
|
|
Loading…
Reference in a new issue