From 97b39eadf5fcccf6164c5f44014988df149b9315 Mon Sep 17 00:00:00 2001 From: Dan Barber Date: Sat, 10 May 2014 17:08:28 +0100 Subject: [PATCH] Tweak alien movement width. --- javascripts/game.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/javascripts/game.js b/javascripts/game.js index dfe94e9..31affe6 100644 --- a/javascripts/game.js +++ b/javascripts/game.js @@ -248,7 +248,7 @@ function createAliens () { function animateAliens () { // All this does is basically start the invaders moving. Notice we're moving the Group they belong to, rather than the invaders directly. - var tween = game.add.tween(aliens).to( { x: 300 }, 2500, Phaser.Easing.Sinusoidal.InOut, true, 0, 1000, true); + var tween = game.add.tween(aliens).to( { x: 308 }, 2500, Phaser.Easing.Sinusoidal.InOut, true, 0, 1000, true); // When the tween loops it calls descend tween.onLoop.add(descend, this);