Skip to content

Commit

Permalink
fixed escape function
Browse files Browse the repository at this point in the history
  • Loading branch information
metalx1000 committed Jul 3, 2015
1 parent 916e612 commit 57f42bb
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions js/powerups.js
Original file line number Diff line number Diff line change
Expand Up @@ -240,17 +240,7 @@ function escape(){
player.shoot = false;
var playerTurns = game.add.tween(player);
playerTurns.to({angle:90}, 1000);
playerTurns.onComplete.add(function(){
player.escapeTimeout = game.time.now + 2000;
setTimeout(function(){
megaDetination();
var playerTurns = game.add.tween(player);
playerTurns.to({angle:0}, 1000);
playerTurns.start();
stars.movex = false;
player.shoot = true;
},2000);
}, this);
player.escapeTimeout = game.time.now + 2000;
playerTurns.start();

//move enemies
Expand Down

0 comments on commit 57f42bb

Please sign in to comment.