Loading a world clears cards left from the last one (t11)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-24 01:04:25 -04:00
co-authored by Claude Opus 5.5
parent e0525c1cfb
commit 259ad89ded
5 changed files with 24 additions and 3 deletions
+3
View File
@@ -5,6 +5,9 @@ function showLoading(on, p) {
if (on) { $('loadbar').style.width = Math.round((p || 0) * 100) + '%'; $('loadtext').textContent = Math.round((p || 0) * 100) + '%'; }
}
function enterGame() {
$('cards').innerHTML = '';
if (R.floaters) R.floaters.length = 0; R.particles.length = 0;
GAME.status = ''; GAME.statusT = 0;
$('title').hidden = true; $('hud').hidden = false;
GAME.running = true; GAME.paused = false;
buildSky(); resizeRender(); snapCamera();