Clash'N Slash - Space Defense Shooting Game

Seele01-Flash
By
Clash'N Slash is an exciting space defense shooting game where you pilot a spaceship around your planet, shooting down alien saucers while upgrading both your ship and planetary defenses.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "Clash'N Slash". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Core Perspective**: A top-down (orthographic or high-FOV perspective) view centered on a 3D spherical planet. * **The Planet**: A central `THREE.SphereGeometry`. Texture it to look like a stylized, habitable world (blue/white gradients for ice/clouds, green for land). Add simple low-poly structures (cylinders/boxes) on the surface to represent the "Base" or "City" being defended. * **The Player (Ship)**: A sleek, low-poly spaceship model (or composed of primitives like cones/boxes) that is **locked to a fixed orbit radius** slightly above the planet's surface. It must always face away from the planet center (outward). Add a `THREE.TrailRenderer` or simple particle stream behind the ship for movement feedback. * **Enemies**: * Type A: Saucers (flattened spheres/torus). * Type B: Spiked Orbs (Sphere with cones, based on screenshot). * Spawn Logic: Enemies spawn off-screen (outside the camera frustum) at random angles and move linearly toward the planet's center. * **Background**: A static, high-contrast starfield or nebula skybox to make the foreground elements pop. * **Mobile Optimization**: Use `MeshLambertMaterial` or `MeshBasicMaterial` for performance. Limit real-time lights to one directional light (Sun) and one ambient light. Recycle enemy meshes using an object pool pattern. ### 2. Audio Requirements * **BGM**: High-energy, fast-paced Arcade/Techno track (140 BPM+) to induce tension. * **SFX**: * **Shooting**: Rapid, high-pitch plasma sounds (short decay). * **Impact/Explosion**: Crunchy, bass-heavy sound when an enemy is destroyed. * **Planet Damage**: A low-frequency "thud" or alarm siren when an enemy crashes into the planet. * **UI**: Clicky, mechanical sounds for the upgrade menu. ### 3. Gameplay Loop * **Core Mechanic**: Circular Defense. The player cannot move closer/further from the planet, only orbit around it (0 to 360 degrees). * **Combat**: The ship **auto-fires** projectiles outward radially. The player's goal is to rotate the ship to align the firing stream with incoming enemies. * **Damage Logic**: * If a bullet hits an enemy: Enemy destroyed, score increases, chance to drop a generic "resource" particle. * If an enemy hits the planet: The Planet's HP bar decreases. Camera shakes (`camera.position` jitter) for 0.2s. * **Progression**: * The game runs in "Waves". Between waves, pause the action and show a simple HTML overlay "Shop". * **Shop Options**: 1. Repair Planet (Heal HP), 2. Upgrade Fire Rate, 3. Upgrade Rotation Speed. * **Game Over**: When Planet HP reaches 0. Show "Defeat" screen with a Restart button. ### 4. Mobile Controls & Interaction * **Control Scheme**: **"Slide to Orbit"**. * The entire screen serves as a touch surface. * Dragging a finger horizontally anywhere on the screen rotates the ship around the planet. * Left drag = Counter-clockwise orbit; Right drag = Clockwise orbit. * Movement must be 1:1 and responsive (no heavy inertia). * **Orientation**: Portrait mode (to allow easy one-handed play with thumb at the bottom, or two-handed). * **UI Layout**: * **Top Center**: Score Display (large, bold font). * **Planet Surface**: A curved Health Bar floating just above the planet or a circular progress bar around the planet. * **Pause Button**: Top-right corner (minimum 44x44px touch target). * **Haptic Feedback**: Trigger `window.navigator.vibrate(50)` when the planet takes damage or a wave is cleared (if supported). Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

Clash'N Slash is a thrilling space defense shooter that puts you in control of humanity's last line of defense. As alien saucers threaten your home planet, you must pilot your spaceship in orbit, eliminating threats while protecting the world below. This fast-paced flying shooter combines strategic upgrades with intense aerial combat, creating an engaging experience that keeps players coming back for more.

Core Features

Orbital Combat System

Unlike traditional space shooters, Clash'N Slash features a unique orbital gameplay mechanic where you fly around your planet in a protective pattern. This 360-degree combat system requires strategic positioning and timing as you intercept incoming alien threats from all directions.

Dual Upgrade Paths

The game offers two distinct upgrade systems: - Spaceship Upgrades : Enhance your vessel's firepower, speed, and durability - Planet Defenses : Strengthen your home world's protective systems and defensive capabilities

This dual progression system allows for diverse strategic approaches, whether you prefer becoming an unstoppable flying fortress or building an impregnable planetary defense network.

Wave-Based Action

Face increasingly challenging waves of alien saucers, each presenting unique attack patterns and difficulty spikes. The progressive difficulty ensures that both newcomers and experienced players find the perfect challenge level.

Gameplay Mechanics

The core gameplay revolves around continuous motion and precise shooting. Your spaceship orbits your planet automatically, while you control targeting and special maneuvers. Enemy saucers approach from various angles, requiring quick reflexes and strategic thinking to intercept before they can damage your world.

Success depends on balancing offensive and defensive strategies. Aggressive players can focus on ship upgrades to become a one-ship armada, while defensive strategists might prioritize planetary shields and automated defenses.

Operation Guide

Controls are intuitive and accessible: - Mouse Movement : Navigate your spaceship around the planet - Left Click : Fire primary weapons at alien threats - Mouse Positioning : Aim at incoming saucers and lead moving targets

The simple control scheme makes the game easy to learn but difficult to master, as success requires developing timing, accuracy, and spatial awareness skills.

Why Play Clash'N Slash

This game stands out in the crowded space shooter genre through its innovative orbital mechanics and strategic depth. The combination of real-time action and upgrade progression creates a compelling gameplay loop that rewards both skill improvement and strategic planning.

Perfect for players who enjoy: - Fast-paced shooting action with strategic elements - Upgrade systems that provide meaningful progression - Unique gameplay mechanics that differ from standard shooters - Quick gaming sessions with high replay value

The free-to-play browser format means you can jump into the action immediately without downloads or installations, making it perfect for quick gaming breaks or extended play sessions.

Frequently Asked Questions (FAQ)