Plus One - Math Puzzle Game

Seele01-Flash
By
Plus One is an innovative math puzzle game that combines arithmetic skills with pattern recognition. Click tiles to increase their values and create matching groups of three or more to clear the board and score points.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "Plus One - 3D Math Puzzle". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style**: "Juicy" Low-poly 3D with a flat, orthographic projection. The aesthetic should resemble colorful candy blocks or soft plastic toys. * **Camera**: Use an `OrthographicCamera` positioned at an isometric angle (looking down at the grid) to ensure the grid remains readable on mobile screens while showing the 3D depth of the tiles. * **The Grid**: A 5x6 or 5x5 grid of tiles. * **Tile Assets**: * Use `THREE.BoxGeometry` with slightly beveled edges (or simulate bevels via textures/lighting) to make them look touchable. * **Color Coding**: Assign specific pastel colors to numbers (e.g., 1=Yellow, 2=Blue, 3=Green, 4=Red, 5=Purple). * **Text**: Display the number (1-9) clearly on the top face of the cube using a loaded font or a dynamic canvas texture. The font should be bubbly and white. * **Lighting**: Soft, warm studio lighting (AmbientLight + DirectionalLight with soft shadows) to enhance the 3D form without creating harsh contrast. * **Performance**: Use `THREE.InstancedMesh` if possible for the tiles to reduce draw calls, or simple mesh pooling, ensuring 60FPS on mobile devices. ### 2. Audio Requirements * **BGM**: A light, plucky, "thinking time" soundtrack (looping) using pizzicato strings or marimba sounds. * **SFX - Tap**: A satisfying "pop" or bubble sound when a player taps a tile to increment it. * **SFX - Match**: A magical "chime" or "ding" chord when 3+ tiles connect and disappear. * **SFX - Combo**: If matches trigger subsequent matches (cascades), the pitch of the chime should increase with each step. ### 3. Gameplay Loop * **Initialization**: Fill the grid with random numbers (weighted towards 1-5). * **Core Action**: 1. The player taps a tile. 2. The number on the tile increments by 1 (e.g., 2 becomes 3). 3. **Match Check**: The game checks if the modified tile is now connected to 2 or more adjacent tiles (horizontal or vertical) of the *same* new value. * **Match Resolution**: 1. If a match of 3+ exists: The matched tiles pop (scale down to 0) and disappear. 2. **Gravity**: Tiles above the empty spaces fall down to fill the gaps. 3. **Refill**: New random tiles spawn at the top and fall in. 4. **Chain Reaction**: Check for matches again after gravity settles. * **Scoring**: Score = (Tile Value) * (Number of Tiles Matched). Display floating text when scoring. * **Game Over**: (Optional implementation) If a tile reaches a maximum number (e.g., 10) without matching, it turns into a "stone" block that cannot be clicked. Game over when no moves are possible. ### 4. Mobile Controls & Interaction * **Touch Input**: * Implement a `Raycaster` bound to `touchstart` (for immediate response) rather than `click`. * Ensure the hit-test area for each tile is generous to prevent mis-taps. * **Visual Feedback**: * **Tap**: The tile should briefly squash and stretch (scale animation) when clicked. * **Match**: Particle explosion (simple colored cubes) when tiles are destroyed. * **UI/HUD**: * Keep UI (Score, Reset Button) at the very top or bottom to avoid obscuring the play area. * Support both Portrait and Landscape modes, keeping the grid centered and scaled to fit the width (Portrait) or height (Landscape). * **Haptics**: Trigger `navigator.vibrate(50)` on a successful match for tactile feedback. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About Plus One

Plus One is a unique puzzle game that transforms simple arithmetic into an exciting mental challenge. With a stellar 4.3/5 rating from players, this brain-training game combines the satisfaction of number puzzles with fast-paced strategic thinking. Unlike traditional match-three games, Plus One requires you to actively modify tile values to create matches, making every move a calculated decision.

Core Features

Mathematical Strategy Gameplay

The game's innovative mechanic revolves around strategic number manipulation . Instead of simply matching existing patterns, you must create them by adding one to adjacent tiles. This unique twist transforms basic addition into a complex puzzle-solving experience.

Multi-Platform Accessibility

  • Completely Free : No payments required - enjoy full gameplay without any costs
  • Instant Play : HTML5 technology means no downloads or installations needed
  • Cross-Device Compatible : Perfect performance on computers, tablets, and smartphones
  • Browser-Based : Works in all modern web browsers without plugins

Cognitive Benefits

Plus One isn't just entertainment - it's brain training disguised as fun . The game enhances: - Mental arithmetic speed - Pattern recognition abilities - Strategic planning skills - Quick decision-making under pressure

Game Mechanics

The Plus One System

The core gameplay revolves around a simple yet challenging concept: increment tiles to create matches . When you see two tiles with the value "3" next to a tile with "2", clicking the "2" transforms it into "3", creating a group of three matching tiles that disappear and award points.

Advanced Pattern Recognition

Success requires identifying potential matches rather than existing ones. You'll need to: - Scan the board for near-matching groups - Calculate which tiles need incrementing - Plan multi-step combinations for higher scores - Work quickly as the challenge intensifies

How to Play

Basic Controls

  • Mouse : Click any tile to increase its value by one
  • Touch : Tap tiles on mobile devices and tablets
  • Objective : Create groups of 3+ identical adjacent tiles
  • Strategy : Look for clusters that are "almost" matches

Winning Strategies

  1. Scan Systematically : Check the entire board for potential matches before making moves
  2. Plan Combinations : Set up chain reactions where one match enables another
  3. Think Fast : Quick decision-making becomes crucial as difficulty increases
  4. Focus on Clusters : Target areas with multiple similar values for maximum efficiency

Why Play Plus One?

Unique Puzzle Innovation

Plus One stands out in the crowded puzzle game market by combining multiple cognitive skills into one seamless experience. It's not just about math, pattern matching, or speed - it's about mastering all three simultaneously.

Perfect for All Skill Levels

Whether you're a math enthusiast or just looking for casual brain training, Plus One adapts to your pace. The simple addition concept makes it accessible to everyone, while the strategic depth provides endless challenge for puzzle veterans.

Stress-Free Gaming

With no time limits, lives system, or pressure mechanics, you can enjoy pure puzzle-solving satisfaction. Focus on improving your skills and achieving higher scores at your own comfortable pace.

Educational Entertainment

Parents and educators appreciate Plus One as a fun way to practice mental math . The game makes arithmetic engaging and rewarding, perfect for improving calculation speed and number sense.

Frequently Asked Questions (FAQ)