Search the Community
Showing results for tags 'gyroscope'.
Found 4 results
Hi guys, I'm making a game which uses browser gyroscope data as player's input. The aim of the game is to align a bar controlled by the player with a bar that continuously rotates. In order to rotate player's bar, the phone must be tilted on its x axis. When holding the phone perfectly vertical (first image) there is no problem. But when the phone has some rotation on its y axis or is pointing downwards (second image), the rotation that I'm interested in is no longer correct. Is there any workaround to make x rotation relative to the position that the back of the phone is pointing to? It is ok to use any library. I've tried gyronorm.js and gyro.js so far, but none of them are giving me the desired results.
Phempt posted a topic in Panda 2Hello guys, I want to move my sprite to left/right using the gyroscope/accelerometer. Is there something on panda to do this? Edit: Unfortunately the link here: http://www.html5gamedevs.com/topic/7064-how-to-use-accelerometer/?hl=accelerometer is offline.
Hi guys, I am completely new to js and HTML5. I want to make a simple game in which you roll a ball around a maze by using a tablet/mobile devices orientation. Does anyone have any pointer on how to achieve this? I have looked at gyro.js so far but have no idea how to implement its use.