Merge Cakes

Seele01-Flash
By
Merge Cakes is a delightful puzzle game where you combine different cakes to discover new sweet recipes. Simple drag-and-drop gameplay makes it perfect for players of all ages.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "Merge Cakes". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style:** 3D "Kawaii" (Cute) aesthetic using low-poly procedural shapes or simple geometries to represent desserts. Use a pastel color palette (Cream, Strawberry Pink, Mint Green, Chocolate Brown). * **Models (Procedural Generation):** * Create a 4x5 grid of "Plates" (Cylinders) as the base board. * **Cake Tiers:** Represent different cakes using basic Three.js geometries to ensure the code runs without external assets: * *Tier 1 (Cookie):* Flat Cylinder (Tan color). * *Tier 2 (Donut):* Torus (Pink with sprinkles logic). * *Tier 3 (Cupcake):* Cylinder base with a Sphere on top (White frosting). * *Tier 4 (Slice):* Triangular prism or PrismGeometry. * **Material:** Use `MeshToonMaterial` or `MeshStandardMaterial` with high roughness to simulate a soft, edible texture. * **Lighting:** Bright and soft layout. Use `HemisphereLight` for base ambience (warm sky/ground colors) and a `DirectionalLight` casting soft shadows to give depth to the grid. * **Camera:** Fixed Orthographic Camera, angled slightly (isometric view) to show the 3D depth of the cakes while maintaining a clear grid layout. * **Effects:** Particle explosion (confetti or small hearts) using `THREE.Points` whenever two cakes merge. ### 2. Audio Requirements * **Background Music (BGM):** A relaxing, looping "Bossa Nova" or "Acoustic Cafe" style track. Light piano and shaker percussion. * **Sound Effects (SFX):** * *Pickup:* A soft "pop" or "whoosh" sound. * *Merge Success:* A satisfying high-pitched "ding" or magical chime. * *Drop (No Merge):* A dull wooden thud. * *Income Generation:* A subtle coin jingle playing periodically (simulating idle earnings). ### 3. Gameplay Loop * **Core Mechanic:** The game operates on a grid system (Array-based state). * Cakes spawn automatically in empty slots every few seconds. * Players drag a cake onto another cake of the *exact same type*. * **Merge Logic:** If Tier X touches Tier X -> They combine into one Tier X+1 cake. * **Idle Mechanic:** Each cake on the board generates "Gold" automatically every second. Higher tier cakes generate more gold. * **Economy:** A UI button allows players to spend Gold to buy base-level cakes to fill the board faster. * **Goal:** Unlock the highest tier cake possible (Infinite progression). ### 4. Mobile Controls & Interaction * **Input System:** Use `Raycaster` mapping to Touch/Pointer events (`pointerdown`, `pointermove`, `pointerup`). * **Orientation:** **Portrait Mode** (Vertical) design. The camera and grid should fit within the width of a mobile screen. * **Drag & Drop Physics:** * *On Touch Start:* Raycast to find the cake. Lift the mesh slightly on the Y-axis (y += 0.5) and scale it up (1.2x) to indicate selection. * *On Drag:* The mesh follows the finger/cursor on the X/Z plane. * *On Release:* Raycast downwards. * If over a valid merge target: Trigger Merge. * If over an empty slot: Snap to that slot. * If invalid: Lerp (smoothly move) back to original position. * **Feedback:** * **Haptic:** Trigger `navigator.vibrate(50)` on a successful merge. * **Visual:** "Squash and stretch" animation tween when a cake lands or merges. 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 Cakes is a charming puzzle game that brings the joy of baking and combining to your screen. In this sweet adventure, you'll merge different types of cakes to create entirely new dessert recipes. The game features colorful, mouth-watering graphics with dozens of cake varieties, from simple cupcakes to elaborate multi-layered creations.

The gameplay is both relaxing and engaging, making it perfect for casual gaming sessions or extended puzzle-solving marathons. Each successful merge unlocks new cake types, encouraging exploration and discovery as you build your virtual bakery empire.

Core Features

Simple Yet Addictive Gameplay

The core mechanics are easy to learn but difficult to master. Simply drag and drop similar cakes together to create new varieties. The more you merge, the more complex and beautiful your cakes become.

Extensive Cake Collection

Discover hundreds of different cake combinations, each with unique designs and characteristics. From chocolate cupcakes to rainbow layer cakes, every merge brings delightful surprises.

Relaxing Idle Elements

Enjoy the calming nature of merge gameplay combined with idle game mechanics. Watch your cake collection grow even when you're not actively playing.

Cross-Platform Compatibility

Play seamlessly on both desktop computers and mobile devices through your web browser. No downloads required – just open and start merging!

Colorful Visual Design

Feast your eyes on vibrant, cartoon-style graphics that make every cake look absolutely delicious. The cheerful art style creates a warm, inviting atmosphere perfect for all ages.

Game Mechanics

The puzzle mechanics are straightforward yet engaging:

  • Merge System : Combine two identical cakes to create a new, more advanced cake type
  • Discovery Element : Each merge reveals new recipes and cake varieties
  • Space Management : Strategically arrange cakes on your board to maximize merging opportunities
  • Progressive Unlock : Higher-level cakes unlock new features and possibilities

How to Play

Basic Controls

Mouse Control : Hold the left mouse button and drag cakes around the playing field. Release to drop them in the desired position.

Getting Started

  1. Start with basic cake pieces on your game board
  2. Identify matching cake types (they'll have the same appearance)
  3. Drag one cake onto another identical cake to merge them
  4. Watch as they combine to form a new, upgraded cake variety
  5. Continue merging to discover increasingly elaborate desserts
  6. Manage your board space efficiently to keep merging possibilities open

Strategy Tips

  • Plan your merges carefully to avoid running out of space
  • Focus on creating higher-level cakes for better rewards
  • Keep similar cakes grouped together for easier merging
  • Don't rush – take time to plan your next moves

Why Play Merge Cakes

This game offers the perfect combination of relaxation and mental stimulation. Whether you're a puzzle game veteran or new to the merge genre, Merge Cakes provides an accessible yet engaging experience. The sweet theme and colorful graphics create a positive, stress-free gaming environment.

The game is completely free to play and requires no registration or downloads. Simply open your browser and start merging cakes immediately. It's perfect for short breaks, commute entertainment, or longer gaming sessions.

Perfect for All Players

Merge Cakes appeals to a wide range of players: - Casual gamers who enjoy relaxing, low-pressure gameplay - Puzzle enthusiasts who love discovery and combination mechanics - Mobile gamers who want quality entertainment on any device - Family-friendly gaming suitable for players of all ages

Frequently Asked Questions (FAQ)