摘要: 以下是一个完整的以xml组装游戏的实例:整个项目文件结构如下:1、assets/Level/common.xml 文件为pushButton引擎当中的组件组装文件,以下为该文件代码:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--<!DOCT... 阅读全文
posted @ 2010-05-05 16:26 木瓜网络 阅读(1531) 评论(0) 推荐(1) 编辑
摘要: 用PBE的TemplateManager我们能够实例化3种类型的类,他们是entity,template和group。他们都可以出现在xml文件当中。当一个xml文件被加载以后,所有包含在xml文件都将之后在TemplateManager被实例化,注意:只是装载了一个对象的描述并不实际创建该对象。它必须被实例手动与TemplateManager。Entities:Entity tag 包含在xml... 阅读全文
posted @ 2010-05-05 15:47 木瓜网络 阅读(983) 评论(0) 推荐(1) 编辑