Skip to content

Aditya02git/Need-For-Speed-Clone-AI-car-chasing-

Repository files navigation

#  Need For Speed Clone (Three.js + Cannon-es)

A small but exciting approach to recreating the **Need for Speed** experience in the browser!  
Built with **Three.js** for stunning 3D visuals and **Cannon-es** for realistic physics, this project lets you simulate driving a car inside a dynamic 3D environment with **chasing mechanics**.

---

##  Demo  
👉 [Play the Game](https://need-for-speed-clone.onrender.com)

---

##  Features
-  3D open environment built with **Three.js**
-  Realistic car physics powered by **Cannon-es**
-  Chasing mechanics to simulate thrilling pursuits
-  Smooth and intuitive **keyboard controls**
-  Easy-to-extend architecture for adding new cars, maps, and features

---

##  Getting Started

### Prerequisites
Make sure you have **Node.js** and **npm** installed.  
[Download Node.js](https://nodejs.org/)

### Installation
Clone the repo and install dependencies:
```bash
git clone https://github.com/Aditya02git/need-for-speed-clone.git
cd need-for-speed-clone
npm install
npm start

Dependencies


Controls

Key Action
W / ↑ Accelerate
S / ↓ Brake / Reverse
A / ← Steer Left
D / → Steer Right
Spacebar Handbrake
W + A + Spacebar Left Drift
W + D + Spacebar Right Drift
** L ** Front Light

Future Improvements

  • More complex + realistic environments with hills, bumps, obstacles
  • Suspension system for improved vehicle dynamics
  • Advanced driving techniques: powersliding & drifting
  • Simulation of tire wear, fuel consumption, engine damage
  • Multiplayer support for real-time online racing

Contributing

We welcome contributions from the community! Here’s how you can help:

  1. Open an issue to report bugs or suggest improvements.
  2. Submit a pull request with new features or fixes.
  3. Star the repo to support the project.

License

This project is licensed under the MIT License. Feel free to use and build upon it!


Show Your Support

If you enjoyed this project, please consider giving it a ⭐ on GitHub — it helps a lot!



About

I’ve been working on a 3D racing game clone inspired by Need for Speed, built using Three.js for rendering and Cannon-es for physics.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages