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({
|
keypress.register_combo({
|
||||||
keys: "down",
|
keys: "down",
|
||||||
on_keydown: function() {
|
on_keydown: function() {
|
||||||
if(gameState==1){
|
rush=2;
|
||||||
toggleRush();
|
},
|
||||||
}
|
on_release: function() {
|
||||||
|
rush=1;
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
keypress.register_combo({
|
keypress.register_combo({
|
||||||
|
|
Loading…
Reference in a new issue