SpaceWars - Galactic Merge Battle Game

Seele01-Flash
By
SpaceWars is an innovative merge strategy game that combines tactical planning with galactic warfare. Build unstoppable space armies by merging troops, robots, and spaceships in epic 3D battles across distant galaxies.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "**SpaceWars: Galactic Merge**". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style**: Low-poly, cartoonish aesthetic with vibrant colors against a dark background. Emulate the style of popular hyper-casual games. * **Characters**: Create simplified humanoid "Jedi-like" figures with glowing neon cylinders (lightsabers) and blocky robot troopers in distinct colors (e.g., Blue for player, Red for enemy). * **Units**: Include varied tiers of units: melee robots, ranged trooper droids, and larger spaceship-like mechanical units. * **Environment**: * **Grid System**: A clearly defined, glowing hexagonal or square grid floor floating in space for the "Merge Phase." * **Background**: A deep space skybox with twinkling stars and a distant nebula to add depth without distracting from the gameplay. * **Lighting**: Use a dramatic directional light to cast soft shadows, plus localized point lights emitting from the units' weapons (lightsabers/blasters) to create a neon-on-dark contrast. * **Performance**: Use simple geometries (BoxGeometry, CylinderGeometry) merged where possible to reduce draw calls. Maintain a low polygon count suitable for mobile browsers. ### 2. Audio Requirements * **BGM**: An epic, orchestral sci-fi track with a driving rhythm (similar to a "space opera" march) but looped seamlessly. * **Sound Effects**: * **Merge**: A satisfying mechanical "clank" or digital "power-up" sound when two units combine. * **Battle Start**: A dramatic horn or siren. * **Combat**: "Pew-pew" laser sounds for ranged units and buzzing/clashing energy hums for melee lightsaber units. * **Victory/Defeat**: A triumphant fanfare for winning; a glitchy power-down sound for losing. ### 3. Gameplay Loop * **Phase 1: Preparation (The Merge)**: * The player has a limited grid area. * Player purchases Level 1 units using in-game currency. * **Core Mechanic**: Drag and drop identical units on top of each other to merge them into a higher-tier, stronger unit (e.g., two Level 1 Droids -> one Level 2 Storm-Trooper). * **Phase 2: The Battle**: * Player taps a "FIGHT" button. * Camera transitions from a static top-down view to a slightly angled cinematic view. * Units move automatically (Auto-Battler) toward the enemy army on the opposite side. * Units engage based on range (melee runs forward, ranged stays back). * **Win Condition**: Eliminate all enemy units. Reward: Gold coins to buy more troops. * **Lose Condition**: Player's army is wiped out. Result: "Try Again" screen. ### 4. Mobile Controls & Interaction * **Touch Input**: * **Drag & Drop**: Implement robust Raycasting for touch events. The user must be able to smoothly drag a unit across the grid. Highlight the grid cell underneath the finger to indicate valid drop zones. * **Snap-to-Grid**: When releasing a unit, it should physically "snap" into the nearest grid slot. * **Camera**: * **Orientation**: Portrait mode (Vertical) is preferred for one-handed play. * **UI Layout**: Place the "Buy Unit" and "Start Battle" buttons at the bottom 20% of the screen (the "thumb zone"). Make buttons large (minimum 60px height) and rounded. * **Feedback**: * **Haptic**: Trigger a short vibration (using `navigator.vibrate`) when a merge is successful. * **Visual**: Flash a white particle effect or scale animation (pop-up) when a unit is merged or purchased. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

SpaceWars delivers an exciting blend of merge mechanics and strategic space combat that will captivate strategy enthusiasts and casual gamers alike. This free-to-play browser game transports you to distant galaxies where you'll command diverse space armies, merge powerful units, and engage in tactical battles against formidable opponents.

Set in a vibrant 3D universe with stunning galactic backdrops, SpaceWars offers an immersive top-down perspective that gives you complete control over your battlefield strategy. The game's innovative merge system allows you to combine identical units to create increasingly powerful forces, making every decision crucial to your success.

Core Features

Revolutionary Merge Combat System

The heart of SpaceWars lies in its unique merge mechanics. Drag and combine identical space troops, robots, and spaceships to unlock more powerful variants. Each merge creates stronger units with enhanced abilities, allowing you to build devastating armies capable of conquering any galactic threat.

Diverse Space Arsenal

Command an impressive variety of units including: - Elite Space Troops : Specialized infantry units with unique combat abilities - Advanced Combat Robots : Mechanized warriors with superior firepower and durability - Mighty Spaceships : Aerial dominance units that provide tactical advantages - Hybrid Battle Units : Merged combinations with devastating special attacks

Immersive 3D Galactic Battles

Experience warfare like never before with detailed 3D environments and smooth combat animations. The top-down perspective provides strategic overview while maintaining visual excitement as your merged armies clash in spectacular space battles.

Cross-Platform Accessibility

Enjoy seamless gameplay across all devices. Whether you're on desktop or mobile, SpaceWars delivers consistent performance and intuitive controls optimized for each platform.

Gameplay Mechanics

Success in SpaceWars requires both tactical thinking and quick decision-making. Start each battle by strategically placing your initial units, then use the merge system to create powerful combinations. As battles progress, you'll need to adapt your strategy, deciding when to merge for immediate power or save resources for larger combinations.

The game features multiple battle scenarios across different galactic locations, each presenting unique challenges and enemy formations. Victory depends on your ability to efficiently merge units while positioning them for maximum tactical advantage.

Operation Guide

Mastering SpaceWars is straightforward yet rewarding:

  • Mouse Control : Use your mouse to drag and drop units for merging
  • Merge Strategy : Drag identical units together to create upgraded versions
  • Battle Positioning : Place merged units strategically on the battlefield
  • Resource Management : Balance immediate merges with long-term planning
  • Combat Timing : Deploy your merged armies at the optimal moment for victory

The intuitive drag-and-drop interface makes learning easy, while the strategic depth ensures long-term engagement for dedicated players.

Why Play SpaceWars

SpaceWars stands out in the crowded strategy game market by combining accessible merge mechanics with deep tactical gameplay. The game offers:

  • Instant Accessibility : No downloads required - play immediately in your browser
  • Strategic Depth : Multiple unit types and merge combinations provide endless tactical possibilities
  • Visual Appeal : Stunning 3D graphics and smooth animations enhance the gaming experience
  • Progressive Challenge : Difficulty scales naturally as you master merge strategies
  • Community Competition : Battle against other players to prove your galactic supremacy

Whether you're a strategy veteran or newcomer to merge games, SpaceWars provides an engaging experience that grows with your skill level. The combination of immediate tactical satisfaction and long-term strategic planning creates a uniquely addictive gameplay loop that will keep you commanding galactic armies for hours.

Frequently Asked Questions (FAQ)