More font name fixes
This commit is contained in:
parent
742f4ce56a
commit
5c982228c8
1 changed files with 2 additions and 2 deletions
|
@ -14,7 +14,7 @@ Canvas::Canvas()
|
||||||
window.setVerticalSyncEnabled(true);
|
window.setVerticalSyncEnabled(true);
|
||||||
maze_texture = loadTexture("maze.png");
|
maze_texture = loadTexture("maze.png");
|
||||||
sprites_texture = loadTexture("sprites32.png");
|
sprites_texture = loadTexture("sprites32.png");
|
||||||
game_font = loadFont("joystix.ttf");
|
game_font = loadFont("retro_font.ttf");
|
||||||
}
|
}
|
||||||
|
|
||||||
void Canvas::update(const Game & game) {
|
void Canvas::update(const Game & game) {
|
||||||
|
@ -150,7 +150,7 @@ sf::Texture Canvas::loadTexture(std::string_view path) {
|
||||||
|
|
||||||
sf::Font Canvas::loadFont(std::string_view path) {
|
sf::Font Canvas::loadFont(std::string_view path) {
|
||||||
sf::Font font;
|
sf::Font font;
|
||||||
if (!font.loadFromFile("joystix.ttf")) {
|
if (!font.loadFromFile("retro_font.ttf")) {
|
||||||
exitFailure(fmt::format("Failed to load font {}", path));
|
exitFailure(fmt::format("Failed to load font {}", path));
|
||||||
}
|
}
|
||||||
return font;
|
return font;
|
||||||
|
|
Loading…
Reference in a new issue