Idle Inventor - Factory Tycoon

Seele01-Flash
By
Idle Inventor is an addictive factory tycoon game where you build and expand your industrial empire. Manage 5 unique factories producing cars, planes, and spacecraft while earning profits even when offline.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "**Idle Inventor: Factory Tycoon**". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style**: Create a vibrant, **Low-Poly** aesthetic similar to "Tiny Town" or "Voxel" styles. Use bright, saturated colors (factory red, safety yellow, grass green, ocean blue). * **World Layout**: The scene should be set on a floating island surrounded by a simplified water shader (blue plane with slight vertex animation). The ground is a grid of grass tiles with grey concrete pathways for the assembly line. * **Factory Models**: Construct modular factory buildings using primitive shapes (BoxGeometry, CylinderGeometry). * **The Assembler**: A main red building with a garage door that opens/closes. * **The Conveyor**: A series of grey flat blocks or rollers moving products. * **The Depot**: A shipping container area where products are "sold." * **Vehicles**: Generate low-poly cars (chassis + 4 wheels) that instantiate at the Assembler and move along the Conveyor path to the Depot. Use distinct colors for different car tiers. * **Performance**: Since this is mobile-first, use **InstancedMesh** for repetitive elements (like conveyor belts, trees, or floor tiles) to minimize draw calls. Use basic materials (`MeshLambertMaterial`) for performance, with one main `DirectionalLight` (casting shadows) and a `HemisphereLight` for ambient fill. ### 2. Audio Requirements * **BGM**: A cheerful, rhythmic, and repetitive "Industrial/Puzzle" style track. It should feel productive, using sounds like light metallic clinking and a steady bassline to mimic a heartbeat or machine rhythm. * **Sound Effects (SFX)**: * **UI**: A satisfying "Pop" or "Bubble" sound for clicking menus. * **Production**: A pneumatic "Hiss" or "Clank" when a car is finished. * **Income**: A high-pitched "Coin/Cash Register" sound (dopamine trigger) when a vehicle reaches the depot and is sold. * **Upgrade**: A positive rising glissando tone when a station level increases. ### 3. Gameplay Loop * **Core Mechanic**: A linear production line consisting of three stages: **Production** (Spawns Car) -> **Transport** (Moves Car) -> **Sale** (Deletes Car, Adds Money). * **Economy**: * Players start with $0. * Clicking the "Factory" manually spawns a car. * When the car reaches the end, Player earns Cash. * **Upgrades (Incremental)**: * **Speed**: Increases how fast cars move or spawn. * **Profit**: Increases the cash value of each car. * **Automation (Manager)**: A one-time purchase that makes the Factory spawn cars automatically without clicking. * **Progression**: As the player earns more, they unlock visual changes (e.g., the car model changes from a sedan to a sports car). ### 4. Mobile Controls & Interaction * **Camera Control**: Implement **OrbitControls** with restricted angles to maintain a fixed Isometric perspective (approx 45 degrees). Disable panning; allow only slight rotation and zooming to keep the factory in focus. * **Touch Input**: * Use a **Raycaster** to detect taps on 3D buildings. Tapping the main factory should trigger manual production (until automated). * Tapping the ground or background handles camera rotation. * **UI Layout (HUD)**: * **Floating Text**: When money is earned, display floating green text ("+$50") rising from the Depot in 3D space. * **Bottom Sheet Menu**: Place all upgrade buttons (Speed, Profit, Automate) in a fixed HTML overlay at the **bottom of the screen** for easy thumb access. Buttons must be large (min 44px height). * **Top Bar**: Display current Cash and Gold/Premium currency clearly at the top. * **Feedback**: Implement visual scaling (a slight bounce effect) on buildings when tapped. If possible, trigger `navigator.vibrate(20)` for haptic feedback on button presses. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About Idle Inventor

Idle Inventor is a captivating 3D factory tycoon game that combines strategic business management with idle gameplay mechanics. This colorful, top-down industrial simulator lets you build and expand your manufacturing empire across multiple production facilities. With its engaging cartoon-style graphics and intuitive controls, the game offers an addictive experience where your factories continue generating profits even when you're not actively playing.

Core Features

Multi-Factory Industrial Empire

Manage 5 distinct manufacturing facilities , each specializing in different vehicle types: - Automotive Factory : Design and produce various car models from compact vehicles to luxury automobiles - Aviation Plant : Manufacture aircraft ranging from small planes to commercial jets - Spacecraft Division : Build advanced spacecraft and space exploration vehicles - Heavy Machinery Works : Produce industrial equipment and construction vehicles - Specialty Vehicles Unit : Create unique and experimental transportation solutions

Automated Production Systems

Implement sophisticated automation technology to maximize efficiency: - Hire skilled managers to oversee production lines - Upgrade machinery for faster manufacturing speeds - Optimize workflows to reduce production costs - Balance supply chains across all facilities

Idle Progression Mechanics

Enjoy continuous growth even during offline periods: - Factories operate autonomously while you're away - Collect substantial offline earnings upon return - Strategic investments compound over time - Passive income streams from completed contracts

Mission-Based Challenges

Complete exciting objectives to accelerate your empire's growth: - Fulfill special manufacturing orders - Meet production quotas within time limits - Unlock new vehicle designs and technologies - Earn bonus rewards for exceptional performance

Gameplay Mechanics

Factory Management

Strategically develop your manufacturing capabilities by investing in: - Production Line Upgrades : Increase manufacturing speed and efficiency - Quality Control Systems : Improve product reliability and customer satisfaction - Research & Development : Unlock advanced vehicle designs and technologies - Staff Training : Enhance worker productivity and reduce operational costs

Economic Strategy

Master the art of industrial economics: - Monitor market demand for different vehicle types - Adjust production priorities based on profitability - Reinvest earnings into facility expansions - Balance short-term profits with long-term growth

Controls and Interface

The game features intuitive mouse-based controls designed for seamless gameplay: - Left Mouse Button : Click to interact with buildings, menus, and upgrade options - Drag Controls : Hold and drag to navigate around your factories and explore different areas - User-friendly Interface : Clean, organized menus make managing multiple factories effortless

Why Play Idle Inventor

Perfect for Casual Gaming

Ideal for players who enjoy: - Stress-free gameplay without time pressure - Strategic thinking combined with relaxing mechanics - Visual progress as your empire grows and evolves - Flexible gaming sessions that fit any schedule

Addictive Progression System

Experience satisfaction through: - Continuous factory expansion and improvement - Unlocking new vehicle types and technologies - Watching your industrial empire flourish - Achieving major production milestones

Cross-Platform Accessibility

Enjoy seamless gaming across multiple devices: - Web browsers on desktop and mobile devices - No download required for instant access - Responsive design adapts to different screen sizes - Cloud progress ensures continuity across sessions

Frequently Asked Questions (FAQ)