Skip to content

Nomrelol/driving-game

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

🚗 DriveWise - Traffic Ethics Learning Game

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.

DriveWise


🎯 What is DriveWise?

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.

Key Features

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

📖 Learning Modules

# 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

🎮 Game Modes

  • 📚 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)

⌨️ Controls

Key Action
W / Accelerate
S / Brake / Reverse
A / Steer Left
D / Steer Right
Space Handbrake
Q / E Left / Right Indicator
H Horn
L Headlights

🚀 Quick Start

Play Now

  1. Open traffic-jam-3d/index.html in a modern browser
  2. Wait for the Unity WebGL game to load
  3. Start learning!

Development Setup

# 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

📊 Scoring System

Earn Points

  • ✅ Perfect signal stop: +15
  • ✅ Proper indicator usage: +5
  • ✅ Yielding to pedestrians: +20
  • ✅ Speed limit compliance: +1/sec

Lose Points

  • ❌ Red light violation: -100
  • ❌ Hitting pedestrian: -500 (Mission Fail)
  • ❌ Excessive speeding: -50
  • ❌ Wrong-way driving: -75

Ranks

🥉 Learner → 🥈 Novice → 🥇 Competent → ⭐ Skilled → 🌟 Expert → 👑 Master → 🏆 Champion


🛠️ Tech Stack

Component Technology
Game Engine Unity 3D (WebGL)
Frontend HTML5, CSS3, JavaScript
Build Format WebAssembly (.wasm)

📁 Project Structure

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

🎯 Target Audience

  • 🎓 Pre-license learners (16-25 years)
  • 🚗 Driving school students
  • 📋 License test candidates
  • 👨‍👩‍👧 Parents teaching teens
  • 🏫 Schools & institutions

🤝 Contributing

We welcome contributions! Please read prd.md for detailed project specifications.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit changes (git commit -m 'Add amazing feature')
  4. Push to branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

📄 License

This project is for educational purposes.


📬 Contact

For questions or feedback, please open an issue on GitHub.


🚗 Making roads safer, one learner at a time 💚

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors