Circuit Master - Electrical Puzzle Game

Seele01-Flash
By
Circuit Master is an engaging electrical puzzle game that challenges your logic and problem-solving skills. Connect wires, arrange components, and complete circuits to achieve the ultimate goal: lighting up the green bulb.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "Circuit Master". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style:** Create a "Clean Tech" aesthetic using low-poly 3D models with slightly rounded edges to look friendly and touchable. Use a color palette dominated by Deep Navy Blue (background), Metallic Silver (grid/base), Yellow (insulation), and bright Neon Green/Red for status indicators. * **Camera:** Implement a fixed Orthographic Camera (top-down or slight isometric view) to ensure the circuit grid is perfectly readable on mobile screens without perspective distortion. * **Key Components:** * **Power Source:** A stylized battery or generator model. * **Target:** A machine (like a lightbulb, fan, or tesla coil) that needs power. * **Conductors:** Straight wires, corner wires, T-junctions, and switches. * **Visual Effects:** Implement a `UnrealBloomPass` (EffectComposer) to make the electricity and "Green Light" glow intensely. Use a dynamic `LineLoop` or ShaderMaterial to simulate the crackling blue electric arc shown in the reference image when the circuit is active. * **Performance:** Use instanced mesh rendering for the grid tiles to maintain 60FPS on mobile. Limit dynamic lights; use baked lighting or simple ambient + directional light setup. ### 2. Audio Requirements * **BGM:** A low-tempo, "focus-oriented" electronic ambient track (Synthwave lite). It should be subtle and repetitive in a pleasing way. * **Sound Effects (SFX):** * **Drag & Drop:** A mechanical "Click" or "Clack" sound when a piece snaps into a grid slot. * **Connection:** A soft magnetic "thump" when two valid wire ends align. * **Power On:** A rising hum or charging sound. * **Success:** A crisp, high-pitched electrical "Zap" followed by a cheerful chime. * **Fail/Short Circuit:** A low-pitch buzz or "fizzle" sound. ### 3. Gameplay Loop * **Setup:** The scene presents a grid. A **Power Source** (Start) and a **Target Device** (End) are fixed on the board. The middle area contains scattered or misplaced circuit components (wires, resistors, switches). * **Action Phase:** The player drags movable components from a "Parts Tray" or rearranges existing tiles on the grid. * **Verification:** The player presses a large "TEST" button. * **Logic:** The system performs a pathfinding check (e.g., Breadth-First Search) from the Source. * If the path reaches the Target: The electricity visual effect flows along the path, the target activates (Green Light/Spinning Fan), and the level is won. * If the path is broken: The flow stops at the break, and a "red warning light" flashes. * **Constraint:** Include a "Battery Level" timer. The faster the player solves the puzzle, the more stars (1-3) they earn. ### 4. Mobile Controls & Interaction * **Input System:** Use Raycaster for touch events. Support both `touchstart/touchmove/touchend` and mouse events for cross-platform compatibility. * **Grid Snapping:** This is critical for mobile usability. When a player drags a component, it must visually "ghost" or snap to the nearest valid grid slot to avoid precision frustration. * **Hit Testing:** Ensure component hitboxes are slightly larger than the visual models (minimum 44x44 pixels equivalent) to accommodate "fat finger" interaction. * **UI Layout:** * **Portrait Mode:** Place the puzzle grid in the center, with the "Parts Tray" at the bottom and the "Test Button" prominently floating above the tray. * **Feedback:** When a piece is successfully placed/snapped, trigger a subtle `window.navigator.vibrate(20)` (Haptic Feedback) if supported by the device. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About Circuit Master

Circuit Master is a captivating puzzle game that combines electrical engineering concepts with brain-teasing gameplay. Your mission is simple yet challenging: arrange electrical components including wires, fans, and machines to create a complete circuit that powers up a green light indicator. This free online game offers an educational and entertaining way to understand basic electrical principles while exercising your logical thinking skills.

The game features intuitive drag-and-drop mechanics, making it accessible for players of all ages while providing increasingly complex challenges that will test even experienced puzzle enthusiasts.

Core Features

Educational Puzzle Gameplay

Learn fundamental electrical circuit concepts through hands-on puzzle solving. Each level introduces new components and circuit configurations, gradually building your understanding of how electricity flows through different pathways.

Progressive Difficulty System

Start with simple wire connections and advance to complex multi-component circuits. The game intelligently scales difficulty to maintain the perfect balance between challenge and achievability.

Battery Management Strategy

Solve puzzles efficiently to conserve your battery power. Quick thinking and optimal solutions are rewarded, adding a strategic element to each level.

Hint System

Stuck on a challenging circuit? Use the built-in hint system to get helpful guidance without spoiling the solution. Perfect for learning moments when you need a gentle push in the right direction.

Cross-Platform Compatibility

Enjoy seamless gameplay across all devices. Whether you're on a computer, smartphone, or tablet, Circuit Master adapts perfectly to your screen size and input method.

Game Mechanics

Circuit Components

Work with various electrical elements including: - Wires : Create pathways for electrical current - Fans : Moving components that require proper power flow - Machines : Complex devices that need specific circuit configurations - Power Sources : Battery units that provide electrical energy - Indicators : Green lights that signal successful circuit completion

Electricity Flow Visualization

Watch as electricity flows through your completed circuits with stunning visual effects. The game provides clear feedback showing exactly how current moves through your connections.

Operation Guide

Basic Controls

  • Click to Select : Tap or click on any circuit component to select it
  • Drag to Move : Hold and drag selected components to reposition them on the circuit board
  • Test Circuit : Use the power button to activate your circuit and see if electricity flows correctly
  • Reset Level : Start over if you need to completely redesign your approach

Winning Strategy

Success requires understanding electrical flow principles. Current must travel from the power source through connected components to reach the green light indicator. Ensure all connections are secure and pathways are complete before testing your circuit.

Why Play Circuit Master

Educational Value

Combine entertainment with learning as you discover electrical engineering principles through interactive gameplay. Perfect for students, educators, or anyone curious about how electrical systems work.

Brain Training Benefits

Exercise critical thinking, spatial reasoning, and logical problem-solving skills. Each puzzle challenges your mind in unique ways, promoting cognitive development and mental agility.

Stress-Free Gaming

Enjoy a relaxing puzzle experience without time pressure or competitive elements. Take your time to think through each solution and learn at your own pace.

Free Accessibility

Completely free to play with no hidden costs, subscriptions, or in-app purchases. Access full gameplay features without any financial barriers.

Perfect for All Ages

Simple enough for children to understand yet challenging enough to engage adult minds. Makes an excellent educational tool for classrooms or family game time.

Frequently Asked Questions (FAQ)