Ant Colony: New War

Seele01-Flash
By
Ant Colony: New War is an engaging idle strategy game where you build and expand your ant colony through epic battles and resource management. Battle rival colonies in PvP combat while strategically growing your ant army to achieve total dominance.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "**Ant Colony: New War**". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style:** Low-poly, vibrant "Micro-World" aesthetic. Use a Toon Shader (Cell Shading) or high-contrast Lambert materials to make units pop against the background on small screens. The palette should focus on earthy tones (greens, browns) for the terrain and distinct, bright colors for units (Red/Black for Player Ants, Purple/Yellow for Enemy Spiders/Scorpions). * **Camera:** Fixed Isometric or High-Angle Top-Down Orthographic camera (`OrthographicCamera`) to simulate a strategy view. * **Modeling Strategy (Primitives):** Since we are generating code, construct the Ants using grouped `THREE.Mesh` primitives (Spheres for head/abdomen, Capsules for limbs) animated with a simple sine-wave rotation for walking. * **Performance Optimization (Crucial):** Use `THREE.InstancedMesh` for the ants and resource items (leaves, mushrooms). This is mandatory to render hundreds of ants on a mobile browser without dropping below 60 FPS. * **Environment:** A textured ground plane representing a forest floor (dirt/grass mix). Add simple environmental clutter like pebbles or twigs as static meshes. * **Lighting:** One main Directional Light (Sun) casting soft shadows, and a Hemisphere Light (Sky/Ground) to prevent pitch-black shadows. ### 2. Audio Requirements * **BGM:** A playful, rhythmic "Marching" track using pizzicato strings and woodwinds to simulate a busy, miniature insect world. It should be looped and unobtrusive. * **Sound Effects (SFX):** * **UI:** A satisfying "Pop" or "Bubble" sound for clicking buttons. * **Collection:** A high-pitched "Crunch" or "Leaf rustle" when a resource is deposited. * **Combat:** "Chitin clicking" sounds and tiny thuds for attacks. * **Ambience:** Subtle wind noise and distant nature sounds. ### 3. Gameplay Loop * **State 1: Colony Management (Idle Phase):** * Worker ants automatically move between "Source" (Leaf/Mushroom piles) and "Base" (Anthill). * Each successful trip increments the `Food` resource. * Player clicks UI buttons to spend `Food` to spawn more Workers or Soldiers. * **State 2: Battle Phase (Active Phase):** * Player initiates a "Raid" button. * The camera pans to a Battle Arena. * Player's Soldier Ants and Enemy Creatures (Spiders/Beetles) spawn on opposite sides. * **Auto-Battle Logic:** Units automatically find the nearest enemy and reduce their HP bar. * **Win Condition:** All enemy units destroyed. Reward: Large Resource Bonus + Ranking Points. * **Loss Condition:** All player units destroyed. * **Progression:** Simple incremental logic. Cost of new ants increases exponentially (`Cost = Base * 1.15 ^ Count`). ### 4. Mobile Controls & Interaction * **Screen Orientation:** **Portrait Mode (Vertical)** is preferred for one-handed idle play. * **Input System:** * **Raycaster:** Implement a `Raycaster` on `touchstart` events to allow users to tap on resources to speed up gathering (manual clicker mechanic). * **UI Overlay:** Use a responsive HTML/CSS overlay on top of the Canvas. * **Bottom Navigation:** A fixed bottom bar (min-height 60px) containing big buttons: "Spawn Worker", "Spawn Soldier", "Fight!". * **Feedback:** * **Haptic:** Trigger `navigator.vibrate(50)` on button presses or resource collection if supported. * **Floating Text:** When resources are gained, animate a `+1` text sprite floating upwards from the anthill and fading out. * **Visual Selection:** Highlight units with a glow outline or selection ring when tapped. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

Ant Colony: New War is a captivating idle strategy game that puts you in command of your very own ant colony. This free-to-play browser game combines elements of resource management, strategic warfare, and idle gameplay mechanics to create an addictive gaming experience. Starting with a small colony, you'll gradually build an unstoppable ant empire through clever tactics and persistent growth.

The game features stunning visuals showcasing detailed ant warriors and vibrant natural environments. With its intuitive interface and engaging progression system, players of all skill levels can enjoy building their colony from humble beginnings to a mighty fortress.

Core Features

Epic Colony Building

Transform your modest ant hill into a thriving metropolis. Strategically expand your territory, construct specialized chambers, and optimize your colony's layout for maximum efficiency. Every decision impacts your colony's growth potential and combat effectiveness.

Intense PvP Battles

Engage in thrilling battles against real players from around the world. The competitive ranking system tracks your performance, allowing you to climb the global leaderboards and prove your strategic superiority. Each victory brings valuable resources and prestigious rewards.

Resource Management Strategy

Master the art of resource collection by deploying worker ants to gather mushrooms, leaves, and berries. These essential supplies fuel your colony's growth and enable you to recruit powerful warrior ants. Balancing resource production with military expansion is key to success.

Diverse Ant Army Units

Recruit and command various types of specialized ant warriors, each with unique abilities and combat roles. From swift scouts to heavy assault units, building the perfect army composition requires strategic thinking and tactical expertise.

Idle Progression System

Enjoy continuous progress even when offline. Your worker ants continue collecting resources and your colony keeps growing, ensuring you always return to meaningful advancement and new opportunities.

Game Mechanics

Battle System

Combat in Ant Colony: New War is strategically automated, focusing on preparation rather than real-time control. Success depends on having a well-balanced army and sufficient resources before engaging enemies. Victory rewards include resources, new unit types, and ranking points.

Territory Expansion

Explore vast territories filled with opportunities and challenges. Each new area offers unique resources and presents different tactical scenarios. Expanding your influence across multiple territories increases your colony's power and unlocks advanced gameplay features.

Operation Guide

Getting Started

  1. Launch your first battle - Begin with small skirmishes to learn combat mechanics
  2. Recruit worker ants - Deploy collectors to gather essential resources
  3. Build your army - Use resources to recruit warrior ants and strengthen your forces
  4. Expand territory - Claim new areas to access better resources and strategic positions
  5. Challenge players - Test your colony against real opponents in PvP battles

Controls

  • Mouse Click : Navigate menus and interact with all game elements
  • Left Click : Select units, buildings, and execute commands
  • Interface Navigation : Use intuitive point-and-click controls throughout

Strategic Tips

  • Prioritize resource collection in early game phases
  • Balance worker ants and warrior recruitment
  • Study opponent colonies before attacking
  • Upgrade key units for maximum combat effectiveness

Why Play Ant Colony: New War

Perfect for Strategy Enthusiasts

This game offers deep strategic gameplay without requiring constant attention. The idle mechanics allow busy players to progress while the competitive elements satisfy those seeking challenge and achievement.

Free and Accessible

Completely free to play with no downloads required. Simply open your browser and start building your ant empire immediately. The game runs smoothly on both desktop and mobile devices.

Active Community

Join thousands of players worldwide in this competitive ecosystem. The global ranking system and PvP battles create a dynamic, ever-changing gaming environment where every match brings new challenges.

Continuous Updates

Regular content updates ensure fresh gameplay experiences with new features, units, and strategic possibilities constantly being added to keep the game engaging.

Frequently Asked Questions (FAQ)