All pastes #344018 Raw Edit

Untitled

public lua v1 · immutable
·published 2007-02-07 13:38 UTC
rendered paste body
--Calculate tower center and barrier radiusbarrier_x = (options.x + 1) * -2barrier_y = (options.y + 1) * -2x = options.x * 2 + 4y = options.y * 2 + 4barrier_r = math.sqrt(x*x+y*y)