Skip to content
Snippets Groups Projects
Commit d0461961 authored by Paul GEORGES's avatar Paul GEORGES
Browse files

modification degats

parent d117a5a8
No related branches found
No related tags found
No related merge requests found
...@@ -79,7 +79,7 @@ ListeB tir_update(ListeB LB, ListeP LP, ListeR LR, ListeE *LE, int time, int v, ...@@ -79,7 +79,7 @@ ListeB tir_update(ListeB LB, ListeP LP, ListeR LR, ListeE *LE, int time, int v,
switch(arme){ switch(arme){
case 0: case 0:
if(time > tmp->data.tempsTirPrecedent + 300){ if(time > tmp->data.tempsTirPrecedent + 300){
cons_listeB(&LB, nouvelle_balle(sprites[7], tmp->data.angle, 25, tmp->data.pos)); cons_listeB(&LB, nouvelle_balle(sprites[7], tmp->data.angle, 50, tmp->data.pos));
Mix_PlayChannel(1, sons[0], 0); Mix_PlayChannel(1, sons[0], 0);
tmp->data.tempsTirPrecedent = time; tmp->data.tempsTirPrecedent = time;
} }
......
...@@ -49,8 +49,8 @@ Perso nouvel_ennemi_1(SDL_Renderer *renderer, ListeR LR, SDL_Texture **sprites, ...@@ -49,8 +49,8 @@ Perso nouvel_ennemi_1(SDL_Renderer *renderer, ListeR LR, SDL_Texture **sprites,
p.srcrect.h = 259; p.srcrect.h = 259;
p.angle = 0; p.angle = 0;
p.vie = 100; p.vie = 100;
p.degats = 10; p.degats = 5;
p.vitesse = 2; p.vitesse = 3;
p.yMax = 4403; p.yMax = 4403;
p.arme = -1; p.arme = -1;
p.tir = false; p.tir = false;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment