05 2010 档案

摘要:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--<?xmlversion="1.0"encoding="UTF-8"?><!--GeneratedfromCommon.xmlbyXMLBuddy--><!ELEMENT... 阅读全文
posted @ 2010-05-24 16:19 木瓜网络 阅读(702) 评论(0) 推荐(0)
摘要:xml配置文件的标签:下表是在配置文件中常用的一些标签以及相关的说明和用法术语说明代码示例${变量名}你可以把一些变量分离出来写在单独的文本文件中,然后在配置中引用这些变量,这样最大的好处是你可以把配置信息比如Server端的连接地址放在单独的文件中,方便修改和维护新建global.prop文本文件,写入:variable1=10在配置中引用:${variable1}object在XML配置中,每... 阅读全文
posted @ 2010-05-24 16:15 木瓜网络 阅读(1249) 评论(0) 推荐(0)
摘要:以下是一个完整的以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 木瓜网络 阅读(1564) 评论(0) 推荐(1)
摘要:用PBE的TemplateManager我们能够实例化3种类型的类,他们是entity,template和group。他们都可以出现在xml文件当中。当一个xml文件被加载以后,所有包含在xml文件都将之后在TemplateManager被实例化,注意:只是装载了一个对象的描述并不实际创建该对象。它必须被实例手动与TemplateManager。Entities:Entity tag 包含在xml... 阅读全文
posted @ 2010-05-05 15:47 木瓜网络 阅读(1001) 评论(0) 推荐(1)
摘要:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--package{importcom.pblabs.engine.PBE;importcom.pblabs.engine.entity.IEntity;importcom.pblabs.engine.e... 阅读全文
posted @ 2010-05-04 16:23 木瓜网络 阅读(1160) 评论(0) 推荐(1)