+ 1

Can i use my phone's accelerometers in JavaScript code?

I am currently writing a JavaScript code for a biljart (pool) game and i was wondering if i could shoot the cue bal using the accelerometers of the phone, have the phone act as it were the cue stick. Does anyone have an idea on how and if this can be done? Thanks for helping me out. I included the unfinished game https://code.sololearn.com/WY734AN3TF0c/?ref=app

25th Apr 2018, 6:59 AM
davy hermans
davy hermans - avatar
1 Antwort
25th Apr 2018, 7:08 AM
Mike Choy
Mike Choy - avatar