diff options
| author | raysan5 <[email protected]> | 2016-02-07 11:23:12 +0100 |
|---|---|---|
| committer | raysan5 <[email protected]> | 2016-02-07 11:23:12 +0100 |
| commit | 4ad375a3783472b8629387d45fb90619115c973a (patch) | |
| tree | 14d2c9c4a70e494d6d02d96c87369c21a8e3986f /games/samples/floppy.c | |
| parent | 4a3509f06d60e2761aa048378fe979e11a5a1667 (diff) | |
| download | raylib-4ad375a3783472b8629387d45fb90619115c973a.tar.gz raylib-4ad375a3783472b8629387d45fb90619115c973a.zip | |
Code review
Most of this code was developed by students, it requires some additional
review to be used for teaching.
Diffstat (limited to 'games/samples/floppy.c')
| -rw-r--r-- | games/samples/floppy.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/games/samples/floppy.c b/games/samples/floppy.c index d66f5bbe..f48ea235 100644 --- a/games/samples/floppy.c +++ b/games/samples/floppy.c @@ -206,24 +206,24 @@ void DrawGame(void) if (!gameOver) { - DrawCircle(floppy.position.x, floppy.position.y, floppy.radius, BLUE); + DrawCircle(floppy.position.x, floppy.position.y, floppy.radius, DARKGRAY); // Draw tubes for (int i = 0; i < MAX_TUBES; i++) { - DrawRectangle(tubes[i*2].rec.x, tubes[i*2].rec.y, tubes[i*2].rec.width, tubes[i*2].rec.height, RED); - DrawRectangle(tubes[i*2 + 1].rec.x, tubes[i*2 + 1].rec.y, tubes[i*2 + 1].rec.width, tubes[i*2 + 1].rec.height, RED); + DrawRectangle(tubes[i*2].rec.x, tubes[i*2].rec.y, tubes[i*2].rec.width, tubes[i*2].rec.height, GRAY); + DrawRectangle(tubes[i*2 + 1].rec.x, tubes[i*2 + 1].rec.y, tubes[i*2 + 1].rec.width, tubes[i*2 + 1].rec.height, GRAY); } // Draw flashing fx (one frame only) if (superfx) { - DrawRectangle(0, 0, screenWidth, screenHeight, GOLD); + DrawRectangle(0, 0, screenWidth, screenHeight, WHITE); superfx = false; } - DrawText(FormatText("%04i", score), 20, 20, 40, PINK); - DrawText(FormatText("HI-SCORE: %04i", hiScore), 20, 70, 20, VIOLET); + DrawText(FormatText("%04i", score), 20, 20, 40, GRAY); + DrawText(FormatText("HI-SCORE: %04i", hiScore), 20, 70, 20, LIGHTGRAY); if (pause) DrawText("GAME PAUSED", screenWidth/2 - MeasureText("GAME PAUSED", 40)/2, screenHeight/2 - 40, 40, GRAY); } |
