Skip to content

Commit

Permalink
Adding debug visuals.
Browse files Browse the repository at this point in the history
  • Loading branch information
benvanik committed Jan 2, 2013
1 parent 71bc6d8 commit 49ba2ad
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/blk/game/fps/fpsclientcontroller.js
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,11 @@ blk.game.fps.FpsClientController.prototype.processInput =
this.game.playClick();
this.playerListing_.toggleVisibility();
return true;
} else if (keyboardData.didKeyGoDown(goog.events.KeyCodes.V)) {
if (this.viewRenderer_) {
this.viewRenderer_.setDebugVisuals(!this.viewRenderer_.debugVisuals);
}
return true;
}

// Toggle audio
Expand Down

0 comments on commit 49ba2ad

Please sign in to comment.