Compare commits

..

2 Commits

Author SHA1 Message Date
3d3c028997 Merge pull request 'ajout end game' (#2) from dev into main
Reviewed-on: #2
2026-04-21 07:12:30 +00:00
4071b771e4 ajout end game 2026-04-21 09:07:46 +02:00

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 &&