19 Mar 2009

Unity iPhone Pong Example Project

Author: wgstone | Filed under: General, Tutorials

iphone-large1The very generous Kevin R of vectorboxgames.com has donated his recent work with Unity iPhone, creating an example Pong project for you to download and pick apart and learn from. Now his game is finished it available on the App Store, Details on the game are here -
http://www.vectorboxgames.com/vong/index.html

I know a lot of people have been waiting for this so a massive thanks to Kevin on behalf of all those users for his hard work!

Here is what Kevin has to say about the project download -

This was my first Unity game. I decided to give the project up to the community as another resource to learn from. I currently have it up on the appstore, but as a free download.

It’s a clone of Pong.

The code for this game was written in Javascript. There isn’t a ton of commenting, but the code is relatively clean (for a first project), so it should be a fairly good resource to learn from. If you have any questions, feel free to ask.

It covers the use of menus, accelerometer and touch controls, 2D using 3D elements, and more. It’s a full game.

As far as licensing goes… consider it the same as any other resource in the Unity Resources section. If UT want’s to add it to the resources section, that is fine by me.

And here’s a download link to the example -

Download Pong Clone Zipped

Tags: , , , , ,

9 Responses to “Unity iPhone Pong Example Project”

  1. [...] Unity iPhone Pong example project- w/ sample code [...]

  2. [...] Unity iPhone Pong example project- w/ sample code [...]

  3. [...] Unity3D iPhone Pong example project- w/ sample code [...]

  4. [...] Unity3D iPhone Pong example project- w/ sample code [...]

  5. [...] Unity3D iPhone Pong example project- w/ sample code [...]

  6. [...] Unity3D iPhone Pong example project- w/ sample code [...]

  7. This is great! Thank you.

  8. Will allstead says:
  9. I’m new to unity and overall game development. I have created a simple pong game for iphone. When I’m in the game view when i’m in unity, the game goes as planned… The problem is that when I build and run the game on my ipod touch, the paddle on the right hits the ball and the ball goes twice the speed of what it should across the screen into the left player’s goal. So, for example, I start the game and the ball spans at a speed of 10, hits my paddle on the left side of the screen, the ball hits my paddle bounces off, still at a speed of 10… then hits the paddle on the right side of the screen, bounces off, and starts coming back to my paddle at a speed of 20. The reason I’m so confused is that in the game view in unity and the unity remote, the game works great, but when I actually install it on my device this one thing goes wrong. can somebody help?:)

  10. Hi Will, what’s your version number Unity wise? and also what kind of approach are you taking to the pong game – hand coded physics or Unity rigidbodies? use pasteit4me.com to paste your script and leave a link here if you like.

    Cheers

    Will

Leave a Reply