地图制作

From DDraceNetwork
Revision as of 15:09, 3 June 2023 by Darkh (talk | contribs) (Created page with "** 只能从90°、180°、270°三种角度中进行选择。")

地图制作过程大致可分为头脑风暴,贴图设计以及地图测试三大环节。Teeworlds所属的每个模组(游戏模式)都将游戏地图作为玩法的基础。

头脑风暴环节要求地图制作者通过不凡的想象力,来制作出有创意、娱乐性高的地图实体;

贴图设计环节要求地图制作者为地图添加漂亮的外观,设计过程中一般要符合大众审美,且各个贴图所表示的信息应足够清晰且不会产生歧义,同时整体设计风格也要一般要符合游戏画风;

地图测试环节要求地图制作者完整将自己所制作的地图进行测试,以便发现当前地图中尚未察觉出的玩法问题或贴图设计问题等等。

玩家可以点击主菜单中的编辑器,来进入地图编辑器界面。

在游戏内的任何界面下,按下ctrl+⇧ Shift+E也可以直接进入地图编辑器界面。

DDNet地图制作准则

如果玩家最终想让自己的地图在DDNet服务器上发布,那么玩家必须遵守如下准则去制作地图。在地图上传至DDNet的Discord服务器之前,请确保玩家已经完整地测试过地图,地图各关卡运行和操作流畅,同时设计环节也已完全竣工。

在游戏体验方面,我们要求:

每个关卡都应有足够的空间供玩家进行舒适地操作;

地图整体难度应保持平衡,不得出现较大的波动(例如在一个中阶地图当中不能插入高星高阶地图甚至是疯狂地图的操作);

在容易造成失败的关卡当中,应有办法让其他玩家进行救援;

关卡操作不得过于精确或仅仅为难而难;

不得过度使用特殊游戏实体,同时不得将特殊实体用在修复地图关卡漏洞上;

不得故意误导或混淆关卡操作方式;

关卡不得利用游戏物理机制上的Bug来实现。

在视觉效果方面,我们要求:

所有玩家过关需要的实体都必须在贴图当中清晰地表示出来;

不同实体的贴图或标记必须要易于区分;

前景与背景必须要有明显的区别;

不要将对比度和饱和度调得太高,否则看上去会很不舒服;

在贴图层存在标志,提示或警告时,必须在实体层当中添加“Turn Off Entities(关闭实体层)”的标记;

如果使用了其他地图当中的素材,则需要得到素材原作者的许可后才能使用。

其他层面上,我们要求:

所有的玩家都必须要经过起点;

每张地图上都应有时间检查点。

额外注意:

在上述规则的基础上,关卡的独特性和创新性至关重要,同时也要保证地图有着优秀的贴图设计。一个简单但有良好关卡设计和优秀视觉效果的地图,相比于一个充满各式各样复杂问题的地图来说,会有更高的概率被选中并上传至DDNet服务器当中。

编辑器界面总览

下图为游戏自带的地图编辑器页面:

游戏自带的地图编辑器页面截图

接下来会根据图片上的内容编号来逐一解释编辑器界面中各个按钮的用途。

1.文件(File)

用来对地图文件进行新建、读取、保存等操作。

点击后出现的下拉菜单中:

    • 新建(New)ctrl+N:新建地图文件;
    • 读取(Load)ctrl+I:读取地图文件;
    • 读取当前地图(Load Current Map)ctrl+alt+I:若在游戏过程中或回放中进入了编辑器界面,点击此按钮会载入当前游戏所使用的地图;
    • 添加(Append)ctrl+A:将一个地图文件里的所有素材添加到当前地图中;
    • 保存(Save)ctrl+S:保存当前地图;
    • 另存为(Save As)ctrl+⇧ Shift+S:以另一文件名保存当前地图,同时以该文件名继续编辑地图;
    • 保存副本(Save Copy)ctrl+⇧ Shift+alt+S:以另一文件名保存当前地图,但以原文件名继续编辑地图;
    • 当保存副本时所使用的地图名与现有文件重复时,完成保存后会以该文件名继续编辑地图。
    • 退出(Exit):退出编辑器界面。

2.文件名

