Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- std::vector<Asteroid*> asteroids;
- void makeAsteroid(int _screenWidth)
- {
- Asteroid* a = Asteroid();
- asteroids.push_back(a);
- }
- void destroyAsteroids()
- {
- for (int i = 0; i < asteroids.size(); i++)
- {
- asteroids[i].destroy();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement