Permalink
Browse files

Swapped WASD and arrow keys for local multiplayer

  • Loading branch information...
1 parent 5efed25 commit 75069c4e688bbc97f6ba875ab26cd5ba00328f0c @austinhallock austinhallock committed Mar 18, 2012
Showing with 4 additions and 4 deletions.
  1. +1 −1 manifest.json
  2. BIN slimey.zip
  3. +3 −3 src/shared/lib/input.coffee
View
@@ -1,7 +1,7 @@
{
"name": "Slime Volley",
"description": "Volleyball...between two slimes.",
- "version": "0.1.8",
+ "version": "0.2.0",
"app": {
"launch": {
"local_path": "index.html"
View
Binary file not shown.
@@ -81,9 +81,9 @@ class Input
# shortcuts for arrow states
# If we every allow playing WASD vs arrow keys we'll have to change this back to [p2] instead of [0] || [1]
- left: (p2) -> @keys[@shortcuts['left'][p2]] || (@wasdEnabled && @keys[@shortcuts['left'][1-p2]]) || false
- right: (p2) -> @keys[@shortcuts['right'][p2]] || (@wasdEnabled && @keys[@shortcuts['right'][1-p2]]) || false
- up: (p2) -> @keys[@shortcuts['up'][p2]] || (@wasdEnabled && @keys[@shortcuts['up'][1-p2]]) || false
+ left: (p2) -> @keys[@shortcuts['left'][1-p2]] || (@wasdEnabled && @keys[@shortcuts['left'][p2]]) || false
+ right: (p2) -> @keys[@shortcuts['right'][1-p2]] || (@wasdEnabled && @keys[@shortcuts['right'][p2]]) || false
+ up: (p2) -> @keys[@shortcuts['up'][1-p2]] || (@wasdEnabled && @keys[@shortcuts['up'][p2]]) || false
reset: -> @keys[key] = false for key, val of @keys
getState: (p2) ->
# If we every allow playing WASD vs arrow keys we'll have to change this back to [p2] instead of [0] || [1]

0 comments on commit 75069c4

Please sign in to comment.