Added generation of images based on the map

Tweaks to consistency with DIRECTIONS and HEX_CORNERS
Misc debug visualizations
This commit is contained in:
2024-08-04 21:45:23 -04:00
parent bde25435ec
commit f7a3a56a0a
13 changed files with 671 additions and 21 deletions

View File

@@ -14,6 +14,7 @@ use world_generation::{
biome_painter::*,
heightmap::generate_heightmap,
hex_utils::{offset_to_index, SHORT_DIAGONAL},
map::map_utils::{render_biome_map, render_map},
prelude::*,
tile_manager::*,
tile_mapper::*,
@@ -212,6 +213,11 @@ fn create_heightmap(
};
let heightmap = generate_heightmap(&config, 42069, &biome_painter);
let game_map = render_map(&heightmap, 1.5);
let biome_map = render_biome_map(&heightmap);
_ = biome_map.save("Biomes.png");
_ = game_map.save("Test.png");
let (mut cam_t, cam_entity) = cam.single_mut();
cam_t.translation = heightmap.get_center();