Skip to content

DarksAces/GameJam

ย 
ย 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

34 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ•ธ๏ธ Light Hunt AR

The Ultimate Face Tracking AR Experience โœจ

React Three.js Vite Firebase AR

Vercel License: MIT

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


๐ŸŒŸ What Makes Light Hunt Special?

๐ŸŽฏ 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

๐ŸŽฎ How to Play

  1. ๐Ÿ” Allow camera access - We need to see your beautiful face!
  2. ๐Ÿ‘ค Position yourself - Center your face in the frame
  3. ๐ŸŽฏ Hunt orbs - Tap/click the colorful orbs floating around you
  4. ๐Ÿ† Beat the clock - Capture as many as possible in 120 seconds
  5. ๐Ÿ“Š Climb the leaderboard - Compete for the top spot globally!

๐ŸŽจ Orb Types & Values

  • ๐Ÿช™ 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)

๐Ÿ‘ฅ Meet Our Incredible Team


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

๐Ÿ› ๏ธ Tech Stack & Architecture

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]
Loading
Frontend AR & 3D Backend DevOps
React AR Firebase Vercel
Vite Three.js Realtime DB pnpm

๐Ÿš€ Quick Start

Prerequisites

  • Node.js 18+
  • pnpm package manager
  • Modern browser with WebGL support
  • Camera access (required for AR)

Installation

# ๐Ÿ“ฆ 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

๐ŸŒ Environment Setup

# .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:abcdef123456

๐Ÿ“ Project Structure

light-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

๐ŸŽฏ Key Features

๐Ÿง  Advanced Face Tracking

  • No markers required - works with any face
  • 68 facial landmarks detection
  • Optimized for mobile devices
  • Real-time performance at 60fps

๐ŸŽฎ Immersive Gameplay

  • Physics-based orb animations with realistic bobbing
  • Progressive difficulty system
  • Haptic feedback on mobile devices
  • Particle effects for enhanced visual appeal

๐Ÿ† Competitive Elements

  • Real-time global leaderboard
  • Anonymous login system
  • Score persistence across sessions
  • Achievement system (coming soon)

๐Ÿ“ฑ Cross-Platform Support

  • PWA ready - install as mobile app
  • Responsive design for all screen sizes
  • Offline capability for core gameplay
  • WebGL optimization for smooth performance

๐ŸŽต Sound Design

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

๐Ÿ“Š Performance Metrics

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 โœ…

๐Ÿš€ Deployment

Production Build

# ๐Ÿ—๏ธ Build for production
pnpm build

# ๐Ÿ” Preview production build
pnpm preview

๐ŸŒ Live on Vercel

Every push to main automatically deploys to: https://game-jam-psi.vercel.app/

๐Ÿ“ฑ Mobile Testing

  • โœ… Chrome Mobile: Full support
  • โœ… Safari Mobile: Full support
  • โœ… Firefox Mobile: Beta support

๐Ÿค Contributing

We welcome contributions! Please see our Contributing Guidelines for details.

๐Ÿ› Found a Bug?

  1. Check existing Issues
  2. Create a new issue with detailed reproduction steps
  3. Include browser/device information

๐Ÿ’ก Feature Ideas?

  1. Open a Feature Request
  2. Describe the enhancement in detail
  3. Explain the use case and benefits

๐Ÿ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.


๐Ÿ™ Acknowledgments

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

๐ŸŽฏ Ready to Hunt Some Orbs?

Play Now


Made with โค๏ธ by the Light Hunt Team | ยฉ 2026

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • JavaScript 73.1%
  • CSS 17.3%
  • HTML 9.6%