Market Sort - Organize Items Puzzle Game

Seele01-Flash
By
Market Sort is an engaging puzzle game that challenges players to organize various market items on shelves. Sort pastries, gems, chemicals, and other objects by category to create a perfectly organized market.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "Market Sort 3D - Potion Edition". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style**: Stylized 3D with a "Magical Apothecary" aesthetic. Use vibrant, saturated colors similar to the reference image. The look should be "Low-poly Cartoon" to ensure high performance on mobile devices. * **Environment**: * **Background**: A dark, warm brick wall texture with subtle vignetting to focus attention on the shelves. * **Shelves**: Create a 4-row wooden shelf structure using simple BoxGeometries with a wood grain texture. * **Items (The Potions)**: Generate 4 distinct low-poly bottle shapes to match the reference: 1. **Purple**: Round spherical body with a rope detail around the neck. 2. **Green**: Tilted/skewed round body with a cork. 3. **Red**: Hexagonal prism shape. 4. **Yellow**: Pentagonal/Squarish shape. * **Materials**: Use `MeshPhysicalMaterial` for the bottles to simulate glass (transmission, roughness < 0.2, clearcoat). The liquid inside can be a simple inner mesh with an emissive color to make it "glow" slightly. * **Effects**: Add a subtle `PointLight` or glowing outline shader that activates when a bottle is selected. * **Optimization**: Reuse geometries (InstancedMesh) where possible. Keep total scene polygon count under 20k. ### 2. Audio Requirements * **BGM**: A relaxing, looping "Fantasy Shop" track—acoustic guitar or lute mixed with soft ambient chimes. It should be unobtrusive and aid concentration. * **Sound Effects (SFX)**: * **Selection**: A crisp, high-pitched "pop" or glass clink. * **Placement**: A satisfying wooden "thud" or "clunk" sound. * **Invalid Move**: A subtle, low-pitched "wobble" or error buzz. * **Level Complete**: A magical ascending harp glissando or chime. * **UI Click**: Standard soft mechanical click. ### 3. Gameplay Loop * **Setup**: The game initializes with 4 shelves (rows) and 4 columns. 3 of the shelves are filled with a shuffled mix of the 4 potion types (4 of each color total). 1 shelf (or specific slots) serves as empty space or the sorting buffer. * **Mechanic**: * **Pick Up**: Tapping a shelf selects the *right-most* (or top-most, depending on visual orientation) available item. * **Drop**: Tapping another shelf attempts to move the selected item there. * **Logic Rules**: * An item can only be placed on a shelf if: 1. The shelf has empty space. 2. AND (The shelf is completely empty OR the item currently at the end of the shelf matches the type of the item being moved). *Note: This is the standard "Sort Puzzle" logic.* * **Win Condition**: The level is won when all 4 shelves contain 4 items of exactly the same type (e.g., one shelf is all Red, one is all Green, etc.). * **Feedback**: When a shelf is successfully completed, play a particle effect (confetti or sparkles) around that shelf. ### 4. Mobile Controls & Interaction * **Camera**: Use an `OrthographicCamera` fixed at a slightly elevated front view to ensure the grid is perfectly readable on small screens without perspective distortion confusing the player. * **Touch Controls**: * Implement `Raycaster` for touch detection. * **Tap to Select**: The selected bottle should visually animate "up" (lift 0.5 units on Y-axis) to indicate it is held. * **Tap to Place**: The bottle animates smoothly (using a Tween library) to the new position. * **Screen Orientation**: **Portrait Mode** (Vertical). The shelves should be stacked vertically to maximize screen real estate on phones. * **UI**: * Place "Undo" and "Restart" buttons at the **bottom** of the screen (Thumb Zone friendly). * Buttons must be at least 48x48px hit areas. * **Haptic Feedback**: Trigger a short vibration (using `navigator.vibrate(10)`) on every successful bottle placement. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About Market Sort

Market Sort is a captivating puzzle game that combines logic, strategy, and organization skills into one addictive experience. This free-to-play brain training game challenges you to arrange various market items neatly on shelves, creating order from chaos. With colorful graphics and intuitive gameplay, Market Sort appeals to puzzle enthusiasts of all ages who enjoy sorting and categorization challenges.

The game features a variety of items commonly found in markets, including pastries, precious gems, chemical potions, and many other objects. Each level presents a new organizational challenge that will test your logical thinking and planning abilities.

Core Features

Diverse Item Categories

Market Sort features an impressive variety of objects to organize: - Pastries and Food Items : Delicious baked goods and treats - Precious Gems : Sparkling jewels of different colors and shapes
- Chemical Potions : Colorful bottles with mysterious contents - Market Goods : Various everyday items found in stores

Brain Training Benefits

This puzzle game serves as excellent mental exercise: - Logic Development : Enhances logical reasoning and problem-solving skills - Pattern Recognition : Improves ability to identify and categorize similar items - Spatial Awareness : Develops understanding of space and organization - Memory Enhancement : Strengthens working memory through item tracking

Helpful Game Features

  • Hint System : Get helpful suggestions when you're stuck
  • Undo Function : Easily reverse moves to try different strategies
  • Progressive Difficulty : Levels become more challenging as you advance
  • Intuitive Controls : Simple click-to-move mechanics for all ages

Gameplay Mechanics

The core objective is simple yet engaging: move identical objects to the same shelf until each shelf contains only one type of item. This seemingly straightforward task becomes increasingly complex as you encounter:

  • More diverse item types
  • Limited shelf space
  • Strategic movement requirements
  • Time-based challenges in advanced levels

Operation Guide

Market Sort features user-friendly controls designed for seamless gameplay:

  • Click on Items : Select any object you want to move
  • Click to Place : Click on your desired destination to place the item
  • Use Hints : Access the hint button when you need guidance
  • Undo Moves : Utilize the undo button to reverse recent actions
  • Navigate Menus : Use mouse or touch controls for menu interactions

The game's intuitive interface ensures that players can focus on solving puzzles rather than learning complex controls.

Why Play Market Sort

Perfect for All Skill Levels

Whether you're a puzzle novice or an experienced gamer, Market Sort offers: - Beginner-Friendly : Easy-to-understand mechanics with gentle learning curve - Challenging Progression : Advanced levels that test even experienced players - No Time Pressure : Play at your own pace without stress - Family-Friendly : Suitable content for players of all ages

Accessibility and Convenience

  • Completely Free : No hidden costs or premium features
  • No Download Required : Play instantly in your web browser
  • Cross-Platform : Works perfectly on computers, tablets, and smartphones
  • Offline-Capable : Enjoy gameplay even with limited internet connectivity

Mental Health Benefits

Regular puzzle gaming can provide: - Stress relief through focused, meditative gameplay - Sense of accomplishment from completing challenging levels - Improved concentration and attention span - Enhanced problem-solving confidence

Perfect Gaming Experience

Market Sort delivers a polished gaming experience with: - Smooth Performance : Optimized for all devices and browsers - Vibrant Graphics : Colorful, appealing visual design - Responsive Controls : Immediate feedback for all player actions - Progress Saving : Your advancement is automatically saved

This makes it an ideal choice for quick gaming sessions during breaks or extended puzzle-solving marathons.

Frequently Asked Questions (FAQ)