Marbles Garden

Seele01-Flash
By
Marbles Garden is a free online tower defense shooting game that combines colorful marble mechanics with strategic gameplay. Easy to learn but challenging to master, this physics-based game offers instant entertainment in your browser.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "Marbles Garden". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style**: A vibrant, Low-poly "Secret Garden" aesthetic. The scene should look like a miniature world. * **Camera**: Top-down orthographic view (or slight perspective) fixed to fit a vertical (portrait) mobile screen, optimizing the view of the winding path. * **Key Assets**: * **The Map**: A lush green plane (grass texture) with a distinct, winding stone path (generated using `CatmullRomCurve3`). * **The Shooter**: A central turret styled as a rustic stone golem or a wooden cannon, located in the middle of the screen. * **The Marbles**: Shiny, reflective spheres in 4 distinct colors (Red, Blue, Green, Yellow). Use `InstancedMesh` for performance if possible. * **The Destination**: A scary "Pit" or dark hole at the end of the path (the "Tower Defense" fail state). * **Performance**: Use simple Lambert materials for mobile efficiency. Limit shadow casting to the main shooter only. ### 2. Audio Requirements * **BGM**: A light, playful, and relaxing acoustic track featuring marimbas, flutes, and nature sounds (birds chirping faintly). * **Sound Effects (SFX)**: * *Shoot*: A satisfying "pop" or compressed air sound. * *Collision*: The sound of glass marbles clicking together (`clack`). * *Match/Clear*: A magical chime or high-pitched "ding" when 3+ marbles vanish. * *Warning*: A tension-building drum beat when marbles get close to the hole. ### 3. Gameplay Loop * **Mechanism (Zuma-style)**: A continuous chain of marbles rolls along the curved path toward the hole at a constant speed. * **Shooting**: The player has a "current marble" in their shooter. They must fire it into the moving chain. * **Matching Logic**: When the fired marble hits the chain, it inserts itself. If 3 or more marbles of the same color end up touching, they are destroyed (removed from the array), and the player earns points. * **Combo System**: If a gap is created and the marbles behind the gap roll forward to close it, causing *another* match, award bonus points. * **Win/Loss**: * *Win*: Clear all marbles in the wave. * *Loss*: If a single marble falls into the end hole, the game is over. ### 4. Mobile Controls & Interaction * **Touch-to-Shoot**: The controls must be strictly "Tap to Shoot". * Use `Raycaster` to detect where the player touches on the ground plane. * The Turret immediately rotates to face the touch point and fires the marble in that direction. * **Orientation**: Portrait mode preferred for one-handed play. * **UI**: * A crisp "Score" counter at the top. * A "Next Marble" indicator near the shooter showing the color of the *next* ammo. * A large, thumb-friendly "Restart" button that appears only on Game Over. * **Feedback**: * Add a small screen shake (camera jitter) when a match occurs. * Spawn simple particle explosions when marbles are destroyed. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

Marbles Garden is an engaging tower defense shooting game that brings together colorful marble mechanics and strategic gameplay elements. With a solid 4.4/5 rating from players, this free browser game offers an accessible yet challenging experience that appeals to both casual and dedicated gamers.

The game features a unique blend of shooting mechanics, physics-based marble interactions, and tower defense strategy, creating an addictive gameplay loop that keeps players coming back for more.

Core Features

Free Browser Gaming

Marbles Garden is completely free to play with no downloads required. Simply open your web browser and start playing instantly. The game runs smoothly on all modern browsers and devices, making it accessible anytime, anywhere.

Physics-Based Marble Mechanics

Experience realistic marble physics as you shoot, bounce, and strategically place marbles to defend your garden. Each marble interaction follows natural physics laws, adding depth and predictability to your tactical decisions.

Easy Learning Curve

Designed with accessibility in mind, Marbles Garden features intuitive controls and clear visual feedback. New players can jump right in and start enjoying the game within minutes, while still offering depth for experienced players.

Instant Play Technology

Built with HTML5 technology, the game loads quickly and runs smoothly without requiring plugins or downloads. This instant-play capability means you can enjoy Marbles Garden during short breaks or extended gaming sessions.

Colorful and Cute Design

The game features bright, cheerful graphics with cute visual elements that create a relaxing yet engaging atmosphere. The garden theme is beautifully rendered with vibrant colors that make gameplay visually appealing.

Game Mechanics

Tower Defense Strategy

As a tower defense game, Marbles Garden requires you to strategically position your defenses to prevent enemies from reaching your garden. Plan your marble placements carefully to create effective defensive patterns.

Shooting and Clicking Elements

The game incorporates both shooting mechanics for precise marble placement and clicker elements for rapid-fire actions. This combination keeps gameplay dynamic and engaging throughout each level.

Physics Interactions

Marbles behave according to realistic physics, bouncing off surfaces and interacting with other marbles in predictable ways. Master these physics to create chain reactions and maximize your defensive effectiveness.

Operation Guide

Marbles Garden offers flexible control options to suit different player preferences:

  • Mouse Controls : Use your mouse to aim and shoot marbles with precision. Click to fire marbles at strategic positions.
  • Keyboard Controls : Alternative keyboard controls are available for players who prefer key-based input.
  • Hybrid Control : Combine mouse and keyboard inputs for optimal gameplay experience.

The game provides clear in-game instructions that guide you through the specific controls and mechanics as you play. Visual indicators help you understand marble trajectories and potential interactions before you shoot.

Why Play Marbles Garden

Perfect for All Skill Levels

Whether you're new to tower defense games or a seasoned strategist, Marbles Garden offers appropriate challenges. The easy learning curve welcomes beginners, while the physics-based mechanics provide depth for advanced players.

Stress-Free Gaming

The cute, colorful design and relaxing garden theme make this an ideal game for unwinding after a long day. The gameplay is engaging without being overwhelming or stressful.

No Commitment Required

As an instant-play browser game, you can enjoy Marbles Garden without any long-term commitments. Play for five minutes or several hours - the choice is yours.

Cross-Platform Compatibility

Play on any device with a modern web browser, including computers, tablets, and smartphones. Your progress and experience remain consistent across all platforms.

Frequently Asked Questions (FAQ)