Add Like Mad - Math Puzzle Game

Seele01-Flash
By
Add Like Mad is a fast-paced math puzzle game that challenges your mental arithmetic skills. Race against the clock to solve addition problems and achieve the highest score possible.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "Add Like Mad". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style:** Use a "Cartoon Math" aesthetic similar to the reference image. Bright, saturated primary colors (Blue #1E90FF, Green #32CD32, Red #FF4500). * **The Grid:** Create a 5x5 or 6x6 grid of 3D rounded cubes (chamfer box). Each cube should display a number (1-9) on its top face. Use high-contrast textures for the numbers (White text on colorful backgrounds). * **The "Target" Display:** A prominent, floating 3D display board at the top of the screen showing the current "Target Sum" needed. * **Background:** A clean, light blue radial gradient background (`#87CEEB` to `#E0F7FA`) that is static to save performance. * **Performance Optimization:** Use `InstancedMesh` for the grid tiles to reduce draw calls. Textures should be low-resolution (e.g., 256x256) sprites. Use a single Directional Light casting soft shadows and an Ambient Light for base visibility. ### 2. Audio Requirements * **BGM:** A fast-paced, rhythmic electronic track that simulates a "ticking clock" beat (approx. 120-140 BPM) to induce urgency. The tempo could slightly increase as the timer runs low. * **Sound Effects (SFX):** * **Tap:** A soft, "thocky" mechanical keyboard sound when selecting a number. * **Success:** A cheerful, high-pitched "Chime" or "Pop" sound when the sum matches the target. * **Failure/Reset:** A low-pitched "Dull Thud" or "Buzz" if the sum exceeds the target. * **Time Warning:** An urgent "Beep... Beep..." alarm when < 5 seconds remain. ### 3. Gameplay Loop * **Core Mechanic:** 1. The game displays a random **Target Number** (e.g., 15) at the top. 2. The player taps multiple tiles on the grid. The selected tiles visually highlight (glow or depress). 3. **Logic:** * If `Selected Sum == Target Number`: The selected tiles disappear (scale down to 0), points are awarded, a few seconds are added to the timer, and new tiles fall in to fill the gaps. A new Target Number is generated. * If `Selected Sum > Target Number`: The selection instantly resets (tiles pop back up), and the player receives a small time penalty. * If `Selected Sum < Target Number`: The player continues selecting. * **Time Attack:** The game starts with 60 seconds. The game ends immediately when the timer reaches 0. * **Difficulty Scaling:** As the score increases, the Target Numbers become larger, requiring more tiles to be combined. ### 4. Mobile Controls & Interaction * **Orientation:** **Portrait Mode** (Vertical) to best fit the Target Display (Top) and the Grid (Center/Bottom) on mobile screens. * **Touch Controls:** Use a Three.js `Raycaster` mapped to `touchstart` events. Do not rely on `click` to avoid the 300ms delay on mobile browsers. * **Visual Feedback:** * When tapped, the tile should physically move down (Z-axis) by 0.2 units to simulate a physical button press. * Selected tiles should have a visual outline or color shift (e.g., turn Gold). * **Haptic Feedback:** Trigger `window.navigator.vibrate(15)` on every tap, and `window.navigator.vibrate([50, 50, 50])` on a successful match. * **UI Layout:** Ensure the "Score" and "Timer" text are at least 44px in height and placed at the very top of the screen (safe area) to avoid accidental touches. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

Add Like Mad is an exciting math puzzle game that puts your mental arithmetic skills to the ultimate test. This brain-teasing challenge combines the thrill of time pressure with the satisfaction of solving mathematical puzzles. Players must quickly identify number combinations that add up to a target sum, making split-second decisions while the clock ticks away.

Designed for players of all ages, this game offers a perfect blend of education and entertainment. Whether you're looking to sharpen your math skills, train your brain, or simply enjoy a quick mental workout, Add Like Mad delivers an engaging experience that keeps you coming back for more.

Core Features

Lightning-Fast Math Challenges

Experience the rush of solving addition problems under intense time pressure. Each round presents a new target number, and you must quickly identify which squares combine to reach that sum. The faster you solve, the higher your score climbs.

Brain Training Benefits

This isn't just a game – it's a comprehensive brain training tool that: - Improves mental calculation speed - Enhances pattern recognition skills - Develops quick decision-making abilities - Strengthens concentration and focus - Boosts numerical fluency

Progressive Difficulty

As you advance through the game, challenges become increasingly complex. Start with simple single-digit additions and work your way up to more challenging combinations that will truly test your mathematical prowess.

Accessible for All Ages

With its intuitive interface and straightforward concept, Add Like Mad welcomes players from elementary students practicing basic math to adults seeking a mental challenge. The game's all-ages rating ensures it's perfect for family gaming sessions.

Game Mechanics

The gameplay revolves around a grid of numbered squares displayed on your screen. Each round begins with a target number that you must achieve by selecting the right combination of squares. The challenge lies in quickly identifying which numbers add up to the target sum while racing against a countdown timer.

Success requires both mathematical skill and strategic thinking. You'll need to scan the available numbers rapidly, calculate potential combinations mentally, and make decisive clicks before time runs out. The scoring system rewards both accuracy and speed, encouraging players to find the perfect balance between quick thinking and careful calculation.

How to Play

Basic Controls: - Mouse clicks : Select number squares to include in your sum - Target display : Shows the number you need to reach - Timer : Displays remaining time for each round

Gameplay Steps: 1. Observe the target : Look at the number you need to achieve 2. Scan the grid : Quickly identify available number squares 3. Calculate combinations : Mentally determine which numbers add up to the target 4. Click to select : Choose the squares that form your solution 5. Submit your answer : Complete the sum before time expires 6. Advance to next round : Continue with increasingly challenging puzzles

Scoring Tips: - Speed is crucial – faster solutions earn higher points - Accuracy matters – incorrect answers may result in penalties - Look for obvious combinations first, then explore alternatives - Practice mental math techniques to improve your calculation speed

Why Play Add Like Mad

Educational Value

This game transforms math practice into an exciting challenge. Unlike traditional worksheets or boring drill exercises, Add Like Mad makes learning arithmetic fun and engaging. It's an excellent tool for students, parents, and educators looking to reinforce basic math skills through interactive gameplay.

Mental Fitness

Just as physical exercise keeps your body healthy, mental challenges like Add Like Mad keep your brain sharp. Regular play can help maintain cognitive function, improve memory, and enhance overall mental agility.

Stress Relief

Despite the time pressure, many players find the focused concentration required by the game to be surprisingly relaxing. The clear objectives and immediate feedback create a satisfying flow state that can help reduce stress and provide a mental break from daily concerns.

Convenient Gaming

As a browser-based game, Add Like Mad offers ultimate convenience. No downloads, no installations – just instant access to brain-training entertainment whenever you need it. Perfect for quick breaks, commute entertainment, or dedicated practice sessions.

Frequently Asked Questions (FAQ)