Added custom district generator and old GDMC functions and classes (to get the height, water and tree map)
This commit is contained in:
17
world_maker/world_maker.py
Normal file
17
world_maker/world_maker.py
Normal file
@@ -0,0 +1,17 @@
|
||||
import World
|
||||
|
||||
|
||||
def get_data(world: World):
|
||||
heightmap, watermap, treemap = world.getData()
|
||||
heightmap.save('./data/heightmap.png')
|
||||
watermap.save('./data/watermap.png')
|
||||
treemap.save('./data/treemap.png')
|
||||
|
||||
|
||||
def main():
|
||||
world = World.World()
|
||||
get_data(world)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
Reference in New Issue
Block a user