Coin Factory - Puzzle Idle Game

Seele01-Flash
By
Coin Factory is an engaging puzzle idle game where you design and build automated money-generating factories. Start with a single coin generator and create complex assembly lines to maximize your profits while unlocking powerful upgrades.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "Coin Factory". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style:** Create a clean, minimalist "Toy-like" aesthetic using Low-Poly 3D models with flat shading (no complex textures, use vertex colors). The look should mimic high-quality vector art but in 3D. * **Camera:** Use an `OrthographicCamera` fixed at an isometric angle (approx. 45 degrees X, 45 degrees Y) to give the board a distinct "electronic component" or "bento box" appearance. * **The Board:** A rounded rectangular base (cream/off-white color) containing a grid (dark slots). The board should look like it is floating on a background of a subtle, scrolling hex-grid pattern (light blue). * **Tiles (The Assets):** Create 3D rounded cubes representing different factory parts. * *Generator:* Green tile with a tree or leaf icon. * *Bank/Exit:* Yellow/Orange tile with a dollar sign ($). * *Accelerator:* Red/Orange tile with a speedometer icon. * *Overclocker:* Purple tile with a clock or bolt icon. * *Connection:* Blue tile with a circuit/dot icon. * **Coins:** Small, shiny gold cylinders that physically slide or hop along the path between tiles. * **Performance:** Use `THREE.InstancedMesh` for rendering the grid and repetitive tiles to ensure 60FPS on mobile devices. ### 2. Audio Requirements * **BGM:** A relaxing, lo-fi "thinking" track. Soft electronic synths with a slow, rhythmic beat that mimics a clock ticking or a gentle assembly line. * **SFX:** * *Placement:* A satisfying "pop" or "thud" sound with a slight pitch variation each time a tile is placed. * *Coin Spawn:* A soft mechanical "click". * *Coin Collect:* A high-pitched, rewarding "ching" sound when a coin reaches the bank. * *UI:* Subtle clicks for menu navigation. * *Error:* A dull "thud" or buzzer if a player tries to place a tile in an invalid spot. ### 3. Gameplay Loop * **Core Mechanic:** The player has a grid (starting 3x3 or 4x4). They must place a "Generator" and route coins to a "Bank" tile. * **Path Logic:** Coins automatically travel from the Generator to adjacent tiles. The player uses "Arrow" tiles or specific placement logic to guide the flow. * **Modifiers:** * Passing an *Accelerator* doubles the coin's movement speed. * Passing an *Overclocker* increases the coin's monetary value. * *Jumpers* allow coins to skip one tile. * **Economy:** Every coin that reaches the Bank adds to the player's wallet. Money is used to unlock new grid slots or buy more advanced tiles from the shop. * **Challenge:** The layout is a puzzle. The player must maximize profit within limited space. ### 4. Mobile Controls & Interaction * **Orientation:** Strictly **Portrait Mode** for one-handed play. * **Layout:** * Top 70%: The 3D Game Board (Interactive Area). * Bottom 30%: The "Shop/Inventory" Tray (UI Overlay). * **Controls:** * **Drag & Drop:** The primary control. User drags a tile from the bottom tray onto a grid slot. * **Tap to Rotate:** Tapping a placed tile rotates its output direction (90 degrees clockwise). * **Long Press:** Long pressing a placed tile sells/removes it. * **Feedback:** * **Visual:** When a tile is placed, apply a `scale` tween (bounce effect) to make it feel tactile. Coins should emit tiny particle sparks when they hit a modifier. * **Haptics:** Trigger `navigator.vibrate(5)` (short tick) when a tile snaps into the grid. Trigger a stronger vibration when a high-value coin is banked. * **Raycasting:** Implement precise `Raycaster` logic for touch events to detect grid slots accurately, adding a "ghost tile" highlight before the user releases their finger. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

Coin Factory is a captivating puzzle idle game that combines strategic planning with automated gameplay mechanics. In this unique factory-building experience, you'll transform an empty field into a thriving coin production empire. The game challenges your puzzle-solving skills while providing the satisfying progression of idle gameplay.

The colorful, isometric graphics showcase a charming factory environment where every component serves a purpose. From basic coin generators to complex routing systems, every element works together to create your automated money-making machine.

Core Features

Strategic Factory Building

Start with a single coin generator and strategically plan your factory layout. Every placement matters as you design efficient assembly lines that guide coins from generators to the exit. The puzzle element comes from optimizing your layout for maximum efficiency and profit.

Advanced Automation Components

Unlock a variety of specialized facilities to enhance your coin production:

  • Accelerators : Boost the speed of coin movement through your assembly lines
  • Overclockers : Increase the production rate of your generators
  • Central Units : Provide factory-wide bonuses to multiply your earnings
  • Jumpers : Create complex routing paths for sophisticated factory designs

Each component opens new strategic possibilities, allowing you to create increasingly complex and efficient money-generating systems.

Daily and Nightly Challenges

For experienced automation experts, the game offers special challenge modes that test your factory-building skills to the limit. These puzzle setups present unique constraints and objectives that push your strategic thinking beyond the standard gameplay.

Idle Game Progression

Enjoy the satisfaction of watching your carefully planned factory generate money automatically. Even when you're not actively playing, your optimized assembly lines continue producing coins, embodying the best aspects of idle gameplay.

Gameplay Mechanics

The game starts simple but gradually introduces complexity as you unlock new components. You'll need to balance immediate coin production with long-term strategic planning. Each upgrade and placement decision affects your overall efficiency, making every choice meaningful.

The puzzle aspect shines when you need to work within space constraints while maximizing throughput. Advanced players will enjoy experimenting with different layouts and component combinations to find optimal factory designs.

Operation Guide

Coin Factory uses intuitive mouse-based controls that make factory building accessible and enjoyable:

  • Left Click : Select and place factory components on the grid
  • Mouse Drag : Position components precisely for optimal layout
  • Right Click : Access upgrade menus for existing facilities
  • Mouse Wheel : Zoom in and out to get better views of your factory

The interface is designed for both precision and ease of use, allowing you to focus on strategy rather than wrestling with complex controls.

Why Play This Game

Coin Factory offers a perfect blend of puzzle-solving and idle gameplay that appeals to a wide range of players. Whether you enjoy the immediate satisfaction of solving layout puzzles or the long-term progression of building an automated empire, this game delivers both experiences seamlessly.

The game is completely free to play with no hidden costs or premium restrictions. You can access all content and features without any payments, making it an excellent choice for casual gaming sessions.

For puzzle enthusiasts, the challenge modes provide increasingly complex scenarios that will test your problem-solving abilities. Meanwhile, idle game fans will appreciate the automated progression system that rewards good planning with continuous coin generation.

The cross-platform compatibility means you can enjoy your coin factory on any device, whether you prefer playing on a computer with precise mouse control or on mobile devices during commutes.

Frequently Asked Questions (FAQ)