JakeLin / SaveTheDot

A game developed using UIViewPropertyAnimator
MIT License
804 stars 84 forks source link

Advice on adding accelerometer for controls #4

Open MDCurrent opened 7 years ago

MDCurrent commented 7 years ago

Do you have any advice to make tilting the device move the player or would use of the accelerometer as control not be feasible? I want to make a PR that implements this functionality. Another feature I would like to add is being able to use swipe gestures to hit the ball like a game of billiards.

JakeLin commented 7 years ago

@MDCurrent please go ahead to make PRs for those features.

nguyenh13 commented 5 years ago

Do you have any advice to make tilting the device move the player or would use of the accelerometer as control not be feasible? I want to make a PR that implements this functionality. Another feature I would like to add is being able to use swipe gestures to hit the ball like a game of billiards.

Have you done this feature?

JakeLin commented 5 years ago

@nguyenh13 I haven't 😔

nguyenh13 commented 5 years ago

@JakeLin I'm trying to implement this feature, already got the x and y data, but not sure how to use it to move the dot.

MDCurrent commented 5 years ago

I may have an implementation of the player moving around the screen it makes the game very hard

JakeLin commented 5 years ago

@MDCurrent can you please share that to @nguyenh13? Because the dots move very quickly, it's very difficult to use the accelerometer, unless we slow them down.