Reputation: 409
If you were to make a simple game, lets say a stick figure that you can move back and forward across a screen, would you need to use OpenGL in Android or would the 2D graphics that don't use OpenGL be enough? I'm thinking about attempting to make a simple game, but trying to see if it is necessary to focus on OpenGL. Thanks
Upvotes: 0
Views: 1157
Reputation: 2138
If you have no OpenGL experience, but do not want to use an existing game library, I would suggest getting started with canvas. http://developer.android.com/guide/topics/graphics/2d-graphics.html
Check out the 'on a surface view' section for most relevant details. These days, this stuff is becoming more and more hardware accelerated, so you will see fairly decent performance on newer phones running 3.0 and above.
A great first project to read the source for and maybe use as a base is the classic 'Lunar Lander' Example.
http://developer.android.com/resources/samples/LunarLander/index.html
Upvotes: 1
Reputation: 21629
The best is to start with simple 2D animations until you learn how android works and then if you need more powerful graphics move to openGL. You may need some framework when you want to simulate gravity and physical collisions etc...
Check this first: How can I use the animation framework inside the canvas?
Upvotes: 0
Reputation: 5469
Do you want a big suggestion?
Start learning and using AndEngine it's a Free Android 2D OpenGL Game Engine
This is a List of Apps and Games made with AndEngine and this is a list of showcases.
Also it's very very very cool because of it's extension (box2d, multiplayer, controls, and so on). Its founder now work in Zynga :)
Source code is avaible on GitHub (don't look on google code, it's outdated)
UPDATE: this is the full list of extensions
Upvotes: 1