diff options
author | Charadon <dev@iotib.net> | 2022-06-02 14:11:34 -0400 |
---|---|---|
committer | Charadon <dev@iotib.net> | 2022-06-02 14:11:34 -0400 |
commit | 6a98c8dd4c10195e7b71602b15554bdc82ac0153 (patch) | |
tree | 5008a16faba6e240def02a9e2fbb13a9ad6f8848 /src | |
parent | 8d19dc629bb1638990f7f9268880d7a139678a8e (diff) | |
download | Pong-C-6a98c8dd4c10195e7b71602b15554bdc82ac0153.tar.gz |
Changed bounce sound effect and changed background color
Diffstat (limited to 'src')
-rw-r--r-- | src/marathon.c | 1 | ||||
-rw-r--r-- | src/versus.c | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/marathon.c b/src/marathon.c index b12b64a..0ec4f71 100644 --- a/src/marathon.c +++ b/src/marathon.c @@ -78,6 +78,7 @@ void marathon_main() { BeginDrawing(); ClearBackground(BLACK); BeginMode2D(MainCamera); + DrawRectangle(0, 0, 1280, 720, (Color){20, 20, 20, 255}); DrawTexture(PaddleSprite, 0, Player.Y, WHITE); DrawTexture(BallSprite, Ball.X, Ball.Y, WHITE); DrawText(PlayerScore, 0, 0, 32, BLUE); diff --git a/src/versus.c b/src/versus.c index ed933e5..6d964de 100644 --- a/src/versus.c +++ b/src/versus.c @@ -115,11 +115,11 @@ void versus_main() { BeginDrawing(); ClearBackground(BLACK); BeginMode2D(MainCamera); + DrawRectangle(0, 0, 1280, 720, (Color){20, 20, 20, 255}); DrawTexture(PaddleSprite, 0, Player.Y, WHITE); DrawTexture(PaddleSprite, 1200, Enemy.Y, WHITE); DrawTexture(BallSprite, Ball.X, Ball.Y, WHITE); - //DrawRectangleRec(Enemy.BallDetector, RED); - DrawText(PlayerScore, 0, 0, 32, GREEN); + DrawText(PlayerScore, 0, 0, 32, BLUE); DrawText(EnemyScore, 1130, 688, 32, RED); EndMode2D(); EndDrawing(); |