From 72fb5a74d59a58681d07d0f0a71c83404423dc4e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Nils=20Forss=C3=A9n?= Date: Thu, 9 Nov 2023 13:25:23 +0100 Subject: [PATCH] Added asset folder --- fighter.png => assets/fighter.png | Bin font.ttf => assets/font.ttf | Bin src/_test.cc | 4 ++-- 3 files changed, 2 insertions(+), 2 deletions(-) rename fighter.png => assets/fighter.png (100%) rename font.ttf => assets/font.ttf (100%) diff --git a/fighter.png b/assets/fighter.png similarity index 100% rename from fighter.png rename to assets/fighter.png diff --git a/font.ttf b/assets/font.ttf similarity index 100% rename from font.ttf rename to assets/font.ttf diff --git a/src/_test.cc b/src/_test.cc index 9c2e057..ba2c62a 100644 --- a/src/_test.cc +++ b/src/_test.cc @@ -34,7 +34,7 @@ int main() /* ladda in en texture (bild) */ Texture texture; - if (!texture.loadFromFile("fighter.png")) + if (!texture.loadFromFile("assets/fighter.png")) { // gick inte att ladda bilden return 1; @@ -60,7 +60,7 @@ int main() /* skapa text */ Font font; - if (!font.loadFromFile("font.ttf")) + if (!font.loadFromFile("assets/font.ttf")) { // kunde inte ladda typsnitt return 2; -- 2.30.2