新石器 发表于 2019-6-24 13:22:58

地图编辑器开发文档

地图编辑器开发文档



地图ID:16位整形,自定义ID 40000-65534
快捷键:
1移动模式,
2抓取模式,可以抓取物件进行随意摆放。
3画笔可选择吸管和模板,当选择吸管有效时模板失效。ALT按下时设置吸管为当前选中。
4橡皮可以删除地表或物件。ALT按下时使用笔刷范围删除。
鼠标右键,取消吸管。
鼠标中间按下,移动场景,ALT按下时快速移动。
鼠标滚轮,缩放地图。



模板资源界面,可以选择模板。


添加自定义模板。



保存缩微图需要和地图到modxxx/Data/Map/。
战斗地图保存到modxxx/Data/BattleMap/。
注意!!请勿删除阻挡信息,但可以增加阻挡信息,可能会导致校验失败从而被服务器踢掉线。


texture.xml,自定义贴图。<root>
    <t min="100" max="192" px="-32" py="-24" w="64" h="47" cw="1" ch="1" flag="1" type="0" />
    <t min="193" max="196" px="-32" py="-24" w="64" h="47" cw="1" ch="1" flag="0" type="0" />
    <t min="200" max="295" px="-32" py="-24" w="64" h="47" cw="1" ch="1" flag="1" type="0" />
</root>min 最小id max 最大id ID为16位整形。
  自定义ID 30000-30099 type3-6  30101-39999地表 40000-49999建筑 50000-60000道具。建议按以上规范填写,但并不强制要求。
  px锚点x py锚点y w长度 h宽度 cw占地北 ch占地东 flag0阻挡1非阻挡 2非阻挡显示在地表层。
  type贴图类型 0地表 1建筑 2道具 3音乐 4环境音效 5标识阻挡 6其他

  map.xml,自定义地图模板。可用于快速换皮等。<root>
  <terrainType>
    <tt type="0" name="无" id="0" />
    <tt type="1" name="浅沙地" id="100" />
    <tt type="2" name="浅绿地" id="145" />
    <tt type="3" name="深绿地" id="163" />
    <tt type="4" name="深水" id="193" />
    <tt type="5" name="深草地" id="400" />
    <tt type="6" name="深沙地" id="413" />
    <tt type="7" name="棕沙地" id="534" />
    <tt type="8" name="浅水" id="577" />
  </terrainType>

  <terrain>

    <g name="阻挡" type="5" terrainType="0" terrainType2="0" >
      <t min="2" max="2" />
    </g>

    <g name="音效" type="4" terrainType="0" terrainType2="0" >
      <t min="20" max="37" />
    </g>

    <g name="音乐" type="3" terrainType="0" terrainType2="0" >
      <t min="40" max="55" />
    </g>

    <g name="沙地" type="0" terrainType="1" terrainType2="0" >
      <t min="100" max="144" dir="16" />
    </g>
        <g name="棕沙地" type="0" terrainType="7" terrainType2="0" >
      <t min="531" max="533" dir="16" w="3" />
            <t min="534" max="537" dir="16" />
    </g>
   
    <g name="操场" type="0" terrainType="20" terrainType2="0" xx="13" xy="1" >
      <t min="3201" max="3213" />
    </g>
    <g name="树" type="1" >
    </g>
    </terrain>
</root> terrainType 地表类型 用于地表拼接等。
  g name="阻挡" type="5" terrainType="0" terrainType2="0"
  type等同于贴图类型,主要用于地图编辑中分类显示,需要注意:游戏中依然使用贴图类型区别不同地表。
  另外,地表分为2层显示 type等于0地表层 type不等于0为物件层。
  terrainType 基础地表类型 terrainType2 拼接地表类型。
  
  min 最小id max 最大id
  随机地表模板 name="沙地" type="0" terrainType="1" terrainType2="0"
  随机遮罩地表模板name="浅沙地-浅绿地" type="0" terrainType="1" terrainType2="2"
  横向固定模板 xx xy 负数为反向name="操场" type="0" terrainType="20" terrainType2="0" xx="13" xy="1"
  纵向固定模板 yx yy 负数为反向name="" type="0" terrainType="20" terrainType2="0" yy="13" yy="1"
  dir 方向默认为16,随机地表。
      1东北
  2西北  8东南
      4西南

  Data\localizationMap.txt,自定义本地化文本地图名称。KEY,Chinese
map100,萨伊那斯需要注意英文逗号。



页: [1]
查看完整版本: 地图编辑器开发文档