Skip to content

Instantly share code, notes, and snippets.

@martinwells
Created June 21, 2012 19:42
Show Gist options
  • Save martinwells/2968040 to your computer and use it in GitHub Desktop.
Save martinwells/2968040 to your computer and use it in GitHub Desktop.
if (bullet.collidingWith(enemyShip)) // boom!
freeBullet(bullet); // return it to the pool
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment