World Wars 2 - Strategic War Game

Seele01-Flash
By
World Wars 2 is an engaging strategic war game where you command armies to conquer territories across various maps. Plan tactical attacks, manage resources, and outsmart AI opponents in this thrilling sequel.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "World Wars 2: Tabletop Tactics". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style:** "Digital Board Game" / "War Room" aesthetic. The game should look like a stylized 3D tactical map spread out on a wooden Commander's table. * **Map Generation:** Use a **Voronoi diagram** or a Hexagonal grid to procedurally generate a map divided into distinct territories. Each territory should be slightly extruded to look like a puzzle piece. * **Color Coding:** * **Player:** Blue (low-poly material, matte finish). * **Enemy AI:** Red (and Green/Yellow if multiple enemies). * **Neutral/Unclaimed:** Grey. * **Unit Representation:** Instead of high-poly soldiers, use simple **"Stackable Chips" or "Toy Soldier Tokens"** (InstancedMesh for performance) placed in the center of each territory. * **Text Labels:** Use `THREE.Sprite` or HTML overlays to clearly display the **Unit Count** (Dice Count) floating above each territory. * **Performance:** Use Low-poly geometry. Limit dynamic lights to one DirectionalLight (Sun) and an AmbientLight. Use simple colors rather than heavy textures. ### 2. Audio Requirements * **BGM:** A looping, suspenseful military march (snare drums, low brass) that evokes a "strategic planning" atmosphere. * **Sound Effects (SFX):** * **Selection:** A crisp "paper map" rustle or a wooden click when tapping a territory. * **Combat/Dice:** The sound of dice shaking and rolling on wood. * **Attack:** A distant artillery thud or rifle volley sound. * **Conquest:** A triumphant brass sting when a territory is captured. * **UI:** Mechanical typewriter sounds for button clicks. ### 3. Gameplay Loop * **Setup:** The map is generated and territories are randomly assigned to Player and AI. Each territory starts with a random number of units (1-8). * **Turn Structure:** 1. **Reinforce:** At the start of the turn, the player receives bonus units based on connected territories held. 2. **Attack Phase:** * Player taps their territory (Source) -> Taps adjacent enemy territory (Target). * **Dice Logic:** Both sides roll dice equal to their unit count. High total score wins. * **Result:** If Attacker wins, the enemy units are destroyed, and the Attacker moves units into the new territory (leaving 1 behind). If Defender wins, Attacker loses all but 1 unit. 3. **Card System:** A simple "Card Deck" mechanic (Bonus Reinforcements, Air Strike) available in the UI to boost odds. 4. **End Turn:** Player clicks "End Turn," and the AI executes its attacks sequentially. * **Win/Loss:** Eliminate all enemy colors to win. Lose all territories to lose. ### 4. Mobile Controls & Interaction * **Camera:** `OrbitControls` restricted to a high-angle top-down view (Azimuth angle clamped to prevent looking under the table). Support Pinch-to-Zoom and One-finger Pan. * **Input:** Use `THREE.Raycaster` for accurate touch detection on 3D map territories. * **Tap:** Select territory. * **Double Tap:** Confirm attack (to prevent accidental moves on small screens). * **UI Layout:** * **Top Bar:** displaying "Turn: Player/AI" and "Territories Controlled %". * **Bottom Bar:** Large, thumb-friendly buttons (minimum 60px height) for "End Turn" and "Cards". * **Dice Overlay:** During combat, show a visual 2D overlay of dice rolling to provide immediate visual feedback. * **Feedback:** Trigger the device's **Haptic Feedback** (Vibration) when dice are rolled and when a battle is won/lost. Highlight valid target territories with a glowing outline shader when a source territory is selected. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

World Wars 2 is the highly anticipated sequel to the popular strategic war game that has captivated strategy enthusiasts worldwide. With a solid 4.2/5 rating, this free online strategy game challenges you to become a master tactician as you fight for territorial dominance across multiple battlefields.

In this turn-based strategy experience, your primary objective is to gain as much territory as possible while defending your existing bases from enemy attacks. The game combines classic Risk-style gameplay with modern strategic elements, creating an engaging experience that keeps you coming back for more conquests.

Core Features

Strategic Territory Conquest

The heart of World Wars 2 lies in its territorial control mechanics. Each map presents unique challenges and opportunities for expansion. Your success depends on careful planning and strategic thinking as you decide which territories to attack and which to defend.

Customizable Battle Settings

Choose your own adventure by selecting how many AI armies you want to face simultaneously. This flexibility allows both beginners and experienced strategists to find their perfect challenge level. You can also select from pre-designed maps or opt for randomized battlefields for endless variety.

Dice-Based Combat System

Combat resolution uses a dice-rolling mechanism where the numbers on each territory represent both unit count and combat strength. This adds an element of chance to your strategic decisions, making each battle exciting and unpredictable.

Strategic Card System

Discover powerful advantage cards at the bottom of your screen that can turn the tide of battle. These special cards provide tactical bonuses and strategic advantages that can help you overcome seemingly impossible odds.

Multiple Map Options

Experience diverse battlefields with different layouts and strategic challenges. Each map requires unique approaches and tactical considerations, ensuring that no two games feel the same.

Game Mechanics

Turn-Based Strategic Combat

World Wars 2 operates on a turn-based system where careful planning is essential. Once you end your turn, you become vulnerable to enemy attacks, so positioning and timing are crucial elements of success.

Army Management

Manage your military units across different territories, deciding how to distribute your forces for maximum effectiveness. Adjacent territories provide strategic advantages, making territorial control patterns vital to your success.

Victory Conditions

Win by achieving total map domination or by controlling key strategic territories. The game rewards both aggressive expansion and defensive positioning strategies.

Operation Guide

Basic Controls

  • Mouse Click : Select your troops by clicking on your territories
  • Target Selection : Click on enemy territories you wish to attack
  • Map Selection : Choose between custom maps or randomized battlefields
  • Army Configuration : Set the number of AI opponents before starting

Strategic Tips

  • Position your territories adjacent to each other for easier defense
  • Pay attention to unit numbers on each territory before attacking
  • Use advantage cards strategically to maximize their impact
  • Plan multiple moves ahead to avoid leaving yourself vulnerable

Game Setup

  1. Select your preferred map layout or choose random generation
  2. Choose the number of AI armies to face (affects difficulty)
  3. Review your starting territories and plan your expansion strategy
  4. Begin your conquest by selecting troops and targets

Why Play World Wars 2

Perfect Strategy Challenge

This game offers the ideal balance between strategic depth and accessibility. Whether you're new to strategy games or a seasoned veteran, World Wars 2 provides engaging gameplay that scales with your skill level.

Free and Accessible

Enjoy complete access to all features without any cost. Play directly in your browser without downloads or installations, making it perfect for quick strategy sessions or extended gaming marathons.

Endless Replayability

With randomized maps, multiple difficulty levels, and various strategic approaches, every game offers a fresh challenge. The combination of tactical planning and chance-based combat ensures that no two battles are identical.

Skill Development

Improve your strategic thinking, tactical planning, and risk assessment skills while having fun. The game rewards careful consideration and punishes reckless moves, making you a better strategist with each playthrough.

Frequently Asked Questions (FAQ)