开发者

how to manage accelerometer value .x and .y

开发者 https://www.devze.com 2023-02-25 11:39 出处:网络
hello i am making game application in that gamei 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 bot

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

精彩评论

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