fix: Remove duplicate RABBIT declaration and move toggleDebug function

This commit is contained in:
Kacper Kostka (aider)
2025-04-05 16:26:18 +02:00
parent bdab2974c6
commit bcd61b7433
2 changed files with 6 additions and 5 deletions

View File

@@ -68,6 +68,11 @@ function resizeCanvas() {
canvas.height = window.innerHeight - document.querySelector('.controls').offsetHeight;
}
function toggleDebug() {
debugMode = !debugMode;
document.getElementById('debug-btn').classList.toggle('active');
}
function simulationLoop(timestamp) {
// Calculate FPS
const deltaTime = timestamp - lastFrameTime;