mirror of
https://gitlab.com/gaelysam/mapgen_rivers.git
synced 2025-11-07 03:25:19 +01:00
Change folder structure: data files are now in a directory.
Also added a demo 400x400 map, that is overriden on pre-processing.
This commit is contained in:
@@ -77,6 +77,9 @@ offset_x, offset_y = bounds.twist(bx, by, bounds.get_fixed(model.dirs))
|
||||
offset_x = np.clip(np.floor(offset_x * 256), -128, 127)
|
||||
offset_y = np.clip(np.floor(offset_y * 256), -128, 127)
|
||||
|
||||
if not os.path.isdir('data'):
|
||||
os.mkdir('data')
|
||||
os.chdir('data')
|
||||
# Save the files
|
||||
save(model.dem, 'dem', dtype='>i2')
|
||||
save(model.lakes, 'lakes', dtype='>i2')
|
||||
|
||||
Reference in New Issue
Block a user