该区域显示当前读取的地图文件名称以及其文件保存路径;

3.地图编辑器的各项属性

该区域显示当前地图编辑器的各项属性:

  • X.Y:表示当前鼠标光标所处于地图编辑器的位置,单位为网格;
  • Z:表示当前地图的缩放比例值,在编辑器内载入地图时默认为200;
  • A:表示当前地图动画的播放倍速,默认为1;
  • G:表示当前地图网格线的尺寸大小,默认为1;
  • 10:18:本地时间。

4.退出

退出编辑器界面。快捷键ctrl+⇧ Shift+E

5.功能区

从左到右依次为:

    • 展示细节(HD)ctrl+H:预览当前地图在高质量模式下的外观;
    • 展示动画(Anim)ctrl+M:预览当前地图所设置的动画效果;
    • 展示视野边界(Proof)ctrl+P:预览玩家的最大视野范围;
      • 蓝色圆圈表示玩家的实际位置;
      • 红色框线和绿色框线表示在不同分辨率下可观察到的最大范围;
      • 白色框线表示在开启动态视野后可观察到的最大范围。
    • 展示游戏内视觉效果(Zoom):预览玩家在实际游戏当中看到的画面;
    • 展示网格(Grid)ctrl+G:开启网格线;
    • 展示信息(Info)ctrl+I:预览实体或贴图的详情信息,内容包括但不限于实体或贴图所属ID、贴图动画轨迹、贴图变形情况;
    • 放置不可用贴图(Unused)ctrl+U:允许在地图中放置不可用的贴图,现代地图中已不常用该功能;
    • 展示颜色(Color):预览当前笔刷所设定的颜色,关闭后笔刷将显示原配色,但不影响放置后贴图所设定的颜色;
    • 实体层选择(Entitles):选择当前地图需要使用的实体层类别,根据地图所应用到的游戏模式不同,编辑器中选择的实体层也应有所不同。

6.视野调整区

从左到右依次为:

以点击按钮或按快捷键的方式扩大或缩放视野无最大和最小比例值的限制,比例值甚至可以达到负值。当比例值为负值时,地图整体呈颠倒状态。

  • 扩大视野(ZO)numpad-:扩大操作区的视野,每次扩大50点比例值;
        • 向下滚动鼠标滚轮同样可以扩大视野,每滚动一格扩大20点比例值,以此种方式扩大视野最多扩大至2000点比例值。
    • 恢复视野(1:1)numpad*:将视野恢复至默认的比例值;
    • 缩小视野(ZI)numpad+:缩小操作区的视野,每次缩小50点比例值;
        • 向上滚动鼠标滚轮同样可以缩小视野,每滚动一格缩小20点比例值,以此种方式缩小视野最多缩小至10点比例值。

7.笔刷功能区

从左到右依次为:

  • 水平翻转(X/X)N:将笔刷中的内容水平翻转;
  • 垂直翻转(Y/Y)M:将笔刷中的内容垂直翻转;
  • 旋转角度(90°):每次旋转笔刷中的内容时所转过的角度,可通过按住该按钮并左右滑动鼠标来修改,在修改过程中按住⇧ Shift可以更精准地修改;
    • 只能从90°、180°、270°三种角度中进行选择。
  • 逆时针旋转(CCW)R:以一定角度逆时针旋转笔刷中的内容;
  • 顺时针旋转(CW)T:以一定角度顺时针旋转笔刷中的内容。

[8] Layers/Images/Sounds management

In this area you can manage different groups of layers including the physics layer. By clicking on the top button "Layers", you can add images and sound resources to the map. Layer management area, here is responsible for managing the map's layer groups and layers, as well as the invocation of the mapping material, picture material, and sound material. Pressing will also switch to the image management interface, or pressing will switch to the sound management interface

位于图层(Layers)管理界面时

  • 鼠标左键Layers或者键盘按会切换至图像管理界面;
  • 鼠标右键Layers或者键盘按会切换至声音管理界面;
  • 点击Add group可添加新的图层组;
  • 右键某一图层组可设置该图层组的各项参数,
  • 右键某一图层可以设置该图层的各项参数(待做详细解释)。
待办: Explain right click menu in group and layer with images

