Imperium - Strategic Empire Building Game

Seele01-Flash
By
Imperium is a comprehensive strategy game that combines city building, resource management, and tactical warfare. Start with a single building and expand your empire across vast territories through strategic planning and conquest.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "Imperium: Mobile Conquest". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style:** 3D Low-poly aesthetic with an Isometric perspective (OrthographicCamera). The look should be "Retro Strategy" — clean, bright colors reminiscent of the 2008 original but modernized with 3D geometry. * **Terrain System:** A grid-based map (TileMap) consisting of distinct biomes: Grassland (buildable), Water (impassable), Mountains (Iron resource), and Forests (Wood resource). * **Structures:** * **Town Hall:** The central hub (loss condition if destroyed). * **Lumber Mill:** Must be placed adjacent to Forest tiles. * **Iron Mine:** Must be placed adjacent to Mountain tiles. * **Barracks:** Spawns military units. * **Visual Feedback:** * Selected tiles should have a glowing highlight selection box. * Valid placement indicators: Green ghost mesh for valid spots, Red for invalid. * Simple particle effects for construction completion and battle impacts. * **Mobile Optimization:** Use `InstancedMesh` for terrain tiles and vegetation to maintain high FPS on mobile devices. Keep geometry simple (BoxGeometry, CylinderGeometry, ConeGeometry). ### 2. Audio Requirements * **BGM:** A looping, rhythmic orchestral march (snare drums and brass) that conveys a sense of empire-building and productivity. * **Sound Effects (SFX):** * **UI/Interaction:** A crisp "wood block" click sound for selecting buildings. A "thud" for placing structures. * **Environment:** Subtle wind and bird chirps when idle. * **Action:** "Sawing" sound when Lumber Mill is built, "Pickaxe" clink for Iron Mine. * **Combat:** muffled sword clashes or arrow "thwips" when units engage. ### 3. Gameplay Loop * **Resource Economy:** * The player starts with a Town Hall and limited Gold/Wood. * **Placement Logic:** The core mechanic is adjacency. The code must validate that Lumber Mills are `distance <= 1` from a Tree tile, and Mines are near Mountains. * Buildings generate resources over time (e.g., +5 Wood every 3 seconds). * **Expansion & War:** * Players use resources to build Barracks and train Units. * Units move automatically towards the nearest Enemy Structure or Unit (simplified RTS AI). * **Win Condition:** Destroy the Enemy Town Hall. * **Lose Condition:** Player's Town Hall is destroyed. * **Difficulty:** As tagged "Hard", resource generation should be slow, and enemy waves should scale up in frequency over time. ### 4. Mobile Controls & Interaction * **Camera Control:** * **Pan:** One-finger drag to move the camera across the map. * **Zoom:** Two-finger pinch to zoom in/out. * **Limit:** Clamp camera movement to map boundaries. * **Touch Interaction:** * **Raycasting:** Implement precise Raycaster logic for touch events to detect tile selection. * **Tap:** Tap a tile to select it. If a building is selected from the UI, tap a valid tile to place it. * **UI Layout (Mobile-First):** * **Bottom Bar:** A horizontal scrollable container (height: 80px) holding building icons. Icons must be at least 44x44px for touch targets. * **Top Bar:** Resource counters (Gold, Wood, Iron) and Population count. * **Haptic Feedback:** Trigger `navigator.vibrate(10)` on successful building placement or button clicks. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

Imperium is a free-to-play strategy game that challenges players to build and expand their own empire from the ground up. With a solid 3.9/5 rating, this engaging strategy experience combines multiple gameplay elements including city building, resource management, tower defense, and territorial conquest. The game offers a perfect blend of peaceful development and strategic warfare, making it ideal for players who enjoy complex, multi-layered strategy experiences.

Core Features

Complete Empire Management System

Imperium offers a comprehensive empire-building experience where every decision matters. Start with a single structure and gradually expand your influence across the map through careful planning and strategic resource allocation.

Strategic Resource Management

Success in Imperium depends on efficiently managing various resources. Construct lumber mills near forests, establish iron mines near mineral deposits, and create a balanced economy that can support both peaceful expansion and military campaigns.

Tactical Warfare and Conquest

Once your empire is established, engage in strategic warfare to expand your territory. Create military units, plan tactical attacks, and conquer neighboring empires to become the ultimate ruler of the land.

Mouse-Driven Gameplay

The intuitive mouse-controlled interface makes empire management accessible while maintaining strategic depth. Simply point, click, and drag to construct buildings, manage resources, and command your forces.

Game Mechanics

Building and Construction System

Every structure in Imperium serves a specific purpose in your empire's growth. Carefully plan your city layout, considering resource requirements and strategic positioning for optimal efficiency.

Resource Collection Network

Establish efficient resource collection systems by placing buildings strategically near natural resources. Lumber mills must be positioned near forests, while iron mines require proximity to iron deposits for maximum productivity.

Military Unit Creation

As your empire grows, invest in military units to protect your territory and expand through conquest. Balance economic development with military strength to achieve lasting dominance.

Operation Guide

Basic Controls

  • Mouse Selection : Click to select buildings and units
  • Construction Placement : Drag and drop buildings onto suitable land plots
  • Resource Management : Monitor and allocate resources through the interface
  • Unit Commands : Direct military units with simple mouse clicks

Strategic Tips

  • Plan your city layout carefully, considering resource proximity
  • Balance economic development with military preparation
  • Expand gradually to maintain resource sustainability
  • Study neighboring empires before launching attacks

Why Play Imperium

Imperium stands out in the strategy game genre by offering a perfect balance of city building, resource management, and tactical combat. The game's free-to-play model means you can experience the full empire-building journey without any cost. Whether you prefer peaceful development or aggressive expansion, Imperium adapts to your strategic preferences while challenging you to become the ultimate imperial ruler.

The game's combination of Strategy, Tycoon, Tower Defense, and War elements creates a unique gaming experience that keeps players engaged for hours. With its intuitive controls and deep strategic gameplay, Imperium offers both accessibility for newcomers and complexity for veteran strategy enthusiasts.

Frequently Asked Questions (FAQ)