Added asset folder
authorNils Forssén <nilfo359@student.liu.se>
Thu, 9 Nov 2023 12:25:23 +0000 (13:25 +0100)
committerNils Forssén <nilfo359@student.liu.se>
Thu, 9 Nov 2023 12:25:23 +0000 (13:25 +0100)
assets/fighter.png [new file with mode: 0644]
assets/font.ttf [new file with mode: 0644]
fighter.png [deleted file]
font.ttf [deleted file]
src/_test.cc

diff --git a/assets/fighter.png b/assets/fighter.png
new file mode 100644 (file)
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 (file)
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 (file)
index 6a36a83..0000000
Binary files a/fighter.png and /dev/null differ
diff --git a/font.ttf b/font.ttf
deleted file mode 100644 (file)
index f578602..0000000
Binary files a/font.ttf and /dev/null differ
index 9c2e057acba2e3996a8a0da97de2d5617c1b1876..ba2c62af77773ad10ec90f8f0591f3adbdb7bd56 100644 (file)
@@ -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;