Added more logging and some bug fixes

This commit is contained in:
Cam Spry committed 2026-03-01 05:54:48 -05:00
1 parent 6e55209159
commit 7bc9d67544
2 files changed
+29 -8

No files matched your search

+5 -5
View File
@@ -332,7 +332,7 @@
<div id="layout">
<div id="header">
YARN 2026 - Spin your story! <span id="room-display"></span>
Y.A.R.N. 2026 - Spin a story! -&nbsp;<span id="room-display"></span>
</div>
<div id="main-text">
@@ -370,7 +370,7 @@
// Get room name from URL
const pathParts = window.location.pathname.split('/').filter(p => p);
const roomName = pathParts[0] || 'default';
document.getElementById('room-display').textContent = ` — Room: ${roomName}`;
document.getElementById('room-display').textContent = `Room: ${roomName}`;
// Get or create player UUID
let playerUUID = getCookie('yarn_player_uuid');
@@ -746,12 +746,12 @@
}
function startGame() {
const scoreLimit = parseInt(document.getElementById('score-limit').value) || 25;
const scoreLimit = parseInt(document.getElementById('score-limit').value) || 100;
const timeLimit = parseInt(document.getElementById('time-limit').value) || 60;
socket.emit('startGame', {
scoreLimit: Math.max(10, Math.min(100, scoreLimit)),
timeLimit: Math.max(15, Math.min(180, timeLimit))
scoreLimit: Math.max(10, Math.min(9999, scoreLimit)),
timeLimit: Math.max(15, Math.min(600, timeLimit))
});
}