Изменения

Материал из Chaotic Onyx
Перейти к навигацииПерейти к поиску
865 байт добавлено ,  23:27, 16 апреля 2015
Немного перевел, но очень много технического английского, так что оставляю статью
Строка 1: Строка 1: −
The world map is a three-dimensional grid of turfs. Three coordinates (that is, numbers) are necessary to pinpoint the location of an individual turf in the grid. These have the symbolic names x, y, and z.
+
Карта использует Декартову систему координат. Необходимы три координаты, что бы определить местоположение объекта на сетке. Координаты, как мы все привыкли, имеют обозначения x, y, z.
 
  −
The x coordinate specifies east-west positioning. A value of 1 is the western edge of the world and a value of world.maxx is the eastern edge. On the player's screen, x increases from left to right. The y coordinate goes from 1 in the south to world.maxy in the north and normally increases from the bottom to the top of the screen.
  −
 
  −
The z coordinate goes from 1 to world.maxz and often represents high to low altitude. However, the interpretation of z is entirely up to your code since there are no built-in procedures that move objects between z-levels. Level 1 could be ground level and subsequent levels could descend into the earth. Or level 1 could be a world map and the other levels could be detailed city maps. It's entirely up to you. Most action takes place in the x-y plane because that is what players can see.
      +
Координата "х" определяет местоположение объекта с запад на восток, "по горизонтали". Единица соответствует самой западной точке, а значение world.maxx определяет самую восточную точку. Для игрока х возрастает слева-направо.
 +
Координата "y" определяет местоположение объекта с юга на запад, "по вертикале". Единица соответствует самой южной точке, а значение world.maxy определяет самую северную точку. Для игрока y возрастает снизу-вверх.
 +
Координата "z" идет от 1 до world.maxz, и, как правило, представляет из себя переход от одной высоте к другой. По сути, каждая z-координата - это отдельный уровень. Как правило, для основного уровня используется координата 1. У DM нет встроенного механзима перемещения по Z-уровням, поэтому то, как вы будете использовать Z-координаты, зависит только от вас.
    
1. Spatial Instructions
 
1. Spatial Instructions
   −
There are a number of instructions for working with coordinates and objects on the map. When you want to produce some sort of spatial effect, these are the building blocks you will need.
+
Существует ряд команд для работы с координатами и объектами на карте. Если вы хотите создать что-то, затрагивающее перемещение и пространство, вам они однозначно понадобятся.  
       
1.1 view list
 
1.1 view list
   −
The view instruction returns a list of all visible objects. It is often used without any arguments, but may take a range and center object as parameters.
+
View instruction возвращает лист видимых объектов. It is often used without any arguments, but may take a range and center object as parameters.
    
view (Range=world.view,Center=usr)
 
view (Range=world.view,Center=usr)
253

правки

Навигация