ajout end game

This commit is contained in:
2026-04-21 09:07:46 +02:00
parent 962e15debc
commit 4071b771e4

View File

@@ -48,7 +48,7 @@ int main ()
// Setup the back buffer for drawing (clear color and depth buffers)
ClearBackground(BLACK);
DrawCircle(HorizontalPosition, VerticalPosition, 10, BLUE);
DrawRectangle(HorizontalPosition, VerticalPosition, 10, 10, BLUE);
DrawCircle(positionXCollectible, positionYCollectible, 10, YELLOW);
@@ -56,6 +56,13 @@ int main ()
DrawText(TextFormat("score : %d", point), 500,50,20,PINK);
if(point >= 10){
DrawText("Emi la plus belle", 50,50,20,PINK);
if (IsKeyDown(74) ) {
point=0;
};
}else{
//up
if (IsKeyDown(74) && VerticalPosition != 580 ) {
// draw some text using the default font
@@ -77,8 +84,6 @@ int main ()
// draw some text using the default font
};
if(point == 10){
DrawText("Emi la plus belle", 50,50,20,PINK);
}
if (abs(positionXCollectible - HorizontalPosition) < 10 &&