Miscellaneous control-stage functions that don’t yet have a proper home.
local misc = require("__flib__.misc")
get_distance(pos1, pos2) | Calculate the distance in tiles between two positions. |
get_distance_squared(pos1, pos2) | Calculate the squared distance in tiles between two positions. |
ticks_to_timestring([tick=game.tick]) | Convert given tick or game.tick into “[hh:]mm:ss” format. |