Skip to content
This repository was archived by the owner on Jul 5, 2022. It is now read-only.

Conversation

@anuraghazra
Copy link
Contributor

I used gyroscope sensor to control the player and added some sound effects too.
GyroDodge is more fun to play on mobile devices.

play : https://anuraghazra.github.io/GyroDodge/

@gruselhaus
Copy link
Member

@anuraghazra Does it only run on android devices? On my iPhone it didn't work.

@anuraghazra
Copy link
Contributor Author

anuraghazra commented Mar 17, 2019

I don't know because I'm using Android device and I don't have access to an IPhone so i think I might have to consider Support for Safari's javascript deviceorientation api.

Btw can you tell me which Safari version and IPhone you are using?

@gruselhaus
Copy link
Member

Btw can you tell me which Safari version and IPhone you are using?

iPhone X, iOS: 12.1.4

@anuraghazra
Copy link
Contributor Author

Ohh okay, I think the support is not good.

https://caniuse.com/#search=DeviceOrientation

@gruselhaus
Copy link
Member

Ok. Let's merge anyway ❤️

@gruselhaus gruselhaus merged commit 38769f2 into CodingTrain:master Mar 17, 2019
@anuraghazra
Copy link
Contributor Author

Okay thanks! i will try to solve the issue if possible.

@anuraghazra
Copy link
Contributor Author

Okay i think i can fix it. looks like IOS devices uses ondevicemotion rather than ondeviceorientation event.

https://stackoverflow.com/questions/4378435/how-to-access-accelerometer-gyroscope-data-from-javascript

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants