Lua API

Pos module

Functions for working with positions.

Usage

local Pos = ELONA.require("core.Pos")

Functions

dist (from, to) Returns the distance between two points.

Functions

# dist (from, to)

Returns the distance between two points.

Parameters: Returns:
  • (num) the distance between the points in tiles