Better seed handling in perlin noise

Add seed, width and height to get param
Make map terrain more generic
This commit is contained in:
Tim
2023-06-05 02:11:44 +02:00
parent 542f1970f5
commit 5e522ea417
5 changed files with 46 additions and 32 deletions

View File

@ -7,7 +7,7 @@
.map {
display: grid;
grid-template-columns: repeat(279, var(--pixel-size));
grid-template-columns: repeat({{ map.width }}, var(--pixel-size));
grid-auto-rows: var(--pixel-size);
grid-gap: var(--pixel-gap);
}
@ -21,7 +21,7 @@
</style>
<div class="map">
{% for pixel in pixels %}
{% for pixel in map.pixels %}
{{ pixel|raw }}
{% endfor %}
</div>