text_scroll on menu & annoying sound
This commit is contained in:
@@ -2,9 +2,11 @@
|
||||
|
||||
#include <math.h>
|
||||
#include <SDL/SDL.h>
|
||||
#include <SDL/SDL_mixer.h>
|
||||
|
||||
#include "affichage_plateau.h"
|
||||
#include "globals.h"
|
||||
#include "param.h"
|
||||
|
||||
void selection (plateau_t p, curseur_t c)
|
||||
{
|
||||
@@ -86,7 +88,11 @@ void deplacement (plateau_t p, SDL_Event* event, curseur_t* c)
|
||||
c->x = hex.x;
|
||||
c->y = hex.y;
|
||||
if (0 <= hex.x && hex.x < NBSIDE && 0 <= hex.y && hex.y < NBSIDE)
|
||||
{
|
||||
Affiche_hexagon(p, c->x, c->y, PLAYER(p->player));
|
||||
Mix_PlayMusic (param->click, 1);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -124,7 +130,8 @@ void deplacement (plateau_t p, SDL_Event* event, curseur_t* c)
|
||||
if (c->y < 0)
|
||||
c->y = NBSIDE - 1;
|
||||
Affiche_hexagon(p, c->x, c->y, PLAYER(p->player));
|
||||
sleep_ms (100);
|
||||
Mix_PlayMusic (param->click, 1);
|
||||
SDL_Delay (100);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user