From: Nils Forssén Date: Thu, 9 Nov 2023 12:25:23 +0000 (+0100) Subject: Added asset folder X-Git-Url: https://gitweb.forssennils.se/?a=commitdiff_plain;h=72fb5a74d59a58681d07d0f0a71c83404423dc4e;p=TDDC76_proj.git Added asset folder --- diff --git a/assets/fighter.png b/assets/fighter.png new file mode 100644 index 0000000..6a36a83 Binary files /dev/null and b/assets/fighter.png differ diff --git a/assets/font.ttf b/assets/font.ttf new file mode 100644 index 0000000..f578602 Binary files /dev/null and b/assets/font.ttf differ diff --git a/fighter.png b/fighter.png deleted file mode 100644 index 6a36a83..0000000 Binary files a/fighter.png and /dev/null differ diff --git a/font.ttf b/font.ttf deleted file mode 100644 index f578602..0000000 Binary files a/font.ttf and /dev/null differ 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;