Aliyata Aha (เถเถฝเทเถบเทเถง เถเท) is a Sri Lankan Avurudu party game where you try to place an elephant's eye from memory โ think Pin the Tail on the Donkey, but festive, digital, and scored.
๐ฎ Play now โ aliyata-aha.web.app
- The elephant appears on screen โ memorise where the eye is
- The elephant hides
- Move your cursor (or finger via camera) to where you think the eye was
- Drop it โ and see how close you were!
Two input modes are supported:
| Mode | How to start | How to drop |
|---|---|---|
| ๐ฑ๏ธ Mouse | Press M or click [M] Mouse |
Click or press Space |
| ๐ท Camera | Press C or click [C] Camera |
Pinch your index finger and thumb |
Your best score goes on the leaderboard. Higher score = closer to the eye, faster.
| Component | Max | Details |
|---|---|---|
| Accuracy | 1000 | max(0, 1000 โ distance ร 5) |
| Speed bonus | 100 | Full bonus at โค 0 s, scales down to 10 s |
| Total | 1100 |
- Vanilla JS (ES Modules) + HTML5 Canvas โ no build step
- MediaPipe Hands โ camera/gesture input
- Firebase โ anonymous auth, Firestore leaderboard, Hosting
python3 -m http.server 8080
# open http://localhost:8080No install needed. Firebase features (leaderboard, score saving) are skipped on localhost automatically.
โโโ index.html # Entry point
โโโ style.css
โโโ src/
โ โโโ game.js # Main loop & state machine
โ โโโ render.js # Canvas drawing
โ โโโ board.js # Seed-based elephant placement
โ โโโ input-mouse.js # Mouse / keyboard input
โ โโโ input-hand.js # MediaPipe camera input
โ โโโ audio.js # Music player
โ โโโ score.js # Scoring & Firestore
โ โโโ messages.js # Sinhala result messages
โ โโโ firebase.js # Firebase init
โโโ music/ # Avurudu background tracks
โโโ sounds/ # Sound effects
โโโ elephant.jpeg # Source image
Made with โค๏ธ for Avurudu 2026 ๐