A fun and interactive Multiplayer Car Racing game built using Python, Socket Programming, and SSL encryption for secure client-server communication.
- Real-time multiplayer racing
- Coin collection along the racing track
- Nitro Booster ("N") activated after collecting 5 coins for an insane speed boost
- Confetti celebrations upon winning
- Secure client-server architecture using SSL
- Custom car images and graphics
- Lightweight and easy to run
This project consists of a server (server.py) and client (client.py) setup:
- The server handles player connections and synchronizes game data.
- Each client sends and receives car positions via encrypted socket communication.
- Players collect coins scattered along the track.
- Upon collecting 5 coins, the player unlocks an "N" Nitro Booster.
- Nitro grants a temporary but massive speed increase, ideal for overtaking opponents.
- Confetti animations celebrate the winner at the end of the race.
- Communication is protected using SSL encryption.
- Uses
cert.pem(certificate) andkey.pem(private key) to ensure authentication, integrity, and confidentiality. - Clients cannot connect unless verified with the SSL cert/key pair, ensuring a secure multiplayer environment.
- Python 3.x
git clone https://github.com/Granger007/Multiplayer-Car-Racing.git
cd Multiplayer-Car-Racingpython server.pyRun in separate terminals or systems:
python client.pyEach client will connect to the server and control a car using keyboard inputs.
car1.pngandcar2.pngare the car images used in the game.cert.pemandkey.pemare the SSL certificate and key.
- Add lap tracking and scoring
- GUI to select cars
- Add sound effects and background music