Skip to content
This repository
Browse code

Bring back free cam.

  • Loading branch information...
commit 4b26266eab974d13ae60ddaeedfc57159c261257 1 parent f451545
Derek Hoagland authored March 10, 2012

Showing 1 changed file with 14 additions and 5 deletions. Show diff stats Hide diff stats

  1. 19  source/game.js
19  source/game.js
@@ -165,19 +165,27 @@
165 165
     game.keyboard.keyHold = function(key) {
166 166
       switch(key) {
167 167
 	case '38':
168  
-	  game.viewport.tracking.step('north');
  168
+	  //game.viewport.tracking.step('north');
  169
+	  game.viewport.tracking = null;
  170
+	  game.viewport.y--;
169 171
 	  break;
170 172
 	case '40':
171  
-	  game.viewport.tracking.step('south');
  173
+	  //game.viewport.tracking.step('south');
  174
+	  game.viewport.tracking = null;
  175
+	  game.viewport.y++;
172 176
 	  break;
173 177
 	case '39':
174  
-	  game.viewport.tracking.step('east');
  178
+	  //game.viewport.tracking.step('east');
  179
+	  game.viewport.x++;
  180
+	  game.viewport.tracking = null;
175 181
 	  break;
176 182
 	case '37':
177  
-	  game.viewport.tracking.step('west');
  183
+	  //game.viewport.tracking.step('west');
  184
+	  game.viewport.tracking = null;
  185
+	  game.viewport.x--;
178 186
 	  break;
179 187
 	case '65':
180  
-	  radius = game.getCoordsInRadius(game.viewport.tracking.x,game.viewport.tracking.y,4);
  188
+	  /*radius = game.getCoordsInRadius(game.viewport.tracking.x,game.viewport.tracking.y,4);
181 189
 	  for(tile in radius) {
182 190
 	    if(game.inbounds(radius[tile].x, radius[tile].y)) {
183 191
 	      new EntityTrigger({
@@ -188,6 +196,7 @@
188 196
 	      });
189 197
 	    }
190 198
 	  }
  199
+	  */
191 200
 	  break;
192 201
       }
193 202
     }

0 notes on commit 4b26266

Please sign in to comment.
Something went wrong with that request. Please try again.