Skip to content

Commit 9cb429c

Browse files
Added version at bottom left of of start screen.
1 parent 2ee364f commit 9cb429c

2 files changed

Lines changed: 20 additions & 0 deletions

File tree

index.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ <h2 class="home-subtitle">A Sl<span class="subtitle-target">i</span>me's Journey
122122
<h3>How to Play</h3>
123123
<p>Move with A/D or arrows, jump with Space/W, and duck with S. Trail acid to melt foes and cash in upgrades every 5,000 distance.</p>
124124
</div>
125+
<div id="gameVersion" class="game-version"></div>
125126
</div>
126127
</div>
127128
</div>
@@ -195,6 +196,13 @@ <h2>Sanctuary Secured</h2>
195196
// Always fetch fresh version.js using timestamp (no cache)
196197
const versionModule = await import(`./resources/js/version.js?t=${Date.now()}`);
197198
const VERSION = versionModule.VERSION;
199+
200+
// Display version on home screen
201+
const versionEl = document.getElementById('gameVersion');
202+
if (versionEl) {
203+
versionEl.textContent = `${VERSION}`;
204+
}
205+
198206
const script = document.createElement('script');
199207
script.type = 'module';
200208
script.src = `./resources/js/main.js?version=${VERSION}`;

resources/css/custom.css

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -704,6 +704,18 @@ button:hover {
704704
letter-spacing: 0.05em;
705705
}
706706

707+
.game-version {
708+
position: fixed;
709+
bottom: 0.5em;
710+
left: 0.5em;
711+
font-size: 12px;
712+
color: rgba(53, 208, 186, 0.5);
713+
font-family: 'Courier New', monospace;
714+
letter-spacing: 0.05em;
715+
opacity: 0.8;
716+
z-index: 1000;
717+
}
718+
707719
.pause-abilities {
708720
text-align: center;
709721
margin-bottom: 16px;

0 commit comments

Comments
 (0)