mirror of
https://gitlab.com/gaelysam/mapgen_rivers.git
synced 2025-06-28 06:30:35 +02:00
Add all code for generating a grid on world creation.
Not tested ; will likely need much testing and bugfix.
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user