image
www.flickr.com
William C. Arter's photos More of William C. Arter's photos

« Readings for 2/9 | Main

March 3, 2009

Sketch 4, assignment + sample code @ 3:35 PM

The assignment for Monday is to build something with the iPhone simulator based on the code provided for you below.

This sketch is designed to get you comfortable looking at and editing objective-c code in the XCode environment, so your sketch should show that you've spent considerable time playing around with the code base, and have manipulated it in some distinguishable way.

I'll be in office hours on thursday, and I recommend if you are having troubles, come hang out.

The basic steps to get up and running in XCode are:

• Open XCode in Macintosh HD/Developer/Applications/XCode
• Alternatively, you can download and double click the "BallBounce.xcodeproj" file included below

I've tried to comment the code best I could. It's based on Keith Peters' Gravity Tutorial for iPhone, which is in 5 parts, which can be found here: [1] [2] [3] [4] [5]. Keith goes into quite a bit of detail about some of this stuff, and some of the later tutorials add some things like accelerometer control.

I've also added a bunch of little things to his code, which you can experiment with. Check the rather extensive README.rtf that you can view from within XCode after you open the project.

Download file


have fun!

| all rights william carter |
| view cc license |

Thanks for signing in, . Now you can comment. (sign out)


Remember me?