Math Miner - Educational Mining Math Game

Seele01-Flash
By
Math Miner is an engaging educational puzzle game that combines treasure hunting with math practice. Help a friendly miner dig for gold by solving math problems correctly and unlock precious treasures while improving your mathematical skills.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "Math Miner". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style:** A "2.5D" stylized aesthetic using a fixed **Orthographic Camera** to simulate a 2D cross-section of a mine, but with 3D Low-poly assets. * **Color Palette:** Earthy underground tones (browns, dark grays) for the background layer. High-contrast bright colors for interactable objects: Gold (Yellow/Metallic), Jewels (Cyan/Magenta), Rocks (Dull Grey), and Bombs (Red). * **Key Models:** * **The Claw:** A mechanical pincer suspended by a rope/line at the top center of the screen. The line should be dynamically drawn (e.g., using `THREE.Line` or `TubeGeometry`). * **Treasures:** Low-poly Gold Nuggets, Diamonds, and "Mystery Bags." * **Obstacles:** Heavy Rocks (worth little, heavy to pull) and Bombs (game over risk). * **Miner Character (Optional):** A small, static or simple animated low-poly miner sprite/model at the top near the winch. * **Mobile Optimization:** Use simple `MeshLambertMaterials` or `MeshToonMaterial` for performance. Limit dynamic lights to 1 directional light and ambient light. Use instanced mesh for repeating background dirt particles. ### 2. Audio Requirements * **BGM:** A looping, upbeat "Bluegrass" or "Banjo" style track to fit the mining theme. * **Sound Effects (SFX):** * **Claw Swing:** A subtle rhythmic mechanical sound. * **Launch:** A "woosh" sound when tapping to lower the claw. * **Grab:** A metallic "clink" when hitting an object. * **Explosion:** Loud boom when hitting a bomb or answering incorrectly on a bomb question. * **Math UI:** Pleasant "ding" for correct answers, harsh "buzzer" for wrong answers. * **Winching Up:** A ratchet/gear sound (pitch changes based on speed/weight of object). ### 3. Gameplay Loop * **The Swing (Idle State):** The claw swings back and forth automatically like a pendulum (using `Math.sin` for rotation) at the top of the screen. * **The Action:** The player taps the screen to extend the claw. It shoots out in the current direction at a fixed speed. * **Collision & Challenge (The Core Mechanic):** * If the claw hits nothing/walls: It retracts immediately. * If the claw hits an object (Gold/Rock/Bomb): The game **pauses**, and a math problem overlay appears (e.g., "12 + 5 = ?"). * **Resolution:** * **Correct Answer:** The claw retracts, pulling the object up. Gold adds High Score; Rocks add Low Score. * **Wrong Answer:** The object turns into "Junk" (worth 0) or explodes. The claw retracts empty-handed. * **Bomb Mechanic:** If a bomb is grabbed, a harder math question appears. Correct = disarm (safe retraction). Wrong = Explosion (Lose 1 Life). * **Win/Loss:** The game continues until 3 Lives are lost. ### 4. Mobile Controls & Interaction * **Primary Control:** Single-tap anywhere on the screen to launch the claw. This must be responsive with no input lag. * **Orientation:** Portrait mode preferred (for better vertical depth of the mine), but responsive to landscape. * **Math Interface (UI):** * When a math problem triggers, it should be a DOM overlay (HTML/CSS) on top of the Canvas. * Provide 3 or 4 large, tappable buttons for multiple-choice answers. * Button size minimum: 60x60px to ensure touch accuracy. * **Feedback:** * **Haptic Feedback:** Trigger `navigator.vibrate(200)` when an explosion occurs or a life is lost. * **Visual Feedback:** Screen shake effect (camera jitter) on explosions. Floating text ("+500") when gold is collected. 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 Miner is an innovative educational puzzle game that transforms math practice into an exciting treasure hunting adventure. With a stellar 4.2/5 rating, this game makes learning mathematics fun and engaging for students of all ages. Players help a cheerful miner dig for gold by solving various math problems, turning what could be tedious practice into an entertaining quest for treasure.

The game features a unique risk-reward system where correct answers lead to valuable treasures like gold nuggets, jewelry, crowns, and precious gems, while wrong answers result in collecting useless junk or even dangerous bombs that can blow up the miner's clothes!

Core Features

Comprehensive Math Curriculum

Math Miner covers a wide range of mathematical concepts suitable for different grade levels: - Algebra : Linear equations, variables, and algebraic expressions - Geometry : Shapes, angles, area, and perimeter calculations - Fractions : Addition, subtraction, multiplication, and division of fractions - Decimals : Decimal operations and conversions - Basic Arithmetic : Addition, subtraction, multiplication, and division - Advanced Topics : Depending on selected grade level

Grade-Adaptive Learning

The game allows players to select their grade level, ensuring that math problems are appropriately challenging. This adaptive approach makes the game suitable for elementary through high school students, providing personalized learning experiences.

Engaging Treasure Hunting Theme

Unlike traditional math worksheets, Math Miner uses an exciting mining theme that keeps students motivated. The visual rewards of discovering treasure create positive reinforcement for correct answers, making math practice feel like a game rather than homework.

Risk-Based Gameplay

With only 3 lives per game, players must think carefully before selecting answers. This system encourages thoughtful problem-solving rather than random guessing, promoting better learning outcomes.

Gameplay Mechanics

Problem-Solving Process

  1. Select Grade Level : Choose your appropriate grade to get suitable math problems
  2. Choose Math Skill : Pick from various mathematical topics you want to practice
  3. Solve Problems : Answer multiple-choice math questions to help the miner dig
  4. Collect Rewards : Correct answers yield valuable treasures
  5. Avoid Hazards : Wrong answers result in junk or dangerous bombs

Progressive Difficulty

As you advance through stages, problems become more challenging, ensuring continuous learning and skill development. The game adapts to your performance, providing an optimal balance of challenge and success.

Operation Guide

Getting Started: - Click "Play" to begin your mining adventure - Select your current grade level from the available options - Choose which math skill you want to practice - Read each problem carefully before selecting your answer

During Gameplay: - Mouse/Touch : Click or tap to select your answer from multiple choices - Time Management : Take your time to think through each problem - Life System : Monitor your remaining lives (you start with 3) - Score Tracking : Watch your treasure collection grow with correct answers

Tips for Success: - Read each problem twice before answering - Use scratch paper for complex calculations - Don't rush - accuracy is more important than speed - Learn from mistakes to improve your performance

Why Play Math Miner

Educational Benefits

Math Miner transforms traditional math practice into an engaging experience that students actually want to play. The game reinforces mathematical concepts through repetition while maintaining high engagement levels through its treasure-hunting theme.

Perfect for All Learning Styles

  • Visual learners benefit from the colorful graphics and treasure rewards
  • Kinesthetic learners enjoy the interactive clicking and selection process
  • Logical learners appreciate the clear problem-solving structure

Classroom and Home Use

Teachers can use Math Miner as a fun classroom activity or homework assignment, while parents can feel confident that screen time is being used productively for educational purposes.

Free and Accessible

As a completely free browser-based game, Math Miner is accessible to all students regardless of economic circumstances. No downloads, subscriptions, or special software required.

Mobile-Friendly Learning

The game's HTML5 technology ensures smooth gameplay on computers, tablets, and smartphones, allowing students to practice math anywhere, anytime.

Frequently Asked Questions (FAQ)