Skip to content

Commit

Permalink
Make F press slow camera
Browse files Browse the repository at this point in the history
  • Loading branch information
Abbondanzo committed Oct 12, 2019
1 parent efb55de commit 0384f9d
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/managers/KeyManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,11 @@ class KeyManager {

if (this.keysPressed.length) {
const directions: KeyControlEvent["directions"] = []
let speed = false
let speed = true
this.keysPressed.forEach(keyCode => {
switch (keyCode) {
case 17: // Control
directions.push("down")
case 70: // F
speed = false
break
case 37: // Left arrow
case 65: // A
Expand All @@ -110,7 +110,8 @@ class KeyManager {
directions.push("up")
break
case 16: // Shift
speed = true
// speed = true
directions.push("down")
break
}
})
Expand Down

0 comments on commit 0384f9d

Please sign in to comment.