TuftEntertainment / hashtag-warrior

Open-source iOS game powered by cocos2d.
MIT License
8 stars 7 forks source link

Device orientation matters for the accelerometer. #19

Closed verbitan closed 11 years ago

verbitan commented 11 years ago

This line, b2Vec2 gravity(acceleration.y * 15, -acceleration.x *15), assumes that the device is landscape with home button on the left.

If the home button is on the right, the x axis is back to front.