{
  "id": 226638,
  "title": "Moksha | Devlog #9 | Added Tutorial Button",
  "url": "https://urgent.news/2026/08/06/moksha-devlog-9-added-tutorial-button",
  "topic": "culture",
  "section": "Culture",
  "published": "2026-08-06T16:08:00.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/weirdcodesofficial/moksha-devlog-9-fixed-issue-51-2hbm"
  },
  "original_language": "hi",
  "account": "Devlog #9 of Moksha game brought a significant update - the addition of a \"See Guru-Diksha\" tutorial button on the start screen. This enhancement addresses an important user experience issue, ensuring players can revisit the tutorial without needing to manually clear their localStorage settings.\n\nThe tutorial system had previously consisted of an 8-step scripture-style walk-through, complete with Sanskrit shlokas. The TutorialManager system would check for a localStorage key named 'moksha_tutorial_seen' to determine if the tutorial had been seen before. If it hadn't, the tutorial would automatically trigger upon the player's next visit. However, this posed a problem when new players missed out on the tutorial or intentionally wanted to review it again. There was no UI pathway for them to follow, as the tutorial could only be triggered through the R key within the game itself.\n\nTo rectify this UX gap, the following changes were implemented in commit f0ae956:\n\n1. In index.html, a new \"See Guru-Diksha\" button was added, with a disabled attribute that would be enabled only after audio and fonts fully loaded. This consistent behavior was mirrored by the start-btn, ensuring both readiness-gated elements.\n\n2. The readiness gate in src/audio.js was updated to include the tutorial-btn, ensuring it would also become enabled along with the start-btn when the game transitions into high/low mode.\n\n3. In src/main.js, the tutorial button's logic was added. When the game decides on the player's mode, both buttons would be unlocked simultaneously. The tutorialBtn element was given an event listener to remove the localStorage key 'moksha_tutorial_seen', trigger the start of the game, and remove the start screen. A 600ms ghost-click guard was implemented, similar to the existing startBtn functionality.\n\n4. style.css was updated to provide a secondary outlined visual style for the tutorial-btn, with color, border, border-radius, and transition properties to give it a distinct look while maintaining a cohesive design with the rest of the UI. The button was styled differently from the start-btn, with an outlined/secondary appearance to maintain clear visual hierarchy.\n\n5. The language toggle functionality was extended to the tutorial button. If the tutorialBtn element exists, its textContent would be updated to the appropriate button text based on the player's language preferences, ensuring the button text adapts accordingly like the rest of the UI components.\n\n6. Bonus fixes were also included in this commit, such as correcting typos in variable names and weird codes, ensuring overall code cleanliness and functionality.\n\nThe decision to make the tutorial optional, rather than forcing players to review it upon starting the game, was intentional. It allows new players to gain context before diving into the gameplay, while granting returning players the freedom to choose whether or not to revisit the tutorial. This aligns with the Vedic principle of \"गुरु के पास जाना choice है — पर जो जाता है, उसे ज्ञान मिलता है,\" reinforcing the idea that the player's choice to seek knowledge is empowering and beneficial.",
  "summary": "मोक्ष Devlog #9 | Fixed Issue #51 — गुरु-दीक्षा अब Start Screen पर है 🕉️ \"आचार्यं उपसंपद्य...\" — गुरु के पास जाकर ही दीक्षा मिलती है। अब गेम की start screen भी यही कहती है। क्या बदला? (TL;DR) इस commit ( f0ae956 ) में एक छोटा लेकिन ज़रूरी UX fix किया — \"🕉️ गुरु-दीक्षा देखें\" बटन को start screen पर officially add किया गया, ताकि कोई भी खिलाड़ी tutorial दोबारा देख सके — बिना localStorage manually…",
  "key_points": [
    "\"See Guru-Diksha\" tutorial button added to Moksha game",
    "Tutorial system updated to allow player to revisit tutorial",
    "UX improvement aligns with Vedic principle of player choice"
  ],
  "editors_take": "The addition of the tutorial button gives players more control over their experience, allowing them to choose whether or not to review the tutorial, and addresses a previously identified user experience issue.",
  "illustration": "https://urgent.news/ill/226638.png",
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}