Make the changes for the new assets layout.

This commit is contained in:
Zed A. Shaw 2024-10-02 16:59:30 -04:00
parent feda66defd
commit 8aa982e5ea
2 changed files with 2 additions and 2 deletions

View file

@ -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);