Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android games android apps beginner question [closed]

Tags:

android

as a title how to start creating android games? Is there any sample code for android games creation , what graphic library used ?

Thanks.

like image 790
Conex Avatar asked Mar 17 '26 20:03

Conex


2 Answers

There are basically two graphics systems for Android. Canvas, which is not hardware accelerated (all stuff is done by the CPU).

The more powerful and hardware accelerated alternative (if you're using it correctly) system is OpenGL. Google has done a very good work on wrapping the OpenGL system into one basic view, which is GLSurfaceView.

However, you should start looking at the Sample API demos, where the Lunar Lander demo is a great start. If you're already going hardcore and want to learn about the OpenGL system, the SpriteMethodTest is a good start, created by Chris Pruett, which also has done an open source project called Replica Island.

If you're intersted in some other resources about games, see:

  • Writing real time opengl-es game for android - some question (optimizing)
  • Android: Deciding between SurfaceView and OpenGL (GLSurfaceView)
  • Game Development for Android: A Quick Primer
  • Google I/O 2009 - Writing Real-Time Games for Android
  • Google I/O 2010 - Writing real-time games for Android redux
like image 50
Wroclai Avatar answered Mar 19 '26 08:03

Wroclai


Android graphics overview: http://developer.android.com/guide/topics/graphics/index.html

3d graphics intro: http://developer.android.com/guide/topics/graphics/opengl.html

2d graphics intro: http://developer.android.com/guide/topics/graphics/2d-graphics.html

As for general gaming development, you should read up on fundamentals before trying to make games on it. It is quite different to program on mobile platforms. http://developer.android.com/guide/topics/fundamentals.html

A couple game examples:

JetBoy: http://developer.android.com/resources/samples/JetBoy/index.html

LunarLander: http://developer.android.com/resources/samples/LunarLander/index.html

Snake: http://developer.android.com/resources/samples/Snake/index.html

like image 36
JClaspill Avatar answered Mar 19 '26 09:03

JClaspill