SaveTheDot icon indicating copy to clipboard operation
SaveTheDot copied to clipboard

Advice on adding accelerometer for controls

Open MDCurrent opened this issue 7 years ago • 6 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 avatar May 14 '17 22:05 MDCurrent

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

JakeLin avatar May 14 '17 23:05 JakeLin

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 avatar Dec 06 '18 01:12 nguyenh13

@nguyenh13 I haven't 😔

JakeLin avatar Dec 06 '18 03:12 JakeLin

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

nguyenh13 avatar Dec 06 '18 03:12 nguyenh13

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

MDCurrent avatar Dec 06 '18 03:12 MDCurrent

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

JakeLin avatar Dec 06 '18 03:12 JakeLin