Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I download code for game levels in iOS?

Tags:

ios

xml

guys! I want to build a game for iOS, and I need to download levels for it. Levels should allow me to organize conditional statements, simple object discription. I know that downloading any code in iOS is prohibited, so I can't use Lua or smth. But how do other applications solve this problem?


1 Answers

Could you use XML? You can have flags like: <conditionalA>true</conditionalA> to handle your conditionals and descriptions (textual?) can again be wrapped inside tags:

<descriptionA>description</description>.

If you meant description in terms of position of objects, you can do things such as

<position>100, 100</position>

Have a look at NSXMLParser if you do decide to do something like this.

like image 73
James Webster Avatar answered Nov 22 '25 18:11

James Webster



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!