MicroWars - Strategic Base Control Game

Seele01-Flash
By
MicroWars is an addictive real-time strategy game where you battle for map control by commanding troops and capturing bases. Simple mouse controls meet deep tactical gameplay in this free browser-based warfare experience.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "MicroWars". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style:** 2.5D Minimalist Vector Art style using an Orthographic Camera to simulate a flat surface but with high-quality rendering. * **Color Palette:** High contrast. Background should be a deep, dark charcoal (`#222222`). Player color: Vibrant Cyan/Blue. Enemy color: Aggressive Orange/Red. Neutral bases: Light Grey. * **Base Models:** Bases are flat cylinders or discs. * **Player Bases:** Must feature a simple "Kawaii" face texture (two dot eyes, smiling mouth) to convey friendliness. * **Enemy Bases:** Must feature an "Angry" face texture (slanted eyebrows, frowning mouth). * **Neutral Bases:** Blank or simple neutral expression. * **Dynamic Text:** Each base must float a number above it representing the current troop count. * **Troop Models:** Simple, small spheres or circles matching the color of their parent base. * **Performance Optimization:** Since hundreds of "troops" may be on screen simultaneously, **mandatory usage of `THREE.InstancedMesh`** for rendering troops to ensure 60fps on mobile devices. Low polygon count for base circles. ### 2. Audio Requirements * **Background Music (BGM):** A catchy, rhythmic, "thinking" track. Light pizzicato strings or soft synth-pop that implies strategy but isn't distracting. * **Sound Effects (SFX):** * **Selection:** A soft "pop" or bubble sound when touching a base. * **Troop Launch:** A rapid "whoosh" or "stream" sound when troops leave a base. * **Collision/Attack:** Tiny "tap" sounds when troops hit a base. * **Base Capture:** A triumphant "Ding!" or a musical chord resolution when a base changes color. * **Defeat/Victory:** Short jingles indicating game over state. ### 3. Gameplay Loop * **Core Mechanic:** Real-time strategy (RTS) conquest. * **Resource Generation:** Every base owned by a player (or enemy AI) automatically generates +1 troop every 0.5 to 1 second, up to a maximum cap (e.g., 50). * **Attack Logic:** * The player drags a line from a controlled base (Source) to a target base (Target). * Upon release, 50% of the Source's troops stream toward the Target. * **Troop Interaction:** * If Target is Friendly: Troops merge (add to count). * If Target is Enemy/Neutral: Troops subtract from the Target's count. * **Conquest:** If a Target's count drops below 0, it switches ownership to the attacker, changes color, and updates its face texture (Happy vs Angry). * **AI Behavior:** The Red Enemy AI should periodically check for weak player bases or neutral bases and send attacks automatically. * **Win/Loss Condition:** Win by capturing all bases. Lose if the player owns zero bases. ### 4. Mobile Controls & Interaction * **Touch Input System:** * **Raycasting:** Use Raycasting for precise touch detection on the 3D plane. * **Touch Start:** Tap and hold a friendly base to select it (highlight effect). * **Touch Move:** While holding, draw a visible **dashed line or arrow** extending from the source base to the finger's position to indicate the attack path. * **Touch End:** If the finger releases over a valid target base, execute the troop movement. If released in empty space, cancel the action. * **Orientation:** Force **Portrait Mode** layout for better one-handed mobile play (bases arranged vertically/clustered), OR responsive design that works in both. * **Feedback:** * **Haptic Feedback:** Trigger a light vibration (`navigator.vibrate`) when a base is successfully captured or lost. * **Visual Feedback:** When a base takes damage, it should flash white briefly or shake slightly ("juice"). Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

MicroWars is a fast-paced real-time strategy game that combines simple controls with deep tactical gameplay. In this colorful warfare simulation, you'll command armies of cute, circular troops as they battle for control of strategic bases across various maps. The game features an intuitive drag-and-drop control system that makes it accessible to players of all skill levels, while offering enough strategic depth to keep experienced tacticians engaged.

The core gameplay revolves around territorial control and resource management. Each base you capture becomes a troop-generating facility, creating a snowball effect where early victories lead to increased military power. This creates intense, fast-paced matches where timing and strategic thinking are crucial for victory.

Core Features

Simple Yet Strategic Gameplay

MicroWars excels at providing deep strategic gameplay through simple mechanics. The one-click troop deployment system allows you to focus on strategy rather than complex controls, making split-second tactical decisions feel natural and responsive.

Dynamic Base Control System

Every base you control actively generates troops over time, creating a dynamic battlefield where territorial advantage directly translates to military power. The more bases under your command, the faster you can build overwhelming forces against your opponents.

Colorful Visual Design

Featuring charming circular characters with expressive faces, the game presents warfare in a friendly, approachable visual style. Blue and orange armies face off across dark battlefields, making it easy to track unit movements and base ownership at a glance.

Cross-Platform Compatibility

Play seamlessly across all devices - desktop computers, tablets, and smartphones all support the same smooth gameplay experience. The responsive design ensures optimal performance regardless of your chosen platform.

Multiple Map Varieties

Each battlefield features unique layouts of neutral and enemy bases, requiring different tactical approaches. Some maps favor aggressive rushes, while others reward careful expansion and defensive positioning.

Gameplay Mechanics

Troop Management

Your army consists of small circular units that automatically move between bases when commanded. Each base has a maximum capacity, so timing your attacks and managing troop distribution becomes crucial for maintaining offensive pressure while defending your territory.

Base Capture System

To capture an enemy or neutral base, you must send enough troops to overwhelm its defenses. Neutral bases are easier to capture than enemy-controlled ones, making them valuable early-game targets for rapid expansion.

Resource Generation

Controlled bases continuously produce new troops at regular intervals. This passive income system means that holding territory is just as important as active combat, creating interesting strategic decisions about when to attack versus when to consolidate.

Operation Guide

Basic Controls

Mouse Control : Simply click and drag from any of your bases to create a line pointing toward your target destination. This intuitive system allows for rapid deployment of forces without complex button combinations.

Troop Deployment : When you drag from a base, you'll send approximately half of its current troops toward the target. This automatic splitting helps maintain base defense while enabling offensive actions.

Visual Feedback : The game provides clear visual indicators showing troop movements, base ownership, and unit counts, making it easy to track the battlefield situation at all times.

Advanced Tactics

  • Split Attacks : Coordinate simultaneous attacks from multiple bases to overwhelm enemy defenses
  • Defensive Positioning : Keep some bases well-defended to prevent enemy breakthrough attacks
  • Expansion Priority : Focus on capturing neutral bases early to establish economic advantage
  • Timing Management : Wait for optimal troop counts before launching major offensives

Why Play MicroWars

MicroWars offers the perfect blend of accessibility and depth that makes it appealing to both casual players and strategy enthusiasts. The game's quick match duration (typically 3-10 minutes) makes it perfect for short gaming sessions, while the tactical complexity provides long-term replay value.

The completely free-to-play model means you can enjoy the full experience without any payment barriers. No downloads, installations, or account creation required - simply open your browser and start commanding armies immediately.

For strategy game fans, MicroWars provides that satisfying feeling of tactical mastery as you outmaneuver opponents through superior positioning and timing. The simple graphics belie the game's strategic depth, making every victory feel earned through skill rather than luck.

Perfect For Strategy Lovers

Whether you're a newcomer to strategy games or a veteran commander, MicroWars provides an ideal entry point into real-time tactical warfare. The learning curve is gentle enough for beginners, yet the skill ceiling is high enough to provide long-term challenge and improvement opportunities.

Frequently Asked Questions (FAQ)