Images

  • Images (left click) : Switch to Sound management
  • Images (right click) : Switch to Layer management
  • Click the Add button to add image clips from the default clip folder to the map file.
  • Embedded area means the clips of this series have been embedded in the map file, when downloading the map, this kind of file will be included in the map file volume.
  • External area means that the material of this series is located outside the map, it is the default material in the game, when downloading the map, this kind of file will not be counted in the map file volume. When the map needs to call the image material of this area, it will directly call the file with the same name from the player's local default material library.
    • Regardless of the location of the clip, when the clip file is white or red (selected), it means the clip is being used by the map; when the clip file is blue or purple (selected), it means the clip is not yet used by the map.
  • Left-click on a file that has been added to preview the image in the right workspace, and right-click on the file to perform the following actions.
    • Readd: Overwrite the clip by calling a file with the same name directly from the default clip library.
    • Replace: select a clip file to overwrite the clip.
    • Remove: removes the clip file.
    • When right-clicking on a file in the External area, an additional Embed option will appear to move the file into the Embedded area.

Sounds

  • Sounds (left click) : Switch to Layer management
  • Sounds (right click) : Switch to Image management
  • Click the Add button to add sound clips from the default clip folder to the map file. Currently DDNet game editor only accepts opus format audio files.
  • Right-click on a file to perform the following actions.
    • Readd: Overwrite a clip by calling a file with the same name directly from the default clip library.
    • Replace: select a clip file to overwrite the clip.
    • Remove: Remove the clip file.

[9] Context dependent actions

Additional buttons that will change depending on the selected layer.

On all layers

When any layer is selected, the following buttons appear:

  • Refocus home: immediately focuses the view to the upper left corner of the map.
  • Goto XY: immediately focuses the view to a specific coordinate of the map. Clicking this button sets the coordinate in its drop-down menu, and then clicking the Go button focuses the view to that coordinate.
  • Destructive mode ctrl+D: When Destructive mode is enabled, the area the brush passes over will be completely covered and the texture of this area will be replaced; when Destructive mode is disabled, the area the brush passes over will only be filled with the location that is not filled with the texture.
  • When Game or Tile layer is selected: Add Border: Adds a two-tile wide border to the current layer, using the texture of the selected layer's No. 2 map.
  • When Switch layer is selected: Switch ctrl+A: Set the number of the next placed switch layer entity. In the drop-down menu: Number is used to set the number, Delay is used to set the number of additional information, and F (shortcut: ctrl+F) is used to automatically set the unused number.
  • When Speedup layer is selected: Speedup ctrl+A: Set the parameters for the next placement of the speedup entity. In the drop-down menu, Force is used to set how much speed the belt can provide, Max Speed is used to set the maximum speed you can have at the belt, and Angle is used to set the direction of the belt.
  • When the Tele layer is selected: Tele ctrl+A: Sets the number of the next entity to be placed in the transmission area. The drop-down menu: Number is used to set the number, and F (shortcut: ctrl+F) is used to automatically set the unused number.
  • When Tune layer is selected: Tune ctrl+A: Set the number of the next placed adjustment zone entity. In its drop-down menu, Zone is used to set the number.
  • When the Quads layer is selected: Add Quad ctrl+Q: Adds a picture set by the current layer to the workspace. If no picture is set for that layer, a plain white square of 2*2 grid size is added by default.
  • When the Sounds layer is selected. Add Sound ctrl+Q: Adds a sound set by the current layer to the workspace.

[10] Mapping area

Workspace, where all the components needed for the map are placed.

待办: Explain in more detail

[11] Hint area

When the mouse hovers over a button, the hint area will appear with the function of the button and a keyboard shortcut for the button function.

[12] Server setting

You can change Map settings to change server behavior. For example setting a map to be a solo map.

待办: Explain in more detail

[13] Envelopes

Envelope animation: this is responsible for setting the animation effect in the map.

待办: Explain in more detail
待办:

Explain in detail what is marked "to be explained in detail" above. Full explanation of the features in the editor. Discuss the similarities and differences between modern maps and traditional and classical maps, or discuss their backstories.

Write a short tutorial on mapping.


External Resources