Animations / OpenGL (ES 2) in game menu
Posted
by
user16547
on Game Development
See other posts from Game Development
or by user16547
Published on 2014-04-28T18:32:00Z
Indexed on
2014/05/29
9:45 UTC
Read the original article
Hit count: 246
android
(I am specifically asking for Android)
If you look at Angry Birds (and in fact many other games), you can already see a lot of animations & effects going in the main menu and in other places even before starting to play. I assume they are done with OpenGL, more precisely a FrameLayout
is used and inside it a GLSurfaceView
is somewhere at the bottom of the hierarchy; above the GLSurfaceView
you have regular Android buttons and texts.
Is this how it's done*? Also would you reuse the same GLSurfaceView
when running the actual game or should another one be created?
*I am aware an alternative approach would be to make absolutely everything in OpenGL. Of these two I prefer the FrameLayout
one, but I don't know whether other developers agree.
© Game Development or respective owner