how to manage accelerometer value .x and .y
hello i am making game application in that game i a moving game using accelerometer but i want that my ball should not mo开发者_高级运维ve in upper direction , only move my ball in right ,left and bottom side
please help me........
You can change the value of gravity to +ve or -ve.
Please have a look at the BubbleLevel sample code available at
- http://developer.apple.com/library/ios/#samplecode/BubbleLevel/Introduction/Intro.html
This will help you for sure.
精彩评论