|
|
@ -117,7 +117,7 @@ int main() { |
|
|
|
using namespace ftxui; |
|
|
|
using namespace ftxui; |
|
|
|
auto c = Canvas(60 * 2, 20 * 4); |
|
|
|
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"); |
|
|
|
dbc::check(res, "faile to load hit.wav"); |
|
|
|
g_hit_sound.setBuffer(g_hit_buf); |
|
|
|
g_hit_sound.setBuffer(g_hit_buf); |
|
|
|
|
|
|
|
|
|
|
@ -190,7 +190,7 @@ int main() { |
|
|
|
sf::RenderWindow window(sf::VideoMode(1600,900), "Roguish"); |
|
|
|
sf::RenderWindow window(sf::VideoMode(1600,900), "Roguish"); |
|
|
|
|
|
|
|
|
|
|
|
sf::Font font; |
|
|
|
sf::Font font; |
|
|
|
font.loadFromFile("./unifont-16.0.01.otf"); |
|
|
|
font.loadFromFile("./assets/text.otf"); |
|
|
|
sf::Text text; |
|
|
|
sf::Text text; |
|
|
|
text.setFont(font); |
|
|
|
text.setFont(font); |
|
|
|
text.setCharacterSize(30); |
|
|
|
text.setCharacterSize(30); |
|
|
|