Skip to content

2 Some Concept

dreamness edited this page Mar 26, 2025 · 3 revisions

Width / Height / Border

When creating a new map, several parameters are specified:
image

These parameters are:
playable width – (shown as 'width' in UI)
playable height – (shown as 'height' in UI)
border
The actual width and height of the map are:
width = playable width + 2 * border
height = playable height + 2 * border
Although the playable area is defined when creating a map, you need to consider the actual width and height during map editing.

Two Coordinate Systems

For example, if you create a map with a playable area of 200x300 and a border of 20, the total size of the map becomes 240x340.

In most cases:

The map is divided into 240x340 square cells, with the origin at the bottom-left corner.
For a coordinate like (20, 30), both x and y are integers starting from 0.
In this map, the valid range for x is [0, 239] and for y is [0, 339].

Objects and Waypoints

Use a coordinate system that scales the previous one by 10× to represent precise positions in the map.
Here, x and y can be floating-point numbers.
The origin (0,0) corresponds to the bottom-left corner of the playable area.
So in this map, the valid range for x is [-200.0, 2200.0], and for y it is [-200.0, 3200.0].

image

You can refer to the coordinates shown in the map editor to better understand the values:
image1

Clone this wiki locally