mapwright 0.2.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- mapwright/__init__.py +62 -0
- mapwright/config.py +154 -0
- mapwright/dungeon.py +229 -0
- mapwright/names.py +261 -0
- mapwright/rng.py +163 -0
- mapwright/svg_renderer.py +249 -0
- mapwright/terrain.py +542 -0
- mapwright-0.2.0.dist-info/METADATA +136 -0
- mapwright-0.2.0.dist-info/RECORD +12 -0
- mapwright-0.2.0.dist-info/WHEEL +4 -0
- mapwright-0.2.0.dist-info/licenses/LICENSE +21 -0
- mapwright-0.2.0.dist-info/licenses/NOTICE +28 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Anthony Sligar
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
mapwright
|
|
2
|
+
Copyright (c) 2026 Anthony Sligar
|
|
3
|
+
Licensed under the MIT License (see LICENSE).
|
|
4
|
+
|
|
5
|
+
------------------------------------------------------------------------------
|
|
6
|
+
Acknowledgements
|
|
7
|
+
------------------------------------------------------------------------------
|
|
8
|
+
|
|
9
|
+
mapwright's algorithms were implemented clean-room from the publicly described
|
|
10
|
+
ideas and techniques of the following open-source projects. No source code was
|
|
11
|
+
copied from them; this NOTICE credits the lineage of the techniques.
|
|
12
|
+
|
|
13
|
+
* Azgaar's Fantasy-Map-Generator (MIT License)
|
|
14
|
+
https://github.com/Azgaar/Fantasy-Map-Generator
|
|
15
|
+
Ideas: jittered-grid Voronoi with Lloyd relaxation, flux-accumulation
|
|
16
|
+
rivers, temperature x precipitation -> biome matrix, Markov per-culture
|
|
17
|
+
name generation, single-seed determinism, SVG cartographic rendering.
|
|
18
|
+
|
|
19
|
+
* "Generating fantasy maps" by Martin O'Leary (mewo2), and its C++ implementation
|
|
20
|
+
FantasyMapGenerator by Ryan L. Guy (rlguy) (Zlib License)
|
|
21
|
+
https://mewo2.com/notes/terrain/
|
|
22
|
+
https://github.com/rlguy/FantasyMapGenerator
|
|
23
|
+
Ideas: hydraulic + creep erosion (river * sqrt(flux) * slope + creep *
|
|
24
|
+
slope^2), Planchon-Darboux depression filling for guaranteed drainage,
|
|
25
|
+
slope-normal hillshade ("shaded relief") rendering.
|
|
26
|
+
|
|
27
|
+
The name lists ("namebases") bundled with mapwright are original, hand-authored
|
|
28
|
+
data, not derived from any third-party generator.
|