Math Rush - Educational Math Puzzle Game

Seele01-Flash
By
Math Rush combines fast-paced warehouse management with essential math practice. Sort colored boxes while solving addition, subtraction, and other math problems in this engaging educational puzzle game.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "Math Rush". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style:** Stylized "Low-Poly Industrial." The scene represents a factory floor viewed from a **Top-Down or High-Angle Isometric perspective** (fixed camera). * **Key Objects:** * **Conveyor Belt:** A central moving platform (textured plane with UV animation to simulate movement) running from the top of the screen towards the bottom. * **Items (Gears/Parts):** Simple 3D geometries (Torus for gears, Cubes for crates, Cylinders for pipes) representing warehouse parts. Each item must have a visible **Number** or **Shape Icon** texture mapped on top. * **Sorting Boxes:** Open containers positioned at the bottom of the screen. Each box has a floating label displaying a **Target Requirement** (e.g., a Math Problem "5 + 3 = ?" or a Shape Outline). * **Environment:** A dark metallic floor grid background to make the colorful game pieces pop. Use soft industrial lighting (DirectionalLight + AmbientLight) with cast shadows for depth. * **Optimization:** Use `THREE.BoxGeometry` and `THREE.TorusGeometry` primitives instead of loading external models to ensure code runs immediately. Minimize draw calls by reusing materials. ### 2. Audio Requirements * **BGM:** A rhythmic, mechanical "factory" track (synth-bass with metallic percussion) that speeds up slightly as the game progression increases. * **Sound Effects:** * **Spawn:** A soft "whoosh" when new gears appear. * **Grab:** A distinct "click" when the player touches an item. * **Correct Drop:** A satisfying "pneumatic hiss" or "ding" sound, accompanied by the box glowing green. * **Wrong Drop:** A harsh "buzzer" sound and a red screen shake effect. * **Game Over:** A power-down sound effect (pitch bending down). ### 3. Gameplay Loop * **Core Mechanic:** 1. **The Problem:** Boxes appear at the bottom of the screen, each displaying a math equation (e.g., "10 - 2") or a specific shape requirement. 2. **The Source:** Items (Gears) slide down the conveyor belt from the top, carrying numbers (e.g., "8", "5", "12") or shapes. 3. **The Action:** The player must identify the correct answer (e.g., the gear labeled "8" for the "10 - 2" box) and Drag & Drop the gear into the box before it falls off the belt. * **Progression:** * **Level 1:** Slow speed, simple addition only. * **Level 2+:** Speed increases, subtraction/multiplication added, mixed with shape matching. * **Multi-Tasking:** Eventually, 2-3 boxes appear simultaneously requiring different answers. * **Win/Loss:** * **Score:** Points for every correct sort. Streak bonus for quick consecutive sorts. * **Game Over:** Occurs if 3 items fall off the belt unsorted or if 3 wrong items are placed in boxes (Three Strikes rule). ### 4. Mobile Controls & Interaction * **Orientation:** **Portrait Mode** (Vertical) is mandatory to maximize the view of the conveyor belt coming towards the player. * **Touch Controls:** * Implement a robust `Raycaster` system for touch detection. * **Drag & Drop:** User touches a gear -> Gear lifts up (visual feedback: scale x1.2, slight shadow offset) -> User drags finger -> Gear follows finger -> User releases over a Box. * **Snap Logic:** If released near a valid drop zone (Box), the gear should visually "snap" into the box center. * **UI Layout:** * Score display in the top-left (large, readable font). * "Lives/Strikes" indicator in the top-right. * All interactive elements must have a touch hit area of at least 44x44 pixels. * **Feedback:** Use `window.navigator.vibrate(50)` for haptic feedback on successful drops or errors. 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 Rush is an innovative educational puzzle game that transforms math practice into an exciting warehouse adventure. With an impressive 4.4/5 rating from players worldwide, this free online game combines mathematical problem-solving with fast-paced sorting challenges. Players must organize different colored gears and shapes into matching boxes while solving various math equations, creating a unique learning experience that makes mathematics both fun and engaging.

Core Features

Educational Excellence

Math Rush serves as the perfect platform for practicing essential mathematical skills including:

  • Addition and Subtraction : Master basic arithmetic operations through interactive gameplay
  • Multi-tasking Math : Handle multiple mathematical concepts simultaneously
  • Progressive Difficulty : Start with simple problems and advance to complex multi-step equations
  • Real-time Problem Solving : Develop quick thinking and mental calculation abilities

Engaging Warehouse Simulation

The game transforms a typical factory warehouse into an exciting puzzle environment:

  • Dynamic Conveyor System : Sort items on moving conveyor belts that increase in speed
  • Multi-box Management : Handle up to 3-4 boxes simultaneously as difficulty increases
  • Shape Recognition : Categorize up to 5 different geometric shapes and patterns
  • Visual Learning : Combine mathematical concepts with spatial reasoning skills

Accessibility and Convenience

  • Completely Free : No hidden costs or premium subscriptions required
  • Cross-Platform Compatible : Play seamlessly on desktop computers, tablets, and smartphones
  • No Download Required : Instant access through any modern web browser
  • All Ages Welcome : Suitable content rating makes it perfect for learners of every age

Gameplay Mechanics

Factory Floor Challenge

In Math Rush, you take control of a busy warehouse operation where mathematical accuracy determines your success. The factory setting provides a realistic context for learning, making abstract math concepts more tangible and relatable.

Progressive Complexity

The game intelligently scales difficulty based on your performance:

  1. Beginner Level : Simple addition and subtraction with single boxes
  2. Intermediate Challenge : Multiple operations with 2-3 boxes running simultaneously
  3. Expert Mode : Complex equations managing 4+ boxes with varying speeds and shapes
  4. Master Level : Advanced mathematical concepts with rapid-fire warehouse scenarios

Operation Guidelines

Desktop Controls

  • Mouse Click and Drag : Select and move boxes to their correct positions
  • Point and Click : Navigate through different warehouse sections and menus
  • Keyboard Shortcuts : Use number keys for quick math input when available

Mobile Controls

  • Tap to Select : Touch boxes and mathematical elements to interact
  • Drag and Drop : Move items with finger gestures for intuitive control
  • Swipe Navigation : Move between different areas of the warehouse floor

Strategic Tips

  • Monitor Multiple Lanes : Keep track of all conveyor belts simultaneously
  • Quick Mental Math : Develop rapid calculation skills for higher scores
  • Pattern Recognition : Learn to quickly identify matching shapes and colors
  • Time Management : Balance speed with accuracy for optimal performance

Why Choose Math Rush

Educational Benefits

Math Rush transforms traditional math practice into an engaging gaming experience. Unlike boring worksheets or repetitive drills, this game provides immediate feedback and rewards progress, making mathematical learning enjoyable and sustainable.

Skill Development

Players develop multiple cognitive abilities: - Mathematical Fluency : Rapid and accurate calculation skills - Spatial Reasoning : Understanding shapes, patterns, and geometric relationships - Multi-tasking : Managing multiple tasks and information streams simultaneously - Problem-solving : Quick decision-making under time pressure

Perfect for Everyone

Whether you're a student looking to improve math grades, a parent seeking educational entertainment for children, or an adult wanting to keep mathematical skills sharp, Math Rush offers the perfect blend of education and entertainment.

Proven Effectiveness

With its high player rating and educational focus, Math Rush has proven successful in making mathematics accessible and enjoyable. The game's factory theme provides real-world context that helps players understand practical applications of mathematical concepts.

Frequently Asked Questions (FAQ)