Scary Mathventure - Educational Math Puzzle Game

Seele01-Flash
By
Scary Mathventure combines educational math practice with engaging puzzle gameplay. Solve maze-like puzzles using ghosts to collect bombs, then answer math questions to unlock new levels across 30 challenging stages.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "Scary Mathventure". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style:** Low-poly "Spooky-Cute" aesthetic (Halloween theme suitable for children). A 3D isometric grid-based puzzle view. * **Camera:** Orthographic camera angled at 45 degrees (Isometric view) to ensure precise grid alignment for the puzzle mechanics. * **Environment (The Grid):** * **Floor:** Dark purple and black checkerboard textures to clearly define the movement grid. * **Walls/Obstacles:** Modeled as grey weathered gravestones (R.I.P engraved), dead trees, or iron fences. * **Atmosphere:** Dark background (hex #1a1a2e) with low-intensity ambient purple lighting. Point lights attached to "Torches" or "Jack-o'-lanterns" for warm highlights. * **Key Assets:** * **Player/Unit:** A cute, white, blob-like Ghost with simple face textures (two black eyes). * **Targets:** Round black Bombs with a sparking fuse. * **Collectibles:** Golden Skeleton Keys (rotate slowly). * **Exits/Doors:** Locked Gates (open when keys are collected). * **Mobile Optimization:** Use `THREE.InstancedMesh` for repeated floor tiles and wall segments to reduce draw calls. Limit real-time shadows; use baked circular shadows under characters. ### 2. Audio Requirements * **BGM:** A playful, "sneaky" pizzicato orchestral track (similar to Danny Elfman's style) that loops seamlessly. Not scary, just "spooky." * **Sound Effects (SFX):** * **Slide:** A "Whoosh" or spectral wind sound when the ghost moves. * **Impact:** A soft "Thud" when hitting a wall. * **Explosion:** A comedic "Poof" or "Pop" sound when a ghost hits a bomb. * **Math UI:** Positive "Ding" for correct answers, low-pitched "Buzz" for wrong answers. * **Win:** A short victory fanfare. ### 3. Gameplay Loop * **Phase 1: The Puzzle (Sliding Mechanic)** * **Objective:** Clear all Bombs on the grid using a limited supply of Ghosts. * **Mechanic:** "Ice-sliding" physics. When the player inputs a direction, the Ghost slides continuously in that direction until it hits a Wall, a Key, or a Bomb. It cannot stop mid-movement. * **Interaction:** * **Ghost vs. Wall:** Ghost stops. * **Ghost vs. Bomb:** Both the Ghost and the Bomb disappear (Particle effect: smoke). This consumes 1 Ghost. * **Ghost vs. Key:** Key is collected, Ghost stops or continues (depending on level design), Gate opens. * **Fail Condition:** Running out of Ghosts before all Bombs are cleared. * **Phase 2: The Math Challenge (Intermission)** * **Trigger:** Occurs immediately after completing the Puzzle Phase. * **UI Overlay:** A modal window covers the 3D scene. * **Task:** Answer 5 math questions correctly to progress to the next level. * **Difficulty:** Adaptive (start with simple Addition/Subtraction, scale to Multiplication/Fractions). * **Level Progression:** 30 Levels total. Unlock Level N+1 only after passing the Math Phase of Level N. ### 4. Mobile Controls & Interaction * **Puzzle Controls (Swipe Gestures):** * Detect swipes (Up, Down, Left, Right) anywhere on the screen to trigger the Ghost's movement. * **Constraint:** Input is disabled while the Ghost is currently sliding. * **Math UI Controls:** * Large, thumb-friendly buttons (min-height 60px) for Multiple Choice answers or a Numeric Keypad. * Display the question clearly at the top (e.g., "12 + 5 = ?"). * **Screen Orientation:** Portrait Mode preferred (allows for the puzzle grid on top and UI/Controls/Math keypad on the bottom half), but responsive design should handle Landscape by placing UI on the side. * **Feedback:** * **Haptics:** Trigger a short vibration (using `navigator.vibrate`) when the Ghost hits a wall or a bomb. * **Visual:** Screen shake effect (camera offset wobble) when a bomb explodes. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

Scary Mathventure is an innovative educational puzzle game that makes math practice exciting and engaging. With a stellar 4.2/5 rating, this unique game combines spooky-themed puzzle solving with comprehensive math education, covering skills from preschool through 8th grade.

The game features a clever dual-layer gameplay system where players must first solve maze-like puzzles involving ghosts and bombs, then demonstrate their mathematical knowledge to progress. This approach makes learning math feel like an adventure rather than a chore.

Core Features

Comprehensive Math Education

Scary Mathventure covers a wide range of mathematical concepts suitable for different age groups:

  • Preschool to 8th Grade Content : Progressive difficulty scaling
  • Multiple Math Topics : Addition, algebra, decimals, and fractions
  • Adaptive Learning : Choose your skill level and practice at your own pace
  • Educational Validation : Answer 5 math problems correctly to unlock each new level

Engaging Puzzle Gameplay

The game's puzzle mechanics are both entertaining and strategically challenging:

  • 30 Unique Levels : Each with distinct challenges and layouts
  • Ghost-Based Movement System : Strategic positioning and path planning
  • Bomb Collection Objectives : Clear all bombs to complete puzzle portions
  • Interactive Elements : Keys, doors, and walls create complex puzzle scenarios
  • Limited Resource Management : Use ghosts wisely as they disappear when collecting bombs

Spooky Theme & Atmosphere

The Halloween-inspired aesthetic makes learning mathematics more appealing:

  • Ghost Characters : Friendly spirits guide your puzzle-solving journey
  • Atmospheric Graphics : Spooky but not frightening, perfect for all ages
  • Themed Sound Effects : Immersive audio that enhances the gaming experience

Game Mechanics

Puzzle Solving Phase

Each level begins with a maze-like puzzle where you control ghosts to collect bombs. The challenge lies in the movement system - when you move a ghost in any direction, it travels until it hits a wall or obstacle. This creates a strategic element where you must plan your moves carefully.

Math Practice Phase

After completing the puzzle portion, you enter the educational component. The game presents 5 math problems based on your selected skill level. Only by answering all 5 correctly can you unlock the next level, ensuring genuine learning occurs.

Educational Benefits

Skill Development

  • Problem-Solving : Puzzle mechanics enhance logical thinking
  • Mathematical Proficiency : Regular practice across multiple math topics
  • Strategic Planning : Ghost movement requires forward thinking
  • Persistence : Challenging levels encourage determination

Age-Appropriate Learning

The game's scalable difficulty ensures that learners from preschool through middle school can find appropriate challenges. Whether you're just learning to count or tackling algebraic equations, Scary Mathventure adapts to your educational needs.

Operation Guide

Basic Controls

  • Mouse/Touch : Click or tap to select and move ghosts
  • Directional Movement : Ghosts move in straight lines until hitting obstacles
  • Menu Navigation : Simple interface for selecting math skill levels
  • Progress Tracking : Visual indicators show level completion and unlocked content

Gameplay Strategy

  1. Analyze the Layout : Study bomb positions and available paths
  2. Plan Ghost Routes : Consider how ghosts will move before making moves
  3. Collect Items : Grab keys to unlock doors when necessary
  4. Optimize Moves : Use the minimum number of ghosts to complete objectives
  5. Math Preparation : Review your chosen math topic before starting levels

Platform Compatibility

Scary Mathventure is built with HTML5 technology, ensuring broad compatibility:

  • Web Browsers : All modern browsers (Chrome, Firefox, Safari, Edge)
  • Mobile Devices : Smartphones and tablets (iOS and Android)
  • Cross-Platform : Seamless experience across different devices
  • No Downloads Required : Play instantly through your web browser

Why Play Scary Mathventure

This game revolutionizes math education by making it genuinely fun and engaging. Instead of traditional drill-and-practice methods, Scary Mathventure motivates learning through game progression and achievement. The spooky theme appeals to children who might otherwise resist math practice, while the puzzle elements develop critical thinking skills beyond mathematics.

Parents and educators appreciate how the game combines entertainment with legitimate educational value. The requirement to solve math problems for progression ensures that players can't advance without demonstrating understanding, making it an effective learning tool.

The game's rating of 4.2/5 reflects its success in balancing educational content with engaging gameplay, creating an experience that players genuinely enjoy while learning essential mathematical skills.

Frequently Asked Questions (FAQ)