Daily Archives: November 28, 2011
iOS Game Dev with Cocos2D (10) Using Accelerometer to move the monster around
Accelerometer is a 3 dimensional vector (x,y,z), and each axis can have a value in the range of [-1, 1]. 1 means you receives 1g (gravity) force to that direction. Suppose you keep the iPhone face-up horizontal to the earth … Continue reading