From 8aa982e5ea80381a6455ecfa2a4075c0f00960bf Mon Sep 17 00:00:00 2001 From: "Zed A. Shaw" Date: Wed, 2 Oct 2024 16:59:30 -0400 Subject: [PATCH] Make the changes for the new assets layout. --- assets/{text.ttf => text.otf} | Bin main.cpp | 4 ++-- 2 files changed, 2 insertions(+), 2 deletions(-) rename assets/{text.ttf => text.otf} (100%) diff --git a/assets/text.ttf b/assets/text.otf similarity index 100% rename from assets/text.ttf rename to assets/text.otf diff --git a/main.cpp b/main.cpp index 0862174..d9725ca 100644 --- a/main.cpp +++ b/main.cpp @@ -117,7 +117,7 @@ int main() { using namespace ftxui; auto c = Canvas(60 * 2, 20 * 4); - int res = g_hit_buf.loadFromFile("./hit.wav"); + int res = g_hit_buf.loadFromFile("./assets/hit.wav"); dbc::check(res, "faile to load hit.wav"); g_hit_sound.setBuffer(g_hit_buf); @@ -190,7 +190,7 @@ int main() { sf::RenderWindow window(sf::VideoMode(1600,900), "Roguish"); sf::Font font; - font.loadFromFile("./unifont-16.0.01.otf"); + font.loadFromFile("./assets/text.otf"); sf::Text text; text.setFont(font); text.setCharacterSize(30);