Whack-A-Mole - Classic Arcade Game

Seele01-Flash
By
Whack-A-Mole brings the beloved county fair classic to your screen. Test your reflexes and hand-eye coordination in this timeless arcade action game that's easy to learn but challenging to master.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "**Carnival Whack-A-Mole 3D**". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style:** Low-poly, vibrant "Toon Shaded" aesthetic (MeshToonMaterial) to match the "Cute" and "Easy" tags. Bright colors: saturated greens for grass, bright orange/yellow background, and pink/brown for the moles. * **Scene Layout:** A 3x3 grid of "Mole Hills" (brown mounds with a black circular center) set upon a green platform. * **Characters:** * **The Mole:** A cylindrical/capsule-based character with a pink nose, buck teeth, and simple black sunglasses (referencing the screenshot). * **The Hammer:** A large, oversized blue cartoon mallet. * **Visual Effects:** * **Hit Effect:** When a mole is hit, spawn "dizzy stars" or particle explosion and scale the mole down vertically (squash effect). * **Score Floaters:** Floating text ("+10") rising from the hit location. * **Performance:** Use geometry instancing for the grass/hills if possible. Keep polygon count low (<5000 tris total) for smooth mobile frame rates. ### 2. Audio Requirements * **BGM:** A looping, fast-paced "Circus/Fairground" melody (Calliope style) to induce excitement. * **SFX:** * **Pop-up:** A slide whistle or "Boing" sound. * **Hit:** A comical "Bonk" or squeaky toy sound. * **Miss/Glitch:** A low-pitch buzzer if the player taps an empty hole. * **Game Over:** A "Ta-da" finale fanfare. ### 3. Gameplay Loop * **State Machine:** Start Screen -> Gameplay (60-second timer) -> Result Screen. * **Mechanics:** * Moles pop up from random holes for a variable duration (0.5s to 1.5s). * As the timer decreases, the spawn rate and speed of moles increase (difficulty ramp). * **Special Mole:** Occasionally spawn a "Golden Mole" (different color) worth double points. * **Scoring:** +10 points for a standard hit, +50 for a Golden Mole. * **Win/Loss:** The goal is to achieve the highest score within the time limit. ### 4. Mobile Controls & Interaction * **Touch Handling:** Use `Three.Raycaster` bound to the `touchstart` event (not click) to ensure zero-latency response on mobile devices. * **Hammer Logic:** Do not render the hammer permanently (it obscures vision on small screens). Instead, when the player taps, instantly spawn/animate the hammer striking that specific coordinate, then hide it. * **Haptics:** Trigger `navigator.vibrate(50)` on a successful hit for tactile feedback. * **UI Layout:** * **Portrait Mode:** Game scene in the center, Score top-left, Timer top-right. * **Buttons:** "Start/Restart" button must be large (at least 88px height) and placed at the bottom of the screen for easy thumb access. * **Camera:** A fixed isometric camera view (approx 45-degree angle) to provide depth while keeping all 9 holes clearly visible without occlusion. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

Whack-A-Mole is the digital version of the iconic carnival game that has entertained players for generations. This classic arcade experience challenges your reflexes as pesky moles pop up from their holes, and your job is to whack them back down as quickly as possible. With its simple yet addictive gameplay, Whack-A-Mole offers endless entertainment for players of all ages.

The game captures all the excitement of the county fair favorite without leaving your home. Its cute, colorful graphics and satisfying sound effects create an engaging atmosphere that keeps you coming back for more. Whether you're looking for a quick gaming break or want to improve your reaction time, this timeless classic delivers pure arcade fun.

Core Features

Classic Arcade Action

Experience authentic Whack-A-Mole gameplay with responsive controls and smooth animations. The game faithfully recreates the carnival atmosphere while adding modern polish and convenience.

Easy to Learn, Hard to Master

The simple point-and-click mechanics make it accessible to everyone, but achieving high scores requires lightning-fast reflexes and precise timing. Perfect for casual players and competitive gamers alike.

Free Browser Gaming

Enjoy completely free gameplay with no downloads, installations, or payments required. Simply open your browser and start whacking moles instantly.

All Ages Entertainment

With its cute graphics and family-friendly content, Whack-A-Mole is suitable for players of all ages. It's an excellent choice for family gaming sessions or introducing younger players to arcade games.

Reflex Training

Improve your hand-eye coordination and reaction time while having fun. The game serves as an entertaining way to sharpen your reflexes and mouse precision.

Game Gameplay

In Whack-A-Mole, moles randomly pop up from different holes across the game board. Your objective is to click on them with your mouse cursor (representing a hammer) before they disappear back into their holes. Each successful hit earns you points, while missed moles can cost you the game.

The challenge intensifies as the game progresses, with moles appearing and disappearing faster, testing your ability to stay alert and react quickly. Some variations may include special moles that offer bonus points or present unique challenges.

Scoring is typically based on accuracy and speed - the faster you whack the moles, the higher your score. The game encourages players to achieve personal bests and compete for high scores, adding replay value to this simple yet engaging concept.

Operation Guide

Controls are incredibly straightforward:

  • Mouse Movement : Position your cursor over the game area
  • Left Click : Whack the moles when they appear
  • Quick Reflexes : React fast before moles disappear

The key to success is maintaining focus on the entire game board and being ready to click the moment a mole appears. Develop a scanning pattern to efficiently monitor all holes and practice your clicking accuracy to maximize your score.

Why Play This Game

Whack-A-Mole offers the perfect combination of nostalgia, simplicity, and challenge. It's an ideal stress-reliever that provides quick bursts of entertainment during breaks. The game's timeless appeal lies in its ability to be instantly engaging while offering room for skill improvement.

For those seeking a mental break, the game provides satisfying, mindless fun. For competitive players, it offers the challenge of achieving higher scores and faster reaction times. The game's accessibility makes it perfect for sharing with friends and family, creating moments of shared enjoyment and friendly competition.

Its browser-based nature means you can enjoy authentic arcade gaming anywhere with an internet connection, making it the perfect portable entertainment option.

Frequently Asked Questions (FAQ)