abidurrahman11 / Pygame-Racing-Car

Pygame Racing Car is a beginner-friendly open source project on GitHub aimed at improving the Pygame-based racing car game. This repository welcomes contributions from anyone interested in enhancing the game's features and functionality.
MIT License
12 stars 19 forks source link

Update cargame.py #20

Closed Mehmet-Adil closed 10 months ago

Mehmet-Adil commented 10 months ago

I refactored a lot of the code, put the code into a Game class for better readability, removed some unnecessary comments, improved the reading and writing of scores system, added a clock to have a constant FPS, improved some colors of texts, made a variable called game_state for transitioning from game states (like main game, game over...), etc.