images -> image/
This commit is contained in:
18
display.c
18
display.c
@@ -32,35 +32,35 @@ void screenDisplayGameSDL (char **tab, dis *display_user)
|
||||
unsigned int marge = display_user->size_menu / 2;
|
||||
unsigned int i, j;
|
||||
|
||||
SDL_Surface *img;
|
||||
SDL_Texture *texture;
|
||||
for (i = 0; i < display_user->size_box; ++i)
|
||||
{
|
||||
for (j = 0; j < display_user->size_box; ++j)
|
||||
{
|
||||
SDL_Surface *img;
|
||||
SDL_Texture *texture;
|
||||
vect pos = { i * size + marge, j * size };
|
||||
switch (tab[j][i])
|
||||
{
|
||||
case EMPTY:
|
||||
img = IMG_Load ("empty.png");
|
||||
img = IMG_Load ("image/empty.png");
|
||||
break;
|
||||
case WALL:
|
||||
img = IMG_Load ("wall.png");
|
||||
img = IMG_Load ("image/wall.png");
|
||||
break;
|
||||
case PLAYER:
|
||||
img = IMG_Load ("player.png");
|
||||
img = IMG_Load ("image/player.png");
|
||||
break;
|
||||
case TARGET:
|
||||
img = IMG_Load ("target.png");
|
||||
img = IMG_Load ("image/target.png");
|
||||
break;
|
||||
case BOX:
|
||||
img = IMG_Load ("box.png");
|
||||
img = IMG_Load ("image/box.png");
|
||||
break;
|
||||
case BOX_ON_TARGET:
|
||||
img = IMG_Load ("box_on_target.png");
|
||||
img = IMG_Load ("image/box_on_target.png");
|
||||
break;
|
||||
case PLAYER_ON_TARGET:
|
||||
img = IMG_Load ("player_on_target.png");
|
||||
img = IMG_Load ("image/player_on_target.png");
|
||||
break;
|
||||
}
|
||||
texture
|
||||
|
||||
Reference in New Issue
Block a user