Merge Fruits - Casual Fruit Merging Game

Seele01-Flash
By
Merge Fruits is an addictive casual merging puzzle game where you drop and combine identical fruits to create exciting new varieties. Perfect physics-based gameplay with colorful fruit designs makes it enjoyable for all ages.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "Merge Fruits". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style**: "Juicy" 2.5D aesthetic. Use **Three.js** for rendering but maintain the flat, high-saturation vector art style seen in the reference. Use an **Orthographic Camera** to simulate a 2D perspective while utilizing 3D meshes for smooth physics. * **Fruit Models**: Create 10-11 distinct tiers of fruits (e.g., Cherry, Strawberry, Grape, Orange, Persimmon, Apple, Pear, Peach, Pineapple, Melon, Watermelon). * Use `THREE.SphereGeometry` for the base meshes. * Apply **Toon Shading** (MeshToonMaterial) or flat textures representing fruit cross-sections (like the watermelon slice in the reference). * Colors must be vibrant: Bright Red, Lime Green, Deep Purple, Orange. * **Container**: A transparent, U-shaped glass container (box geometry with front/top faces removed) to hold the fruits. * **Background**: A static background plane with **vertical pink and white stripes** (pastel tones) to match the reference image. * **Mobile Optimization**: * Limit sphere segments to 16-24 to maintain high FPS on mobile. * Reuse geometries and materials (InstancedMesh is preferred if possible, otherwise standard mesh cloning). * Ensure the game fits within the viewport height (`window.innerHeight`) without scrolling. ### 2. Audio Requirements * **BGM**: A lighthearted, looping **Ukulele and Whistling** track. Tempo: 100-110 BPM. Relaxing but bouncy. * **Sound Effects (SFX)**: * **Spawn/Click**: A soft "Pop" or "Plop" sound. * **Collision**: A dull, soft thud when fruits hit the floor or each other. * **Merge**: A magical "Shimmer" or high-pitched "Ding" that increases in pitch as the fruit tier gets higher. * **Game Over**: A playful "Womp-womp" or record scratch sound. ### 3. Gameplay Loop * **Core Mechanic**: The "Suika" (Watermelon Game) logic. * **Spawn**: A fruit appears at the top of the container (randomized between tier 1-3). * **Aim & Drop**: The player moves the fruit horizontally and releases it to let gravity take over. * **Merge**: When two identical fruits collide, they disappear and spawn one fruit of the next tier up at the collision midpoint. * **Physics**: * Use a physics library compatible with Three.js (like **Cannon.js**). * Restrict movement to the X and Y axes (lock Z-axis position and rotation) to keep gameplay 2D. * Fruits should have high restitution (bounciness) but moderate friction so they settle eventually. * **Game Over**: If the fruits stack up and cross a specific "Dead Line" at the top of the container for more than 2 seconds, the game ends. * **Win Condition**: Technically endless, but the soft goal is to create the final fruit (Watermelon) to achieve a high score. ### 4. Mobile Controls & Interaction * **Touch Input Scheme**: * **Drag to Aim**: The player can touch anywhere on the screen and drag left/right to position the fruit dropper. * **Release to Drop**: Lifting the finger triggers the fruit drop. * **Nudge Buttons**: Replicate the requested "tilt buttons" by adding two UI buttons (left/right arrows) at the bottom of the screen. Tapping them applies a small lateral physics impulse to all fruits in the container to unstuck them. * **UI Layout**: * **Portrait Mode Only**: Lock the game to portrait orientation logic. * **Score Display**: Large, bubbly font at the top left. * **Next Fruit Indicator**: A small preview circle at the top right showing the next fruit to spawn. * **Haptic Feedback**: Trigger `navigator.vibrate(50)` (short pulse) whenever a merge occurs to give tactile "juicy" feedback. * **Visual Feedback**: Add simple particle explosions (using `THREE.Points`) when a merge happens. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

Merge Fruits is a delightfully engaging casual puzzle game that combines the satisfaction of merging mechanics with colorful, appetizing fruit designs. This physics-based browser game challenges players to strategically drop and combine identical fruits to create new varieties, building towards the ultimate fruit fusion experience.

The game features intuitive mechanics that are easy to learn but challenging to master. With its vibrant 2D graphics showcasing juicy watermelons, oranges, coconuts, and various exotic fruits, Merge Fruits creates a visually appealing and relaxing gaming environment perfect for quick sessions or extended play.

Core Features

Simple Yet Addictive Gameplay

The core mechanic revolves around dropping fruits from the top of the screen and watching them fall with realistic physics. When two identical fruits touch, they merge into a larger, more valuable fruit variety. This simple concept creates endless strategic possibilities.

Physics-Based Mechanics

Every fruit drop feels natural thanks to the realistic physics engine. Fruits bounce, roll, and stack in believable ways, making each move feel satisfying and creating unexpected chain reactions that can lead to massive scoring combinations.

Progressive Fruit Evolution

Start with small fruits like grapes and cherries, then work your way up through oranges, apples, and eventually massive watermelons. Each merge unlocks new fruit varieties, keeping the gameplay fresh and rewarding.

Colorful Visual Design

The game features bright, cheerful graphics with each fruit rendered in mouth-watering detail. The clean 2D art style ensures the game runs smoothly on all devices while maintaining visual appeal.

Cross-Platform Compatibility

Perfectly optimized for both desktop and mobile browsers, allowing you to enjoy the same smooth experience whether you're playing on your computer or smartphone.

Game Mechanics

Strategic Fruit Placement

Success in Merge Fruits requires careful planning. Consider where each fruit will land and how it might interact with existing fruits on the playing field. Smart placement can create chain reactions that clear space and generate high scores.

Container Management

The playing area has limited space, so efficient use of the container is crucial. Stack fruits strategically and plan ahead to prevent the container from overflowing, which ends the game.

Scoring System

Each successful merge awards points based on the fruit variety created. Larger fruits and chain reactions provide exponentially higher scores, encouraging players to think several moves ahead.

Operation Guide

Basic Controls

  • Left Mouse Click : Drop a fruit at the cursor position
  • Tilt Buttons : Use the left and right tilt buttons to gently nudge fruits in either direction
  • Strategic Positioning : Move your mouse to aim where you want the fruit to drop

Gameplay Tips

  • Start by creating space at the bottom of the container with larger merged fruits
  • Use the tilt function sparingly but effectively to fine-tune fruit positions
  • Plan multiple moves ahead to set up potential chain reactions
  • Keep similar fruits close together to enable easy merging opportunities

Why Play Merge Fruits

Perfect Casual Gaming Experience

Merge Fruits strikes the ideal balance between relaxing and challenging gameplay. It's perfect for short breaks, commute entertainment, or longer gaming sessions when you want something engaging but not overwhelming.

Brain Training Benefits

The game naturally exercises spatial reasoning, planning skills, and pattern recognition. Each move requires consideration of physics, positioning, and future possibilities, making it both entertaining and mentally stimulating.

Stress-Free Environment

Unlike competitive games, Merge Fruits offers a peaceful, single-player experience where you can progress at your own pace. The colorful fruits and satisfying merge animations create a zen-like gaming atmosphere.

Accessibility and Convenience

As a browser-based game, Merge Fruits requires no download, installation, or registration. Simply open your browser and start playing immediately on any device with internet access.

Universal Appeal

The game's simple concept and beautiful fruit imagery appeal to players of all ages and gaming experience levels. Whether you're new to puzzle games or a seasoned player, Merge Fruits offers appropriate challenge and satisfaction.

Frequently Asked Questions (FAQ)