Advertisement
Guest User

Untitled

a guest
May 19th, 2019
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.24 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement