escalier custom

This commit is contained in:
cyjullien1
2025-01-07 19:43:36 +01:00
parent 0c20e2ae20
commit d00f1a98a1
7 changed files with 22 additions and 11 deletions

View File

@@ -95,9 +95,9 @@ void screenDisplayGameSDL (char **tab,vect dim_tab, dis *display_user, vect *pla
break;
case WALL:
srand(seed+i*15+j*13);
int rand_int = rand() % 30;
if(rand_int==26){img = IMG_Load ("image/wall3.png");}
else if(rand_int==29){img = IMG_Load ("image/wall2.png");}
rand_int = rand() % 6;
if(rand_int==5){img = IMG_Load ("image/wall3.png");}
else if(rand_int==4){img = IMG_Load ("image/wall2.png");}
else{img = IMG_Load ("image/wall.png");}
break;
@@ -122,6 +122,9 @@ void screenDisplayGameSDL (char **tab,vect dim_tab, dis *display_user, vect *pla
case PLAYER_ON_BUTTON:
img = IMG_Load("image/player_on_button.png");
break;
case BUTTON_CUSTOM:
img = IMG_Load("image/button_c.png");
break;
}
texture