DEV Community

Cover image for Fixed player verticle position
Weird Codes
Weird Codes

Posted on Originally published at weirdcodes.itch.io

Fixed player verticle position

दिनांक: 17 अगस्त 2026
बिल्ड: v0.0.9 (patch)
प्लेटफ़ॉर्म: itch.io · GitHub


📋 बदली गई फ़ाइल / File Changed

फ़ाइल / File बदलाव / Change
engine.js player.y — player canvas bottom पर

🐛 Fix — Player Canvas के Bottom पर नहीं था

समस्या / Problem

Player (रथ) canvas के बीच में दिखता था — bottom पर नहीं।
खेलते समय ऊपर बहुत कम space था और नीचे बहुत ज़्यादा।

हल / Solution

engine.jsinit() method:

// BEFORE
this.player.y = HEIGHT - 250;

// AFTER
this.player.y = HEIGHT - 120;
Enter fullscreen mode Exit fullscreen mode
पहले / Before बाद / After
player.y 430px 560px
Canvas bottom से दूरी 250px 120px

Maya ऊपर से नीचे गिरती है — player का bottom पर होना शास्त्र-संगत है:

"रथ धरा पर, आत्मा ऊर्ध्वगामी" — आकाश से माया उतरती है, रथ पृथ्वी पर।


🔗 Links


Top comments (0)