Space Battle - 3D Space Combat Game

Seele01-Flash
By
Space Battle is an immersive 3D space combat game where you pilot powerful spaceships through asteroid fields, engage in epic battles against dangerous enemies, and collect valuable items across the cosmos.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "**Space Battle: Cosmic Dogfight**". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style:** High-contrast Sci-Fi Arcade style. The scene should be set in deep space with a "glowing" aesthetic (Bloom effect is highly recommended). * **Player Asset:** A sleek, low-poly fighter jet (yellow and black color scheme similar to the reference image) featuring four distinct engine nozzles. The engines must emit bright blue particle trails (thrusters) that react to movement speed. * **Environment:** A dense asteroid field. Use **InstancedMesh** for the asteroids to ensure 60FPS on mobile devices. The background should be a high-resolution starfield skybox with a distant, blindingly bright sun (simulated with a large glowing sprite or point light) creating lens flare effects. * **Projectiles:** * Player: Bright green laser bolts (long, thin glowing cylinders). * Enemies: Red plasma bursts. * **Performance:** Limit the geometry complexity (Low-poly count). Use object pooling for projectiles and particles to prevent garbage collection stutter on mobile browsers. ### 2. Audio Requirements * **BGM:** A driving, fast-paced **Synthwave / Electronic** track. It should feel heroic and intense, looping seamlessly. * **Sound Effects (SFX):** * **Thrust:** A continuous low-frequency hum that increases in pitch when the "Turbo" is activated. * **Laser Fire:** rapid, high-pitched "Pew-Pew" sounds (retro arcade style). * **Explosions:** Crunchy, distorted bass sounds when enemies or asteroids are destroyed. * **Collection:** A sharp, resonant digital "Ping" when collecting items. * **Alarm:** A repetitive warning beep when player health is low. ### 3. Gameplay Loop * **Core Mechanics:** The player flies forward automatically (rail shooter style or constant forward velocity) but controls X/Y position to aim and dodge. The goal is to survive endless waves of enemy ships. * **Combat:** Enemies appear in formations from the distance. The player must align the crosshair to shoot them down before they pass or collide. * **Collection:** Randomly spawn "Energy Cells" (glowing spinning cubes) among the asteroids. Collecting them restores shield/health or adds bonus score. * **Turbo Mechanic:** A "Boost" meter fills up over time. Using it grants temporary invincibility and double speed. * **Win/Loss:** The game is an "Endless Runner" style. Game Over occurs when the Shield bar reaches zero (due to enemy fire or crashing into asteroids). High score is saved locally. ### 4. Mobile Controls & Interaction * **Orientation:** Force **Landscape Mode**. * **Touch Controls (Split Screen):** * **Left Half of Screen:** A dynamic **Virtual Joystick**. Dragging anywhere on the left side controls the ship's Pitch (Up/Down) and Yaw (Left/Right). The ship should bank (roll) visually when turning. * **Right Half of Screen:** * **Primary Action:** A large, semi-transparent button for **Shoot** (or enable auto-fire when holding down anywhere on the right side). * **Secondary Action:** A smaller button labeled "TURBO" for the speed boost. * **UI/HUD:** * A central reticle (crosshair) that leads the ship slightly to help with aiming. * Health/Shield bar at the top center. * Score counter at the top right. * Buttons must have a minimum touch target size of 48px to prevent miss-clicks. * **Feedback:** * **Camera Shake:** Slight camera shake on impact or when boosting. * **Vibration:** Trigger `navigator.vibrate(200)` when the player crashes or takes damage. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

Space Battle delivers an authentic space combat experience that puts you in the pilot's seat of advanced spacecraft. Navigate through stunning cosmic environments filled with asteroids, engage in intense firefights with enemy forces, and collect special power-ups to enhance your combat capabilities. The game combines fast-paced action with strategic gameplay, making every battle a thrilling challenge.

Core Features

Space Battle offers an comprehensive space combat experience with multiple engaging elements:

Epic Space Combat System

Engage in heart-pounding battles against waves of hostile enemies. The combat system features multiple weapon types including machine guns, rockets, and special turbo attacks. Each encounter requires tactical thinking and quick reflexes to survive the cosmic warfare.

Multiple Spaceship Selection

Choose from a diverse fleet of spacecraft, each with unique characteristics and combat capabilities. Whether you prefer fast, agile fighters or heavily armored battleships, there's a vessel that matches your preferred combat style.

Immersive 3D Environment

Experience the beauty and danger of space with stunning 3D graphics. Navigate through dense asteroid fields, dodge space debris, and witness spectacular cosmic phenomena while engaged in intense battles.

Item Collection and Power-ups

Discover and collect special items scattered throughout the battlefield. These power-ups can enhance your weapons, improve your ship's defenses, or provide temporary advantages that can turn the tide of battle.

Progressive Difficulty

Face increasingly challenging enemies as you advance through the game. Each level introduces new enemy types and more complex battle scenarios that test your piloting skills and combat strategy.

Game Mechanics

Space Battle combines arcade-style action with realistic space physics. Your spaceship responds authentically to momentum and direction changes, creating a genuine feeling of piloting through zero gravity. The weapon systems offer variety with different firing patterns and damage types, allowing for diverse combat strategies.

Operation Guide

Mastering the controls is essential for space combat survival:

  • WASD Keys or Arrow Keys : Control ship movement - accelerate, decelerate, and turn left/right
  • Mouse Movement : Precise directional control and targeting
  • Left Mouse Button : Fire primary machine gun weapons
  • Right Mouse Button : Launch powerful rocket attacks
  • Shift Key : Activate turbo boost for emergency speed or enhanced firepower
  • P Key : Pause the game to strategize or take a break

The control system is designed for both precision and accessibility, allowing newcomers to quickly learn the basics while providing the depth experienced pilots need for advanced maneuvers.

Platform Support

Space Battle is optimized as a web browser game, meaning you can play instantly without downloads or installations. The game runs smoothly on modern browsers across different operating systems. Additionally, an Android mobile version is available for gaming on the go.

Why Play This Game

Space Battle stands out in the crowded space combat genre by offering:

  • Instant Access : No downloads required - play immediately in your browser
  • Free to Play : Complete gaming experience at no cost
  • Stunning Visuals : High-quality 3D graphics that immerse you in space
  • Varied Gameplay : Multiple ships, weapons, and enemy types keep battles fresh
  • Skill Development : Improves hand-eye coordination and strategic thinking
  • Stress Relief : Perfect for unwinding with exciting but manageable challenges
  • Cross-Platform : Available on both web browsers and Android devices

Whether you're a fan of classic space shooters or new to the genre, Space Battle provides an engaging experience that combines visual spectacle with satisfying gameplay mechanics.

Frequently Asked Questions (FAQ)