#include "map_render.h" #include "map.h" #include "game.h" MapRenderComponent::MapRenderComponent(const Map& map) : screen(GAME_WIDTH, GAME_HEIGHT) { screen.fill(screen.entirety(), 0, 0, 0); Texture tiles("res/tiles.png"); for (int i=0; i 0) { screen.blit(tiles, src, dst); } } Texture font("res/font.bmp"); std::string map_name = map.getTitle(); int start_x = (40/2) - (map_name.length()/2); for (size_t i=0; i