Add all code for generating a grid on world creation.

Not tested ; will likely need much testing and bugfix.
This commit is contained in:
Gaël C
2021-06-03 20:08:57 +02:00
parent 19efeaaff6
commit cb297af047
4 changed files with 105 additions and 29 deletions

View File

@ -27,6 +27,7 @@ local function get_bounds(dirs, rivers)
end
local function twist(dirs, rivers, n)
n = n or 5
local X, Y = dirs.X, dirs.Y
local bounds_x, bounds_y = get_bounds(dirs, rivers)
local dn = 0.5 / n