Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Bring back free cam.

  • Loading branch information...
commit 4b26266eab974d13ae60ddaeedfc57159c261257 1 parent f451545
Derek Hoagland authored
Showing with 14 additions and 5 deletions.
  1. +14 −5 source/game.js
19 source/game.js
View
@@ -165,19 +165,27 @@
game.keyboard.keyHold = function(key) {
switch(key) {
case '38':
- game.viewport.tracking.step('north');
+ //game.viewport.tracking.step('north');
+ game.viewport.tracking = null;
+ game.viewport.y--;
break;
case '40':
- game.viewport.tracking.step('south');
+ //game.viewport.tracking.step('south');
+ game.viewport.tracking = null;
+ game.viewport.y++;
break;
case '39':
- game.viewport.tracking.step('east');
+ //game.viewport.tracking.step('east');
+ game.viewport.x++;
+ game.viewport.tracking = null;
break;
case '37':
- game.viewport.tracking.step('west');
+ //game.viewport.tracking.step('west');
+ game.viewport.tracking = null;
+ game.viewport.x--;
break;
case '65':
- radius = game.getCoordsInRadius(game.viewport.tracking.x,game.viewport.tracking.y,4);
+ /*radius = game.getCoordsInRadius(game.viewport.tracking.x,game.viewport.tracking.y,4);
for(tile in radius) {
if(game.inbounds(radius[tile].x, radius[tile].y)) {
new EntityTrigger({
@@ -188,6 +196,7 @@
});
}
}
+ */
break;
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.