I want to know how different levels are made in iPhone games like "AngryBirds". Do they have some large array which has locations where to put the brick or something? How 开发者_Python百科do those kinds of levels are developed?
You store the level data like any other information, typically in a file. Depending on your needs, it might be best if this file is a plist, an sqlite database, or some custom format. Then, when a level is loaded, the program reads the appropriate file and creates data structures, such as objects, dictionaries, and arrays, to store the data it needs in the way it needs it.
精彩评论