Skip to content

Instantly share code, notes, and snippets.

@ada-lovecraft
Created March 18, 2014 21:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ada-lovecraft/9630513 to your computer and use it in GitHub Desktop.
Save ada-lovecraft/9630513 to your computer and use it in GitHub Desktop.
generateCop: function() {
var cop = enemyGroup.getFirstExists(false);
cop.reset(game.world.width-64, 500);
cop.revive();
cop.body.velocity.x = 1000;
copTimer = game.time.now + 1500;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment