Number Worms - Math Learning Game

Seele01-Flash
By
Number Worms is an engaging educational puzzle game that combines math learning with fun gameplay. Challenge your numerical skills while helping cute worms solve number puzzles in this brain-training adventure.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "Number Worms". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style**: A vibrant, "Low-Poly Cute" aesthetic similar to the provided screenshot. * **The Worm**: Create a segmented worm using `THREE.SphereGeometry`. The head should be a slightly larger pink sphere with simple black eyes (small spheres) to give it character. The body segments should be smaller pink spheres that trail the head. * **The Environment**: A bright green, grid-based ground plane (like a manicured lawn). Use a checkerboard pattern (light green/dark green) on the texture to help players judge distance. * **Collectibles (Answers)**: Floating "Apples" or "Leaves" (red or green spheres) scattered around the board. Critical: Each collectible must have a **floating number** above it (using a CanvasTexture sprite or HTML overlay) representing a potential answer. * **Camera**: Use an **OrthographicCamera** positioned at a steep angle (Isometric view, e.g., 45 degrees) to keep perspective consistent and text readable on small screens. * **Performance**: Reuse geometries and materials. Use simple Lambert or Phong materials for performance on mobile GPUs. ### 2. Audio Requirements * **BGM**: A light, playful, and repetitive "Marimba" or "Pizzicato Strings" track that sounds like "thinking music"—upbeat but not distracting. * **Sound Effects**: * **Eating/Correct Answer**: A satisfying "Crunch" or high-pitched "Ding". * **Wrong Answer**: A low-pitched "Bonk" or "Buzz" sound. * **Movement**: A very soft "swish" when turning (optional). * **Game Over**: A descending slide whistle or "Sad Trombone". ### 3. Gameplay Loop * **Core Mechanic**: A hybrid of "Snake" and a Math Quiz. * **The Challenge**: A math equation is displayed constantly at the top of the screen (e.g., "5 + 3 = ?"). * **The Action**: The worm moves automatically at a constant speed on the grid. The player must steer the worm. * **Scoring**: * Three to four "Answer Apples" spawn on the field. Only one has the correct number (e.g., "8"). The others are wrong numbers. * **Correct**: Eating the correct number increases the score, adds a segment to the worm's tail (it grows), and generates a *new* math equation. * **Incorrect**: Eating a wrong number shrinks the worm or deducts a "Heart". * **Game Over**: If the worm runs into its own tail, hits the wall, or runs out of segments/hearts. ### 4. Mobile Controls & Interaction * **Control Scheme**: **Swipe Gestures**. Since this is a grid-based Snake game, precise turns are needed. * Swipe Up/Down/Left/Right anywhere on the screen changes the worm's direction. * *Fallback*: Support Arrow Keys for desktop testing. * **Orientation**: Portrait Mode preferred (easier for one-handed play), but the camera should adapt to the screen aspect ratio. * **UI Layout**: * **Top Header (HTML Overlay)**: Large, clear text showing the current Equation (e.g., "12 - 4 = ?") and current Score. * **Start/Restart Button**: A large, thumb-friendly button (at least 60px height) centered on the screen when the game is paused or over. * **Feedback**: * **Visual**: When the correct answer is eaten, spawn a small particle explosion (confetti) of the same color. * **Haptic**: Trigger `window.navigator.vibrate(50)` (short pulse) when eating an apple, and a longer vibration on Game Over. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

Number Worms is a captivating educational puzzle game that transforms math learning into an exciting adventure. With a solid 4.1/5 rating from players, this colorful and engaging game features adorable worm characters that guide you through various numerical challenges. The game successfully combines educational content with entertaining gameplay, making it perfect for learners of all ages who want to sharpen their math skills.

Core Features

This delightful math puzzle game offers several compelling features:

  • Completely Free : Enjoy unlimited gameplay without any costs or hidden fees
  • Educational Value : Designed specifically to improve mathematical thinking and problem-solving skills
  • All Ages Friendly : Suitable content rating makes it perfect for children, students, and adults
  • Cross-Platform Compatibility : Built with HTML5 technology for seamless play on computers, tablets, and smartphones
  • High Score System : Track your progress and compete for the best scores
  • Brain Training Focus : Specifically designed as a brain teaser to enhance cognitive abilities

Colorful and Engaging Design

The game features vibrant graphics with cute worm characters set against bright, cheerful backgrounds. The visual design is specifically crafted to be appealing to learners while maintaining focus on the mathematical concepts being taught.

Progressive Difficulty

Number Worms offers a well-structured learning curve, starting with basic number concepts and gradually introducing more complex mathematical challenges as you progress through the levels.

Game Mechanics

The core gameplay revolves around helping worms navigate through number-based puzzles. Players must use mathematical reasoning and problem-solving skills to guide their worm characters through various numerical challenges. Each level presents unique puzzles that require different mathematical approaches, keeping the gameplay fresh and educational.

Interactive Learning

Unlike traditional math exercises, Number Worms makes learning interactive and enjoyable. The game mechanics are designed to reinforce mathematical concepts through hands-on problem solving rather than rote memorization.

Operation Guide

Getting started with Number Worms is straightforward:

  • Mouse Control : Use your mouse to interact with game elements, select numbers, and move worm characters
  • Keyboard Input : Keyboard shortcuts are available for quick number entry and navigation
  • In-Game Instructions : Detailed tutorials guide you through each new mechanic as it's introduced
  • Intuitive Interface : The user-friendly design makes it easy for players of all ages to jump in and start learning

The game provides clear visual feedback for all actions, helping players understand both the mechanics and the mathematical concepts being explored.

Why Play Number Worms

This educational puzzle game stands out for several important reasons:

Educational Benefits : Number Worms effectively combines learning with entertainment, making math practice enjoyable rather than tedious. It's an excellent tool for students, parents looking for educational games, or anyone wanting to brush up on their numerical skills.

Accessibility : The game's all-ages content rating and cross-platform HTML5 design mean it's accessible to virtually everyone. Whether you're a young student just learning basic math or an adult looking for brain training, Number Worms adapts to your skill level.

Proven Quality : With a 4.1/5 player rating, the game has demonstrated its effectiveness at combining education with entertainment. Players consistently praise its balance of challenge and fun.

No Barriers : Being completely free and browser-based eliminates common barriers to educational gaming. No downloads, installations, or payments required - just open your browser and start learning.

Frequently Asked Questions (FAQ)