Is it better to use Android's built-in frame animation methods or create your own?

I have downloaded some sample Android games, and most of them do not use Android animation methods. I also saw several posts on this site and on other sites where some say they prefer not to use the Android animation methods, but they never explain why.

So, is it better to use Android animation for games at all?

+4
source share
1 answer

I would not recommend using Android Animation classes for games. The reason is that they work with performances that are not light enough for high-performance games. Views are for buttons, text, and images that basically remain motionless, arranged in organized layouts, and not for images that move around. The two best approaches for creating games with Android:

  • Using the Canvas Class . Note that this will only work for simple two-dimensional sprite-based games, as it tends to be pretty slow. It is relatively easy for beginners to learn.

  • OpenGL ES. - , . ,, , OpenGL ES!

, , ​​ Mario Zechner, " Android" ( Amazon). "" Canvas, OpenGL , "Doodle Jump", , 3-D " ". , , , , , Android.

, !

EDIT:

Android: . OpenGL, . -, , , iOS. ( , - .) Cocos2D libGDX. , ( ).

, , , .

+2

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


All Articles