Mushroom Farm Revolution

Seele01-Flash
By
Mushroom Farm Revolution is a unique tower defense strategy game that combines fungus farming with tactical defense gameplay. Build your mushroom empire while defending against waves of cute but determined enemies trying to destroy your spore operation.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "Mushroom Farm Revolution". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style:** Low-poly, vibrant, and cartoonish "Cute" aesthetic (Toon Shading or MeshToonMaterial). The world should look like a miniature diorama. * **Camera:** Fixed **Orthographic Camera** (isometric view, approx 45 degrees) to simulate the classic 2D Strategy/Tycoon look while maintaining 3D depth. * **Terrain:** A grid-based map using a plane geometry. * **Path:** Sandy beige texture (the enemies' route). * **Build Area:** Grassy green texture (where mushrooms can be planted). * **Decor:** Low-poly palm trees and small rocks scattered on non-buildable areas. * **Towers (Mushrooms):** * **Basic Shroom:** Brown cap with white spots (single target projectile). * **Magma Shroom:** Red/Orange cap (Area of Effect damage). * **Ice Shroom:** Blue cap (slows enemies). * *Animation:* Mushrooms should have a "squash and stretch" bouncing animation when attacking. * **Enemies ("Creeps"):** Blue, round, blob-like creatures with simple faces. They should bob up and down while moving along the path. * **Optimization:** Use `InstancedMesh` for the environment tiles and repeated enemies to ensure 60FPS on mobile devices. Use a single directional light with soft shadows. ### 2. Audio Requirements * **BGM:** A "Mellow" but rhythmic track. Think "Lo-fi Farm Sim" mixing acoustic guitar with a light drum beat that speeds up slightly during wave attacks. * **Sound Effects (SFX):** * **Planting:** A soft "digging" or "pop" sound. * **Shooting:** "Pew" or "Spore pop" sounds (high pitch). * **Enemy Hit:** "Squelch" or soft impact sound. * **Enemy Death:** A cute "squeak" followed by a coin jingle. * **UI Click:** Wooden block percussion sound. ### 3. Gameplay Loop * **Objective:** Prevent enemies from travelling from the "Spawn Point" (a small cave or bush) to the "Farm House" (the player's base). * **Economy:** Player starts with a set amount of "Sunlight" (currency). Planting mushrooms costs Sunlight. Killing enemies grants Sunlight. * **Wave System:** * Enemies spawn in waves with increasing difficulty (speed and health). * Between waves, there is a countdown timer allowing the player to build defenses. * **Mechanics:** * Enemies follow a pre-defined waypoint path. * Mushrooms automatically detect enemies within a specific radius (`distanceTo`) and fire projectiles. * If an enemy reaches the Farm House, the player loses 1 Life. * Game Over if Lives reach 0. ### 4. Mobile Controls & Interaction * **Orientation:** **Landscape** mode is required for the best field of view. * **Touch Controls:** * **Select/Build:** Tap a grid tile to open a radial menu or bottom bar to select which mushroom to plant. * **Pan:** One-finger drag to move the camera slightly (if the map is larger than the screen). * **Speed Up:** A toggle button to switch game speed (1x / 2x). * **UI Layout:** * **Top Bar:** Lives (Heart icon), Sunlight (Sun icon), Wave Counter. * **Bottom Bar:** Large, thumb-friendly buttons (min 48px height) for Mushroom selection. * **Feedback:** When a user taps a valid build tile, show a green highlight cursor. If invalid (path or obstacle), show red. * **Haptic:** Trigger a short vibration (`navigator.vibrate(50)`) when placing a tower or when a wave starts. ### 5. Technical Implementation Notes * Initialize the Three.js scene with `antialias: true` but monitor pixel ratio (clamp to 2 for high-DPI mobile screens to save battery). * Use `Raycaster` for all touch events to map screen coordinates to the 3D grid. * Implement a simple "Game State Manager" (Menu -> Playing -> Game Over) to handle the flow. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

Mushroom Farm Revolution is an innovative tower defense strategy game that puts you in charge of a thriving mushroom farming operation. With a stellar 4.22/5 rating, this free online game combines the relaxing aspects of cultivation with the excitement of strategic defense gameplay. What starts as peaceful fungus propagation quickly becomes an intense battle as adorable creatures attempt to sabotage your spore production.

Core Features

Unique Mycological Theme

Unlike traditional tower defense games, Mushroom Farm Revolution centers around the fascinating world of fungi cultivation. You'll learn about spore propagation while building defensive strategies to protect your valuable mushroom crops.

Cute but Challenging Enemies

Face off against waves of adorable creeps that are determined to stop your mushroom farming operation. Each enemy type requires different defensive strategies, keeping the gameplay fresh and engaging.

Strategic Depth

Combining elements of strategy, tycoon, and tower defense genres, the game offers multiple layers of gameplay. You must balance resource management, farm expansion, and tactical defense to succeed.

Free-to-Play Accessibility

Enjoy the complete gaming experience without any cost. The game runs directly in your web browser, making it instantly accessible on any device.

Game Mechanics

Mushroom Farming System

Start by establishing your mushroom farming infrastructure. Plant spores, nurture growth, and expand your fungal empire. Each successful harvest provides resources for upgrading your defenses.

Tower Defense Strategy

Strategically place defensive structures to protect your mushroom farms from invading creatures. Choose optimal positions and upgrade your defenses to handle increasingly challenging enemy waves.

Resource Management

Balance your fungus production with defense spending. Smart resource allocation is key to building a sustainable mushroom farming operation that can withstand any assault.

Operation Guide

Mouse Controls : The game uses simple mouse-based controls for all interactions. Click to select, drag to place structures, and navigate menus with ease.

Basic Gameplay Flow : 1. Plant Phase : Establish mushroom growing areas and begin spore cultivation 2. Defense Phase : Place towers and defensive structures strategically 3. Wave Management : Survive enemy attacks while protecting your mushroom farms 4. Upgrade Phase : Use earned resources to improve farming efficiency and defense capabilities

Why Play Mushroom Farm Revolution

Educational Entertainment

Learn about mycology and fungus cultivation while enjoying engaging tower defense gameplay. The game makes science fun and accessible.

Perfect Difficulty Balance

The game starts gently, allowing new players to learn the mechanics, but gradually increases in complexity to challenge even experienced strategy gamers.

Unique Gaming Experience

Few games combine farming simulation with tower defense mechanics. This original concept provides a fresh take on both genres.

Browser-Based Convenience

No downloads or installations required. Jump into the action immediately from any web browser on desktop or mobile devices.

Family-Friendly Content

With its cute graphics and all-ages rating, the game is perfect for players of any age looking for wholesome strategic entertainment.

Frequently Asked Questions (FAQ)