A fun, 2-player emoji-based battle game built with HTML, CSS, and Vanilla JavaScript. Players take turns selecting emojis from categories β the fastest and most accurate wins the streak!
π§ Tech Stack HTML5 β Structure
CSS3 β Styling and animations
JavaScript (Vanilla) β Game logic, UI updates, audio control
π Emoji Categories The game features multiple emoji categories:
π Animals β πΆ, π±, π―, π΅, π¦, etc.
βοΈ Weapons β πͺ, π‘οΈ, π§¨, π«, πͺ, etc.
π Food β π, π, π, π, π©, etc.
π Celebration β π, π, π, π, etc.
π Emotions β π, π’, π‘, π, π₯³, etc.
New categories can easily be added via a simple configuration array in script.js.
π«₯ βVanishingβ Feature To increase difficulty and excitement, each emoji vanishes after 1.5 seconds if not clicked.
The .vanish CSS class fades out the emoji with a transition and then removes it:
This creates a fast-paced environment where reflexes and memory matter!
π Improvements with More Time If given more time, I would:
Add mobile responsiveness and better layout for touch devices.
Include multiplayer mode via WebSockets (using Node.js & Socket.IO).
Add leaderboard and persistent streak history using localStorage or Firebase.
Add sound controls, pause/resume functionality, and more audio feedback.
Implement accessibility features for colorblind players and keyboard support.
Refactor into a modular ES6 or React-based component structure for scalability.
π§ Summary Emoji Battle Game is a fun and fast-paced way to test speed and memory. Built with JavaScript, it showcases interactive front-end development, timed DOM updates, dynamic UI rendering, and gamified UX features. ##Try it Online (myemojigame.netlify.app)