os specifc locations for fonts

This commit is contained in:
DarthMooMancer
2025-10-22 18:22:36 -04:00
parent fb477448eb
commit 701cd7cdef
+7 -1
View File
@@ -17,6 +17,13 @@
#include "elements.hpp"
#include "maps.hpp"
#ifdef __APPLE__
sf::Font font("/Users/andrewhaynes/personal/Projects/CPP/SFML_game_engine/assets/pixel.ttf");
#endif
#ifdef __linux__
sf::Font font("/home/andrew/personal/Projects/CPP/SFML_game_engine/assets/pixel.ttf");
#endif
int main() {
Entity *wall_list[MAX_ROWS][MAX_COLS] = {};
struct {
@@ -76,7 +83,6 @@ int main() {
sf::RenderWindow window(sf::VideoMode({WIDTH, HEIGHT}), "SFML window", sf::Style::Default);
window.setFramerateLimit(60);
sf::Font font("/Users/andrewhaynes/personal/Projects/CPP/SFML_game_engine/assets/pixel.ttf");
sf::Text text(font, "0, 0", 16);
text.setPosition({ WIDTH - (TILESIZE * 11.5), HEIGHT - (int)(TILESIZE / 1.5)});