Zoo Animals - Animal Puzzle Stacking Game

Seele01-Flash
By
Zoo Animals is an adorable puzzle stacking game where you assemble colorful animal faces by matching cylindrical pieces. Perfect for animal lovers who enjoy brain-teasing challenges with a cute jungle theme.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "**Zoo Animals Stacker**". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style:** 3D Cartoon/Cute style. Use a bright, saturated color palette (Jungle Greens, Sky Blues). * **Main Elements (Animal Slices):** The core game pieces are short 3D Cylinders (`THREE.CylinderGeometry`). * Each cylinder represents a "slice" of an animal (e.g., Panda, Zebra, Tiger, Giraffe). * **Textures:** Use `CanvasTexture` to programmatically draw cute animal faces to ensure the code is runnable without external assets. * *Top Slice:* Contains ears and eyes. * *Bottom Slice:* Contains nose and mouth. * *Middle/Body Slice (Optional):* Patterned body. * **Special Blocks:** A "Dynamite" cylinder (Red with a fuse) that acts as a power-up. * **Background:** A static, low-poly jungle backdrop or a nice gradient skybox (Light Blue to Green) to save performance. Add simple 2D billboard trees in the background for depth. * **Performance (Mobile):** Use `BufferGeometry` for all meshes. Limit cylinder radial segments to 24 or 32 to maintain high FPS on mobile devices. Use a single directional light with soft shadows and an ambient light. ### 2. Audio Requirements * **BGM:** A playful, rhythmic "Jungle/Safari" loop (Marimba, bongo drums, flute). It should be relaxing but upbeat. * **SFX:** * *Selection:* A soft "woosh" or suction sound when picking up a piece. * *Drop/Land:* A wood-block "clack" sound when a piece lands on a stack. * *Match/Success:* A cheerful "chime" or animal sound (e.g., a stylized roar or squeak) when a face is completed. * *Warning:* A rapid ticking or siren sound when the "Exclamation Mark" appears (incoming falling piece). * *Dynamite:* A cartoonish explosion sound. ### 3. Gameplay Loop * **Grid Layout:** The game features **4 fixed vertical columns (stacks)** on a wooden shelf/platform at the bottom of the screen. * **Core Mechanic (Drag & Match):** * The player can drag the *top-most* piece of any column and drop it onto another column. * **Matching Logic:** If a "Top Face" piece is placed directly above a "Bottom Face" piece of the *same animal type*, they merge, play a particle effect, disappear, and award points. * **Dynamite Logic:** If a Dynamite block is placed (or falls), it destroys all blocks in that specific column. * **Pressure Mechanic (The Drop):** * Every few seconds, a **Red Exclamation Mark** appears above a random column. * After a short delay, a random animal piece falls into that column. * If a column overflows (stack gets too high), the game is over (or the player loses a life). * **Level Progression:** * The player has a target score to reach within a time limit (displayed in the UI). * Difficulty increases by speeding up the "Falling Piece" timer. ### 4. Mobile Controls & Interaction * **Touch Interaction:** * Implement `touchstart`, `touchmove`, and `touchend` event listeners. * **Raycasting:** Use a Raycaster to detect which cylinder the user touches. * **Control Scheme:** * **Hold:** Touch and hold a cylinder to "pick it up". The piece should visually lift slightly toward the camera (Z-axis offset) and follow the finger/cursor. * **Drag:** Move the piece horizontally across the screen. * **Release:** When the finger is lifted, the piece "snaps" to the nearest valid column and falls to the top of that stack (simulated gravity). * **UI Layout (Portrait Mode Optimized):** * Top Bar: Score, Timer, and Level Indicator. * The game area (stacks) should occupy the bottom 70% of the screen for easy thumb reach. * Buttons should be at least 44x44 pixels for touch accessibility. * **Feedback:** * **Haptic:** Trigger `window.navigator.vibrate(50)` when a piece matches or explodes (if supported). * **Visual:** Highlight the column under the dragged piece to show where it will land. ### 5. Code Generation Please generate the complete `index.html` file containing the CSS, Three.js logic, and game mechanics. Use a CDN for the Three.js library. Ensure the game handles window resizing and maintains the aspect ratio for mobile screens. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

Zoo Animals is a delightful puzzle stacking game that combines your love for animals with engaging brain-teasing gameplay. With a colorful jungle-themed background and cute animal designs, this free online game challenges you to reconstruct adorable animal faces by strategically stacking and matching cylindrical pieces. The game has earned a solid 3.9/5 rating from puzzle enthusiasts who enjoy its unique blend of matching and stacking mechanics.

Core Features

Unique Cylinder Stacking Mechanics

Unlike traditional puzzle games, Zoo Animals uses innovative cylindrical pieces that you drag and stack to form complete animal faces and bodies. Each piece represents part of an animal's features - from ears and eyes to noses and whiskers.

Multiple Challenge Levels

Progress through increasingly difficult levels, each with its own time limit and score requirements. As you advance, the puzzles become more complex, requiring faster thinking and better strategy.

Smart Alert System

The game features a helpful red exclamation mark warning system that alerts you when new pieces are about to drop and shows you which column they'll land in, helping you plan your moves strategically.

Power-Up Boosts

Utilize special dynamite boosts to clear entire columns when you're running out of space or need to make room for better piece placement.

Jungle-Themed Experience

Immerse yourself in a vibrant jungle atmosphere with colorful graphics and cute animal characters that make every puzzle-solving moment enjoyable.

Gameplay Mechanics

Drag-and-Drop Controls

Simply drag cylindrical pieces around the game board to position them correctly. Pieces can be moved freely and placed over other pieces for strategic stacking.

Matching System

Align pieces with the corresponding parts of animal faces or bodies shown at the top or sides of the game area. Complete matches to score points and progress.

Time Management

Each level is timed, adding excitement and challenge. You must reach the target score before time runs out to unlock the next level.

Operation Guide

Basic Controls: - Mouse/Touch : Click and drag to move cylindrical pieces - Drop : Release to place pieces in desired positions - Stack : Place pieces on top of each other for strategic positioning

Game Objectives: 1. Match cylindrical pieces to complete animal faces 2. Reach the required score within the time limit 3. Use boosts strategically to clear columns when needed 4. Watch for falling piece warnings (red exclamation marks) 5. Progress through all available levels

Scoring System: Your score, current level, and remaining time are displayed in the top-right corner. Monitor these closely to ensure you meet level requirements.

Why Play This Game

Zoo Animals offers a perfect combination of relaxation and mental stimulation. It's ideal for:

  • Animal lovers who enjoy cute, colorful designs
  • Puzzle enthusiasts seeking fresh mechanics beyond traditional matching
  • Casual gamers looking for short, engaging sessions
  • Mobile players wanting quality entertainment on any device
  • Brain training through spatial reasoning and quick decision-making

The game's free-to-play nature means you can enjoy all features without any cost. Its mobile-friendly design ensures smooth gameplay whether you're on a computer, tablet, or smartphone. With multiple levels and increasing difficulty, Zoo Animals provides lasting entertainment value that keeps you coming back for more puzzle-solving fun.

Frequently Asked Questions (FAQ)