made down key on hold

This commit is contained in:
Garrett Finucane 2014-08-24 13:04:27 -04:00
parent 9f8d338394
commit 5d949656ec

View file

@ -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({