Skip to content

Instantly share code, notes, and snippets.

@ada-lovecraft
Created March 18, 2014 21:52
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/9630534 to your computer and use it in GitHub Desktop.
Save ada-lovecraft/9630534 to your computer and use it in GitHub Desktop.
enemyGroup = game.add.group();
enemyGroup.enableBody = true;
enemyGroup.physicsBodyType = Phaser.Physics.ARCADE;
enemyGroup.createMultiple(10,'police');
enemyGroup.setAll('outOfBoundsKill', true);
enemyGroup.setAll('body.gravity', 0);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment