"On your phone's screen, you will have a ball lying at the bottom part, in the middle. Once you touch any part of the screen, the ball starts moving in that direction. It continues to move till it hits one of the walls, bounces off the wall, and keeps moving. Depending on the point of touch, the ball will hit the left/right walls a few times, before it eventually escapes out of the view when it crosses the upper boundary."Not super fancy stuff or algorithms. You can find the source code here.
Friday, June 24, 2011
Simple canvas-based Ball game
This is a small project that does this.
Subscribe to:
Post Comments (Atom)
Haha .. I know why you made this example ;-)
ReplyDeleteI bet. Don't tell anyone. :D
ReplyDelete