Hi All,
I have been reading through many posts on the internet and it seems that OpenGL is widely recommended API to be used for 2D games on the iphone as well as 3D.
I am looking to develop a 2D game which has more than two background layers and several sprites.
The technique I have used so far is to create a textured quad for each of the layers and sprites, rendering them in the sequence in which they appear (last drawn item on top).
Regarding the texturing of the quads, I'm using a texture atlas and specifying texture coordinates in floating point for each of the background layers and indvividual sprites.
Is this the best way to render layers and sprites? it seems kind of like a sort of makeshift way of doing things. Plus when animating the different sprite frames I have to change all four texture coordinates each time based on stored coords for each frame image.
your thoughts?
Thanks in advance
M!
I have been reading through many posts on the internet and it seems that OpenGL is widely recommended API to be used for 2D games on the iphone as well as 3D.
I am looking to develop a 2D game which has more than two background layers and several sprites.
The technique I have used so far is to create a textured quad for each of the layers and sprites, rendering them in the sequence in which they appear (last drawn item on top).
Regarding the texturing of the quads, I'm using a texture atlas and specifying texture coordinates in floating point for each of the background layers and indvividual sprites.
Is this the best way to render layers and sprites? it seems kind of like a sort of makeshift way of doing things. Plus when animating the different sprite frames I have to change all four texture coordinates each time based on stored coords for each frame image.
your thoughts?
Thanks in advance
M!