Skip to content

Commit

Permalink
Keep the sand out of your panties.
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Dolphin committed Nov 7, 2013
1 parent 3b82cba commit 0555292
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions js/scripts/game.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,17 @@

start: function() {

$(window).bind({
keypress: function(e) {
if ([32,37,38,39,40].indexOf(e.which) > -1)
e.preventDefault();
},
keydown: function(e) {
if ([32,37,38,39,40].indexOf(e.which) > -1)
e.preventDefault();
}
});

this.origDisasters = $.extend(true, {}, this.disasters);

this.map.width = this.width()*this.map.multiplier;
Expand Down

0 comments on commit 0555292

Please sign in to comment.