Imperia Online - Medieval Empire Building MMO

Seele01-Flash
By
Imperia Online is an immersive medieval MMO strategy game where you build and expand your empire from a small village to a dominant world power. Master resource management, tactical warfare, and diplomatic strategy in this deep multiplayer experience.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "Imperia Online: Pocket Empire". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style**: Stylized **Low-Poly Medieval**. The aesthetic should be bright and readable on small mobile screens, avoiding muddy textures. Use flat shading for a clean look. * **Camera Perspective**: Fixed **Isometric Camera** (OrthographicCamera) set at a 45-degree angle to simulate the classic RTS view. * **Map Generation**: A grid-based terrain system (green planes for grass). * **Key Assets**: * **Town Hall**: The central hub, distinct with a blue roof or flags. * **Resource Nodes**: Farm (wheat field visualization), Lumber Mill (wood piles), Iron Mine (rocky outcrop). * **Military**: Barracks (training dummy outside). * **Decorations**: Low-poly trees and rocks used to border the buildable area. * **Mobile Optimization**: Use `THREE.InstancedMesh` for repetitive elements like trees, ground tiles, and walls to minimize draw calls. Limit shadow casting to the main directional light only. ### 2. Audio Requirements * **Background Music (BGM)**: A looping, majestic orchestral track featuring brass and strings to evoke a sense of empire-building and grandeur. * **Sound Effects (SFX)**: * **UI Interaction**: Heavy wooden "thud" for opening menus, metallic "clink" for confirming upgrades. * **Gameplay**: "Hammering" sound when a building is constructed. "Marching footsteps" when troops are trained. * **Ambience**: Subtle wind and birds chirping when the player is idle. ### 3. Gameplay Loop * **Resource Management**: The player starts with a Town Hall and basic resources (Gold, Wood, Iron, Food). Resources generate passively over time based on the number of resource buildings owned. * **Building & Upgrading**: * Player taps empty grid tiles to build structures (Farm, Mill, Barracks). * Building takes X seconds to complete (simulate with a progress bar above the tile). * **Army Training**: Tapping the Barracks opens a menu to spend resources to train "Infantry" or "Archers". * **Simulation Goal**: Increase "Empire Power" score by constructing buildings and amassing an army. * **Win/Loss**: There is no game over; it is an endless idle/incremental strategy loop suitable for casual mobile play. ### 4. Mobile Controls & Interaction * **Touch Navigation**: * **Pan**: One-finger drag to move the camera across the map. * **Zoom**: Two-finger pinch to zoom in/out (limit zoom range to keep assets visible). * **Object Selection**: Use `THREE.Raycaster` mapped to `touchstart` events. Tapping a building selects it and highlights it with a glowing outline or bounding box. * **UI Layout**: * **HUD**: Top bar displaying resources (Gold, Wood, Food) with large, readable text. * **Action Menu**: A bottom sheet or floating modal that appears when a tile is selected (e.g., "Upgrade", "Train", "Info"). Buttons must be at least **48x48px** for touch accessibility. * **Feedback**: * Visual: Buildings should "pop" (scale up/down slightly) when placed. * Haptic: Trigger `navigator.vibrate(50)` on successful building placement or button clicks if supported. * **Orientation**: Force **Landscape Mode** logic for the UI layout (widescreen adaptation). Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

Imperia Online is a sophisticated medieval empire-building MMO that challenges players to rise from humble beginnings to become rulers of vast empires. Set in a brutal medieval world of conquest and diplomacy, this free-to-play strategy game combines deep resource management with tactical combat and multiplayer interaction. With a solid 3.4/5 player rating, Imperia Online offers a rich gaming experience that rewards both strategic thinking and long-term planning.

Unlike simple city builders, Imperia Online presents a complex web of economic, military, and diplomatic challenges that require careful balance and strategic foresight to master.

Core Features

Comprehensive Empire Management

Start with a modest village and transform it into a sprawling empire through careful resource allocation and strategic development. Manage essential resources like food, water, and materials while balancing economic growth with military expansion.

Advanced Military System

Build and customize your armies with diverse unit types including infantry, archers, and elite knights. Each unit type offers unique tactical advantages, and strategic unit composition becomes crucial for victory in battles against other players.

Real Multiplayer Competition

Engage with thousands of other players in a persistent online world where alliances, betrayals, and conquests shape the political landscape. Form diplomatic relationships or wage war - the choice is yours.

Deep Strategic Gameplay

Every decision matters in Imperia Online. From resource allocation to military deployments, from diplomatic negotiations to territorial expansion, success requires mastering multiple interconnected game systems.

Persistent World Progression

Your empire continues to develop even when you're offline, with automated systems managing basic functions while you plan your next strategic moves.

Game Mechanics

Resource Management

Effectively manage multiple resource types essential for empire growth: - Food Production : Sustain your population and armies - Water Supply : Essential for city development and military campaigns - Building Materials : Required for infrastructure expansion - Gold : Finance military units and diplomatic agreements

Military Strategy

Develop comprehensive military strategies encompassing: - Unit Training : Recruit and upgrade diverse military forces - Tactical Planning : Design battle formations and siege strategies - Defensive Positioning : Protect your territories from enemy invasions - Offensive Campaigns : Expand your borders through strategic conquest

Operation Guide

Mouse Controls : Navigate the game interface entirely with mouse interactions - Left Click : Select buildings, units, and menu options - Right Click : Access contextual menus and detailed information - Scroll Wheel : Zoom in and out of your empire view - Drag : Move around the game map to explore different regions

Interface Navigation : 1. Resource Panel : Monitor your empire's economic status 2. Military Overview : Access army management and battle reports 3. Diplomacy Screen : Manage relationships with other players 4. Research Tree : Unlock new technologies and capabilities 5. World Map : Explore territories and plan expansion strategies

Getting Started : - Begin by establishing basic resource production buildings - Focus on sustainable food and water production before military expansion - Research essential technologies to unlock advanced building options - Establish diplomatic contact with neighboring players - Gradually build military forces while maintaining economic stability

Why Play Imperia Online

Perfect for Strategy Enthusiasts

If you enjoy complex strategy games that reward careful planning and tactical thinking, Imperia Online delivers an experience that grows more engaging over time. The game's depth ensures that mastery comes through experience and strategic evolution.

Active Community Experience

Join a vibrant community of strategy gamers where player interaction drives the narrative. Every diplomatic decision and military action contributes to an ever-evolving world story.

Long-term Engagement

Unlike quick-play games, Imperia Online rewards patient, strategic development. Your empire becomes a long-term project that can provide months or years of engaging gameplay.

Free Access with Depth

Experience a full-featured MMO strategy game completely free. While the game offers optional premium features, the core gameplay is accessible to all players without payment requirements.

Cross-Platform Accessibility

Play directly through your web browser on any device - no downloads required. Whether on desktop or mobile, your empire remains accessible whenever inspiration strikes.

Frequently Asked Questions (FAQ)