Village Craft - Medieval Town Building Game

Seele01-Flash
By
Village Craft is a captivating medieval village building game where you transform wilderness into a thriving settlement. Start with nothing but an axe and build your way to prosperity through crafting, management, and strategic planning.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "**Village Craft**". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style:** Create a charming **Low-Poly, Flat-Shaded** aesthetic. Use a warm, saturated color palette (forest greens, wood browns, golden wheat) similar to the provided icon. The lighting should be soft and bright (AmbientLight + DirectionalLight) to simulate a sunny day without expensive real-time shadows. * **Camera:** Use an **Orthographic Camera** positioned at an isometric angle (e.g., lookAt center, offset x: 20, y: 20, z: 20). This ensures precise tap/drag inputs on mobile screens. * **Environment:** A procedural grid-based ground. Use `InstancedMesh` for environmental elements (trees, rocks, grass tufts) to maintain high FPS on mobile devices. The map should start as a dense forest with a small clearing in the center. * **Characters:** * **Player:** A simple blocky character with an axe. * **Villagers:** Smaller blocky characters with distinct colors (e.g., blue shirts) to differentiate them from the player. * **Travelers:** Characters with backpacks appearing at the map edge. * **Buildings:** Modular structures (House, Sawmill, Farm, Market). They should have two states: "Construction Site" (scaffolding/transparent) and "Completed". ### 2. Audio Requirements * **BGM:** A looping, acoustic **Medieval Folk** track. Relaxing and upbeat, featuring a lute or acoustic guitar and a light flute melody. It should fade into the background. * **Sound Effects (SFX):** * **Chopping:** A satisfying, crisp "thwack" sound (variation in pitch to prevent repetition). * **Collection:** A high-pitched "pop" or magnetic sound when resources fly to the player. * **Construction:** A rapid hammering sound when a building is finished. * **Economy:** A distinct coin "jingle" when travelers buy items. * **UI:** Soft wooden clicks for menu interactions. ### 3. Gameplay Loop * **Phase 1: Manual Gathering (The Start)** * The player spawns in the woods. The player moves near a tree to automatically start chopping (timer-based). * Tree breaks -> Spawns "Wood" resource -> Player collects it (limit inventory stack). * **Phase 2: Base Building** * Player walks to a designated "Foundation Zone". * If player has Wood, resources drain from inventory into the building. * Building completes -> Unlocks a **Villager**. * **Phase 3: Automation & Processing** * **Villagers** automatically find nearest trees, chop them, and carry wood to a central Stockpile. * Build a **Sawmill**: Converts Wood into Planks (higher value). * Build a **Farm**: Grows Wheat -> Converts to Flour. * **Phase 4: Economy (The Tycoon Element)** * **Travelers** spawn periodically and walk to the Market Stall. * They request specific items (Planks/Flour). * Fulfilling requests grants **Gold**. Gold is used to unlock new territories and upgrade tool speed. ### 4. Mobile Controls & Interaction * **Movement (Primary Control):** Implement a **Floating Virtual Joystick**. Anywhere the user touches and drags on the screen becomes the center of the joystick. This allows for one-handed play in either Portrait or Landscape mode (Landscape preferred for Tycoon games). * **Interaction (Proximity-Based):** Eliminate complex action buttons. * To Chop: Simply stop moving next to a tree. * To Build/Deposit: Simply walk into the building's footprint. * **UI Layout:** * Top Left: Resource Counters (Wood icon, Gold icon). * Bottom Right: "Upgrade" button (large hit area, min 60x60px). * Floating UI: Use 3D text labels or billboards above buildings to show progress bars or "Zzz" icons if a worker is idle. * **Feedback:** * **Haptic Feedback:** Trigger a short vibration (using `navigator.vibrate`) when a tree falls or a building completes. * **Visual Juice:** When resources are collected, animate them flying from the source to the player/UI in a parabolic arc. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About Village Craft

Village Craft is an engaging idle management and simulation game that challenges you to build a prospering medieval town from the ground up. This free-to-play browser game combines elements of city building, resource management, and crafting in a charming medieval setting. Starting with nothing but your trusty axe in the wilderness, you'll gradually transform a forest into a bustling village filled with helpful villagers and profitable enterprises.

Core Features

From Wilderness to Civilization

Begin your journey in the untamed woods with only basic tools. Your first task is to chop down trees and gather the raw materials needed for your initial buildings. Watch as your efforts slowly transform the natural landscape into the foundation of a medieval settlement.

Idle Management System

The game features an intelligent idle system that allows your village to continue growing even when you're not actively playing. Your villagers will automatically perform tasks, ensuring steady progress toward your goals.

Villager Recruitment and Automation

As your settlement expands, new villagers will join your community. These helpful NPCs will take over various tasks: - Woodcutters turn trees into valuable planks - Farmers process wheat into flour for baking - Craftsmen create specialized items for trade - Merchants help sell goods to visiting travelers

Resource Management and Trading

Develop a complex economy by managing multiple resources and production chains. Create valuable goods that can be sold to travelers, generating income to fund further expansion and improvements.

Game Mechanics

Building and Construction

Construct various medieval buildings, each serving specific purposes in your growing settlement. From basic lumber mills to advanced crafting workshops, every structure contributes to your village's prosperity.

Crafting System

Transform raw materials into valuable finished goods through an intuitive crafting system. Learn to optimize production chains for maximum efficiency and profit.

Visitor Economics

Attract travelers to your village who will purchase your goods, providing essential income for continued growth and development.

Operation Guide

Movement Controls: - Arrow Keys : Navigate around your village - WASD Keys : Alternative movement controls - Mouse Control : Click and drag to explore different areas - Interactive Elements : Click on buildings, resources, and villagers to interact

The game features an intuitive point-and-click interface that makes village management accessible to players of all experience levels.

Why Play Village Craft

Perfect for All Players

Whether you're a casual gamer looking for a relaxing experience or a strategy enthusiast seeking depth, Village Craft offers engaging gameplay for everyone. The idle mechanics make it perfect for busy players, while the management aspects satisfy those who enjoy strategic planning.

No Cost Barrier

Enjoy the complete Village Craft experience absolutely free. No hidden fees, premium currencies, or paywalls - just pure medieval village building fun.

Cross-Platform Accessibility

Play seamlessly across all your devices. Whether you prefer gaming on your computer during breaks or managing your village on your phone while commuting, Village Craft adapts to your lifestyle.

Educational Value

Learn about medieval economics, resource management, and urban planning through engaging gameplay that makes learning fun and interactive.

Stress-Free Gaming

The peaceful medieval setting and gentle gameplay pace make Village Craft an excellent choice for stress relief and relaxation after a busy day.

Frequently Asked Questions (FAQ)