Search code examples
iphonemotion-detection

Jenga from Apple Source Code / Motion Detection


Hello I was watching Apple WWDC 2010 and saw Steve playing jenga... Now I am die to see what is under the hood. Is there an code sample from Apple of that game? I was looking and can't find it...

May be someone can give me a link to it or something similar, perhaps tutorial? I am dying to know how it works. Please help.

P.S: Here is a link ( http://www.youtube.com/watch?v=ORcu-c-qnjg ) to youtube, just so you know what I am talking about.

Thanks!


Solution

  • Jenga was an actual application, available on the app store. As such, you won't be able to find the source code for it. However, you may be interested in the following:

    Apple gyroscope sample code

    Which point you to Core Motion:

    http://developer.apple.com/library/ios/#documentation/CoreMotion/Reference/CoreMotion_Reference/CoreMotion_Reference.pdf

    Here is another example with source code:

    http://cs491f10.wordpress.com/2010/10/28/core-motion-gyroscope-example/