Permalink
Browse files

Scale up missile speed with missile count

  • Loading branch information...
hnrysmth committed Aug 28, 2014
1 parent c56f27c commit 2cdf5460b31243f05bdd31ceaf9dd1781d3e3c3d
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/controller/flight.js
View
@@ -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]);

0 comments on commit 2cdf546

Please sign in to comment.