Learn to drive safely, the fun way!
DriveWise is a gamified 3D driving simulation that teaches traffic rules and road safety through immersive, consequence-based learning. Built on Unity WebGL for universal browser access.
A one-stop solution for traffic education that transforms boring rule memorization into an engaging gaming experience. Players learn by experiencing real consequences of their driving decisions in a safe, virtual environment.
| Feature | Description |
|---|---|
| 🎮 Interactive Simulation | 3D driving in realistic city environments |
| 📚 Complete Curriculum | 9 modules covering ALL traffic rules |
| ⚡ Real-time Feedback | Instant correction and guidance |
| 🏆 Gamification | Points, ranks, achievements & leaderboards |
| 🌐 Browser-based | No installation required - play anywhere |
| # | Module | Topics Covered |
|---|---|---|
| 1 | Traffic Signals & Signs | Lights, road signs, markings |
| 2 | Right of Way | Intersections, pedestrians, emergency vehicles |
| 3 | Speed Management | Zone limits, weather adaptation |
| 4 | Lane Discipline | Lane changes, overtaking, turning |
| 5 | Parking & Stopping | Parallel parking, no-park zones |
| 6 | Defensive Driving | Following distance, hazard prediction |
| 7 | Special Conditions | Night, weather, highway driving |
| 8 | Vehicle Safety | Pre-drive checks, signals, dashboard |
| 9 | Legal Responsibilities | Accidents, DUI awareness |
- 📚 Learning Mode - Guided tutorials with step-by-step instructions
- 🚗 Practice Mode - Free-drive exploration with hints
- 📝 Test Mode - Assessment scenarios & mock license tests
- 🏆 Challenge Mode - Daily challenges & competitive play
- 🎯 Scenario Mode - Specific situations (weather, night, highway)
| Key | Action |
|---|---|
W / ↑ |
Accelerate |
S / ↓ |
Brake / Reverse |
A / ← |
Steer Left |
D / → |
Steer Right |
Space |
Handbrake |
Q / E |
Left / Right Indicator |
H |
Horn |
L |
Headlights |
- Open
traffic-jam-3d/index.htmlin a modern browser - Wait for the Unity WebGL game to load
- Start learning!
# Clone the repository
git clone https://github.com/yourusername/driving-game.git
# Navigate to project
cd driving-game
# Open the game
start traffic-jam-3d/index.html- ✅ Perfect signal stop: +15
- ✅ Proper indicator usage: +5
- ✅ Yielding to pedestrians: +20
- ✅ Speed limit compliance: +1/sec
- ❌ Red light violation: -100
- ❌ Hitting pedestrian: -500 (Mission Fail)
- ❌ Excessive speeding: -50
- ❌ Wrong-way driving: -75
🥉 Learner → 🥈 Novice → 🥇 Competent → ⭐ Skilled → 🌟 Expert → 👑 Master → 🏆 Champion
| Component | Technology |
|---|---|
| Game Engine | Unity 3D (WebGL) |
| Frontend | HTML5, CSS3, JavaScript |
| Build Format | WebAssembly (.wasm) |
driving-game/
├── traffic-jam-3d/ # Unity WebGL game
│ ├── Build/ # Compiled game files
│ ├── TemplateData/ # UI assets & styles
│ └── index.html # Game entry point
├── prd.md # Product Requirements Document
└── README.md # This file
- 🎓 Pre-license learners (16-25 years)
- 🚗 Driving school students
- 📋 License test candidates
- 👨👩👧 Parents teaching teens
- 🏫 Schools & institutions
We welcome contributions! Please read prd.md for detailed project specifications.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit changes (
git commit -m 'Add amazing feature') - Push to branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is for educational purposes.
For questions or feedback, please open an issue on GitHub.
🚗 Making roads safer, one learner at a time 💚
