World Wars 2

Seele01-Flash
By
World Wars 2 is an immersive strategy war game where you command armies to conquer territories and defeat up to 7 CPU nations. Use tactical cards, strategic planning, and cunning warfare to become the last army standing.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "World Wars 2: Pocket Strategy". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style:** Create a "Living Board Game" aesthetic. The map should look like a tactical war room table. Use a **Low-Poly, Toon-Shaded (Cel-shaded)** art style to mimic the cartoon illustration from the original Flash game. * **Map Generation:** Generate a map composed of irregular polygonal regions (simulating countries/territories), similar to a Voronoi diagram. Each region must be a distinct mesh capable of changing color based on the owning faction. * **Units:** Instead of complex character models, use stylized "game pieces" or tokens to represent armies (e.g., a single Tank model or Soldier model scaled by the number of troops). * **Visual Feedback:** High-contrast borders between territories. When a territory is selected, it should pulse or glow. When a battle occurs, display a "smoke" particle effect and floating damage numbers. * **Mobile Optimization:** Use `InstancedMesh` for rendering multiple army tokens to maintain high FPS. Limit real-time shadows; use baked ambient occlusion for the map texture to save battery. ### 2. Audio Requirements * **BGM:** A looping, orchestral military march—upbeat but tense (snare drums, brass section). It should fade slightly when a battle animation plays. * **Sound Effects (SFX):** * **UI:** A satisfying "Card Flip" sound when selecting cards. A mechanical "Click" for buttons. * **Interaction:** A "Thud" or "stamp" sound when placing troops or conquering a territory. * **Combat:** Machine gun fire and small explosion sounds during attack phases. * **Victory/Defeat:** A short trumpet fanfare for victory; a slowing-down low-pitch horn for defeat. ### 3. Gameplay Loop * **Turn-Based System:** Implement a round-robin system handling 1 Human Player vs 1 to 7 CPU AI opponents. * **Phase Structure:** 1. **Reinforcement:** At the start of the turn, the player receives new troops based on territory count. 2. **Action Phase:** Player can Select "Attack" (target adjacent enemy) or Play Cards (from a hand). * **Combat Logic:** Simple dice-roll or probability logic (Attacker Strength vs Defender Strength). If Attacker wins, they take the territory and move surviving troops there. 3. **End Turn:** Player presses a button to pass control to the AI. * **Card System:** Implement a deck array containing: * *Reinforce Card:* Adds extra troops to a selected territory. * *Airstrike Card:* Reduces enemy troop count in a target territory without risking own troops. * *Defense Buff:* Increases defense roll bonus for one turn. * **Win/Loss Condition:** Game ends when one player owns all territories (Win) or the human player loses all territories (Loss). ### 4. Mobile Controls & Interaction * **Camera Control:** Implement `OrbitControls` with restricted polar angles (prevent going below the map) and clamped zoom levels. Allow single-finger drag to pan and two-finger pinch to zoom. * **Touch Interaction:** * Use `Raycaster` for all map interactions. * **Tap:** Select own territory (highlight green). * **Tap (Target):** Select adjacent enemy territory (highlight red) to initiate an attack. * **UI Layout (Responsive):** * **Top Bar:** Displays current Turn info and Player Stats (Total Troops/Territories). * **Bottom Card Dock:** A horizontal scrollable container (CSS `overflow-x: scroll`) holding the strategy cards. Cards must be at least 60px wide for easy tapping. * **Action Buttons:** A large "End Turn" button (bottom-right) and a "Skip Animation" toggle (top-right), ensuring they are outside the standard "thumb dead zone." * **Haptic Feedback:** Trigger `navigator.vibrate(50)` on valid selections and `navigator.vibrate([30, 50, 30])` when a territory is conquered. 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 a compelling strategy war game that puts you in command of an entire army in an epic battle for global domination. This free-to-play browser game challenges you to outsmart and outmaneuver up to 7 computer-controlled nations in an intense free-for-all warfare scenario. With its engaging tactical gameplay and strategic depth, World Wars 2 offers hours of challenging military strategy entertainment.

