I don't mind a bit, that would be great. "Sean Maher" or "Smasher" is fine. Let me know when the game comes out.
The code you posted will probably work, but the blocks never get removed from the array. Eventually the game may still slow down as the stoppedBlocks array gets bigger. I'd do this:
Code:
for (int i=0; i<[stoppedBlocks count]; i++) {
UIImageView *block = [stoppedBlocks objectAtIndex:i];
block.transform = CGAffineTransformTranslate(block.transform, 0.0, 1.4);
if (block.center.y > 600) {
[block removeFromSuperview];
[stoppedBlocks removeObject:block];
i--;
}
}
I changed the style of loop so that we could remove items from the array - the other style doesn't allow you to change the array while looping. Every time we remove an item we also subtract 1 from i so we don't skip any items.