Gears - Mechanical Puzzle Game

Seele01-Flash
By
Gears is an engaging mechanical puzzle game where you repair complex machinery by strategically placing gears and powering systems with robot hamster wheels. Test your engineering logic in this free browser-based brain teaser.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "Gears: Mechanical Repair Puzzle". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style:** 2.5D Industrial Aesthetic. Use a fixed Orthographic camera to create a flat, puzzle-board view but with 3D depth on the objects. * **Color Palette:** Reference the "Caution Yellow" background from the icon (#E1AD01) for the UI or background accents. Gears should be metallic: Brass (goldish), Copper (reddish), and Steel (silver) to distinguish sizes. * **Key Models:** * **Gears:** Procedurally generated cylinders with teeth. Create 3 distinct sizes: Small (8 teeth), Medium (12 teeth), Large (16 teeth). * **The Power Source:** A "Hamster Wheel" model containing a low-poly, blocky robot. This serves as the "Start" node. * **The Target:** A broken machine part (e.g., a conveyor belt or a piston) that needs rotational power to activate. * **The Board:** A grid-based pegboard with a metallic texture. * **Mobile Optimization:** Use `InstancedMesh` for gear teeth if possible to reduce draw calls. Use simple Lambert materials for performance. ### 2. Audio Requirements * **BGM:** A rhythmic, "Tick-Tock" style clockwork ambient track. Minimalist and conducive to thinking. * **SFX:** * *Selection:* A light metallic "click". * *Placement:* A heavy, satisfying "clunk" or "snap" sound. * *Operation:* A continuous, low-frequency whirring/humming when the robot runs. * *Success:* A steam-release hiss (`shhh-tssss`) followed by a mechanical chime. ### 3. Gameplay Loop * **Objective:** Connect the rotating "Robot Wheel" (Source) to the stationary "Machine Part" (Target) using a limited inventory of loose gears. * **Mechanics:** * **Rotation Logic:** Implement mathematical rotation transmission rather than physics collision for performance. If Gear A (rotating clockwise) touches Gear B, Gear B must rotate counter-clockwise. * **Speed Ratios:** Calculate rotation speed based on gear size (e.g., Small gear spins 2x faster when driven by Large gear). * **Inventory System:** A tray at the bottom of the screen holds the available gears for the level. * **Win Condition:** When the connection is complete, the player presses a "Power On" button. The robot runs, the gears spin, and the target machine animates. ### 4. Mobile Controls & Interaction * **Control Scheme:** Drag-and-Drop using Touch events (Raycaster). * *Touch Start:* Pick up a gear from the inventory or board. Gear slightly scales up (1.2x) to show it is held. * *Touch Move:* Gear follows the finger but snaps visually to the nearest valid grid peg (Ghosting effect). * *Touch End:* Place the gear. If the spot is invalid (blocked), return gear to inventory. * **Screen Orientation:** Landscape mode (Fullscreen) to maximize the puzzle board area. * **Haptic Feedback:** Trigger a short vibration (`navigator.vibrate(20)`) when a gear successfully snaps onto a peg. * **UI Design:** Large, thumb-friendly buttons. The "Power On" button should be distinct (Green/Red toggle) and at least 60x60px in the corner. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

Gears is a captivating mechanical puzzle game that challenges your engineering mindset and problem-solving abilities. In this unique brain teaser, you'll take on the role of a mechanical engineer tasked with repairing broken machinery by carefully placing gears in the correct positions. The game combines logical thinking with mechanical understanding, creating an educational and entertaining experience for puzzle enthusiasts of all ages.

With its intuitive mouse controls and progressively challenging levels, Gears offers hours of engaging gameplay that will test your spatial reasoning and mechanical comprehension. The game's charming visual design features classic gear mechanisms and adorable robot characters that bring the mechanical world to life.

Core Features

Strategic Gear Placement

The heart of Gears lies in its strategic gameplay mechanics. You must analyze complex machinery layouts and determine the optimal placement for various gear sizes and types. Each level presents a unique mechanical puzzle where gears must mesh perfectly to create a functioning system.

Robot-Powered Systems

Add an extra layer of charm with robot hamster wheels that power your repaired machinery. These delightful mechanical companions not only provide the energy source for your contraptions but also add personality and humor to the engineering challenges.

Progressive Difficulty

Start with simple two-gear systems and advance to complex multi-level machinery requiring dozens of precisely placed components. The difficulty curve ensures that beginners can learn the basics while experienced players face increasingly sophisticated engineering challenges.

Educational Value

Gears serves as an excellent introduction to basic mechanical engineering principles. Players naturally learn about gear ratios, mechanical advantage, and how different gear sizes interact to create motion and transfer power.

Gameplay Mechanics

Puzzle Structure

Each level presents you with a partially complete machine that needs repair. You'll see the framework, some fixed gears, and empty spaces where new gears must be placed. Your goal is to create a continuous chain of motion from the power source to the machine's output.

Gear Types and Sizes

The game features various gear types, each with different properties: - Small gears : Provide high speed but low torque - Large gears : Offer high torque but slower rotation - Intermediate gears : Balance speed and power for versatile applications - Special gears : Unique components with specific functions in certain levels

Power Systems

Once your gear system is complete, activate the robot hamster wheel to power the entire mechanism. Watch as your carefully planned gear train comes to life, transferring motion through the system to operate the target machinery.

Operation Guide

Gears features simple and intuitive controls designed for players of all experience levels:

  • Mouse Movement : Navigate the game interface and examine machinery layouts
  • Left Click : Select and place gears from your inventory
  • Drag and Drop : Position gears precisely in available slots
  • Right Click : Rotate gears to achieve proper alignment (when applicable)
  • Mouse Wheel : Zoom in and out for detailed gear placement in complex levels

The game provides visual feedback to help you understand gear interactions. Correctly placed gears will highlight in green, while incompatible placements show warning indicators to guide your problem-solving process.

Why Play Gears

Educational Entertainment

Gears perfectly balances learning with fun, making it an ideal choice for students, educators, and anyone interested in mechanical systems. The game teaches real engineering principles through interactive gameplay.

Stress-Free Puzzle Solving

Unlike timed puzzle games, Gears allows you to work at your own pace. Take time to analyze each mechanical challenge and experiment with different solutions without pressure.

Universal Appeal

The game's mechanical theme appeals to a wide audience - from children fascinated by how things work to adults who enjoy logical challenges and engineering problems.

Browser Convenience

As a free online game, Gears requires no downloads or installations. Simply open your web browser and start solving mechanical puzzles immediately on any device with internet access.

Replay Value

Each level can be solved in multiple ways, encouraging experimentation and creative thinking. Return to completed levels to try alternative solutions and improve your mechanical engineering skills.

Frequently Asked Questions (FAQ)