使用XML在Cocoa中编程游戏关卡 [英] Using XML to program game levels in Cocoa
本文介绍了使用XML在Cocoa中编程游戏关卡的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我做一个相当大的游戏Mac应用商店,我想使用XML控制我的水平。基本上我只需要能够从XML文档中读取坐标,并且转换为可可,我可以使用它们为每个级别移动对象。
Im making a fairly big game for Mac appstore, and i would like to control my levels using XML. Basically I just need to be able to read co-ordinates out of the XML document and into cocoa, where I can use them to move objects for each level. How do i parse this file in cocoa?
感谢您的帮助
推荐答案
NSXML 应该有一切你需要开始。
NSXML should have everything you need to get started.
这篇关于使用XML在Cocoa中编程游戏关卡的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文