开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