Make the changes for the new assets layout.
This commit is contained in:
parent
feda66defd
commit
8aa982e5ea
2 changed files with 2 additions and 2 deletions
4
main.cpp
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…
Add table
Add a link
Reference in a new issue