Dustin Tran
Dustin Tran

Reputation: 19

Adding balls, paddles...etc to Pong

There are things like UIImageView, UIImage and etc. If I want to import images like a paddle(used by user) or a ball that acts like an object and not just some sprite that ghosts through everything... What should I use? Are there any tutorials about this? Thank you.

Upvotes: 0

Views: 365

Answers (2)

Alexander Tkachenko
Alexander Tkachenko

Reputation: 3281

There is a lot of information about game development. All you need is just to apply your math knowledge (school math) in programming. I found tutorial for you about Pong: http://www.icodeblog.com/2009/01/15/iphone-game-programming-tutorial-part-1/

Upvotes: 0

FreeAsInBeer
FreeAsInBeer

Reputation: 12979

In this case, you would probably want to create your own custom object for each type. Then the objects would all have a reference to separate UIImageViews that display their image. Then of course you would need logic to detect collisions, just like in any other language.

Upvotes: 1

Related Questions