ARHunt is a browser-based, mobile-friendly AR "treasure hunt." Using your phone's camera, it detects prepared picture frames in a room and overlays digital content when each target is found. No app install required.
- Mobile web: iOS Safari (15+) and Android Chrome (90+)
- Natural image detection using MindAR
- 5-second countdown before completion celebration
- Main app: https://j7j7.github.io/ARHunt/
- Admin interface: https://j7j7.github.io/ARHunt/admin.html
- Open the main app URL and tap Start. Grant camera permission.
- Move your phone around the room to scan for prepared picture frames (targets).
- When a target is detected, a description appears at the bottom of the screen.
- Find all 8 targets to trigger a 5-second countdown.
- After the countdown, view your completion QR code for your record.
- 8 target images to discover with unique cultural descriptions
- Large, centered target descriptions with drop shadows for readability
- Multi-colored globe fireworks explosion on each discovery
- Animated 5-second countdown at top of screen before completion
- QR code generation with timestamp and unique identifier
- Video feed stops when showing completion screen
- Real-time notifications for other players' discoveries
- Real-time Player Management: Live updates of player statistics without page refresh
- Sortable Table: Click column headers to sort by Player, Games, Completed, Targets, Best Time, or Last Play
- Row-Based Editing: Click any player row to edit their statistics in a modal
- Intelligent Data Merging: Only updates changed data for optimal performance
- Default Sort: Automatically sorts by most recently updated players first
- Clear All Players: Password-protected button to reset all player data (password: JVK!)
- Visual Enhancements: Symbol-based headings (▶ ✓ 🎯 🕐 📅) and compact layout
- Real-time Notifications: Alerts for item discoveries and game completions with timed display
- InstantDB for real-time data synchronization
- Mobile-optimized responsive design
- Natural image detection using MindAR
- No app installation required
- Static site; any static server works. Example:
npx http-server. - iOS Safari requires HTTPS for camera; easier to test via GitHub Pages.
- Target images must be compiled into
assets/targets/targets.mindusing MindAR CLI/Studio - Place overlay images in
assets/overlays/directory - Ensure proper lighting and clear target images for best detection
ARHunt/
├── index.html # Main ARHunt game application
├── mind-hunt.js # Game logic and AR functionality
├── styles.css # All styling and animations
├── admin.html # Admin interface for player management
├── admin.js # Admin page logic and real-time updates
├── instant.schema.ts # Database schema definition
├── assets/
│ ├── targets/
│ │ └── targets.mind # MindAR compiled target file
│ └── overlays/
│ ├── DA1.jpg # Target overlay images
│ ├── DA2.jpg
│ └── ... (DA3-DA8)
├── .env # Environment configuration
└── README.md
- Created by: Jason Severn / Kevin Wong
- Technologies:
- A-Frame (https://aframe.io)
- AR.js (https://ar-js-org.github.io/AR.js-Docs/)
- MindAR (https://hiukim.github.io/mind-ar-js-doc/)
- InstantDB (https://instantdb.com) for real-time data management