add assets

This commit is contained in:
JamilHajjar committed 2023-01-21 10:39:19 +01:00
1 parent 81508bf712
commit 8a93d29021
4 files changed
+6 -3

No files matched your search

+3 -3
View File
@@ -14,7 +14,7 @@ int main(void) {
return 0;
}
Mix_Music *music = Mix_LoadMUS("../assets/music/test.mp3");
Mix_Music *music = Mix_LoadMUS("./assets/music/pet.mp3");
if(Mix_PlayMusic(music, -1) != 0){
printf("Music sound could not be played!\n"
"SDL_Error: %s\n", Mix_GetError());
@@ -25,12 +25,12 @@ int main(void) {
RenderObject_t text;
SDL_Color white = {255, 255, 255, 255};
TTF_Init();
if(text_renderText(&text, 0.f, 0.f, 1000, 1, white, "/usr/share/fonts/TTF/arial.ttf", 25, "Hello World") < 0){
if(text_renderText(&text, 0.f, 0.f, 1000, 1, white, "./assets/fonts/arial.ttf", 25, "Hello World") < 0){
printf("error");
exit(1);
}
SDL_Surface* img = IMG_Load("pp.png");
SDL_Surface* img = IMG_Load("./assets/img/pp.png");
RenderObject_t duck = {
0.2,