diff options
| author | iceyrazor <iceyrazor@mailfence.com> | 2026-03-09 23:51:46 -0500 |
|---|---|---|
| committer | iceyrazor <iceyrazor@mailfence.com> | 2026-03-09 23:51:46 -0500 |
| commit | 3c361669ad0d4db6e53200c7f25b9576ae73e9d6 (patch) | |
| tree | e8ada37a64b7e7ee7361eeceace79fe5f8108c3e /src | |
| parent | 35e376baba0afb032e34b46b2ffe53cf6bd4575e (diff) | |
fishballs and fish image config
Diffstat (limited to 'src')
| -rw-r--r-- | src/config.h | 1 | ||||
| -rwxr-xr-x | src/objects.c | 2 |
2 files changed, 2 insertions, 1 deletions
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); |
