Tower Archer

Seele01-Flash
By
Tower Archer is an innovative 3D tower defense archery game where you control a skilled archer defending your tower from enemies attacking from multiple angles. Master precision shooting, earn upgrades, and protect your realm in this exciting physics-based defense game.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "Tower Archer". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style**: Low-poly 3D aesthetic with a "flat-shaded" look (use `THREE.MeshLambertMaterial` or `MeshToonMaterial`). The palette should be desaturated and slightly moody (grey skies, muted greens) to match the rainy atmosphere in the reference. * **Core Models**: * **The Tower**: A central, grey cylindrical stone tower with crenelations on top. It sits at world coordinates (0,0,0). * **The Archer**: A simple blocky character positioned atop the tower. * **Enemies**: Low-poly green humanoid figures (Orcs) wielding primitive axes. They must have distinct body parts (Head, Torso, Legs) for hit detection. * **Environment**: A circular ground plane (green grass). Simple cone-shaped pine trees scattered around the periphery. A particle system simulating rain (falling vertical white lines) and light grey fog (`scene.fog`) to obscure the edge of the world and improve performance. * **Mobile Optimization**: Use instanced rendering (`THREE.InstancedMesh`) for trees and arrows to reduce draw calls. Limit enemy polygon count to under 300 tris per unit. ### 2. Audio Requirements * **BGM**: A loopable, suspenseful medieval track (strings and percussion) that intensifies as enemies get closer. * **Sound Effects (SFX)**: * **Bow Interaction**: A stretching sound (pitch shifting up) when the player drags to aim. * **Shooting**: A sharp "whoosh" or "thwip" upon release. * **Impact**: distinct sounds for hitting flesh (wet thud) vs. hitting the ground/tower (dull clatter). * **Environment**: Constant ambient rain and wind noise. * **UI**: A "clinking coins" sound when an enemy is defeated. ### 3. Gameplay Loop * **Core Mechanic**: Infinite Wave Defense. Enemies spawn at random points along the perimeter of the map (360 degrees) and move strictly toward the Tower center. * **Combat Logic**: * The player must rotate the camera to spot incoming threats. * Arrows are subject to gravity. A visual **trajectory line** (parabola) must be drawn while aiming to assist the player. * **Hit Detection**: * **Headshot**: 2x Damage (Critical). * **Leg Shot**: Normal damage + reduces enemy movement speed by 50% (Features requirement). * **Body Shot**: Normal damage. * **Win/Loss**: * **Loss**: If an enemy reaches the tower base and attacks enough times to deplete the Tower HP to 0. * **Progression**: Each kill grants "Gold". A simple UI button between waves allows purchasing "Damage Up" or "Attack Speed Up". ### 4. Mobile Controls & Interaction * **Dual-Gesture Control Scheme**: * **Camera Rotation (Horizontal Swipe)**: Swiping left/right on the bottom 20% of the screen rotates the camera orbit around the tower, allowing the player to scan the 360-degree battlefield. * **Aim & Shoot (Drag & Release)**: Touching and dragging anywhere on the upper 80% of the screen controls the bow. * *Drag Backward*: Pulls the bow string (increases power). * *Drag Direction*: Adjusts the angle (vertical and horizontal offset). * *Release*: Fires the arrow based on the calculated vector. * **Orientation**: Landscape mode locked. * **Feedback**: * Trigger `navigator.vibrate(50)` on arrow release for tactile feedback. * Floating text numbers (e.g., "-50", "Crit!") pop up when enemies are hit. * **UI Layout**: Large, thumb-friendly pause/upgrade buttons (min 44px touch targets) anchored to the top corners, clear of the aiming area. A health bar for the Tower should be prominently displayed at the top center. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

Tower Archer revolutionizes the traditional tower defense genre by combining precise archery mechanics with 3D strategic gameplay. Unlike conventional tower defense games where you place static defenses, Tower Archer puts you in direct control of a mighty archer who must actively defend the tower and surrounding realm from waves of incoming enemies.

The game's unique 3D perspective requires you to constantly rotate the camera and adapt your shooting strategy as enemies approach from multiple angles simultaneously. This creates an immersive and challenging experience that tests both your reflexes and tactical thinking.

Core Features

Dynamic 3D Defense System

Tower Archer's standout feature is its multi-directional combat system. Enemies don't just march in straight lines – they approach your tower from various 3D angles, forcing you to stay alert and constantly adjust your position and aim. The rotating camera system allows you to scout for threats from all directions.

Precision Physics-Based Archery

Every arrow shot follows realistic physics principles, making accuracy and timing crucial for success. The game rewards skilled players who can account for distance, trajectory, and enemy movement patterns. Strategic body part targeting adds another layer of depth – hitting specific areas can slow down enemies, giving you precious extra time.

Progressive Upgrade System

Each successful enemy elimination earns you money that can be invested in powerful upgrades: - New Archer Types : Unlock 3 different archer classes, each with unique special abilities - Weapon Improvements : Enhance arrow damage, accuracy, and special effects - Tower Defenses : Strengthen your base to withstand more attacks

Intelligent Enemy AI

As you progress through levels, enemies become increasingly challenging with improved armor, faster movement speeds, and smarter attack patterns. The escalating difficulty ensures that even experienced players face continuous challenges.

Gameplay Mechanics

The core gameplay loop centers around wave-based defense where you must eliminate all approaching enemies before they reach your tower. Success requires quick decision-making: prioritizing high-threat targets, managing your ammunition efficiently, and positioning yourself optimally for maximum defensive coverage.

The aim guide system assists new players while still rewarding skill development. As enemies become more numerous and resilient, you'll need to master advanced techniques like predictive shooting and tactical target prioritization.

Operation Guide

Basic Controls : - Hold Left Mouse Button : Draw your bow and aim at targets - Release Mouse Button : Fire arrows with power based on draw time - Mouse Movement : Rotate camera view to scout all directions - Strategic Positioning : Use the 3D environment to find optimal shooting angles

Advanced Techniques : - Target enemy legs to slow their advance - Prioritize heavily armored enemies early - Use environmental obstacles as reference points for aiming - Monitor multiple approach routes simultaneously

Why Play Tower Archer

Tower Archer offers a fresh take on tower defense gaming that appeals to both archery enthusiasts and strategy game fans. The combination of skill-based shooting mechanics with strategic tower defense elements creates a uniquely engaging experience.

Perfect for players who enjoy : - Precision-based gameplay that rewards skill development - Strategic thinking combined with fast-paced action - Progressive character and weapon upgrades - Challenging gameplay that scales with player ability - Free browser gaming without downloads or installations

The game's accessibility through web browsers means you can jump into the action immediately, while its depth ensures long-term replay value as you master advanced archery techniques and unlock all available upgrades.

Frequently Asked Questions (FAQ)