flower seed

This commit is contained in:
cyjullien1
2025-01-07 19:20:22 +01:00
parent 2c39110885
commit 0c20e2ae20
13 changed files with 51 additions and 47 deletions

View File

@@ -522,6 +522,7 @@ int inEditorLoop (char **tab2d, vect *dim_tab, vect *playerPos, vect *targets,
if (event.type == SDL_MOUSEBUTTONDOWN) {
if (event.button.button == SDL_BUTTON_LEFT) {
// Lorsque le clic gauche est effectué
playAudio(2);
int click_x, click_y;
SDL_GetMouseState(&click_x, &click_y); // Récupérer la position de la souris
@@ -548,6 +549,7 @@ int inEditorLoop (char **tab2d, vect *dim_tab, vect *playerPos, vect *targets,
}
if (event.button.button == SDL_BUTTON_RIGHT) {
// Lorsque le clic gauche est effectué
playAudio(2);
int click_x, click_y;
SDL_GetMouseState(&click_x, &click_y); // Récupérer la position de la souris