24 Carrots - Math Puzzle Adventure Game

Seele01-Flash
By
24 Carrots is a charming free math puzzle game where you guide an adorable bunny through challenging mazes to collect delicious carrots. Perfect for brain training and suitable for all ages.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "24 Carrots". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style:** A bright, cheerful, and "educational cartoon" aesthetic suitable for all ages. Use a **Low-Poly** 3D style for optimal mobile performance. * **Camera:** Use an **OrthographicCamera** positioned at an isometric angle (45 degrees) to give a clear, distortion-free view of the puzzle grid. * **Assets:** * **Player (The Bunny):** A composed geometry (white sphere for body, smaller sphere for head, two long cylinders for ears, small pink sphere for tail). * **Collectibles (Carrots):** Orange cones with small green tops, rotating slowly to attract attention. * **Obstacles (Boulders/Rocks):** Grey, chamfered cubes or rough polyhedrons that look heavy but pushable. * **Hazards (Pits/Traps):** Darker squares on the grid or circular holes. * **Terrain:** A tile-based grid system. Walkable tiles are light green (grass), walls are dark green hedges or wooden fences. * **Performance:** Use `InstancedMesh` for repeated geometry (floor tiles, walls) to reduce draw calls. Use simple Lambert materials for performant lighting. ### 2. Audio Requirements * **BGM:** A whimsical, lighthearted loop featuring marimba or pizzicato strings (suggest using a synthesized placeholder or a link to a royalty-free CC0 asset). * **Sound Effects (SFX):** * **Move:** A soft, high-pitched "hop" sound. * **Push:** A gravelly dragging sound when a boulder is moved. * **Collect:** A crisp "crunch" or "ding" when a carrot is eaten. * **Win:** A short, uplifting fanfare sequence. * **Fall/Fail:** A comical "whistle down" sound if the bunny hits a hazard. ### 3. Gameplay Loop * **Core Mechanic:** This is a **Sokoban-style grid puzzle**. The player moves on a distinct X/Z grid. * **Interaction Logic:** * The player can move 1 tile at a time (Up, Down, Left, Right). * **Pushing:** If the player moves into a Boulder, and the tile *behind* the Boulder is empty, the Boulder is pushed one tile. If the tile behind is a Pit, the Boulder fills the pit (creating a walkable bridge). If the tile behind is a Wall or another Boulder, movement is blocked. * **Objective:** The goal is to navigate the maze and collect all Carrots in the level. * **Win Condition:** Upon collecting the final carrot (display a UI counter like "Carrots: 24/24"), a victory modal appears with a "Next Level" button. * **Fail Condition:** If the player gets stuck (cannot move) or falls into a trap, show a "Retry" button. ### 4. Mobile Controls & Interaction * **Primary Control:** **Swipe Gestures**. Detect `touchstart`, `touchmove`, and `touchend` events. * A swift swipe (Up/Down/Left/Right) triggers one step of movement. * Implement a minimum swipe threshold (e.g., 30px) to prevent accidental moves. * **Orientation:** Lock the game to **Portrait Mode** logic (or responsive layout that fits the puzzle grid within the width of the screen). * **UI/HUD:** * Place a "Reset Level" button at the top right (safe from accidental touches, minimum 44x44px touch target). * Display a large, legible Carrot Counter at the top center. * **Feedback:** * **Visual:** When the bunny moves, use a simple `TWEEN` or interpolation to smooth the movement between grid cells (don't just teleport). * **Haptic:** Trigger `navigator.vibrate(50)` when collecting a carrot or pushing a rock to provide tactile feedback. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

24 Carrots is a delightfully engaging math puzzle game that combines strategic thinking with adorable characters. With an impressive 4.3/5 rating, this free online game challenges players to help a carrot-loving bunny navigate through increasingly complex spatial puzzles. The game's charming premise centers around a simple yet endearing goal: collecting exactly 24 carrots while overcoming various obstacles and brain-teasing challenges.

Unlike typical puzzle games, 24 Carrots cleverly integrates mathematical thinking with spatial reasoning, making it both entertaining and educational. The game's appeal lies in its perfect balance of challenge and accessibility, ensuring players of all skill levels can enjoy the experience while developing their problem-solving abilities.

Core Features

Engaging Puzzle Mechanics

The game revolves around strategic block-pushing puzzles that require careful planning and spatial awareness. Players must analyze each level, determine the optimal sequence of moves, and execute their strategy to successfully guide the bunny to all 24 carrots.

Educational Value

As a math-based puzzle game, 24 Carrots subtly incorporates mathematical concepts into gameplay. Players develop counting skills, spatial reasoning, and logical thinking while having fun with the adorable bunny character.

Cross-Platform Compatibility

Perfectly optimized for both desktop and mobile devices, the game offers seamless gameplay across all platforms. Whether you're using a mouse on your computer or touch controls on your smartphone, the intuitive interface ensures smooth and responsive gaming.

Progressive Difficulty

Each level presents increasingly complex challenges, from simple maze navigation to intricate multi-step puzzles involving boulder manipulation and trap avoidance. This progression keeps players engaged while gradually building their problem-solving skills.

Gameplay Mechanics

In 24 Carrots, success depends on mastering the art of strategic movement and block manipulation. Players must carefully analyze each level's layout, identifying which boulders need to be moved, where they should be positioned, and the precise timing required for each action.

The game features various obstacles including pit traps, rocks, and other hazards that add layers of complexity to each puzzle. Players must think several moves ahead, considering how each action affects the overall puzzle solution.

Puzzle Elements

  • Boulder Pushing : Strategic placement of moveable blocks to create paths
  • Maze Navigation : Finding optimal routes through complex layouts
  • Hazard Avoidance : Safely navigating around pit traps and obstacles
  • Resource Collection : Systematically gathering all 24 carrots in each level

Operation Guide

Desktop Controls

  • Mouse : Click and drag to move the bunny through levels
  • Point and Click : Direct the bunny's movement by clicking desired locations
  • Strategic Planning : Take time to analyze each level before making moves

Mobile Controls

  • Touch Controls : Use your finger to point and pull the bunny through puzzles
  • Intuitive Interface : Responsive touch controls optimized for mobile gaming
  • Zoom Function : Pinch to zoom for better view of complex puzzle layouts

Gameplay Tips

  • Study each level carefully before making your first move
  • Plan your boulder movements to avoid creating unsolvable situations
  • Look for alternative paths when your initial strategy doesn't work
  • Use the environment to your advantage - some obstacles can become helpful tools

Why Play 24 Carrots

Perfect Brain Training

This game offers excellent mental exercise through its combination of spatial reasoning, logical thinking, and mathematical concepts. Regular play helps improve cognitive flexibility and problem-solving skills.

Family-Friendly Entertainment

With its "All Ages" content rating and charming bunny protagonist, 24 Carrots provides wholesome entertainment suitable for players of any age. Parents can feel confident letting children play while knowing they're developing valuable skills.

Completely Free Experience

24 Carrots offers full gameplay access without any cost. No hidden fees, no premium upgrades - just pure puzzle-solving fun accessible to everyone.

Portable Gaming Convenience

The mobile-optimized design means you can enjoy brain-teasing puzzles anywhere, anytime. Perfect for commuting, waiting rooms, or casual gaming sessions.

Educational Benefits

While having fun, players naturally develop important skills including counting, spatial awareness, logical reasoning, and strategic planning - making it an excellent choice for educational gaming.

Frequently Asked Questions (FAQ)