Corn Tycoon - Farm Management Clicker Game

Seele01-Flash
By
Corn Tycoon is an addictive farming clicker game where you build a massive corn empire from scratch. Plant, harvest, and sell corn while upgrading your farm equipment to become the ultimate agricultural tycoon.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "Corn Tycoon". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style**: Use a vibrant, low-poly cartoon aesthetic similar to the reference image. The color palette should be highly saturated (bright yellows for corn, lush greens for leaves, sky blue background). * **Camera Perspective**: Implement an Isometric view (OrthographicCamera) to give a clear overview of the farm grid. * **Core Models**: * **Corn**: Create procedural low-poly corn models with 3 growth stages (Seed/Sprout -> Medium Stalk -> Full Corn Cob). Use `THREE.InstancedMesh` for performance rendering of hundreds of corn stalks. * **Field Grid**: A 4x4 (expandable) tile grid on a green plane. * **Buildings**: Simple blocky representations for a **Silo** (storage), **Water Tank**, and a **Barn/Market**. * **Vehicles**: A simple low-poly truck that animates along a road to "sell" the corn. * **Lighting & Effects**: Use HemisphereLight for soft global illumination and a DirectionalLight to cast shadows. Add "Pop" particle effects (simple spheres/confetti) when corn is harvested. * **Optimization**: Ensure geometry is simple (low vertex count) for mobile GPUs. Use a single texture atlas if possible for materials. ### 2. Audio Requirements * **BGM**: A relaxing, looping acoustic guitar or banjo track—upbeat and "farm-style" but not annoying. * **SFX**: * **Planting**: A soft "digging" or "plop" sound. * **Growth**: A satisfying "pop" sound when corn matures. * **Harvest**: A "crunch" or rustling leaf sound. * **Money**: A "cha-ching" or coin jingle when the truck sells goods. * **Piggy Bank**: A high-pitched squeak or magical chime when the flying bonus is clicked. * **UI**: Soft clicks for menu navigation; distinct sound for purchasing upgrades. ### 3. Gameplay Loop * **Core Mechanics**: 1. **State System**: Each tile has a state: Empty -> Planted -> Watered -> Mature. 2. **Manual Action**: Player clicks tiles to advance the state (Plant -> Water -> Harvest). 3. **Automation (Idle)**: Player purchases "Seeders", "Irrigators", and "Harvesters" which automatically perform these actions over time. * **Economy**: * Harvesting adds Corn to the Silo. * The Truck automatically takes Corn from the Silo to the Market to convert into Cash. * **Win/Loss**: No fail state. Infinite progression. * **Upgrades**: * **Truck**: Increases sell speed and capacity. * **Silo**: Increases max corn storage. * **Lab**: Multipliers for corn value and growth speed. * **Prestige System**: A "Reset" button available after earning $1,000,000. It resets the farm but grants a permanent multiplier or unlocks "Golden Corn" (new visual texture). * **Random Event**: Every 30-60 seconds, a "Flying Piggy Bank" 3D object floats across the screen. Clicking it awards a large instant cash bonus. ### 4. Mobile Controls & Interaction * **Camera Controls**: Disable WASD. Implement **single-finger drag** to pan the camera across the farm and **two-finger pinch** to zoom in/out. * **Interaction (Raycaster)**: * Tap on a Field Tile to perform the current action (Plant/Water/Harvest). * Tap on the Flying Piggy Bank to collect the bonus. * **UI Layout (HTML/CSS Overlay)**: * **HUD**: Top bar showing Cash ($), Corn Amount/Max Capacity, and FPS counter. * **Action Bar**: Bottom screen fixed container (thumb-friendly height, e.g., 80px). Contains large buttons for "Upgrades", "Map", "Prestige". * **Touch Feedback**: When a user taps a corn tile, the mesh should scale up slightly (bounce effect) to provide visual feedback. If the device supports it, trigger `navigator.vibrate(50)` on harvest. * **Responsiveness**: Ensure UI elements are at least 44x44px for hit testing and scale correctly on both Portrait and Landscape orientations. ### 5. Tech Stack & Implementation * Use `three.js` via CDN. * Use `tween.js` for smooth animations (UI popping, corn growing scale, truck movement). * Structure the code to handle the game loop (`requestAnimationFrame`) efficiently, separating logic (data) from view (rendering). Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

