Logic Magnets

Seele01-Flash
By
Logic Magnets is a challenging physics-based puzzle game that combines logic, spatial awareness, and strategic thinking. Master magnetic puck mechanics to create chain reactions and conquer increasingly difficult levels.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "Logic Magnets". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style**: A clean, minimalist "Modern Laboratory" aesthetic. Use a top-down orthographic camera view to ensure precision for puzzle-solving. * **Color Palette**: Based on the game cover, use a soft matte peach/salmon color (`#FFA07A`) for the game board background. * **Models**: * **Pucks**: Cylindrical 3D meshes with slightly beveled edges. * *Striker Pucks*: Glossy Red material. * *Target Pucks*: Glossy Purple material. * *Static Obstacles*: Matte Grey or Metallic. * **Score Zones**: Semi-transparent glowing circular areas on the floor (plane geometries) using a dashed-line shader or texture. * **Effects**: * Simple particle bursts (cubes or spheres) upon puck collision. * A "magnetic field" visual distortion or subtle pulse wave when pucks interact. * Trajectory guide: A dotted line appearing when the player prepares to launch a puck. * **Mobile Optimization**: Use `THREE.CylinderGeometry` with low radial segments (e.g., 16-24) for pucks. Use instanced mesh rendering if there are many identical objects. Limit real-time shadows to the active puck only; bake static ambient occlusion for the board. ### 2. Audio Requirements * **Background Music (BGM)**: A calm, cerebral "Lo-Fi / Ambient Electronic" track. It should be repetitive but non-intrusive, aiding concentration. * **Sound Effects (SFX)**: * *Drag/Aim*: A stretching synthetic string sound that increases in pitch with tension. * *Launch*: A soft "whoosh" or air-cannon sound. * *Collision*: A satisfying, solid "Clack" (like billiards) mixed with a metallic magnetic hum. * *Score*: A pleasant, high-pitched chime or major chord when a puck settles in the zone. * *UI*: Soft clicks for menus; a "rewind" tape sound for the Reset Level button. ### 3. Gameplay Loop * **Core Mechanism**: The player uses "Striker Pucks" to hit "Target Pucks" into designated "Score Zones." * **Physics Logic**: * Implement 2D physics (using Cannon.js or Matter.js wrapped for Three.js) on the X/Z plane. * **Magnetic Twist**: Pucks of the same color should slightly repel each other when close; opposite colors attract. This adds a layer of complexity to the standard billiard physics. * **Turn Structure**: 1. **Aim Phase**: Player selects a striker puck and sets direction/velocity. 2. **Action Phase**: Puck launches, causing chain reactions (collisions/magnetic deviations). 3. **Settle Phase**: Physics simulation stops when velocity drops near zero. * **Win Condition**: All Target Pucks must be resting inside the Score Zones. * **Fail Condition**: Any Target Puck falls off the board (if no walls) or the player runs out of moves/strikers without positioning all targets. ### 4. Mobile Controls & Interaction * **Control Scheme**: **"Slingshot" Mechanic**. * Touch and drag *away* from the puck to pull back (aiming). * Release touch to shoot. * The magnitude of the drag determines the force. * **Screen Adaptation**: * Lock to **Portrait Mode** for better one-handed play, or responsive design that scales the board to fit within the safe area. * Camera should zoom gently to fit all active elements on screen. * **UI Layout**: * Top Center: Level Indicator and "Par" (Move count). * Top Right: Pause/Menu button (min 44x44px touch area). * Bottom Center: A large, thumb-friendly "Reset" button to quickly restart the level if a shot is missed. * **Feedback**: * **Haptic**: Trigger a short vibration (`navigator.vibrate(10)`) on every puck collision. * **Visual**: The selected puck should highlight/glow to indicate it is ready for input. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About Logic Magnets

Logic Magnets is a captivating free puzzle game that challenges players to think strategically and understand physics principles. With a solid 4.3/5 rating, this game has proven to be a favorite among puzzle enthusiasts who enjoy combining logic with spatial reasoning.

In this innovative puzzle experience, you'll manipulate magnetic pucks to create chain reactions that clear each level. The game expertly blends cause-and-effect mechanics with physics simulation, creating a unique gameplay experience that tests both your planning skills and quick thinking.

Core Features

Physics-Based Puzzle Mechanics

The game revolves around understanding magnetic interactions between pucks. Each level presents a new configuration where you must analyze the positioning, predict movements, and execute precise shots to achieve your objectives.

Progressive Difficulty System

Starting with simple introductory levels, Logic Magnets gradually increases complexity. Advanced stages require multiple chain reactions, precise timing, and deep strategic planning to successfully clear all pucks into designated scoring areas.

Instant Play Technology

Built with HTML5 technology, the game loads instantly in any modern web browser. No downloads, installations, or plugins required – simply click and start playing immediately.

Cross-Platform Compatibility

Optimized for both desktop and mobile devices, you can enjoy Logic Magnets whether you're on your computer, tablet, or smartphone. The intuitive point-and-click controls work seamlessly across all platforms.

Game Mechanics

Strategic Planning Required

Success in Logic Magnets demands careful analysis of each puzzle setup. You must determine which puck to hit first, the optimal angle and force for your shot, and how the resulting chain reaction will unfold.

Magnetic Puck Interactions

The magnetic properties of the pucks create realistic physics interactions. Understanding attraction, repulsion, and momentum transfer becomes crucial as levels become more complex.

Scoring System

Your objective is to knock all pucks into designated scoring areas through chain reactions. Efficiency and precision are rewarded, encouraging players to find the most elegant solutions.

Operation Guide

Simple Mouse Controls

The game uses intuitive point-and-click mechanics: - Mouse Movement : Aim your shot by moving the cursor - Left Click : Select and launch a puck toward your target - Strategic Clicking : Choose your starting puck carefully to initiate the most effective chain reaction

Level Progression

Each successfully completed level unlocks the next challenge. Levels are designed to build upon previously learned mechanics while introducing new elements and obstacles.

Why Play Logic Magnets

Mental Exercise and Brain Training

Logic Magnets provides excellent cognitive exercise, improving problem-solving skills, spatial reasoning, and strategic planning abilities. It's entertainment that actually enhances your mental capabilities.

Perfect for Quick Gaming Sessions

With its instant-play format and level-based structure, Logic Magnets is ideal for both quick mental breaks and extended gaming sessions. Each level can be completed in minutes, making it perfect for busy schedules.

Free and Accessible

Completely free to play with no hidden costs, advertisements, or premium features blocking your progress. The game is designed to be enjoyed by players of all ages and skill levels.

Challenging Yet Fair

While the puzzles become increasingly complex, each level has a logical solution. The difficulty curve is carefully balanced to provide challenge without frustration, keeping players engaged and motivated to progress.

Frequently Asked Questions (FAQ)