diff options
| -rw-r--r-- | fishballs.png | bin | 0 -> 38110 bytes | |||
| -rw-r--r-- | src/config.h | 1 | ||||
| -rwxr-xr-x | src/objects.c | 2 |
3 files changed, 2 insertions, 1 deletions
diff --git a/fishballs.png b/fishballs.png Binary files differnew file mode 100644 index 0000000..4577566 --- /dev/null +++ b/fishballs.png diff --git a/src/config.h b/src/config.h index 3c2b7b2..096ab30 100644 --- a/src/config.h +++ b/src/config.h @@ -3,6 +3,7 @@ #define obj_n 200 #define fontfile "/usr/share/fonts/TTF/BigBlueTerm437NerdFont-Regular.ttf" +#define fishimg "../fish.png" #define fontsize 80 #define fish_speed 0.003 #define scroll_speed 7 diff --git a/src/objects.c b/src/objects.c index 707d908..514b33c 100755 --- a/src/objects.c +++ b/src/objects.c @@ -44,7 +44,7 @@ void constructor(STUFFS *stuff, TEXT *text, int i, char *text_buf){ fishRect.y=(stuff->height/2)-(fishRect.h/2); text->obj.fishRect=fishRect; SDL_Texture *textllure; - textllure=IMG_LoadTexture(stuff->renderer,"../fish.png"); + textllure=IMG_LoadTexture(stuff->renderer,fishimg); if(!texture){ fprintf(stderr,"FAILED TO LOAD THE FUCKING FISH\n"); exit(EXIT_FAILURE); |
