Advertisement
Guest User

Untitled

a guest
Dec 20th, 2014
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. public void scorecount(Hero myhero){
  2.  
  3. if (!star.isScored() && Intersector.overlaps(myhero.getBoundingBalloon(), star.getStarCircle()))
  4. {
  5.  
  6. addScore(1); // give one plus always
  7. star.setScored(true);
  8.  
  9.  
  10. AssetLoader.coin.play();
  11.  
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement