Integrated android animation for a 2D game: which approach?

I am starting a 2D game for Android (and iPhone later). I want to animate animals on the screen (think a cartoon dog). What is the best approach? Should I use the built-in tween animation from Android and mix them to get a good animation sequence (scale, translation, rotation). Is there any way to help me with this? Is it possible to make animation in a flash and "import" animation sequences (perhaps through AS3 generation?)

Otherwise, should I do it "manually", with a blank canvas and write all the drawing logic?

I'm just trying to get the fastest way to animate my characters (if I need to encode 20 hours for 1 complex animation, I'm not sure I will go very far).

Thank:)

+3
source share
3 answers

I would suggest you use a cross-platform library dedicated to game development, such as LibGDX , which allows you to work with the desktop target, and as soon as you are happy with the result, switch to the Android target (same code, 1 line to add to the switch : p).

As for animations, I built the Tween engine , which can be used to interpolate any attribute from any object. With it, you can rotate turns, positions, opacity, blur, ... everything. It is platform independent and library independent.

, .

update: . Google.

+2

For this:

Cocos2d-X (cross platform) free

LibGDX (cross-platform) paid the enemy iOS

0
source

Source: https://habr.com/ru/post/1789771/


All Articles