Onet Fruit Classic - Free Online Fruit Matching Puzzle Game

Seele01-Flash
By
Onet Fruit Classic is an addictive fruit-themed puzzle game where you match identical fruit tiles by connecting them with straight lines. Clear the entire board by strategically pairing fruits in this classic Onet-style matching game.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "Onet Fruit Classic - 3D Mobile Edition". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style:** A polished, "juicy" casual aesthetic. Use an **Orthographic Camera** to maintain a strictly aligned grid view (essential for puzzle clarity) while keeping 3D depth for the tiles. * **Game Pieces (Tiles):** Create `rounded-box` geometries (chamfered edges) to simulate physical mahjong-style tiles. Each tile should have a different fruit texture (Apple, Pineapple, Orange, Grape, etc.) on the top face. * **Background:** A warm, checkered pattern (dark orange/brown) similar to the reference image, or a high-quality wooden table texture to simulate a board game feel. * **Visual Effects (VFX):** * **Selection:** When a tile is touched, it should scale up slightly (1.1x) and emit a soft glow. * **Matching:** When a match is found, draw a dynamic **electric bolt line** (jagged yellow/white line using `THREE.Line` or a shader) connecting the two tiles before they disappear, mimicking the reference image. * **Destruction:** Use a simple particle system (fruit-colored confetti) that explodes when tiles are removed. * **Mobile Optimization:** Use `THREE.InstancedMesh` for rendering the tile grid to reduce draw calls, ensuring 60fps on low-end mobile devices. ### 2. Audio Requirements * **BGM:** A light, cheerful, and looping acoustic track (Ukulele or light Jazz) that is not distracting. * **Sound Effects (SFX):** * **Tap:** A soft "wood block" click when selecting a tile. * **Match:** An energetic "Zap" or electric sound combined with a satisfying "Pop". * **Invalid Move:** A low-pitched "thud" or "buzzer" sound. * **Win/Clear:** A rising chime arpeggio. ### 3. Gameplay Loop * **Core Mechanic (Onet Logic):** The player must connect two identical fruit tiles. The connection path must consist of **3 or fewer straight lines** (max 2 turns). The path cannot pass through other existing tiles. * **Level Generation:** Generate a grid (e.g., 6x8 or 8x10 depending on screen aspect ratio). Ensure there is always an even number of each fruit type. * **Interaction Logic:** 1. Player taps Tile A (Highlight). 2. Player taps Tile B. 3. **Algorithm Check:** Run a pathfinding check (BFS or similar) to see if a valid path exists. 4. **Result:** * If valid: Draw the electric line, wait 0.3s, remove tiles, add score. * If invalid: Shake both tiles (visual feedback), play error sound, deselect Tile A. * **Win/Loss:** * **Win:** Clear the board completely. * **Loss:** Run out of time (implement a progress bar timer at the top). ### 4. Mobile Controls & Interaction * **Touch Controls:** Utilize `Raycaster` for precise touch detection. The hit area for each tile should be slightly larger than the visible mesh to accommodate "fat finger" errors. * **Orientation:** The game should support **Portrait Mode** by default. The grid columns/rows should dynamically adjust based on `window.innerWidth` to maximize screen usage without cutting off tiles. * **UI Layout:** * **Top Bar:** Score counter and Timer bar. * **Bottom Bar (Thumb Zone):** Place interaction buttons here for easy reach: * **Hint Button:** Briefly flashes a pair of matching tiles. * **Shuffle Button:** Rearranges remaining tiles if no moves are possible. * *(Replaces the "Space bar" functionality from the original description)*. * **Haptic Feedback:** Trigger a short vibration (`navigator.vibrate(50)`) on every successful match to enhance tactile satisfaction. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

Onet Fruit Classic is a delightful fruit-themed puzzle game that combines strategy with quick thinking. Your mission is simple yet challenging: clear all fruit-filled tiles from the board by matching identical pairs. This classic Onet-style game features colorful fruit graphics including pineapples, oranges, apples, and more, creating an appealing visual experience that keeps players engaged.

The game follows the traditional Onet Connect rules where you must find two identical fruit tiles and connect them using three or fewer straight lines. What makes this game special is its fruity twist on the classic formula, featuring vibrant fruit imagery that makes each matching session feel fresh and enjoyable.

Core Features

Classic Onet Gameplay

Experience the timeless appeal of Onet Connect with a delicious fruit theme. The game maintains all the strategic depth of traditional Onet games while adding colorful fruit graphics that enhance the visual appeal.

Strategic Line Connection

Success requires careful planning as you can only connect matching tiles with a maximum of three straight lines. This limitation creates engaging puzzle scenarios where you must think several moves ahead to clear difficult layouts.

Progressive Difficulty

Each level presents unique tile arrangements that challenge your pattern recognition and strategic thinking skills. As you advance, the puzzles become more complex, requiring greater skill and planning.

Hint System

When you're stuck, use the helpful hint feature to reveal possible matches. This ensures that players of all skill levels can enjoy the game without getting permanently blocked.

Free Browser Gaming

Enjoy unlimited gameplay directly in your web browser without downloads, installations, or payments. The game runs smoothly on both desktop and mobile devices.

Game Mechanics

Matching Rules

To successfully match tiles, you must connect two identical fruits with a path that: - Uses no more than three straight line segments - Contains no obstructions from other tiles - Forms a clear, unblocked pathway between the matching fruits

Scoring System

Earn points for each successful match, with bonus points available for quick consecutive matches and efficient board clearing.

Operation Guide

Basic Controls

  • Mouse Click : Select tiles to match
  • Space Bar : Auto-pair feature for quick matching
  • Hint Button : Click for helpful suggestions when stuck

How to Play

  1. Scan the Board : Look for identical fruit tiles that can be connected
  2. Plan Your Path : Ensure the connecting line uses three or fewer segments
  3. Check for Obstructions : Verify no other tiles block your connection path
  4. Make the Match : Click both tiles to connect and remove them
  5. Clear the Board : Continue until all tiles are removed

Winning Strategy

  • Start by clearing tiles from the edges and corners
  • Look for matches that will open up new connection opportunities
  • Use the hint system sparingly to maintain challenge
  • Plan several moves ahead to avoid getting stuck

Why Play This Game

Perfect for Puzzle Lovers : If you enjoy matching games, tile puzzles, or brain teasers, Onet Fruit Classic delivers exactly what you're looking for with its perfect balance of accessibility and challenge.

Stress-Free Gaming : The cheerful fruit theme and relaxed gameplay make this an ideal choice for unwinding after a busy day. There's no time pressure, allowing you to think through each move carefully.

Skill Development : Regular play helps improve pattern recognition, spatial reasoning, and strategic planning abilities while providing entertainment.

Universal Appeal : The simple rules make it suitable for players of all ages, while the strategic depth ensures experienced puzzle gamers remain engaged.

Instant Access : No downloads or registrations required - simply open your browser and start playing immediately on any device.

Frequently Asked Questions (FAQ)