Math Smash: Animal Rescue

Seele01-Flash
By
Math Smash: Animal Rescue combines mathematical learning with heroic adventure gameplay. Save adorable animals by solving math problems while they're trapped on falling blocks.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "Math Smash: Animal Rescue". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style**: Create a vibrant, cartoon-style 3D aesthetic suitable for children. Use a bright color palette (pastels and primary colors). * **Core Models**: * **Blocks**: Simple cubes with slightly beveled edges. Each block must display a distinct number texture on its face. Use distinct colors for blocks (red, blue, green, yellow) to differentiate them visually. * **Characters**: Low-poly, cute animal models (start with a voxel-style Dog and Cat) placed on top of the block stacks. * **Environment**: A simple, static background (e.g., a stylized park or blue sky with clouds) that does not distract from the gameplay. * **Effects (VFX)**: * **Explosions**: When a block is destroyed, spawn a particle system (small cube debris) matching the block's color. * **Dust**: Small dust clouds when blocks or animals land after falling. * **Performance Optimization**: Use `THREE.InstancedMesh` for the blocks to minimize draw calls, as there will be many cubes on screen. Texture atlases should be used for the numbers. ### 2. Audio Requirements * **BGM**: A cheerful, looping track using marimba or pizzicato strings to create a "thinking" but relaxed atmosphere. * **Sound Effects (SFX)**: * **UI Interaction**: A soft "click" for menu selections. * **Correct Answer**: A satisfying "pop" or "crunch" sound when a block is destroyed. * **Wrong Answer**: A dull "thud" or comical "buzz" sound. * **Rescue**: A happy animal sound (bark/meow) and a fanfare chime when the animal reaches the ground. * **Physics**: Subtle impact sounds when blocks fall and collide. ### 3. Gameplay Loop * **Setup**: Generate a grid of blocks (e.g., 5 columns x 8 rows). Place an Animal character on top of a random column. * **The Challenge**: Display a math equation (e.g., "5 + 3 = ?") clearly in a UI panel at the bottom of the screen. * **Block Logic**: Populate the blocks with random numbers, but **ensure** that at least 3-4 blocks on the screen currently contain the correct answer to the displayed equation. * **Interaction**: * The player taps a block. * **If Correct**: The block explodes and disappears. Gravity applies to the blocks above (and the animal), causing them to fall into the empty space. A coin is added to the score, and a new math question is generated. * **If Wrong**: The block shakes briefly (visual feedback) but does not break. A small time penalty or score deduction occurs. * **Win Condition**: The Animal character physically reaches the bottom row (y=0 or ground level). * **Difficulty Scaling**: Start with simple addition. As the player progresses, introduce subtraction and multiplication, or increase the speed at which blocks might slowly rise (if implementing a survival mode). ### 4. Mobile Controls & Interaction * **Controls**: * Implement a **Raycaster** linked to touch events (`touchstart`). * Detect taps on the 3D block meshes. * **Orientation**: Portrait mode is preferred to accommodate the vertical height of the block stacks. * **UI Layout**: * **Math Display**: A large, high-contrast container at the bottom center of the screen (thumb-friendly zone). * **Score/Level**: Top corners of the screen. * **Pause/Settings**: Top right corner (min size 44x44px). * **Feedback**: * **Haptic**: Trigger `window.navigator.vibrate(50)` upon successfully destroying a block. * **Visual**: When a block is tapped, highlight it briefly. If the answer is correct, float a "+10" text upward from the position. * **Camera**: Implement a very subtle camera shake when a large column of blocks drops down. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

Math Smash: Animal Rescue is an engaging educational puzzle game that transforms math practice into an exciting rescue mission. With a stellar 4.4/5 rating from players, this game perfectly blends learning with entertainment as you become the mathematical hero these adorable animals desperately need.

In this thrilling adventure, cute dogs and cats have climbed to dangerous heights on unstable block towers. As the blocks begin to fall, only your quick mathematical thinking can save them from harm. Each correct answer removes blocks strategically, helping the animals descend safely while you earn coins and improve your math skills.

Core Features

Comprehensive Educational Content

The game offers an impressive range of mathematical concepts suitable for different learning levels:

  • Grade Range : Covers preschool through 8th grade mathematics
  • Math Topics : Addition, multiplication, decimals, geometry, and number properties
  • Adaptive Learning : Choose your grade level and skill focus during gameplay
  • Progressive Difficulty : Questions adjust to match your selected educational level

Engaging Rescue Gameplay

Every math problem becomes a heroic rescue mission:

  • Animal Characters : Adorable dogs and cats waiting to be saved
  • Block-Breaking Mechanics : Remove blocks by solving math equations
  • Strategic Thinking : Choose blocks directly under animals for faster rescues
  • Coin Rewards : Earn in-game currency for correct answers and successful rescues

Free Browser-Based Learning

Access quality educational content without barriers:

  • Completely Free : No payment required for full game access
  • HTML5 Technology : Runs smoothly in any modern web browser
  • No Downloads : Start playing instantly without installations
  • Cross-Platform : Works on computers, tablets, and smartphones

Gameplay Mechanics

The game combines puzzle-solving with educational content in an intuitive way. Animals appear trapped on top of block structures, with math problems displayed at the bottom of your screen. Your mission is to find the correct answer among the blocks and click it to remove that section.

Strategic Elements : - Prioritize blocks directly beneath trapped animals - Work quickly as blocks continue falling - Balance speed with accuracy for maximum points - Use earned coins to unlock additional features

Operation Guide

Getting Started : 1. Select your appropriate grade level (preschool through 8th grade) 2. Choose your preferred math skill focus 3. Read the math question displayed at the screen bottom 4. Click the block containing the correct answer 5. Watch as animals safely descend with each correct solution

In-Game Controls : - Mouse/Touch : Click or tap blocks to select answers - Menu Navigation : Access settings to change grade level or math topics - Question Display : Math problems appear in the lower screen area - Score Tracking : Monitor your progress and coin collection

Tips for Success : - Focus on blocks directly under animals for efficient rescues - Take time to read questions carefully before answering - Use the grade-level adjustment feature if questions are too easy or difficult - Practice regularly to improve both math skills and reaction time

Why Play This Game

Educational Benefits : Math Smash: Animal Rescue proves that learning mathematics doesn't have to be boring. The game successfully motivates students by connecting abstract math concepts to concrete rescue scenarios, making each problem feel meaningful and urgent.

Perfect for Multiple Learning Styles : - Visual Learners : Colorful graphics and block-based problem solving - Kinesthetic Learners : Interactive clicking and immediate feedback - Goal-Oriented Students : Clear rescue objectives and coin rewards

Suitable for Various Settings : - Classroom Use : Teachers can integrate this into math lessons - Home Learning : Parents can support their children's math practice - Independent Study : Self-directed learning with engaging content - Skill Reinforcement : Practice mathematical concepts in a fun environment

Whether you're a student looking to improve math skills, a parent seeking educational entertainment, or an educator wanting engaging classroom tools, Math Smash: Animal Rescue delivers quality mathematical learning wrapped in an exciting rescue adventure.

Frequently Asked Questions (FAQ)