I made a game with a lot of graphics. It has 2 arrays of objects and each of them contains an image. So basically there are images falling from the top of the screen and you need to catch them with your mouse.
After playing it for 1 or 2 minutes it starts lagging. I guess it's because of huge amount of images.
I don't use them after they leave the screen. Any ideas? Maybe I can delete an object after it's used?
1