Corn Tycoon is the ultimate farming adventure that combines the satisfaction of agriculture with addictive clicker gameplay. In this engaging idle management game, you start with simple fields and gradually build a massive corn empire that generates wealth around the clock. Whether you're actively clicking or letting the game run in the background, your farm continues to grow and prosper.

The game perfectly blends hands-on farming action with strategic business management, making it appealing to both casual players and dedicated farming simulation enthusiasts. With its colorful graphics and satisfying progression system, Corn Tycoon offers hours of engaging gameplay that keeps you coming back for more.

Core Features

Complete Farm Management System

Start your agricultural journey by clicking on fields to plant corn seeds, water your crops, and harvest golden corn. As your farming operation expands, you'll unlock powerful automation tools including seeders, irrigators, and harvesters that work continuously to maximize your crop yield.

Progressive Upgrade System

Transform your humble farm into an industrial agricultural powerhouse. Upgrade essential infrastructure like silos for storing massive corn harvests and water tanks to keep your fields optimally irrigated. Every upgrade brings you closer to farming supremacy.

Advanced Transportation Network

Develop an efficient logistics system by upgrading trucks that transport your corn to market faster. The quicker you can move your product, the more profit you generate, allowing for rapid expansion of your farming empire.

Prestige and Research Mechanics

Once you've mastered basic corn production, unlock the prestigious system that lets you restart with access to premium corn varieties worth significantly more money. Visit the research lab to discover game-changing upgrades that increase crop value, accelerate machine efficiency, and enhance soil fertility.

Interactive Bonus Elements

Keep your eyes peeled for the flying piggy bank - a special bonus feature that appears randomly. Click it quickly to receive substantial money boosts that can accelerate your farm's development significantly.

Game Mechanics

Idle Progression System

Corn Tycoon features sophisticated idle mechanics that allow your farm to generate income even when you're not actively playing. Your automated machines continue working, corn keeps growing, and profits accumulate, making it perfect for players who enjoy passive progression games.

Strategic Resource Management

Balance your investments between different farm components. Decide whether to prioritize field expansion, equipment upgrades, or transportation improvements based on your current farming strategy and long-term goals.

Operation Guide

Basic Controls

  • Left-click on fields : Plant seeds, irrigate crops, and harvest mature corn
  • WASD keys or drag left-click : Navigate around your expanding farm to manage different areas
  • Click flying piggy bank : Capture bonus rewards when they appear

Getting Started

  1. Begin by clicking on empty fields to plant your first corn seeds
  2. Water the seeds and wait for them to mature into harvestable crops
  3. Harvest corn by clicking on fully grown plants
  4. Use earned money to purchase automation equipment
  5. Gradually expand your operation with larger storage and better machinery

Advanced Strategies

  • Focus on upgrading storage capacity early to avoid losing potential harvests
  • Balance automation purchases with manual clicking for optimal efficiency
  • Time your prestige carefully to maximize long-term progression
  • Invest in research upgrades that provide permanent benefits

Why Play Corn Tycoon

Perfect for All Player Types : Whether you prefer active clicking gameplay or relaxed idle progression, Corn Tycoon accommodates both playstyles seamlessly. The game respects your time while providing satisfying advancement.

No Financial Barriers : Completely free to play with no hidden costs, premium currencies, or pay-to-win mechanics. Success depends entirely on your farming strategy and dedication.

Cross-Platform Accessibility : Play directly in your web browser on any device - desktop computers, laptops, tablets, or smartphones. No downloads, installations, or account creation required.

Satisfying Progression Loop : Experience the rewarding cycle of planting, growing, harvesting, and reinvesting profits into bigger and better farming operations. Each upgrade feels meaningful and impactful.

Relaxing Yet Engaging : The farming theme combined with incremental progression creates a zen-like experience that's both calming and motivating. Perfect for stress relief or casual entertainment.

Frequently Asked Questions (FAQ)