I am compleatly new to android gaming.
I want to develop a 2D game with some physics in it.
I want to know which one i have to use Open GL or Canvas and the reason for selection
I want to include a physics engine i dont know anything about that too
It will be very help full if anyone can share any idea's and suggections.
Advanced thanks to all ...
|
|
|||||
|
|
You may be confusing "Surface View" with drawing via OpenGL allows hardware rendering (makes use of the GPU), even of 2D sprites (which you render to a polygon). This also gives your sprites additional features, such as rotation, hardware scaling, or setting them up in a 3D "perspective" to do things with that (like fake parallax scrolling). Basically if you want any of the following, you probably have to use OpenGL:
Drawing bitmaps with the |
|||||
|
|
It seems you are mixing things... On Android you have to use SurfaceView to display OpenGL.OpenGL is a library and SurfaceView is the viewable part of OpenGL. OpenGL is not a physic engine as you think,you can't handle speed,acceleration, gravity etc..this is the job of library like andengine,box 2d and many others I recommand you to read this: http://developer.android.com/guide/topics/graphics/opengl.html |
|||
|