The game combines classic territory conquest mechanics with innovative card-based tactics, creating a unique blend of strategic planning and tactical execution. Every decision matters as you expand your empire, manage resources, and engage in calculated warfare to achieve ultimate victory.

Core Features

Strategic Army Command

Take full control of your military forces and make crucial decisions that determine the fate of your nation. Deploy units strategically across territories, plan multi-front campaigns, and adapt your tactics based on enemy movements and battlefield conditions.

Tactical Card System

Utilize a sophisticated card-based system that adds layers of strategy to traditional warfare: - Attack Cards : Enhance your offensive capabilities with powerful strike options - Defense Cards : Fortify your positions and protect key territories - Utility Cards : Access special tactics including devastating airstrikes and strategic maneuvers - Tactical Flexibility : Combine different card types to create complex battle strategies

Multi-Nation Warfare

Engage in epic battles against up to 7 AI-controlled nations, each with their own strategic patterns and territorial ambitions. The dynamic AI ensures that no two games play the same way, providing endless replayability and strategic challenges.

Territory Conquest Mechanics

Expand your empire by conquering adjacent territories and building a formidable military presence. Each territory conquered strengthens your position and provides additional strategic options for future campaigns.

Game Mechanics

Strategic Gameplay Loop

World Wars 2 follows an intuitive turn-based system where planning and execution are equally important:

  1. Planning Phase : Analyze the battlefield and identify strategic opportunities
  2. Unit Selection : Choose which military units to deploy for attacks
  3. Card Strategy : Select and utilize tactical cards to enhance your moves
  4. Execution : Launch coordinated attacks on enemy territories
  5. Defense Preparation : Fortify positions and prepare for enemy counterattacks

Victory Conditions

The ultimate goal is simple yet challenging: be the last army standing. This requires a combination of aggressive expansion, defensive positioning, and strategic resource management. Victory comes to those who can balance offensive operations with defensive stability.

Operation Guide

Basic Commands

  • Unit Selection : Click or tap any unit you want to use for an attack
  • Territory Targeting : Click or tap an adjacent enemy territory to initiate combat
  • Card Activation : Select cards from the bottom screen interface before choosing units
  • Turn Management : Use the "End Turn" button to finalize your strategic moves
  • Animation Control : Click "Skip" to bypass battle animations for faster gameplay

Advanced Tactics

  • Card Timing : Learn when to use offensive versus defensive cards for maximum impact
  • Territory Priority : Focus on strategically valuable territories that provide tactical advantages
  • Resource Management : Balance aggressive expansion with defensive consolidation
  • Multi-Front Strategy : Coordinate attacks across multiple fronts to overwhelm opponents

Strategic Tips

  • Plan several moves ahead to anticipate enemy responses
  • Use defensive cards to protect newly conquered territories
  • Combine attack cards with unit positioning for devastating offensive combinations
  • Monitor enemy movements to identify weaknesses in their defensive lines

Why Play World Wars 2

Accessibility and Convenience

  • Completely Free : Full access to all features without any payment requirements
  • No Downloads : Instant play through any modern web browser
  • Cross-Platform : Compatible with desktop computers, tablets, and mobile devices
  • Quick Sessions : Perfect for both short tactical skirmishes and extended strategic campaigns

Strategic Depth

  • Complex Decision Making : Every move requires careful consideration of multiple factors
  • Adaptive AI : Computer opponents provide challenging and varied gameplay experiences
  • Replayability : Randomized scenarios and AI behaviors ensure unique battles every time
  • Skill Development : Improve your strategic thinking and tactical planning abilities

Perfect for Strategy Enthusiasts

Whether you're a seasoned strategy game veteran or new to the genre, World Wars 2 offers an ideal balance of accessibility and depth. The game's intuitive interface makes it easy to learn the basics, while the sophisticated tactical systems provide the complexity that strategy enthusiasts crave.

Experience the thrill of commanding armies, the satisfaction of outmaneuvering opponents, and the excitement of achieving total victory in this exceptional strategy war game. Every battle is a test of your strategic acumen and tactical prowess.

Frequently Asked Questions (FAQ)