Alright, session 4 of my iPhone Game Development course is now available for download (if you already bought it, new dl links should have just arrived). The two big things taught this session were NSUserDefaults and NSPickerViews. The defaults let you save the state of your game in numbers, strings, or arrays, and use them immediately when the game relaunches. So in this case, the character in the image below got his previously-earned armor re-applied when the game was opened again. And the NSPickerView is that big 4 column spin wheel on the right. So you’ll learn how to apply array data to each of those wheels, change the font or color, and obviously do something when a particular row is selected. And each of those NSPickerView wheels will also spin back to their previously assigned state when the game opens again. Finally, you’ll pass the data in the settings class into another class (probably your main game).
Sound fun?? It is. This session is 2 hours and will satisfy your wildest dreams…. okay, not really. But if you like dress up games, or programming character inventory, you’ll dig it. And don’t forget all this iPhone video training will carry over for the iPad too.