How subinkhullar/mystery-of-the-eternal-diya-rpg-game works
Mystery of the Eternal Diya is a browser-based Diwali detective adventure and installable PWA. The player explores locations, finds evidence and fragments, solves puzzles, investigates suspects, and reaches an accusation and ending; game progress and rewards support that journey. The README also documents AI-generated content, analytics, customization, save import/export, and offline play. Most runtime behavior lives in app.js; the README establishes product capabilities, while excerpts show state persistence, Gemini key handling, and service-worker caching. Unsampled app.js sections limit verification of detailed calls between game systems.
Main entry points: app.js Game interface · service-worker.js Offline cache worker · index.html Web app shell · manifest.json PWA manifest
Components 20
Adventure and investigation
- Game interface
app.js - Location exploration
app.js - Escape puzzles
app.js - Suspect investigation
app.js - Evidence board
app.js - Accusation and endings
app.js - AI content generation
app.js
Player progression
- Game state manager
app.js - Browser local storage
- Rewards and achievements
app.js - Save import and export
app.js - Statistics dashboard
app.js
Player experience
- Themes and settings
app.js - Audio feedback
app.js
Browser runtime
- Web app shell
index.html - PWA manifest
manifest.json - Offline cache worker
service-worker.js - Asset cache
Other components
- Player
- Gemini API
Connections 20
- Player → Game interface: plays
README.md - Game interface → Location exploration: explores
README.md - Game interface → Escape puzzles: solves
README.md - Game interface → Suspect investigation: investigates
README.md - Game interface → Evidence board: tracks evidence
README.md - Game interface → Accusation and endings: accuses
README.md - Game interface → AI content generation: requests content
README.md - AI content generation → Gemini API: generates content
README.md - Game interface → Game state manager: updates state
app.js - Game state manager → Browser local storage: loads and saves
app.js - Game interface → Rewards and achievements: awards progress
README.md - Game interface → Save import and export: imports and exports
README.md - Game interface → Statistics dashboard: displays statistics
README.md - Game interface → Themes and settings: configures
README.md - Game interface → Audio feedback: plays feedback
app.js - Web app shell → Game interface: hosts game
README.md - Web app shell → PWA manifest: supports installation
README.md - Offline cache worker → Asset cache: caches assets
service-worker.js - Offline cache worker → Web app shell: serves offline
service-worker.js - Offline cache worker → PWA manifest: caches asset
service-worker.js