idk how to code that much but let me know if you have a way
that’s java, not javascript. they’re completely different languages.
I guess you can use DeviceOrientationEvent and DeviceMotionEvent events to detect your device orientation and position
never tried it tough
that dint helped
google is your friend
if you dont understand something be specific in your questions