+ 1

How I can make tilt mode using js ?

For example we have played a racing game in that whenever I tilt right side then the car moves to right and happens with left side also

5th Mar 2021, 3:56 AM
Anurag Kumar
Anurag Kumar - avatar
4 Réponses
+ 2
Similar question with answer on StackOverFlow: https://stackoverflow.com/questions/5918982/access-device-compass-from-web-app-with-javascript And note that it (maybe) works for mobile devices only and not for computers.
5th Mar 2021, 5:44 AM
#0009e7 [get]
#0009e7 [get] - avatar
+ 1
Thanks bro 😃😃😃☺️
5th Mar 2021, 6:21 AM
Anurag Kumar
Anurag Kumar - avatar
0
Calviղ what is this how it is work I didn't understand🤔🤔🤔🤔
5th Mar 2021, 6:36 AM
Anurag Kumar
Anurag Kumar - avatar