Fix gravity reset and add spawn cap for swirl arena

This commit is contained in:
Daddy32
2025-12-13 23:21:27 +01:00
parent 91ed6c6202
commit ea2446e36b
5 changed files with 186 additions and 13 deletions

View File

@@ -148,7 +148,8 @@
if (!point || !sceneEl) return;
const el = document.createElement("div");
el.className = "floating-score";
el.textContent = `+${amount}`;
const sign = amount > 0 ? "+" : "";
el.textContent = `${sign}${amount}`;
el.style.left = `${point.x}px`;
el.style.top = `${point.y}px`;
el.style.color = color || "#e0f2fe";