whatever: Added assets dir
This commit is contained in:
parent
d08678c8bc
commit
15d835e4c3
Before Width: | Height: | Size: 202 KiB After Width: | Height: | Size: 202 KiB |
Before Width: | Height: | Size: 900 KiB After Width: | Height: | Size: 900 KiB |
@ -224,7 +224,7 @@ int init()
|
|||||||
|
|
||||||
int loadMedia()
|
int loadMedia()
|
||||||
{
|
{
|
||||||
const char background_imagefile[] = "sdl_logo.bmp";
|
const char background_imagefile[] = "assets/sdl_logo.bmp";
|
||||||
|
|
||||||
gRenderer = SDL_CreateRenderer(gScreen, -1, 0);
|
gRenderer = SDL_CreateRenderer(gScreen, -1, 0);
|
||||||
|
|
||||||
@ -250,7 +250,7 @@ int loadMedia()
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* load gPlayer image to practice blit on top of surface*/
|
/* load gPlayer image to practice blit on top of surface*/
|
||||||
gTemp = SDL_LoadBMP("dinowheel.bmp");
|
gTemp = SDL_LoadBMP("assets/dinowheel.bmp");
|
||||||
if (gTemp == NULL){
|
if (gTemp == NULL){
|
||||||
printf("Unable to load gPlayer: %s/n", SDL_GetError());
|
printf("Unable to load gPlayer: %s/n", SDL_GetError());
|
||||||
return 1;
|
return 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user