Sorted the assets into folders and created Makefile.

This commit is contained in:
Michael Chen
2017-12-27 00:29:20 +01:00
parent bc9f0a7aa2
commit 14a2bd131f
4 changed files with 11 additions and 9 deletions

View File

@@ -22,7 +22,7 @@ void STARFIELD_Initialize(SDL_Renderer * renderer, int width, int height){
printf("Initializing starfield...\n");
STARFIELD_BoxWidth = width;
STARFIELD_BoxHeight = height;
STAR_Texture = IMG_LoadTexture(renderer, "star.png");
STAR_Texture = IMG_LoadTexture(renderer, "assets/images/star.png");
if (!STAR_Texture)
printf("Star texture cannot be loaded!\n");
STAR_SourceRects = malloc(3 * sizeof(SDL_Rect));