MikhalevKonstantin / frozenbubbleandroid

Automatically exported from code.google.com/p/frozenbubbleandroid
GNU General Public License v2.0
0 stars 0 forks source link

Accelerometer Support #4

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi, this is a feature request for accelerometer support, it would be terrific 
fun I think.

Thanks.

Original issue reported on code.google.com by alexande...@gmail.com on 8 Nov 2010 at 6:46

GoogleCodeExporter commented 9 years ago
A very naive implementation, but seems to play well.

Original comment by barn...@iware.co.uk on 29 Nov 2010 at 6:04

Attachments:

GoogleCodeExporter commented 9 years ago
accelerometer.patch does play really well and adds a lot to the game.  Although 
if I tilt to far, for a rebound shot, the app rotates to landscape mode.  I 
might be an idea to disable screen rotation in accelerometer mode.

Original comment by johnboyh...@gmail.com on 5 Jan 2011 at 9:01

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
The accelerometer patch was applied as of version 1.13.

The option menu now contains a "Targeting Mode" option that opens a dialog when 
selected.  The dialog allows the player to select one of the following three 
options:
1) Aim Then Shoot
2) Point To Shoot
3) Rotate Then Shoot

The implementation could probably use some improvement to be more responsive, 
but it works pretty good for such a naive implementation.

Per johnboyholmes suggestion, I lock the screen to portrait mode when the 
accelerometer-based targeting mode is selected.  The portrait mode will flip 
upside down if the screen is rotated enough, so you can use 2 device 
orientations to play, which is handy depending where your headphone jack, USB 
ports, and device buttons are located.

Original comment by forter...@gmail.com on 20 Mar 2013 at 5:21