Hex Empire - Strategic Territory Conquest Game

Seele01-Flash
By
Hex Empire is an engaging turn-based strategy game where you command armies to conquer territories and dominate entire nations. Start with a single territory and expand your empire through tactical warfare and strategic planning.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "**Hex Empire: Mobile Conquest**". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style:** A stylized, "living board game" aesthetic. The map should look like a physical tabletop setup with low-poly assets. * **Map Generation:** Create a procedural hexagonal grid map using `THREE.InstancedMesh` for mobile performance optimization (handling hundreds of hexes efficiently). * **Terrain Types:** Water (flat, blue, slightly transparent), Plains (light green), Forests (dark green), Cities (grey concrete texture with small blocky building models on top), and Ports (coastal hexes with an anchor icon). * **Borders:** Draw thick, glowing colored lines along the edges of hexes to define national borders (Red, Blue, Purple, Green). * **Units:** Represent armies as low-poly, monochromatic soldier pawns or simple tank models. They must be color-coded to match their nation. * **UI/Overlays:** Use `CSS2DRenderer` for crisp text labels on mobile screens to display City Names (e.g., "Warsaw", "Jakarta") and Army Strength numbers above units. * **Camera:** Use an Orthographic Camera angled at 60 degrees (isometric view) to preserve the tactical board game feel. ### 2. Audio Requirements * **BGM:** A rhythmic, military-style marching track with snare drums and brass, looping seamlessly. It should be tense but not distracting. * **Sound Effects:** * **Select:** A crisp, tactile "board piece click" sound. * **Move:** The sound of marching boots or a sliding board piece. * **Attack:** Muted rifle fire or a "thud" impact sound. * **Capture:** A short triumphant trumpet flare or flag-raising sound. * **UI:** Soft distinct clicks for buttons; a "buzzer" sound for invalid moves. ### 3. Gameplay Loop * **Setup:** The game initializes with a random map layout and 4 nations (1 Human, 3 AI). Each nation starts with one Capital City. * **Turn System:** Round-robin turn-based system. The player takes their turn, then the 3 AI nations move instantly. * **Core Mechanic:** * **Movement:** Tap a friendly unit, then tap an adjacent hex to move. * **Combat:** If the adjacent hex contains an enemy, a battle occurs. Calculation: `Attacker Strength vs. Defender Strength`. The winner takes the tile but suffers damage based on the loser's strength. * **Morale:** Winning battles increases unit strength slightly; losing territory decreases global morale. * **Economy:** At the beginning of every turn, all owned Cities spawn new troops or increase the strength of existing troops on them. * **Win/Loss:** Win by conquering 100% of the map. Lose if your last city is captured. ### 4. Mobile Controls & Interaction * **Touch Interaction:** * **Raycasting:** Implement precise Raycaster logic for touch events. Touch start/end detection to distinguish between "Tapping" (selecting a tile) and "Dragging" (moving the camera). * **Camera Controls:** Use `OrbitControls` but restricted: * Disable rotation (keep fixed isometric angle). * Enable Panning (two-finger or one-finger drag depending on state). * Enable Pinch-to-Zoom (with min/max zoom limits to prevent clipping). * **UI Layout:** * **Bottom Action Bar:** A large, thumb-friendly "END TURN" button (at least 60px height) anchored to the bottom right. * **Top Info Bar:** Display current Turn Number and Player Nation status. * **Feedback:** * **Visual:** When a unit is selected, highlight reachable hexes in white. When attacking, flash the tile red. * **Haptic:** Trigger `navigator.vibrate(50)` on valid moves/attacks and `navigator.vibrate([50, 50, 50])` upon city capture 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

Hex Empire is a captivating turn-based strategy game that challenges players to build a mighty empire through territorial conquest. Starting with just one nation under your control, you must strategically expand your dominion by capturing cities, managing armies, and outmaneuvering rival nations. The game features a hexagonal grid system that adds tactical depth to every move, making each decision crucial to your empire's success.

This free browser-based strategy game offers hours of engaging gameplay without requiring any downloads or installations. The game's accessible design makes it perfect for both strategy veterans and newcomers looking to experience the thrill of empire building.

Core Features

Strategic Hexagonal Gameplay

The game utilizes a unique hexagonal movement system that creates more tactical possibilities than traditional square grids. Each hex tile represents strategic territory that you must carefully consider before making your move. This system allows for more realistic military positioning and creates natural chokepoints and strategic advantages.

Multi-Nation Warfare

Face off against three computer-controlled nations, each with their own tactical AI and territorial ambitions. The AI opponents provide varied challenges, adapting their strategies based on your moves and creating dynamic, unpredictable conflicts that keep every campaign fresh and exciting.

Extensive Map Collection

Explore a massive variety of maps, each offering unique geographical challenges and strategic opportunities. From island chains requiring naval dominance to continental landmasses perfect for massive army movements, every map demands different tactical approaches and strategic thinking.

Morale Management System

Success in Hex Empire isn't just about raw military might – keeping your soldiers' morale high is crucial for maintaining an effective fighting force. Happy troops fight harder and remain loyal, while demoralized armies may falter at critical moments. Balance aggressive expansion with proper army management to maintain peak performance.

Flexible Difficulty Options

Choose from three difficulty levels to match your skill level and desired challenge. Whether you're learning the basics of turn-based strategy or seeking a hardcore conquest experience, Hex Empire adapts to provide the perfect level of challenge.

Game Mechanics

Turn-Based Combat System

Every move matters in Hex Empire's methodical turn-based system. Plan your attacks carefully, considering terrain advantages, army positioning, and enemy movements. The turn-based nature allows for deep strategic thinking without time pressure, making it perfect for players who enjoy contemplative gameplay.

Territory Control

Capture and hold key territories to expand your empire's influence. Each conquered city strengthens your position and provides resources for future campaigns. Strategic territory control becomes increasingly important as the map fills with competing empires.

Army Management

Deploy and command your military forces across the hexagonal battlefield. Position troops strategically, maintain supply lines, and coordinate multi-front campaigns to overwhelm your opponents. Effective army management separates successful conquerors from defeated generals.

Operation Guide

Basic Controls

Hex Empire features intuitive point-and-click controls that make commanding your empire straightforward:

  • Left-click : Select units, territories, and execute commands
  • Mouse hover : Preview movement options and territory information
  • Menu navigation : Access game options and strategic overviews

Strategic Planning Tips

  1. Secure borders first - Establish strong defensive positions before aggressive expansion
  2. Monitor morale - Keep your armies happy through successful campaigns and strategic victories
  3. Control key territories - Identify and capture strategically important locations that provide tactical advantages
  4. Plan multi-turn strategies - Think several moves ahead to outmaneuver AI opponents
  5. Balance expansion and defense - Avoid overextending your forces while maintaining growth momentum

Why Play Hex Empire

Perfect Strategy Gaming Experience

Hex Empire delivers pure strategic gameplay without unnecessary complexity. The game focuses on core strategy elements – territorial control, army management, and tactical planning – creating an experience that's both accessible and deeply engaging.

No Barriers to Entry

As a free browser game, Hex Empire eliminates common gaming obstacles. No downloads, no installations, no payment requirements – simply open your browser and start building your empire immediately.

Replayability and Challenge

With multiple difficulty levels, numerous maps, and dynamic AI opponents, Hex Empire offers virtually unlimited replayability. Each campaign presents new challenges and opportunities for strategic experimentation.

Educational Value

Beyond entertainment, Hex Empire develops critical thinking, planning skills, and strategic reasoning. The game serves as an excellent introduction to strategy gaming concepts while providing enough depth to satisfy experienced players.

Cross-Platform Accessibility

Play Hex Empire on any device with a web browser – desktop computers, laptops, tablets, or smartphones. The game's responsive design ensures a smooth experience across all platforms.

Frequently Asked Questions (FAQ)