Compact Conflict - Strategic Territory War Game

Seele01-Flash
By
Compact Conflict is an engaging risk-style strategy war game where players command armies to conquer territories and dominate the battlefield. Experience tactical warfare through simple yet strategic gameplay mechanics.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "Compact Conflict 3D". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style**: Minimalist "Digital Board Game" aesthetic. The game should look like a tactile tactical map. * **Map Construction**: * Generate a map composed of irregular polygon meshes (Voronoi-style or simple distinct regions) representing territories. * Each territory must be colored in one of four distinct matte faction colors based on the screenshot: Mustard Yellow, Muted Red, Lavender Purple, and Navy Blue. * Add thick black borders (using `LineSegments` or outline shader) between territories to mimic the cartoon outline style. * **Units**: Represent armies as simple, shiny metallic grey spheres (or "marbles") resting on top of the territory meshes. When multiple units are in a territory, stack them or arrange them in a neat cluster. * **Lighting**: Use soft, warm Global Illumination (HemisphereLight) combined with a DirectionalLight casting sharp shadows to give depth to the units and map borders. * **Camera**: High-angle Orthographic Camera (Isometric view) to provide a clear overview of the battlefield without perspective distortion on mobile screens. * **Performance**: Use `InstancedMesh` for the unit spheres to handle high counts (hundreds of units) without dropping frame rates on mobile devices. ### 2. Audio Requirements * **BGM**: A loopable, rhythmic snare-drum military march, minimalist and low-fidelity (8-bit or synth style) to match the "Compact" theme. * **Sound Effects**: * **Selection**: A crisp "Pop" or "Click" sound when tapping a territory. * **Movement/Attack**: A rapid "Whoosh" followed by a "Clack" (like marbles hitting each other). * **Conquest**: A rising major chord chime when a player captures a new territory. * **Error**: A low thud or buzzer when trying to make an invalid move. ### 3. Gameplay Loop * **Game Logic (Risk-lite)**: * **Setup**: The map is divided among 4 players (1 Human vs 3 AI bots). Each territory starts with random unit counts (1-5). * **Turn Structure**: 1. **Reinforce**: At the start of the turn, the player receives bonus units based on the number of held territories. 2. **Attack/Expand**: The player selects a source territory (must have >1 unit) and taps an adjacent enemy territory. 3. **Battle Calculation**: Simple dice-roll logic. Higher number of attacking units increases win probability. If the attacker wins, they take over the territory and move all but one unit into it. 4. **End Turn**: Player clicks a button to pass play to the AI. * **AI Behavior**: The AI factions rapidly take their turns, prioritizing attacks on weak neighbors. * **Victory Condition**: Occupy every territory on the map. * **Defeat Condition**: Lose all controlled territories. ### 4. Mobile Controls & Interaction * **Touch Controls**: * **Selection**: Use Raycasting on `touchstart` events for instant response (do not use `click` to avoid 300ms delay). * **Camera Manipulation**: Allow one-finger drag to pan the map and two-finger pinch to zoom in/out. Limit the pan boundaries so the player cannot lose the map. * **Visual Feedback**: * **Highlighting**: When a territory is touched, make its material emissive (glow) to indicate selection. * **Attack Indicator**: Draw an arrow or a line curve from the selected territory to the target territory before confirming the attack. * **Haptics**: Trigger `navigator.vibrate(10)` on valid selections and `navigator.vibrate([30, 50, 30])` on battle clashes. * **UI Elements**: * **HUD**: Minimalist HTML overlay. * **End Turn Button**: A large (minimum 60x60px), floating button in the bottom-right corner, easily reachable with a thumb. * **Orientation**: Design to function in both Portrait and Landscape, but optimize the camera FOV for **Portrait** mode as the default. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

Compact Conflict is a compelling strategy war game that brings the classic risk-style gameplay to your browser. This free-to-play tactical game challenges players to think strategically while commanding armies across colorful territories. With its intuitive interface and engaging combat mechanics, Compact Conflict offers both casual and hardcore strategy game enthusiasts an accessible yet deep gaming experience.

Core Features

Strategic Territory Control

The game revolves around capturing and defending territories on a dynamically colored map. Each region represents strategic value, and controlling key areas becomes crucial for overall victory. Players must balance offensive expansion with defensive positioning.

Army Management System

Command different types of military units, each with unique strengths and capabilities. Strategic deployment of soldiers becomes the key to successful campaigns. The game features an intuitive unit selection system where players click bullets to choose their forces.

Risk-Style Gameplay Mechanics

Inspired by classic board game mechanics, Compact Conflict translates traditional territory conquest gameplay into a digital format. Players experience turn-based strategy with real-time decision making, creating engaging tactical scenarios.

Completely Free Experience

  • No Cost : Entirely free to play with no hidden fees or premium content
  • Instant Access : No downloads required - play directly in your browser
  • Cross-Platform : Compatible with desktop computers, tablets, and mobile devices
  • No Registration : Start playing immediately without creating accounts

Game Strategy

Territory Expansion

Success requires careful planning of territorial expansion. Players must identify weak enemy positions while protecting their own borders. Strategic thinking involves anticipating opponent moves and positioning armies for maximum effectiveness.

Resource Management

Efficient use of available military units determines victory or defeat. Players learn to balance aggressive expansion with conservative defense, making every troop deployment decision critical to campaign success.

Operation Guide

Basic Controls

The game uses simple mouse-based controls perfect for both desktop and mobile play:

  • Left Mouse Click : Primary interaction for all game functions
  • Territory Selection : Click on regions to view and manage your forces
  • Unit Deployment : Click bullet indicators to select and command soldiers
  • Combat Initiation : Target enemy territories to begin tactical engagements

Getting Started

  1. Survey the Map : Examine the battlefield and identify your starting territories
  2. Select Your Forces : Click on bullet indicators to choose available military units
  3. Plan Your Strategy : Decide whether to expand aggressively or build defensive positions
  4. Execute Attacks : Target adjacent enemy territories to begin conquest
  5. Manage Resources : Balance troop deployment across multiple fronts

Why Play Compact Conflict

Perfect for Strategy Enthusiasts

This game appeals to players who enjoy tactical thinking and strategic planning. The risk-style mechanics provide familiar gameplay with modern browser-based convenience.

Accessible Yet Challenging

While easy to learn, Compact Conflict offers enough depth to keep experienced strategy gamers engaged. The simple controls mask sophisticated tactical possibilities.

Ideal for Quick Sessions

The compact nature of the game makes it perfect for brief gaming sessions during breaks or extended strategic campaigns when time allows.

Mobile-Friendly Design

The touch-friendly interface works seamlessly across devices, allowing strategic gaming whether at home or on the go.

Educational Value

Players develop critical thinking, strategic planning, and resource management skills while enjoying entertaining gameplay.

Frequently Asked Questions (FAQ)