Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

skimer221

macrumors newbie
Original poster
Mar 8, 2009
3
0
Hey there i'm new to programming. I have been coding on the iphone for about a month and understand the basics. I started coding my first game and have run into a few problems. I'm trying to get rectangles or lines to stretch across the screen but have random squares cut out of them to allow a ball to drop through them. It would look something like this:

___ __ _______ ___
____ _____ _ _____
_________ _____ _
__ ____ _____ ____


and so on. I want the rectangles or lines to move up the screen and have the ball falldown the screen through the openings. In summary i need help drawing random horizontal lines across the screen that move upwards.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.