Advertisement
Guest User

jelly

a guest
Mar 16th, 2015
236
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.21 KB | None | 0 0
  1. void Game::ResetGoal()
  2. {
  3.     goalX = (rand() % (799 - GOALRAD * 2)) + GOALRAD;
  4.     goalY = (rand() % (599 - GOALRAD * 2)) + GOALRAD;
  5.     nJelly += 1;
  6.     nGoal += 1;
  7.    
  8.     if (nJelly > NJELLY)
  9.     {
  10.         nJelly = NJELLY;
  11.     }
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement