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
All checks were successful
Dynamic Branch Deploy / build-and-deploy (push) Successful in 8m41s
This commit is contained in:
@@ -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)');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user