Global City - City Building Simulation Game

Seele01-Flash
By
Global City is an engaging city-building simulation game where you become the mayor of your own metropolis. Build, expand, and manage resources while creating a thriving urban paradise with stunning graphics and innovative gameplay mechanics.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "**Global City: Metropolis Builder**". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style:** Create a vibrant, semi-realistic "SimCity-lite" aesthetic suitable for mobile screens. Use bright, saturated colors for buildings to make them pop against the terrain. * **Camera Perspective:** Implement an Isometric Camera view (OrthographicCamera in Three.js) fixed at a 45-degree angle, allowing players to see building depth without perspective distortion. * **Core Assets:** * **Terrain:** A grid-based tile system (green for grass, grey for roads, blue for water). * **Buildings:** Low-poly models representing: * *Residential:* Small houses, European-style townhouses, and large skyscrapers (Block of Flats). * *Industrial/Infrastructure:* Factories (with simple smoke particle effects), Water Towers, and Power Plants. * **Robot Assistant (Reference to Image):** Instead of a human UI helper, include a stylized, low-poly Yellow/Grey flying robot hovering in the corner or acting as the cursor guide for tutorials. * **Optimization:** Use instanced mesh rendering (InstancedMesh) for repeated objects like trees, road tiles, and small houses to ensure 60fps performance on mobile devices. ### 2. Audio Requirements * **BGM:** A calm, optimistic, and looping "City Building" soundtrack featuring acoustic guitar and light piano (similar to The Sims build mode or SimCity 3000 jazz) to encourage relaxed gameplay. * **Sound Effects (SFX):** * *Construction:* A satisfying "plop" or "hammering" sound when a building is placed. * *Collection:* A "coin jingle" or "cash register" sound when collecting taxes or resources. * *UI:* Soft "clicks" for menu selection; a "woosh" sound for camera zooming. * *Ambience:* Faint city sounds (distant traffic, birds chirping) dependent on the zoom level. ### 3. Gameplay Loop * **Core Cycle:** Produce Resources -> Build Structures -> Increase Population -> Collect Taxes -> Expand. * **Resource Management:** * Players tap factories to start production (Wood, Metal, Cement) and wait a few seconds/minutes for completion. * Resources are consumed to build residential zones. * **Growth Mechanics:** * Residential buildings generate "Coins" (Tax) over time. * Players must tap buildings with a coin icon above them to collect. * **Task System:** A "Mayor's Task List" UI panel on the left side that guides the player (e.g., "Build 3 Townhouses", "Collect 500 Coins"). Completing tasks grants premium currency or XP. ### 4. Mobile Controls & Interaction * **Touch Input:** * **Pan:** One-finger drag to move the camera across the map. * **Zoom:** Two-finger pinch to zoom in/out (adjusting the Orthographic camera zoom factor). * **Select/Build:** Single tap on a grid tile to open the build menu or collect resources. * **UI Layout (Portrait & Landscape Compatible):** * Floating Action Button (FAB) or a bottom dock for the "Build Menu". * Resource counters (Coins, Wood, Metal) pinned to the top header. * Buttons must be at least 44x44px for touch accessibility. * **Feedback:** * **Haptic:** Trigger a light vibration (navigator.vibrate) when placing a building or collecting taxes. * **Visual:** When resources are collected, show floating text (+100 Gold) rising from the building and fading out. ### 5. Code Structure & Language * Please output the complete, functional code in **English**. * Structure the code to handle window resize events gracefully for different device aspect ratios. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About Global City

Global City is a comprehensive city-building simulation game that puts you in the mayor's seat of an ambitious urban development project. This free-to-play game combines strategic resource management with creative city planning, offering players an immersive experience in municipal leadership and urban design.

As the newly appointed mayor, you'll transform a modest settlement into a bustling global metropolis through careful planning, resource allocation, and community engagement. The game features intricate graphics and innovative design elements that bring your virtual city to life.

Core Features

Comprehensive Building System

Global City offers an extensive construction system with diverse residential options including: - Residential Variety : From basic townhouses to elite residential complexes - Specialized Housing : European houses, eco-friendly homes, and vacation properties - Infrastructure Development : Roads, utilities, and essential city services - Commercial & Industrial : Factories, shops, and business districts

Resource Management & Economy

Successful city management requires strategic thinking: - Tax Collection : Generate revenue from your growing population - Resource Production : Establish and manage various production facilities - Quest System : Complete challenging tasks for valuable rewards - Population Growth : Attract new residents through effective city planning

Multiplayer & Social Features

Engage with a global community of mayors: - Trading System : Exchange resources with other players worldwide - Collaborative Projects : Work together on large-scale developments - Competitive Tournaments : Compete for rankings and exclusive rewards - Community Building : Join friendly neighborhoods and alliances

Gameplay Mechanics

Strategic City Planning

Every decision impacts your city's growth and prosperity. The game provides intuitive guidance through: - Task Management System : Clear objectives and progression tracking - Visual Indicators : On-screen arrows and hints for optimal moves - Tutorial Integration : Comprehensive training for new mayors - Expansion Opportunities : Unlock new territories as your city grows

Interactive Elements

The game emphasizes engagement through: - Resident Interaction : Meet and assist enthusiastic virtual citizens - Dynamic Challenges : Evolving objectives that adapt to your progress - Efficiency Optimization : Balance growth with resource sustainability - Achievement System : Unlock rewards for reaching specific milestones

Operation Guide

Basic Controls

  • Left Mouse Click : Select buildings, complete tasks, and navigate menus
  • Scroll Wheel/Touchpad : Zoom in and out to get different city perspectives
  • Drag & Drop : Place buildings and infrastructure elements
  • Menu Navigation : Access various game systems and options

Getting Started

  1. Follow the Tutorial : Learn basic construction and resource management
  2. Build Foundation : Start with essential housing and infrastructure
  3. Manage Resources : Monitor production and consumption carefully
  4. Expand Gradually : Unlock new areas as your population grows
  5. Engage Socially : Connect with other players for trading and collaboration

Platform Accessibility

Global City offers exceptional cross-platform compatibility: - Web Browser : Play directly online without downloads - Mobile Devices : Available on both iOS and Android - Desktop Gaming : Steam version for enhanced PC experience - Cross-Platform Sync : Continue your progress across different devices

Why Play Global City

Perfect for All Skill Levels

Whether you're new to city-building games or a veteran strategist, Global City provides: - Intuitive Learning Curve : Easy-to-understand mechanics with depth - Scalable Complexity : Simple beginnings that evolve into complex challenges - Flexible Pacing : Play at your own speed with no time pressure - Creative Freedom : Design your city according to your vision

Engaging Long-term Gameplay

  • Continuous Updates : Regular content additions and feature improvements
  • Community Events : Seasonal challenges and limited-time opportunities
  • Achievement Hunting : Extensive progression system with meaningful rewards
  • Social Competition : Global leaderboards and ranking systems

Global City delivers an authentic mayoral experience that balances strategic depth with accessible gameplay, making it perfect for both casual gaming sessions and dedicated city-building marathons.

Frequently Asked Questions (FAQ)