diff --git a/bocm b/bocm index a117542..0d2952b 100755 Binary files a/bocm and b/bocm differ diff --git a/functions.c b/functions.c index d31c6d9..89de320 100644 --- a/functions.c +++ b/functions.c @@ -47,18 +47,16 @@ int loadBackgroundColor(void){ return 0; } -int locLogo(void){ +void locLogo(int x, int y){ SDL_Rect srcrect = {0, 0, 100, 73}; - SDL_Rect dstrect = {10, 10, 100, 73}; + SDL_Rect dstrect = {x, y, 100, 73}; SDL_RenderCopy(renderer, texture, &srcrect, &dstrect); - return 0; } -int locStars(void){ +void locStars(int x, int y){ SDL_Rect srcrect = {1, 32, 22, 21}; - SDL_Rect dstrect = {100, 100, 22, 21}; + SDL_Rect dstrect = {x, y, 22, 21}; SDL_RenderCopy(renderer, texture, &srcrect, &dstrect); - return 0; } int destroy(void){ diff --git a/loop.c b/loop.c index ba65ebe..32b2b77 100644 --- a/loop.c +++ b/loop.c @@ -10,9 +10,14 @@ int windowLoop(void){ } loadBackgroundColor(); - locLogo(); - locStars(); - + locLogo(10,10); + locStars(135,43); + locStars(135,83); + locStars(135,123); + locStars(135,163); + locLogo(200,200); + + SDL_RenderPresent(renderer); }