Temple Guardian

Seele01-Flash
By
Temple Guardian is an engaging tower defense strategy game where you must protect your sacred temple from waves of enemy soldiers using catapults and defensive towers. This free online game combines tactical planning with real-time combat action.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "Temple Guardian". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style**: A low-poly, grid-based 3D interpretation of a classic 2007 strategy game. The camera should be fixed at a top-down orthographic angle (or slight ISO) to maximize clarity on small screens. * **Map Generation**: Create a procedural or fixed grid system (e.g., 10x15 tiles). * **Terrain**: Use Green cubes or planes for "buildable grass areas" and Brown textured tiles for the "enemy path." * **The Temple**: A central structure at the end of the path (the base to protect), modeled with simple grey geometry reminiscent of a stone pagoda. * **Towers**: * **Guard Tower**: Tall, thin structure, shoots arrows (fast, low damage). * **Catapult**: Bulky wooden structure, lobs stones (slow, splash damage). * **Visual Feedback**: When a tower is selected or being placed, render a white `RingGeometry` on the ground to visualize its attack radius (as seen in the screenshot). * **Enemies**: * **Soldiers**: Small red/blue cylinder or capsule meshes. * **Rickshaws**: Larger, boxy meshes representing heavy/armored units. * **Mobile Optimization**: Use `InstancedMesh` for map tiles and projectiles to maintain 60FPS on mobile devices. Use simple Phong materials instead of expensive PBR. ### 2. Audio Requirements * **BGM**: A loop of tribal percussion, heavy drums, and woodwinds to evoke a "jungle war" atmosphere. * **SFX**: * **Death Sound**: Crucial feature based on game lore—enemies must make **"bird noises"** (squawks, chirps) when defeated, adding a layer of quirky humor. * **Combat**: "Thwack" for arrows, heavy "Thud" for catapult stones. * **UI**: A stone-sliding sound for opening build menus and a "cha-ching" coin sound for earning gold. ### 3. Gameplay Loop * **Core Logic**: A standard Tower Defense loop. Enemies spawn at a Start Point and follow the path nodes to the Temple. * **Resources**: Player starts with limited Gold. Killing enemies grants Gold. * **Building**: Tapping a grass tile consumes Gold to place a tower. Tapping an existing tower allows for upgrades or selling. * **Win/Loss**: * **Loss**: If an enemy reaches the Temple, the player loses "Lives." Game Over when Lives = 0. * **Win**: Survive all defined waves (e.g., 10 waves of increasing difficulty). * **Unique Mechanic**: Rickshaw enemies move slower but have high HP and can "transport" smaller soldiers (spawn 2 soldiers upon death). ### 4. Mobile Controls & Interaction * **Orientation**: Locked to **Portrait Mode** for one-handed play, or responsive Landscape if preferred (but UI must adapt). * **Input System**: * Implement a `Raycaster` for touch detection. * **Tap to Select**: Tapping a grass tile highlights it. * **Build Menu**: A fixed UI overlay at the **bottom of the screen** (thumb-friendly zone) containing large buttons (minimum 48x48px) for selecting towers. * **Feedback**: * **Haptic**: Trigger `navigator.vibrate(50)` when placing a tower or when the base takes damage. * **Visual**: Tapped tiles should flash briefly. Invalid placement (e.g., no money) should shake the UI or flash red. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About Temple Guardian

Temple Guardian is a captivating tower defense strategy game that puts you in command of defending a sacred temple against relentless enemy attacks. With a solid 3.6/5 rating from players, this game challenges you to use tactical thinking and strategic tower placement to repel waves of incoming soldiers and various enemy units.

In this immersive defense experience, you'll face increasingly difficult waves of attackers, including foot soldiers and even unconventional threats like rickshaws. Your mission is clear: protect the temple at all costs using your arsenal of defensive structures and strategic positioning.

Core Features

Temple Guardian offers a rich tower defense experience with several standout features:

  • Completely Free : Play the entire game without any cost or hidden fees
  • Strategic Depth : Multiple tower types including catapults and guard towers
  • Progressive Difficulty : Waves become more challenging as you advance
  • Tactical Combat : Real-time battles requiring quick decision-making
  • Browser-Based : No downloads required, play instantly in your web browser

Diverse Defense Arsenal

The game provides various defensive options to create your perfect strategy. Catapults offer powerful area damage against groups of enemies, while guard towers provide consistent, targeted attacks. Each defensive structure has unique strengths, encouraging players to experiment with different combinations.

Dynamic Enemy Waves

Face diverse enemy types that require different defensive approaches. From standard infantry to unique units like rickshaws, each wave presents new tactical challenges. The variety keeps gameplay fresh and demands adaptive strategies.

Gameplay Mechanics

As a tower defense game, Temple Guardian follows the classic formula while adding its own unique elements:

Tower Placement : Position your defensive structures strategically along enemy paths to maximize their effectiveness. Consider range, damage type, and upgrade potential when placing towers.

Resource Management : Earn resources by defeating enemies and use them wisely to build new towers or upgrade existing ones. Balancing immediate needs with long-term strategy is key to success.

Wave Progression : Each completed wave brings stronger enemies but also greater rewards. Plan your defenses to handle both current and future threats.

Operation Guide

The game features intuitive controls designed for easy learning:

  • Mouse Controls : Click to select tower types and placement locations
  • Strategic Planning : Pause between waves to plan your next moves
  • Tower Management : Upgrade existing towers or build new ones based on incoming threats
  • Resource Monitoring : Keep track of your available currency for optimal spending

Success requires careful observation of enemy movement patterns and smart tower positioning. Study the battlefield layout to identify chokepoints and optimal defensive positions.

Why Play Temple Guardian

Temple Guardian stands out in the tower defense genre for several compelling reasons:

Accessibility : Being completely free and browser-based means you can jump into the action immediately without any barriers. The game runs smoothly on most devices with internet access.

Strategic Depth : Despite its straightforward premise, the game offers meaningful tactical decisions. Every tower placement matters, and different strategies can lead to success.

Engaging Progression : The increasing difficulty curve keeps players challenged while remaining fair. Each victory feels earned through smart planning and execution.

Timeless Appeal : Tower defense games have lasting appeal, and Temple Guardian captures the essence of what makes this genre enjoyable - the satisfaction of building an impenetrable defense.

Whether you're a strategy game veteran or new to tower defense, Temple Guardian provides an entertaining and challenging experience that will test your tactical skills while delivering hours of engaging gameplay.

Frequently Asked Questions (FAQ)