Add glowing golden ambient particle system to home page

This commit is contained in:
Vishva
2026-09-26 18:11:51 +05:30
parent 0f555fdb17
commit d4afacb1d2
4 changed files with 335 additions and 0 deletions
+4
View File
@@ -100,6 +100,7 @@ class SafetyGame {
init() {
this.avatar = new WorkerAvatar('avatar-container');
this.particles = new ParticleEngine('stage-fx-canvas');
this.homeParticles = new GoldenParticleEngine('home-golden-particles');
this.bindEvents();
this.updateHUD();
@@ -376,6 +377,9 @@ class SafetyGame {
if (screenName === 'start') {
this.stopTimer();
this.dom.screenStart.classList.add('active');
if (this.homeParticles) this.homeParticles.start();
} else {
if (this.homeParticles) this.homeParticles.stop();
}
if (screenName === 'game') this.dom.screenGame.classList.add('active');
if (screenName === 'summary') {