Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void BallLeave(int index)
- {
- for (int i = 0; i < currentNumberOfBalls; i++)
- {
- if (projectileXSpeed[i] == 0)
- {
- if (projectilelocation[i].Y + projectileSize.Height < 0 || projectilelocation[i].Y + projectileSize.Height > ClientSize.Height)
- {
- index = i;
- ballColor[i] = FAKE;
- }
- }
- if (projectileXSpeed[i] > 0)
- {
- if (projectilelocation[i].X > ClientSize.Width)
- {
- index = i;
- ballColor[i] = FAKE;
- }
- }
- if (projectileXSpeed[i] < 0)
- {
- if (projectilelocation[i].X + projectileSize.Width < 0)
- {
- index = i;
- ballColor[i] = FAKE;
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment