JakeLin / SaveTheDot

A game developed using UIViewPropertyAnimator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Advice on adding accelerometer for controls

MDCurrent opened this issue · comments

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.

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

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?

@nguyenh13 I haven't 😔

@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.

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

@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.