Map now displays and works, just need to refine the colors and the compass directions.
This commit is contained in:
parent
dca38397e7
commit
75646619b3
8 changed files with 77 additions and 74 deletions
|
@ -83,6 +83,7 @@ struct MapTileBuilder {
|
|||
}
|
||||
|
||||
void run_real_textures(MapConfig &config) {
|
||||
textures::init();
|
||||
sf::Vector2u crop{$size.x * (unsigned int)config.it.width, ($size.y) * ((unsigned int)config.it.y + 1)};
|
||||
$render = std::make_shared<sf::RenderTexture>(crop);
|
||||
$render->clear({0,0,0,0});
|
||||
|
@ -248,7 +249,6 @@ json& component_display(json& val) {
|
|||
}
|
||||
|
||||
int main() {
|
||||
textures::init();
|
||||
MapConfig config;
|
||||
|
||||
load_config(config, false, "./assets/tiles.json", [](json& val) -> json& {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue