particle.className = 'running-particle'; particle.textContent = runningEmojis[Math.floor(Math.random() * runningEmojis.length)]; particle.style.left = Math.random() * window.innerWidth + 'px'; particle.style.top = Math.random() * window.innerHeight + 'px'; document.body.appendChild(particle); setTimeout(() => { if (document.body.contains(particle)) { document.body.removeChild(particle); } }, 2000); }, i * 120); } } function createPartyEffect() { const partyEmojis = ['🎉', '🎊', '🎈', '🎁', '🍰', '🎂', '🥳', '🎭']; for (let i = 0; i < 16; i++) { setTimeout(() => { const particle = document.createElement('div'); particle.className = 'party-particle'; particle.textContent = partyEmojis[Math.floor(Math.random() * partyEmojis.length)]; particle.style.left = Math.random() * window.innerWidth + 'px'; particle.style.top = Math.random() * window.innerHeight + 'px'; particle.style.color = `hsl(${Math.random() * 360}, 90%, 70%)`; document.body.appendChild(particle); setTimeout(() => { if (document.body.contains(particle)) { document.body.removeChild(particle); } }, 3000); }, i * 100); } } function createPutEmUpEffect() { const putEmUpEmojis = ['🙌', '👐', '🤲', '👏', '✋', '🖐️', '🤚', '👋']; for (let i = 0; i < 10; i++) { setTimeout(() => { const particle = document.createElement('div'); particle.className = 'putemup-particle'; particle.textContent = putEmUpEmojis[Math.floor(Math.random() * putEmUpEmojis.length)]; particle.style.left = Math.random() * window.innerWidth + 'px'; particle.style.top = Math.random() * window.innerHeight + 'px'; particle.style.color = '#FF69B4'; document.body.appendChild(particle); setTimeout(() => { if (document.body.contains(particle)) { document.body.removeChild(particle); } }, 2200); }, i * 150); } } function createCelebrationParticles() { const celebrations = ['🎉', '🎊', '👟', '🏃', '🌟', '💫', '🏆', '👑', '🎯', '✨', '🎈', '🥳']; for (let i = 0; i < 45; i++) { setTimeout(() => { const particle = document.createElement('div'); particle.className = 'particle'; particle.textContent = celebrations[Math.floor(Math.random() * celebrations.length)]; particle.style.left = Math.random() * window.innerWidth + 'px'; particle.style.top = Math.random() * window.innerHeight + 'px'; particle.style.color = `hsl(${Math.random() * 360}, 85%, 65%)`; document.body.appendChild(particle); setTimeout(() => { if (document.body.contains(particle)) { document.body.removeChild(particle); } }, 3000); }, i * 70); } } function showComboEffect() { const comboDisplay = document.getElementById('comboDisplay'); const messages = [ `${gameState.combo} COMBO! SNEAKERS!`, `${gameState.combo} COMBO! READY GO!`, `${gameState.combo} COMBO! RUN!`, `${gameState.combo} COMBO! TEEN POP!`, `${gameState.combo} COMBO! PUT 'EM UP!` ]; comboDisplay.textContent = messages[Math.floor(Math.random() * messages.length)]; comboDisplay.classList.add('show'); setTimeout(() => { comboDisplay.classList.remove('show'); }, 1500); } function showAchievement(text) { const toast = document.getElementById('achievementToast'); const textElement = document.getElementById('achievementText'); textElement.textContent = text; toast.classList.add('show'); setTimeout(() => { toast.classList.remove('show'); }, 4000); } // Initialize on load document.addEventListener('DOMContentLoaded', initGame); // Console Easter Egg console.log('%c👟 SNEAKERS Typing Master 🏃', 'font-size: 24px; font-weight: bold; color: #FF69B4;'); console.log('%cPut my sneakers on! Ready, get set, go! 🌟', 'font-size: 14px; color: #00BFFF;');