An immersive augmented reality game where your face becomes the playground ๐ฏ
Hunt colorful orbs floating around your head using cutting-edge face tracking technology
๐ฎ Play Live Demo | ๐ฑ Mobile Optimized | ๐ Leaderboard
| ๐ฏ Feature | ๐ Technology | โจ Experience |
|---|---|---|
| Face Tracking | MindAR Face Detection | No markers needed - just your face! |
| Real-time 3D | Three.js + WebGL | Smooth 60fps orb animations |
| Progressive Scoring | Smart Probability System | Rare orbs worth more points |
| Global Competition | Firebase Realtime DB | Compete with players worldwide |
| Cross-platform | PWA Ready | Desktop, Mobile, Tablet support |
- ๐ Allow camera access - We need to see your beautiful face!
- ๐ค Position yourself - Center your face in the frame
- ๐ฏ Hunt orbs - Tap/click the colorful orbs floating around you
- ๐ Beat the clock - Capture as many as possible in 120 seconds
- ๐ Climb the leaderboard - Compete for the top spot globally!
- ๐ช Blue Orb: 1 point (Common - 60% spawn rate)
- ๐ฉ Red Orb: 2 points (Rare - 8% spawn rate)
- ๐ฟ Green Orb: 3 points (Rare - 8% spawn rate)
- โ Yellow Orb: 4 points (Rare - 8% spawn rate)
- ๐ฑ Orange Cat: 5 points (Legendary - 4% spawn rate)
Miriam ๐จ UI/UX Design Lead @Kuroimichan4 |
Daniel Garcรญa โก Frontend Engineer @DarksAces |
Daniel Zorita ๐ง Backend & Firebase @DZorita |
Ruth Daniela ๐ธ๏ธ AR/VR Specialist @RuthDanielaAguirre |
Carles ๐ต Sound & Effects @Carles2311 |
graph TB
A[๐ค User Face] --> B[๐ท Camera Feed]
B --> C[๐ง MindAR Face Detection]
C --> D[๐ Anchor Points]
D --> E[๐ฏ Three.js Scene]
E --> F[โจ Orb Spawning]
F --> G[๐ฎ User Interaction]
G --> H[๐ Score System]
H --> I[โ๏ธ Firebase Database]
I --> J[๐ Global Leaderboard]
| Frontend | AR & 3D | Backend | DevOps |
|---|---|---|---|
- Node.js 18+
- pnpm package manager
- Modern browser with WebGL support
- Camera access (required for AR)
# ๐ฆ Clone the repository
git clone https://github.com/your-team/light-hunt-ar.git
cd light-hunt-ar
# โก Install dependencies
pnpm install
# ๐ง Set up environment variables
cp .env.example .env
# Add your Firebase config to .env
# ๐ Start development server
pnpm dev# .env file
VITE_FIREBASE_API_KEY=your_api_key_here
VITE_FIREBASE_AUTH_DOMAIN=your_project.firebaseapp.com
VITE_FIREBASE_PROJECT_ID=your_project_id
VITE_FIREBASE_STORAGE_BUCKET=your_project.appspot.com
VITE_FIREBASE_MESSAGING_SENDER_ID=123456789
VITE_FIREBASE_APP_ID=1:123456789:web:abcdef123456light-hunt-ar/
โโโ ๐ฎ src/
โ โโโ ๐ฏ game/
โ โ โโโ ar.js # Face tracking & AR logic
โ โ โโโ createOrb.js # 3D orb generation system
โ โ โโโ audio.js # Sound effects manager
โ โโโ ๐จ components/
โ โ โโโ LoginModal.jsx # User authentication
โ โ โโโ LobbyScreen.jsx # Game lobby
โ โ โโโ Leaderboard.jsx # Global rankings
โ โโโ โ๏ธ services/
โ โ โโโ firebase.js # Database integration
โ โโโ ๐ฑ App.jsx # Main application
โโโ ๐ public/
โ โโโ ๐ sounds/ # Audio assets
โโโ โ๏ธ config files
- No markers required - works with any face
- 68 facial landmarks detection
- Optimized for mobile devices
- Real-time performance at 60fps
- Physics-based orb animations with realistic bobbing
- Progressive difficulty system
- Haptic feedback on mobile devices
- Particle effects for enhanced visual appeal
- Real-time global leaderboard
- Anonymous login system
- Score persistence across sessions
- Achievement system (coming soon)
- PWA ready - install as mobile app
- Responsive design for all screen sizes
- Offline capability for core gameplay
- WebGL optimization for smooth performance
Our audio system provides an immersive 3D soundscape:
- ๐ผ Ambient Music: Dynamic background scoring
- ๐ Orb Spawn: Satisfying audio feedback for new orbs
- โจ Capture Sounds: Rewarding success audio
- ๐ฏ Spatial Audio: 3D positioned sound effects
| Metric | Target | Current | Status |
|---|---|---|---|
| First Paint | < 1.5s | 1.2s | โ |
| AR Initialize | < 3.0s | 2.8s | โ |
| Frame Rate | 60 FPS | 58-60 FPS | โ |
| Bundle Size | < 2MB | 1.8MB | โ |
| Lighthouse Score | > 90 | 94 | โ |
# ๐๏ธ Build for production
pnpm build
# ๐ Preview production build
pnpm previewEvery push to main automatically deploys to:
https://game-jam-psi.vercel.app/
- โ Chrome Mobile: Full support
- โ Safari Mobile: Full support
- โ Firefox Mobile: Beta support
We welcome contributions! Please see our Contributing Guidelines for details.
- Check existing Issues
- Create a new issue with detailed reproduction steps
- Include browser/device information
- Open a Feature Request
- Describe the enhancement in detail
- Explain the use case and benefits
This project is licensed under the MIT License - see the LICENSE file for details.
Special thanks to:
- MindAR for the incredible AR framework
- Three.js for 3D graphics capabilities
- Firebase for backend infrastructure
- Vercel for seamless deployment
- Our amazing beta testers for valuable feedback




