os specifc locations for fonts
This commit is contained in:
+7
-1
@@ -17,6 +17,13 @@
|
|||||||
#include "elements.hpp"
|
#include "elements.hpp"
|
||||||
#include "maps.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() {
|
int main() {
|
||||||
Entity *wall_list[MAX_ROWS][MAX_COLS] = {};
|
Entity *wall_list[MAX_ROWS][MAX_COLS] = {};
|
||||||
struct {
|
struct {
|
||||||
@@ -76,7 +83,6 @@ int main() {
|
|||||||
sf::RenderWindow window(sf::VideoMode({WIDTH, HEIGHT}), "SFML window", sf::Style::Default);
|
sf::RenderWindow window(sf::VideoMode({WIDTH, HEIGHT}), "SFML window", sf::Style::Default);
|
||||||
window.setFramerateLimit(60);
|
window.setFramerateLimit(60);
|
||||||
|
|
||||||
sf::Font font("/Users/andrewhaynes/personal/Projects/CPP/SFML_game_engine/assets/pixel.ttf");
|
|
||||||
sf::Text text(font, "0, 0", 16);
|
sf::Text text(font, "0, 0", 16);
|
||||||
text.setPosition({ WIDTH - (TILESIZE * 11.5), HEIGHT - (int)(TILESIZE / 1.5)});
|
text.setPosition({ WIDTH - (TILESIZE * 11.5), HEIGHT - (int)(TILESIZE / 1.5)});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user