Empire City - Build Your Ancient Empire

Seele01-Flash
By
Empire City is a captivating city building and management game where you construct and govern a thriving ancient empire from scratch. Build magnificent cities, develop resources, and create a unique civilization through strategic planning.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "Empire City". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Camera & Perspective:** Use an **OrthographicCamera** positioned isometrically (e.g., position at 20, 20, 20 looking at 0, 0, 0) to mimic the classic 2.5D city-builder look shown in the reference. * **Visual Style:** Low-poly, vibrant "Ancient Rome/Classical" aesthetic. Textures should be high-saturation (bright greens for grass, terra-cotta reds for roofs, beige for stone). * **Terrain:** A tile-based grid system (Infinite plane divided into distinct 1x1 unit tiles). * **Ground:** Texture atlas containing Grass, Dirt Road, and Water tiles. * **Water Shader:** Simple blue plane with scrolling UVs and white rim foam to simulate flow (low computational cost). * **Key Models (Low Poly):** * *Residential:* Small square houses with red tiled roofs (LOD: <300 tris). * *Industrial:* Clay Quarry (rocks/crane), Workshops, and a large centerpiece Watermill with a rotating wheel animation. * *Nature:* Simple billboards or low-poly meshes for Fruit Trees and Pine Trees. * *Citizens:* Very simple capsule-shaped agents or low-poly humans walking along the Dirt Roads. * **Performance:** Use `InstancedMesh` for repetitive elements like trees, wheat stalks, and road tiles to reduce draw calls. Use baked ambient occlusion in textures rather than real-time shadow casting if possible. ### 2. Audio Requirements * **BGM:** A calm, looping orchestral track featuring flutes, harps, and light percussion to evoke an "Ancient Civilization" atmosphere. * **Sound Effects (SFX):** * *UI:* Crisp "wood block" click sounds for menu interactions. * *Construction:* A "dust cloud" sound + hammer tapping when a building is placed. * *Collection:* A satisfying high-pitched "pop" or "coin jingle" when collecting resources (Clay/Mixture). * *Environment:* faint looping sound of rushing water near the river and birds chirping. ### 3. Gameplay Loop * **Economy & Resources:** * Player starts with basic currency (Gold) and materials (Clay). * **Production Cycle:** Click Quarry -> Wait X seconds -> Floating Icon appears -> Click Icon to Collect Clay. * **Building Mechanics:** * **Grid Placement:** Buildings snap to the grid. Valid placement shows green highlight; invalid (collision) shows red. * **Road Dependency:** Logic check: Buildings must be adjacent to a "Road" tile to function. * **Upgrade System:** * Select a House -> Check if Player has enough "Clay" -> Upgrade visual model (e.g., add a second floor). * *Speed-up:* Implement a "Gem" button to instantly finish production timers. * **State Machine:** Idle State -> Build Mode (Roads/Houses) -> Selection State (Upgrade/Info). ### 4. Mobile Controls & Interaction * **Camera Controls:** * **One-finger drag:** Pan the camera across the map (XZ plane). * **Two-finger pinch:** Zoom in/out (adjust Orthographic camera zoom). * **Interaction (Raycasting):** * **Tap:** Select building or collect floating resource icons. * **Long Press:** Enter "Move/Edit" mode for a building. * **UI Layout (HTML Overlay):** * Bottom bar: Large, thumb-friendly buttons (64x64px min) for "Build", "Roads", "Quests". * Top right: Resource counters (Gold, Clay, Gems). * **Feedback:** * **Haptic:** Trigger `navigator.vibrate(50)` on successful building placement or resource collection. * **Visual Tweening:** When a building is placed, it should scale up from 0 (Scale 0->1 using a bounce easing function) for a playful, "juicy" feel. Floating text (+1 Clay) should float up and fade out upon collection. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About Empire City

Empire City is an engaging strategy and management game that puts you in control of building an entire ancient civilization from the ground up. Set in classical antiquity, this browser-based city builder challenges you to transform empty land into a bustling empire complete with residential areas, workshops, waterways, and magnificent structures.

With helpful advisors Julia and Flavius guiding your journey, you'll learn the intricacies of urban planning, resource management, and strategic decision-making. The game combines casual accessibility with deep strategic gameplay, making it perfect for both newcomers to the genre and experienced city builders.

Core Features

Complete City Building Experience

Start with a blank slate and construct every aspect of your empire, from basic roadways to grand monuments. The game offers comprehensive building mechanics that let you design your city layout according to your strategic vision.

Resource Management and Production

Develop complex supply chains by mining clay, producing building materials, and managing workshops. Strategic resource allocation is crucial for expanding your empire and upgrading structures.

Expert Advisor System

Julia, the knowledgeable innkeeper, and Flavius, the skilled architect, provide ongoing guidance throughout your empire-building journey. Their tutorials and advice help you master the game's mechanics while adding personality to the experience.

Progressive Gameplay

Advance from simple residential buildings to complex multi-story structures. Unlock new building types, upgrade existing facilities, and expand your influence across the landscape.

Cross-Platform Accessibility

Play seamlessly across desktop and mobile browsers without any downloads required. The game is optimized for both mouse and touch controls, ensuring smooth gameplay on any device.

Game Mechanics

Construction and Upgrading

Every building must be connected to roads, creating strategic planning challenges as you expand. Upgrade houses to accommodate more citizens, and construct specialized workshops to produce advanced materials like clay mixture.

Trade and Diplomacy

Engage in diplomatic relations and trade agreements to expand your empire's influence. Make historic discoveries and build wonders that will define your civilization's legacy.

Cultural Development

Create a unique culture for your empire through your building choices and strategic decisions. Each playthrough offers different paths to greatness.

Operation Guide

Basic Controls

  • Left Mouse Button : Primary interaction for all game elements
  • Click and Drag : Navigate the game world and select building locations
  • Menu Navigation : Access building options, resources, and advisor guidance

Getting Started

  1. Follow Julia and Flavius through the comprehensive tutorial
  2. Build your first road and residential building
  3. Establish resource production by repairing the clay quarry
  4. Connect production sites to your city with roads
  5. Collect resources and upgrade buildings progressively

Advanced Strategies

  • Plan road networks efficiently to minimize construction costs
  • Balance residential, commercial, and industrial development
  • Prioritize resource production to support continuous expansion
  • Use gems strategically to accelerate critical projects

Why Play Empire City

Empire City offers the perfect blend of strategic depth and casual accessibility. Whether you're a fan of city builders, strategy games, or management simulations, this game provides hours of engaging gameplay. The charming ancient setting, helpful advisor characters, and progressive difficulty curve make it an ideal choice for players seeking a rewarding city-building experience.

The game's free-to-play model with optional premium perks ensures that all players can enjoy the full experience while choosing their level of investment. With regular updates and cross-platform support, Empire City continues to evolve and improve the player experience.

Frequently Asked Questions (FAQ)