Rooms are now styled randomly based on assets/styles.json which will evolve into specifications for themes of levels and rooms in them plus other configs.

This commit is contained in:
Zed A. Shaw 2025-05-30 20:35:17 -04:00
parent e45de2a2cf
commit d2a5dfa713
7 changed files with 56 additions and 2 deletions

View file

@ -20,6 +20,7 @@ namespace textures {
std::vector<wchar_t> map_tile_set;
std::vector<int> ambient_light;
std::unordered_map<std::string, SpriteTexture> sprite_textures;
std::unordered_map<std::string, size_t> name_to_id;
};
void init();
@ -29,9 +30,12 @@ namespace textures {
sf::Image load_image(const std::string& filename);
std::vector<int>& get_ambient_light();
std::vector<wchar_t>& get_map_tile_set();
const uint32_t* get_surface(size_t num);
const uint32_t* get_ceiling(size_t num);
size_t get_id(const std::string& name);
}