Skip to content

Instantly share code, notes, and snippets.

@Tmeister
Created March 19, 2014 18:32
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 Tmeister/9648208 to your computer and use it in GitHub Desktop.
Save Tmeister/9648208 to your computer and use it in GitHub Desktop.
Collision Checker
if( heroBounces.intersects(play.enemy.getBounds(play)) || heroBounces.intersects(play.enemy1.getBounds(play)))
{
play.over();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment