🕉️ देवलॉग — भक्ति-मार्ग में नाम की प्रधानता
Devlog: Bhakti-Marga Naama Spawn Bias
दिनांक / Date: 2026-08-16
संस्करण / Version: v0.0.9+
commit: feat(karma): add tunnel-biased spawn via _spawnXPos() helper
🇮🇳 हिंदी
समस्या — भक्ति-मार्ग में अव्यवस्था
भक्ति-मार्ग (Tunnel) मोक्ष का केन्द्रीय मार्ग है — यहीं नाम मिलता है,
यहीं पुण्य-पाप भस्म होते हैं, यहीं पूर्ण-समर्पण संभव है।
परंतु एक समस्या थी — _spawnMaya() में सभी माया-प्रकारों का
xPos पूरी canvas-width पर random था।
इसका अर्थ था कि shuvha 🌿, ashuvha 🥀, chakravaata 🌪️, shankha 🐚, jyoti 🪔
— सभी tunnel के अंदर भी उतनी ही frequency पर आ सकते थे जितनी बाहर।
परिणाम: भक्ति-मार्ग अव्यवस्थित लगता था।
नाम (ॐ) अपने ही पथ पर अल्पसंख्यक था।
यह शास्त्र-विरुद्ध है — भक्ति-मार्ग में नाम की प्रधानता होनी चाहिए।
समाधान — _spawnXPos(tunnelProb) helper
src/karma.js में एक नया helper जोड़ा गया:
_spawnXPos(tunnelProb = 0) {
if (Math.random() < tunnelProb) {
// tunnel zone — नाम का क्षेत्र
return this.TUNNEL_X + Math.random() * (this.TUNNEL_WIDTH - 20);
}
// बाईं या दाईं पट्टी — tunnel exclude
...
}
अब _spawnMaya() में हर type का अपना tunnelProb है:
| माया-प्रकार | tunnelProb | अर्थ |
|---|---|---|
| ॐ नाम | 1.0 |
हमेशा tunnel में |
| shuvha 🌿 | 0.15 |
85% बाहर, 15% tunnel |
| ashuvha 🥀 | 0.15 |
85% बाहर, 15% tunnel |
| chakravaata 🌪️ | 0.15 |
85% बाहर, 15% tunnel |
| shankha 🐚 | 0.15 |
85% बाहर, 15% tunnel |
| jyoti 🪔 | 0.15 |
85% बाहर, 15% tunnel |
| kripa ✋ | 0.15 |
85% बाहर, 15% tunnel |
शास्त्रीय आधार
"भक्त्या मामभिजानाति यावान्यश्चास्मि तत्त्वतः।"
— भगवद्गीता १८.५५
भक्ति-मार्ग वह पवित्र क्षेत्र है जहाँ सारथी नाम के साथ एकाग्र होता है।
संसार की अड़चनें वहाँ भी आती हैं — परंतु नाम की प्रधानता अब
gameplay में भी दृश्यमान है।
क्या बदला
-
src/karma.js—_spawnXPos()helper जोड़ा;_spawnMaya()के सभी xPos updated -
README.md— Features, Change Log, और Developer Reference में entry जोड़ी
आगे क्या
-
tunnelProb = 0.15को gameplay test के बाद tune किया जा सकता है - भविष्य में
chetanaaJaagritaहोने पर tunnel में naama और अधिक dense हो सकती है
🇬🇧 English
Problem — Chaos in the Bhakti-Marga
The Bhakti-Marga (Tunnel) is the sacred path of Moksha — Naama is collected
here, Punya and Paapa are burnt here, and Poorna-Samarpana is only possible here.
But there was a problem. In _spawnMaya(), every Maya type had its xPos
drawn randomly across the entire canvas width.
This meant that shuvha 🌿, ashuvha 🥀, chakravaata 🌪️, shankha 🐚, jyoti 🪔
— all of them could appear inside the tunnel just as often as outside.
Result: the Bhakti-Marga felt chaotic.
Naama (ॐ) was outnumbered on its own path.
This is contrary to Shastra — the path of devotion should be dominated by the Name.
Solution — _spawnXPos(tunnelProb) helper
A new helper was added to src/karma.js:
_spawnXPos(tunnelProb = 0) {
if (Math.random() < tunnelProb) {
return this.TUNNEL_X + Math.random() * (this.TUNNEL_WIDTH - 20);
}
// left or right strip — tunnel excluded
...
}
Each Maya type in _spawnMaya() now has its own tunnelProb:
| Maya Type | tunnelProb | Meaning |
|---|---|---|
| ॐ Naama | 1.0 |
Always inside tunnel |
| Shuvha 🌿 | 0.15 |
85% outside, 15% inside |
| Ashuvha 🥀 | 0.15 |
85% outside, 15% inside |
| Chakravaata 🌪️ | 0.15 |
85% outside, 15% inside |
| Shankha 🐚 | 0.15 |
85% outside, 15% inside |
| Jyoti 🪔 | 0.15 |
85% outside, 15% inside |
| Kripa ✋ | 0.15 |
85% outside, 15% inside |
Obstacles remain inside the Bhakti-Marga — but Naama is now
undeniably its most prominent presence.
Scriptural Basis
"भक्त्या मामभिजानाति यावान्यश्चास्मि तत्त्वतः।"
"Through Bhakti one knows Me in truth — what I am and how great I am."
— Bhagavad Gita 18.55
Files Changed
-
src/karma.js—_spawnXPos()helper added; allxPosassignments in_spawnMaya()updated -
README.md— Features, Change Log, and Developer Reference updated
What's Next
-
tunnelProb = 0.15can be tuned further after gameplay testing - Future: when
chetanaaJaagritais true, Naama density inside tunnel could increase further
Developed by Weird Codes — Human-designed, AI-assisted.
🔗 weirdcodes.itch.io/moksha
Watch Video Clip
Top comments (0)