SAE11_2023/JEUX_SERPENT/score.c

15 lines
423 B
C
Raw Normal View History

2023-12-07 14:02:18 +01:00
#include <stdlib.h>
#include <stdio.h>
#include <graph.h>
#include "fonction.h"
2023-12-19 15:44:28 +01:00
int Score(int segment, int Nbr){
2023-12-07 14:02:18 +01:00
Nbr=(segment-10)*10;
2023-12-10 11:44:16 +01:00
snprintf(score,5,"%04d", Nbr);
2023-12-07 14:02:18 +01:00
ChoisirCouleurDessin(CouleurParComposante(0,0,0));
RemplirRectangle(1100,730,1200,800);
ChoisirCouleurDessin(CouleurParComposante(255,255,255));
EcrireTexte(1000,750,"Score :",2);
EcrireTexte(1100,750,score,2);
2023-12-19 15:44:28 +01:00
return Nbr;
2023-12-07 14:02:18 +01:00
}