diff options
| author | s1n <[email protected]> | 2019-10-02 12:43:44 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2019-10-02 12:43:44 -0700 |
| commit | b768a5f60081c1feab8a11cc98e1ed4be4c0836b (patch) | |
| tree | b6dbe34f641994ca41a996cb20c2573b7366de60 /dino/js | |
| parent | rename (diff) | |
| download | s1n.pw-admin-b768a5f60081c1feab8a11cc98e1ed4be4c0836b.tar.xz s1n.pw-admin-b768a5f60081c1feab8a11cc98e1ed4be4c0836b.zip | |
add wasd support for dino
Diffstat (limited to 'dino/js')
| -rw-r--r-- | dino/js/main.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/dino/js/main.js b/dino/js/main.js index 6d2141e..4bc7376 100644 --- a/dino/js/main.js +++ b/dino/js/main.js @@ -253,10 +253,12 @@ Runner.keycodes = { JUMP: { "38": 1, - "32": 1 + "32": 1, + "87": 1 // Added WASD support 10/02/2019 }, // Up, spacebar DUCK: { - "40": 1 + "40": 1, + "83": 1 // Added WASD support 10/02/2019 }, // Down RESTART: { "13": 1 |