SHARE
TWEET

Untitled

a guest May 19th, 2019 85 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. std::vector<Asteroid*> asteroids;
  2.  
  3. void makeAsteroid(int _screenWidth)
  4. {
  5.     Asteroid* a = Asteroid();
  6.     asteroids.push_back(a);
  7. }
  8.  
  9. void destroyAsteroids()
  10. {
  11.     for (int i = 0; i < asteroids.size(); i++)
  12.     {
  13.         asteroids[i].destroy();
  14.     }
  15. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top