Tir a l'arc - Archery Shooting Game

Seele01-Flash
By
Tir a l'arc is a challenging archery shooting game where players must hit targets with precision while avoiding incoming arrows. Test your aim and reflexes in this engaging stick figure adventure.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "**Tir a l'arc (Stickman Archery Defense)**". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style**: A "2.5D" aesthetic. Use 3D models rendered from a fixed side-view perspective to mimic the original Flash game feel but with modern depth. * **Characters**: * **Player**: A stylized **Black 3D Stickman** (constructed from cylinders and spheres) standing on top of a gray castle tower on the left side of the screen. * **Enemy**: A **Blue 3D Stickman** (The "crafty blue man") appearing on the right side or on a opposing tower. * **Environment**: * **Foreground**: A grey, blocky castle tower with crenelations (battlements). * **Target**: A classic red and white bullseye target that can spawn at varying heights on the right side. * **Background**: A smooth, generated gradient sky texture (Light Blue #87CEEB to White) to replicate the original simplistic sky. * **Projectiles**: Arrows should be 3D objects with a trail renderer (simple distinct color line) to visualize trajectory on mobile screens. * **Performance**: Use `BoxGeometry` and `CylinderGeometry` for low-poly count. Merge geometries where possible to reduce draw calls. Shadows should be baked or disabled for mobile performance. ### 2. Audio Requirements * **BGM**: A playful, looped medieval track (flute and light percussion) that is subtle and not distracting. * **Sound Effects (SFX)**: * **Bow Draw**: A stretching string sound that increases in pitch as the power charges. * **Shoot**: A satisfying "Thwip" or "Swish" sound. * **Impact (Target)**: A solid "Thud" for wood. * **Impact (Stone/Miss)**: A metallic "Clank" or dull "Ping". * **Enemy Hit**: A comical grunt or squeak. * **Incoming Warning**: A high-pitched whistle when the enemy fires an arrow. ### 3. Gameplay Loop * **Core Mechanic**: The player must shoot arrows to hit targets or defeat the Blue Stickman enemy. * **Game Modes**: * **Target Mode**: Targets appear at random positions/distances. Hitting the Bullseye gives max points (50), outer rings give fewer (10). * **Duel Mode**: The "Blue Man" appears and shoots arrows back at the player. The player must kill the enemy before their own health bar (displayed above the tower) reaches zero. * **Physics**: Implement 2D projectile motion with gravity. Arrows should stick into objects upon collision. * **Win/Loss**: * **Win**: Clear a wave of targets or defeat the Blue Man. * **Loss**: Player health reaches 0 (hit by enemy arrows) or Player misses too many targets (optional ammo limit). ### 4. Mobile Controls & Interaction * **Control Scheme (Slingshot Style)**: * Replace the original Keyboard controls with a **"Touch-and-Drag"** mechanic. * **Action**: Touching anywhere on the screen and dragging *backward* (away from the target) draws the bow. * **Visual Feedback**: A dotted trajectory line shows the predicted path of the arrow based on drag distance (power) and angle. * **Release**: Lifting the finger fires the arrow. * **Orientation**: Landscape Mode (forced). * **UI & Feedback**: * **Camera**: Dynamic camera that slightly zooms out when dragging and follows the arrow after release for dramatic effect, then snaps back to the player. * **Haptics**: Trigger a short vibration (using `navigator.vibrate`) when the arrow hits a target or the player gets hit. * **Buttons**: Large, finger-friendly Restart button (min 44x44px) that appears on Game Over. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

Tir a l'arc is an exciting archery-focused shooting game that challenges players to master the art of bow and arrow combat. Despite its French name meaning 'archery', the game's simple yet engaging mechanics make it accessible to players worldwide. You'll take control of a stick figure archer positioned on a medieval castle tower, aiming to hit various targets while dodging dangerous projectiles.

The game combines precision shooting with quick reflexes, creating an addictive gameplay loop that keeps players coming back for more. With its minimalist stick figure art style and straightforward controls, Tir a l'arc focuses purely on skill-based archery action.

Core Features

Precision Archery Mechanics

The game features realistic bow physics that require players to carefully calculate angle and timing. Each shot demands precision as you adjust your aim to account for distance and target movement.

Dynamic Obstacle System

What sets Tir a l'arc apart is its unique defensive element - you must avoid incoming arrows while focusing on your own shots. This dual-challenge system creates intense moments where offense and defense must be balanced perfectly.

Stick Figure Art Style

The clean, minimalist stick figure graphics ensure smooth gameplay performance while maintaining visual clarity. This artistic choice allows players to focus on the core mechanics without visual distractions.

Castle Tower Setting

Positioned atop a medieval castle tower, players get an authentic archery range experience with targets positioned at various distances and heights.

Progressive Difficulty

As you advance, the game introduces more challenging scenarios with faster-moving targets and increased arrow threats, ensuring continuous skill development.

Gameplay Mechanics

Target Shooting System

Your primary objective is to accurately hit various targets using your bow and arrow. Each successful hit contributes to your overall score, encouraging players to maintain consistent accuracy throughout their session.

Defensive Elements

The game's unique twist involves a crafty blue character who shoots arrows back at you. Players must remain alert and dodge these incoming projectiles while maintaining focus on their own targeting.

Physics-Based Archery

The bow and arrow mechanics follow realistic physics, requiring players to account for trajectory, distance, and timing when taking shots.

Operation Guide

Tir a l'arc features intuitive controls that are easy to learn but challenging to master:

  • Arrow Keys : Use the up and down arrow keys to adjust your bow's angle and aim at different targets
  • Spacebar : Press the space bar to release your arrow and shoot at the selected target
  • Timing : Watch for incoming arrows and time your movements to avoid being hit
  • Precision : Fine-tune your aim using small adjustments with the arrow keys for maximum accuracy

The control scheme is designed for quick reactions while maintaining precision, making it suitable for both casual players and those seeking to master advanced archery techniques.

Why Play This Game

Perfect for Quick Gaming Sessions

Tir a l'arc is ideal for players looking for engaging gameplay that can be enjoyed in short bursts. Each round provides immediate satisfaction while building long-term skill development.

Skill-Based Progression

Unlike games that rely on luck or complex mechanics, this archery game rewards genuine skill improvement. Players can clearly see their progress as their aim becomes more accurate over time.

Stress-Free Entertainment

The stick figure art style and straightforward gameplay create a relaxing yet engaging experience perfect for unwinding or taking a break from more complex games.

Universal Appeal

While the game title is in French, the gameplay is entirely visual and intuitive, making it accessible to players regardless of language background.

Browser Compatibility

As a web-based game, Tir a l'arc requires no downloads or installations, making it instantly accessible from any computer with internet access.

Frequently Asked Questions (FAQ)