I'm starting a 2D game for Android ( and iPhone later ). I want to animate animals on the screen ( think 开发者_Go百科a cartoon dog ). What is the best approach to do so ? Should I use the built in tweening apis from Android, and mix them to obtain the good animation sequence ( scale, translate, rotate ). Is there any tool to help me do that ? Would it be possible to do the animation in flash and "import" the animation sequences( through AS3 generation maybe ? )
Otherwise should I do this "by hand", with a blank canvas and write all the draw logic ?
I'm just trying to get the fastest way to animate my characters ( if I need to code 20hours for 1 complex animation I'm not sure i'll go very far ).
Thanks :)
I would highly suggest you to use a cross-platform library dedicated to game development, like LibGDX, which allows you to work with a desktop target, and once you're happy with the result, switch to an android target (same code, 1 line to add to switch :p).
As for the animations, I built a Tween engine that can be used to interpolate any attribute from any object. With it, you can tween rotations, positions, opacity, blur, ...everything. It platform independent and library independent.
For more information, I would advise you to take a look at the answer I made on this other question.
update: extensive documentation built. Check the google code project.
I would start to look on existing game engines. e.g. AndEngine - Free Android 2D OpenGL Game Engine or existing game Replica Island
For this :
Cocos2d-X (Cross platform) free
LibGDX (Cross platform) paid foe iOS
精彩评论