Private
Public Access
1
0

refactor client prediction tolerances; simplify logic and update thresholds for better handling of position corrections
All checks were successful
Dynamic Branch Deploy / build-and-deploy (push) Successful in 8m41s

This commit is contained in:
Sebastian Unterschütz
2026-01-28 12:26:14 +01:00
parent af08c13255
commit 78742fc1c4
2 changed files with 45 additions and 31 deletions

View File

@@ -292,15 +292,37 @@ async function initWASM() {
// Enable start buttons after WASM is ready
function enableStartButtons() {
const buttons = ['startBtn', 'coopBtn', 'createRoomBtn', 'joinRoomBtn'];
buttons.forEach(btnId => {
const btn = document.getElementById(btnId);
if (btn) {
btn.disabled = false;
btn.style.opacity = '1';
btn.style.cursor = 'pointer';
}
});
const startBtn = document.getElementById('startBtn');
if (startBtn) {
startBtn.disabled = false;
startBtn.style.opacity = '1';
startBtn.style.cursor = 'pointer';
startBtn.innerHTML = 'SOLO STARTEN';
}
const coopBtn = document.getElementById('coopBtn');
if (coopBtn) {
coopBtn.disabled = false;
coopBtn.style.opacity = '1';
coopBtn.style.cursor = 'pointer';
}
const createRoomBtn = document.getElementById('createRoomBtn');
if (createRoomBtn) {
createRoomBtn.disabled = false;
createRoomBtn.style.opacity = '1';
createRoomBtn.style.cursor = 'pointer';
createRoomBtn.innerHTML = 'RAUM ERSTELLEN';
}
const joinRoomBtn = document.getElementById('joinRoomBtn');
if (joinRoomBtn) {
joinRoomBtn.disabled = false;
joinRoomBtn.style.opacity = '1';
joinRoomBtn.style.cursor = 'pointer';
joinRoomBtn.innerHTML = 'RAUM BEITRETEN';
}
console.log('✅ Start-Buttons aktiviert (Solo + Coop)');
}