速報APP / 遊戲 / Tilt / Touch Movement Demo

Tilt / Touch Movement Demo

價格:免費

更新日期:2014-04-03

檔案大小:1.2M

目前版本:1.0

版本需求:Android 2.0 以上版本

官方網站:mailto:cshappdev@gmail.com

Tilt / Touch Movement Demo(圖1)-速報App

This is NOT a game, and there's nothing really special about this app. I just made it to learn how to use different methods of controls using libgdx, and switch between those modes dynamically. This demo also uses a chase/follow type of movement control. Just thought I would share it with the world.

Modes:

- Rotation

- Tilt

- Touch

Tilt / Touch Movement Demo(圖2)-速報App

Using Rotation:

Tap the screen anywhere to start/stop movement of the guy you're controlling. This would be considered a Gravity-Up type of control. In other words, hold the phone like normal, and no matter how you rotate the phone, the guy you're controlling will always move up.

Using Tilt:

Tap the screen anywhere to start/stop movement of the guy you're controlling. This would be considered a Gravity-Down type of control. In other words, hold the phone flat and level to the ground. Whichever way you tilt the phone, the guy you're controlling will move in that direction.

Using Touch:

Tilt / Touch Movement Demo(圖3)-速報App

Tap the screen anywhere to start movement of the guy you're controlling. When he gets to that point, his movement will stop. Tapping a different place on the screen while he is moving will redirect him there.

NOTE: the guy can get stuck in an orbit-like movement, if you tap too close to the left or right of his current position.