开发者

What is the idea behind creating levels for iPhone games?

开发者 https://www.devze.com 2023-01-16 13:22 出处:网络
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 k

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消