mirror of
https://github.com/danbee/invaders
synced 2025-03-04 08:39:08 +00:00
Tweak alien movement width.
This commit is contained in:
parent
4c769f00ad
commit
97b39eadf5
@ -248,7 +248,7 @@ function createAliens () {
|
|||||||
|
|
||||||
function animateAliens () {
|
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.
|
// 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
|
// When the tween loops it calls descend
|
||||||
tween.onLoop.add(descend, this);
|
tween.onLoop.add(descend, this);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user