as a title how to start creating android games? Is there any sample code for android games creation , what graphic library used ?
Thanks.
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:
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With