Make the changes for the new assets layout.

main
Zed A. Shaw 3 months ago
parent feda66defd
commit 8aa982e5ea
  1. 0
      assets/text.otf
  2. 4
      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);

Loading…
Cancel
Save