开发者

Android 2D game programming: using OpenGL or not? [closed]

开发者 https://www.devze.com 2023-03-06 14:03 出处:网络
Closed. This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing
Closed. This question is opinion-based. It is not currently accepting answers.

Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.

Closed 8 years ago.

开发者_如何转开发 Improve this question

I've just started to develop games on Android. My first game is a 2D game and I'm wondering whether I should use OpenGL or not.

Does anyone have some advice on this?

Thanks a lot, Viet


OpenGL ES all the way! There are some good videos from last years IO on android game dev and the frame rates you can achieve going opengl vs canvas.

http://www.youtube.com/watch?v=7-62tRHLcHk&feature=player_embedded

http://www.youtube.com/watch?v=U4Bk5rmIpic

Also there are a handful of great 2d frameworks to simplify the process, the best in my opinion being AndEngine


As far as I know OpenGL ES will give better performance (especially on Tegra 2 devices). OpenGL ES is also harder to learn, but there are good tutorials and support libraries.


I recommend you not to use OpenGL directly as it may seem difficult. Instead you can use a library like LIBGDX which provides easier functionality.

Check this tutorial: http://m3ph1st0s.blogspot.ro/2012/12/create-games-with-libgdx-library-in.html


You will want to use OpenGL ES if you want anything close to a respectable frame rate. OpenGL ES is hardware accelerated (uses the GPU), while other libraries mostly use the CPU.

0

精彩评论

暂无评论...
验证码 换一张
取 消