Bolts and Nuts - Logic Puzzle Game

Seele01-Flash
By
Bolts and Nuts is an addictive logic puzzle game that challenges your strategic thinking and problem-solving skills. Remove bolts strategically to make all panels fall while racing against time across 100+ increasingly complex levels.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "**Bolts and Nuts**". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style**: High-quality 2.5D aesthetic using an **Orthographic Camera** to simulate a flat puzzle view while retaining 3D depth. The art style should be "Casual Cartoon" with saturated colors (Red, Green, Blue, Yellow panels) against a natural wood grain background. * **Models & Geometry**: * **Panels (Planks)**: Rounded rectangular geometries with thickness. They must have procedural holes. * **Bolts**: Screw-head meshes with a spiral texture or geometry to indicate threading. * **Background**: A high-resolution, tiling wood texture plane placed behind the gameplay layer. * **Performance (Mobile)**: Use `InstancedMesh` for identical bolts to reduce draw calls. Limit texture resolution to 1024x1024. Use simple Lambert or Phong materials for performant lighting calculations on mobile GPUs. Shadows should be baked or disabled; use Ambient Occlusion (AO) maps for depth instead. ### 2. Audio Requirements * **BGM**: A relaxing, acoustic "thinking track" featuring light marimba, pizzicato strings, or piano. It should be loopable and non-intrusive. * **Sound Effects (SFX)**: * **Unscrewing**: A satisfying, high-pitched mechanical "ratchet" or friction sound when a bolt is tapped/removed. * **Placement**: A solid "thud" or "click" when a bolt enters a new hole. * **Collision**: Wood-on-wood clatter sounds when loose planks hit each other or walls (triggered by physics collision events). * **Win**: A cheerful chime or chord progression when the last plank falls. * **Timer Warning**: A ticking clock sound that accelerates when <10 seconds remain. ### 3. Gameplay Loop * **Core Mechanic**: A rigid-body physics puzzle (using a library like Cannon.js or Ammo.js). * **Initialization**: Planks are suspended in mid-air, held together or to the background by Bolts. * **Action**: The player taps a Bolt to "unscrew" it. The bolt moves to a temporary "hand" state. The player then taps an empty Hole to screw the bolt back in. * **Physics Logic**: Bolts act as **Pin Constraints** (Hinge Joints). When a bolt is removed, the constraint is destroyed, allowing gravity to pull the plank down. If a plank has 0 bolts, it falls off the screen. * **Win Condition**: All planks must physically fall off the bottom of the screen. * **Lose Condition**: The countdown timer reaches zero, or the player enters a "deadlock" state (no moves possible due to overlapping planks blocking all holes). * **Tools**: Implement logic for a "Booster Screwdriver" (removes a bolt permanently) and "Time Freeze" (pauses the countdown). ### 4. Mobile Controls & Interaction * **Touch Input**: Implement a precise Raycaster for touch detection. * **Tap Bolt**: Selects the bolt (lifts it slightly on the Z-axis to show selection). * **Tap Hole**: Moves the selected bolt to this target hole. * **Visual Feedback**: * When a bolt is selected, highlight valid empty holes with a pulsing green outline or particle effect. * If a move is invalid (hole obstructed by another plank), flash the hole red and trigger a subtle screen shake. * **Orientation**: Portrait mode lock (vertical layout) to best fit the vertical falling nature of the puzzle. * **Haptics**: Trigger a short vibration (`navigator.vibrate(50)`) when a bolt is successfully re-socketed. * **UI Layout**: Large, thumb-friendly buttons (min 44px) at the bottom for Power-ups and topmost for the Timer/Pause button to avoid accidental touches during puzzle solving. ### 5. Tech Stack & Output Language * **Libraries**: Three.js (Rendering), Cannon.js or Ammo.js (Physics), TWEEN.js (Animations). * **Output Language**: English. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

Bolts and Nuts is a captivating logic puzzle game that puts your strategic thinking to the ultimate test. This brain-teasing adventure combines simple mechanics with complex problem-solving challenges, creating an addictive gaming experience that's perfect for puzzle enthusiasts of all ages.

The core concept is elegantly simple yet deeply challenging: strategically remove bolts to make colored panels fall off the screen while managing limited bolt holes and racing against a ticking timer. What starts as a straightforward task quickly evolves into a mind-bending puzzle that requires careful planning and quick decision-making.

Core Features

Strategic Bolt Management System

The game's unique mechanic revolves around strategic bolt removal and placement . Every bolt you remove must be placed in an available hole, but here's the catch - panels can cover these holes as they fall, creating a complex puzzle within a puzzle. This innovative system forces players to think several moves ahead, making every decision critical to success.

Progressive Difficulty Across 100+ Levels

With over 100 challenging levels , the game offers extensive content that gradually increases in complexity. Early levels serve as a gentle introduction, allowing players to master the basic mechanics before diving into truly mind-bending challenges that will test even experienced puzzle solvers.

Time-Pressure Gameplay

Each level features a countdown timer that adds urgency to every move. This time constraint transforms methodical puzzle-solving into an adrenaline-pumping race against the clock, where quick thinking and strategic planning must work in perfect harmony.

Helpful Power-ups and Tools

When puzzles become particularly challenging, the game provides helpful tools: - Bonus screwdrivers for removing bolts when holes are scarce - Time freezers to pause the countdown during critical moments - Additional bolt holes through interactive advertisements - Point system that rewards successful completion and funds power-up purchases

Customization Options

Personalize your gaming experience by changing bolt appearances , adding a visual element that makes each playthrough feel unique and tailored to your preferences.

Gameplay Mechanics

Basic Controls and Objectives

Using simple left mouse button controls , players remove bolts from colorful panels and strategically place them in available holes. The primary objective is clearing all panels from the screen before time runs out.

Advanced Strategy Elements

Success requires mastering several key strategies: - Forward thinking : Anticipate how panel movements will affect available holes - Resource management : Use power-ups sparingly for maximum effectiveness - Pattern recognition : Identify optimal bolt removal sequences - Time management : Balance speed with strategic planning

Why Play Bolts and Nuts

Perfect for All Skill Levels

Whether you're a casual gamer seeking relaxing brain exercise or a puzzle veteran craving serious mental challenges, Bolts and Nuts delivers appropriate difficulty scaling. The game is suitable for children while providing enough depth to challenge adult problem-solving abilities.

Instant Accessibility

As a free browser-based game , Bolts and Nuts requires no downloads or installations. Simply open your web browser on any device - desktop, tablet, or mobile - and start playing immediately.

Addictive Progression System

The game's design creates a compelling "just one more level" experience. Each completed puzzle delivers genuine satisfaction while immediately presenting the next challenge, creating an engaging progression loop that keeps players coming back.

Cognitive Benefits

Beyond entertainment, Bolts and Nuts serves as excellent brain training , improving: - Strategic thinking abilities - Problem-solving speed - Pattern recognition skills - Time management under pressure - Spatial reasoning capabilities

Cross-Platform Compatibility

Enjoy seamless gameplay across all devices. The game's responsive design ensures optimal performance whether you're playing on a desktop computer during breaks or on your smartphone during commutes.

Frequently Asked Questions (FAQ)