Welcome to Car Racing 2D, a simple yet addictive 2D racing game developed using Unity Engine.
Drive your car, avoid obstacles, and challenge yourself to survive longer — now available for PC and Android!
- 🏎️ Smooth 2D car movement
- 🎮 Dual Platform Support:
• Keyboard controls on PC/laptop
• Touch controls on Android devices - ⛔ Obstacle collision detection
- 🌀 Endless gameplay loop
- 🔊 Game over and restart logic
- 📱 Optimized for mobile screen sizes
- 💡 Beginner-friendly Unity project
| Tool | Purpose |
|---|---|
| Unity 2D | Game development engine |
| C# | Scripting and logic |
| Visual Studio | Code editing |
| Git & GitHub | Version control |
-
Clone the repository:
git clone https://github.com/parijin0/Car-Racing-2D.git
-
Open the project in Unity Hub
-
Load the main scene from
Assets/Scenes/ -
Click
▶️ Play to start the game
➡️ Use Left and Right Arrow Keys to move the car
-
Build the game for Android using Unity's Build Settings
-
Transfer the
.apkfile to your Android device -
Install and open it
👉 Use touch gestures on the left/right sides of the screen to control the car
| Platform | Control Type | Action |
|---|---|---|
| PC | Arrow Keys | Move car left/right |
| Android | Touch | Tap left/right side |
CAR RACING 2D/
├── .vscode/
│ ├── launch.json
│ └── settings.json
├── Assets/
│ ├── Animations/
│ ├── fonts/
│ ├── Materials/
│ └── Media/
│ ├── Screenshot1.png
│ ├── Screenshot2.png
│ └── Screenshot3.png
├── Resources/
├── scripts/
│ ├── Car_Movement.cs
│ ├── Car_Spawner.cs
│ ├── Coin_Manager.cs
│ ├── Game_Controller.cs
│ └── MainMenu_Controller.cs
└── README.md
Through this project, I explored:
- 🔄 Unity physics & Rigidbody behavior
- 💥 Collision detection and game state management
- 🎮 Multi-platform input handling (PC keyboard + Android touch)
- 🎨 UI elements with canvas and responsive layout
- 📱 Android build and APK export
Made with ❤️ by Pari Jindal
🎓 B.Tech CSE Student | Passionate about Software Development & Problem Solving
🔗 GitHub: parijin0


