Skip to content

Commit

Permalink
Scale up missile speed with missile count
Browse files Browse the repository at this point in the history
  • Loading branch information
henrycatalinismith committed Aug 28, 2014
1 parent c56f27c commit 2cdf546
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controller/flight.js
Expand Up @@ -25,7 +25,7 @@ GlobalThermonuclearWar.Controller.Flight = Marionette.Controller.extend({

moveMissile: function(missile) {
var tickLength = 10;
var speed = 1000;
var speed = 1000 + Math.min(this.missiles.length * 10, 999);
var elapsed = tickLength;
var distance = speed * elapsed;
var origin = new google.maps.LatLng(missile.get('origin')[0], missile.get('origin')[1]);
Expand Down

0 comments on commit 2cdf546

Please sign in to comment.