Butterfly Kyodai - Magical Butterfly Mahjong

Seele01-Flash
By
Butterfly Kyodai is an enchanting butterfly-themed mahjong connect game featuring 60 challenging levels set in mystical forests and fairy villages. Match colorful butterflies with unique wing patterns in this free online puzzle experience.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "Butterfly Kyodai 3D". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style**: "Mystical Cute 2.5D". The game should use a 3D perspective but maintain the charm of 2D sprites. Use a warm, vibrant color palette with high contrast between the butterfly wings and the background. * **The Grid (Tiles)**: Create a grid of rectangular 3D tiles (geometry: `BoxGeometry` with very thin depth). * **Textures**: Each tile represents **one-half of a butterfly wing** (Left Wing or Right Wing). You need at least 10 different colorful butterfly species patterns (Neon Blue, Monarch Orange, Purple Spotted, etc.). * **Material**: Use `MeshStandardMaterial` with a slight distinct shine/emissive property to make the wings pop. * **Optimization**: Use `THREE.InstancedMesh` for the tile grid to ensure 60 FPS on mobile devices. * **The Background**: A static or slowly scrolling background plane behind the grid depicting a "Mystical Forest" or "Fairy Village" (blurred slightly to keep focus on the gameplay). * **Visual Effects (VFX)**: * **Match Animation**: When two wings match, they should not just vanish. They should animate together to form a whole butterfly, flap their wings 2-3 times, and fly off the screen (Z-axis movement towards the camera). * **Trail Effect**: Draw a glowing line (using `LineLoop` or Shader) connecting the two tiles to visualize the path before they disappear. * **Particles**: Soft "fairy dust" particles (white/yellow sparkles) when a match is made. ### 2. Audio Requirements * **BGM (Background Music)**: A looping, folk-inspired track featuring flute, harp, and light percussion. It should be relaxing and atmospheric, evoking a "magical forest" vibe. * **Sound Effects (SFX)**: * **Select**: A soft "stone click" or "wooden tap" sound. * **Match Success**: A magical chime combined with a realistic "fluttering wings" sound. * **Invalid Move**: A gentle low-pitched "thud" or rattle. * **Shuffle/Hint**: A "woosh" sound of wind or leaves rustling. * **Time Warning**: A soft ticking clock sound when the timer is red. ### 3. Gameplay Loop * **Core Mechanic (Mahjong Connect)**: * The player selects two matching tiles (e.g., two Blue Left Wings is invalid; usually, match a Left Wing with a corresponding Right Wing, or identical visuals depending on asset availability). * **Pathfinding Logic**: The connection path between the two tiles cannot have more than **two 90-degree turns** (2 corners max). The path cannot pass through other existing tiles. * If the move is valid, remove tiles, trigger animation, add points, and add small bonus time. * **Level Design**: Start with a simple rectangular grid (e.g., 6x10). As levels progress, change the layout shape (silhouettes of butterflies, hearts, etc.). * **Win/Loss Condition**: * **Win**: Clear all tiles from the board. * **Loss**: Run out of time. * **Power-ups**: * **Shuffle**: Rearranges remaining tiles if no moves are possible. * **Hint**: Highlights a pair of matchable tiles for 3 seconds. ### 4. Mobile Controls & Interaction * **Touch Controls**: * **Tap**: Raycasting logic to detect clicks on tiles. * **Selection State**: When a tile is tapped, scale it up by 1.1x and increase its brightness (emissive color) to show it is active. * **Deselect**: Tapping the same tile again or tapping the background deselects it. * **Screen Orientation**: Design for **Portrait Mode** by default (to stack the grid and UI vertically), but make the camera responsive (FOV adjustment) to support Landscape. * **UI Layout**: * **Top Bar**: Time remaining bar (shrinking horizontally), Level indicator, Score. * **Bottom Bar**: Large, thumb-friendly buttons (min 44x44px touch area) for "Pause", "Hint", and "Shuffle". * **Feedback**: * **Haptic**: Trigger a light vibration (`navigator.vibrate(10)`) on valid tile selection and a slightly longer vibration on a successful match. * **Camera**: A very subtle screen shake when a match occurs to add weight to the action. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

Butterfly Kyodai is a captivating mahjong connect game that combines the classic tile-matching mechanics with a magical butterfly theme. This online puzzle game transports players to enchanting mystical forests and adorable fairy villages that unfold as you progress through matching tiles. With its folk-inspired soundtrack and charming visual design, Butterfly Kyodai offers a relaxing yet challenging gaming experience that appeals to puzzle enthusiasts of all ages.

The game features an extensive collection of butterfly species, including both real and fantastical varieties, each with beautifully designed wings showcasing a variety of colors and patterns. As you clear tiles from the board, the scenic backgrounds gradually reveal themselves, creating a sense of discovery and accomplishment with each level completed.

Core Features

Extensive Level Progression

Butterfly Kyodai offers 60 unique levels of increasing difficulty, ensuring hours of engaging gameplay. Each level presents a new layout challenge that requires strategic thinking and careful planning to complete successfully.

Beautiful Butterfly Collection

The game showcases a diverse array of butterfly designs, from realistic species to imaginative fantasy butterflies. Each butterfly tile features intricate wing patterns with vibrant colors and unique combinations, making the matching process both visually appealing and rewarding.

Mystical Game Environments

As you progress through levels, stunning backgrounds of mystical forests and fairy villages are gradually revealed. This progressive unveiling system adds an extra layer of motivation and visual reward to your puzzle-solving journey.

Helpful Game Features

When facing challenging situations, players can utilize several assistance options: - Hint System : Get suggestions for possible matches when you're stuck - Restart Option : Start the current level over if needed - Auto-Mix Feature : The game automatically reshuffles tiles when no more connections are available - Timer Display : Keep track of your progress with the built-in timer

Gameplay Mechanics

The core gameplay follows classic mahjong connect rules with butterfly-themed tiles. Players must select pairs of matching butterfly tiles that can be connected with a path containing no more than two 90-degree angles. This path-finding element adds strategic depth to the traditional matching gameplay.

Successful matches cause tiles to disappear, gradually clearing the board and revealing more of the beautiful background scenery. The game maintains a perfect balance between relaxation and challenge, with folk-inspired music creating an atmospheric gaming environment.

How to Play

Basic Controls

  • Mouse Click : Select tiles to match
  • Strategic Planning : Look for tiles that can be connected with simple paths
  • Time Management : Complete levels before the timer runs out

Winning Strategy

  1. Scan the Board : Look for easily accessible matching pairs first
  2. Plan Ahead : Consider how removing certain tiles will affect future matches
  3. Use Hints Wisely : Save hint options for truly challenging situations
  4. Work Systematically : Clear outer tiles first to open up more possibilities

Game Interface

The right-hand column displays essential game information: - Current level progress - Score tracking - Timer countdown - Pause, restart, and hint options - Sound controls

Why Play Butterfly Kyodai

This game perfectly combines the intellectual satisfaction of puzzle-solving with the visual delight of beautiful butterfly artwork. Whether you're a mahjong veteran or new to tile-matching games, Butterfly Kyodai offers an accessible entry point with its intuitive controls and helpful features.

The game's completely free nature makes it accessible to everyone, while its browser-based platform means you can enjoy it instantly without downloads or installations. The progressive difficulty curve ensures that both beginners and experienced players will find appropriate challenges.

The combination of strategic gameplay, beautiful visuals, and relaxing atmosphere makes Butterfly Kyodai an ideal choice for stress relief, mental exercise, or simply enjoying a few minutes of peaceful gaming.

Frequently Asked Questions (FAQ)