Crush the Castle

Seele01-Flash
By
Crush the Castle is an addictive physics-based shooting game where you use a powerful trebuchet to demolish enemy fortresses. With realistic physics and satisfying destruction mechanics, this medieval siege game challenges your precision and strategy.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "**Crush the Castle 3D**". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style**: Medieval "Low-poly" aesthetic combined with a "Paper/Parchment" texture overlay to pay homage to the original Flash game's art style. The scene should be 3D but viewed from a fixed side perspective (2.5D). * **Key Models**: * **Trebuchet**: A wooden siege machine on the left side. It needs articulated parts (counterweight, arm, sling). * **Castle**: Procedurally generated structures made of stacked wooden beams (vertical/horizontal) and stone blocks. These must be separate physics bodies. * **Enemies**: Simple cylindrical or capsule-shaped "Knights" and "Kings" placed within the castle structures. * **Environment**: A flat grassy plane with a distant 2D background of rolling hills or a parchment map texture. * **VFX**: * **Impact**: Dust particle bursts when stones hit the ground. * **Blood**: Red cubic particles or sprite splashes emitted when an Enemy object is impacted (crucial for the "Bloody" tag). * **Mobile Optimization**: Use `InstancedMesh` for repeating castle blocks. Limit shadow casting to the projectile and main castle blocks only. Use a simple directional light. ### 2. Audio Requirements * **BGM**: A loop of medieval military drums and a flute/lute melody. It should feel tense but playful. * **SFX**: * **Trebuchet**: A creaking wood sound during the swing, and a "Whoosh" upon release. * **Impact**: Heavy stone crunches, wood splintering sounds. * **Enemies**: Comical screams or grunts when hit; a squelch sound for the blood effect. * **UI**: A heavy metallic "clank" for button presses. ### 3. Gameplay Loop * **Mechanic (The Trebuchet)**: 1. **State 1 (Idle)**: Trebuchet is loaded. 2. **State 2 (Swing)**: Player taps once -> The arm begins to swing forward due to physics/animation. 3. **State 3 (Release)**: Player taps a second time -> The projectile releases from the sling. Timing determines the trajectory (arc). * **Physics**: Integrate a physics engine (like Cannon.js or Ammo.js). The Castle blocks must be unstable enough to topple when hit. * **Win/Loss**: * **Win**: All Enemies are destroyed/knocked over before running out of ammo (3 stones). * **Loss**: Out of stones with enemies still standing. * **Score**: Based on the number of shots used and the amount of destruction caused. ### 4. Mobile Controls & Interaction * **Orientation**: **Landscape** mode locked. * **Control Scheme**: * **One-Button Gameplay**: The entire screen (except UI areas) functions as the trigger button. * **Tap 1**: Start Swing. * **Tap 2**: Release Stone. * **Camera Control**: Before firing, allow the user to swipe left/right to pan the camera to view the target castle, then snap back to the Trebuchet for firing. * **UI Layout**: * Top Left: Ammo count (displayed as stone icons). * Top Right: "Reset Level" button (44x44px min touch area). * Center: "Level Clear/Failed" overlay modal with "Replay" or "Next Level" buttons. * **Feedback**: Trigger `navigator.vibrate(50)` on projectile release and a heavier vibration `navigator.vibrate(200)` on castle impact. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

Crush the Castle is a captivating physics-based shooting game that puts you in command of a mighty trebuchet. Your mission is simple yet thrilling: obliterate enemy castles and eliminate the knights defending them. With a stellar rating of 4.2/5 from thousands of players, this medieval siege simulator has become a beloved classic in the physics puzzle genre.

The game combines strategic thinking with precise aiming mechanics, creating an engaging experience that's easy to learn but challenging to master. Each level presents unique castle structures that require different approaches and ammunition types to successfully demolish.

Core Features

Realistic Physics Engine

Experience authentic destruction mechanics where every stone, beam, and structure responds realistically to impact. Watch in satisfaction as your projectiles create chain reactions, toppling towers and crushing defenders beneath falling debris.

Varied Ammunition Types

Experiment with different missile types, each with unique properties: - Standard stones : Perfect for basic demolition - Explosive barrels : Create devastating blast damage - Special projectiles : Unlock advanced ammunition for tougher fortifications

Progressive Difficulty

Start with simple wooden structures and advance to complex stone fortresses. Each level introduces new architectural challenges that test your understanding of physics and structural weak points.

Medieval Atmosphere

Immerse yourself in authentic medieval siege warfare with detailed castle designs, period-appropriate sound effects, and atmospheric visual styling that brings the era to life.

Gameplay Mechanics

The core gameplay revolves around precise trebuchet operation. Study each castle's construction, identify structural vulnerabilities, and choose the optimal firing angle and power. Success requires understanding how different materials react to impact and how gravity affects falling structures.

Timing is crucial - release your projectile at the perfect moment to achieve maximum destruction. Some castles require multiple shots with strategic targeting to completely demolish all defenders and structures.

Operation Guide

Mastering Crush the Castle requires understanding the trebuchet mechanics:

Basic Controls: - Mouse Movement : Aim the trebuchet by moving your cursor - Mouse Click : Click to release the projectile at the optimal moment - Timing : Watch the trebuchet arm swing and release at peak power

Advanced Techniques: - Study castle blueprints before firing - Target support beams to create cascading collapses - Experiment with different release timings for varied trajectories - Use terrain features to your advantage

Strategy Tips: - Identify the weakest structural points first - Consider projectile weight and impact force - Plan for chain reactions and secondary collapses - Observe how different materials respond to damage

Why Play Crush the Castle

This game offers the perfect blend of strategy, physics, and satisfying destruction that appeals to players of all ages. The intuitive controls make it accessible to newcomers, while the complex physics and level variety provide lasting challenge for experienced players.

The free-to-play model means you can dive straight into the action without any barriers. Whether you're looking for a quick gaming session or extended siege warfare campaigns, Crush the Castle delivers engaging entertainment that never gets old.

The game's physics engine creates emergent gameplay where creative solutions often lead to spectacular results, encouraging experimentation and replay value that keeps players coming back for more medieval mayhem.

Frequently Asked Questions (FAQ)