★ TouchArcade needs your help. Click here to support us on Patreon.

New iphone game programming tutorials for newbies

02-21-2010, 11:48 AM
#1
Joined: May 2009
Location: Spain
Posts: 137
New iphone game programming tutorials for newbies

Hi all, I started a set of tutorial of game programming for newbies, I'm gonna show you how to start to make games for the iphone with opengl and obj-c.
I hope someone find this useful, the beginnings are usually hard for the newbies with the iphone programming
Iphone programming blog


See ya,
02-21-2010, 11:59 AM
#2
Joined: Nov 2008
Location: Munich, Germany
Posts: 754
Send a message via Skype™ to mobile1up
16bit texture - ARGB4444?

most 16bit graphics i've seen use RGB565 444 models are very restrictive when it comes to color ranges and if you are going to use openGL to handle drawing; it is probably best to leave it as ARGB8888 and let the hardware do the work to convert it to the RGB565 which is actually what is used in most 16 bit modes.

// Aaron Ardiri
Mobile 1UP is a proud indie developer - support us!
developer of Caveman / Caveman HD and GW Series
02-21-2010, 12:28 PM
#3
Joined: May 2009
Location: Spain
Posts: 137
rgb565 don't has alpha channel wich is needed, from my tests rgb4444 or rgb5551 are actually my preferred methods for textures
02-21-2010, 12:31 PM
#4
Joined: Nov 2008
Location: Munich, Germany
Posts: 754
Send a message via Skype™ to mobile1up
Quote:
Originally Posted by Eskema View Post
rgb565 don't has alpha channel wich is needed, from my tests rgb4444 or rgb5551 are actually my preferred methods for textures
rgb4444 means 4 bits per color = 16 shades of red, green, blue
rgb5551 means 5 bits per color = 32 shades of red, green, blue

note; that these shades are linear - so out of a 0..255 range - you cannot get exact color models. you should use rgb8888 - and let open GL do the down-sampling to rgb565 after the alpha channels are blended. personally; i use a specific color for transparency and do my own transparency handling - but this requires a framebuffer type environment.

use rgb8888 - and let open GL do the down-sampling to whatever the display is.

// Aaron Ardiri
Mobile 1UP is a proud indie developer - support us!
developer of Caveman / Caveman HD and GW Series