Ludoteca - Strategic Puzzle Block Game

Seele01-Flash
By
Ludoteca is an innovative strategic puzzle game that challenges your logic and adaptability. Each level presents unique rules - sometimes you connect same-colored blocks, other times you must keep them apart. Test your problem-solving skills in this dynamic brain training experience.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "Ludoteca". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style**: A "2.5D" aesthetic inspired by Japanese Ukiyo-e woodblock prints. Use an **Orthographic Camera** to maintain a flat, puzzle-board look while giving blocks slight depth. * **Color Palette**: Use a vintage, textured paper palette. Background: Cream/Off-white (#FDF6E3) with a subtle grain texture. Blocks: Muted Teal (#2A9D8F), Burnt Orange (#E76F51), and Mustard Yellow (#E9C46A) with rough, ink-bled edges. * **Models**: * **Blocks**: Polyomino shapes (Tetris-like: L, T, Z, Square) created using `THREE.ExtrudeGeometry` with a very shallow depth to simulate thick cardboard or wood tiles. Apply a rough paper texture map to the faces. * **Background**: A plane with a shader creating slowly drifting, stylized clouds and outlines of birds/mountains (like the reference image) in a faded ink style. * **Performance**: Low-poly geometry. Use a single texture atlas for all block colors to reduce draw calls. Disable dynamic shadows; use baked ambient occlusion or simple darker planes underneath blocks for shadow simulation. ### 2. Audio Requirements * **BGM**: A relaxing, meditative blend of Lo-Fi beats and traditional Japanese instruments (Koto or Shakuhachi). The music should be loopable and non-intrusive. * **SFX**: * *Selection*: A soft paper-rustling sound. * *Rotation*: A wooden "clack" or tile-sliding sound. * *Placement (Valid)*: A satisfying "thud" or ink-stamping sound. * *Placement (Invalid)*: A dull, wooden hollow sound. * *Win*: A harmonious 3-note chime (pentatonic scale). ### 3. Gameplay Loop * **Core Mechanic**: A grid-based tiling puzzle. The player is presented with a specific grid shape and a set of polyomino blocks. * **Dynamic Ruleset**: The game must support variable win conditions per level. Implement a rule-checking system that can toggle between: * *Mode A (Connect)*: Blocks of the same color MUST touch. * *Mode B (Isolate)*: Blocks of the same color MUST NOT touch. * **Flow**: 1. Blocks spawn in a "Tray" area at the bottom. 2. Player drags blocks onto the main grid. 3. Real-time validation: If a placement violates a rule (e.g., collision or color rule), show a red outline. 4. **Win Condition**: All grid cells are filled, and all specific level rules (adjacency/color) are satisfied. ### 4. Mobile Controls & Interaction * **Touch Input Scheme**: * **Drag**: One-finger touch and drag to move blocks from the tray to the board. Use raycasting to snap the block to the nearest grid cell (`Math.round` position logic). * **Rotate**: Since the PC version uses Right-Click (unavailable on mobile), implement **"Tap to Rotate"**. Tapping a block *while it is in the tray* rotates it 90 degrees. * **Orientation**: Portrait Mode (Vertical) to allow the puzzle board to sit on the top half and the block tray on the bottom half, reachable by thumb. * **UI/UX**: * The "Tray" area must be at the bottom 25% of the screen. * Blocks effectively scale up slightly when touched so the user's finger doesn't obscure the view. * **Haptic Feedback**: Trigger `navigator.vibrate(10)` when a block snaps into a valid grid slot. Trigger a double pulse on level completion. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

Ludoteca is a captivating strategic puzzle game that takes block placement to the next level. Unlike traditional puzzle games with static rules, Ludoteca challenges you with evolving constraints that change from level to level. This innovative approach creates a fresh and engaging experience that will keep you thinking and adapting throughout your gameplay journey.

The game combines the familiar satisfaction of block placement with the mental challenge of strategic thinking, making it perfect for puzzle enthusiasts who crave something more complex than standard matching games.

Core Features

Dynamic Rule System

What sets Ludoteca apart is its ever-changing ruleset. Each puzzle presents different objectives and constraints: - Connection Challenges : Some levels require you to connect blocks of the same color - Separation Puzzles : Other levels forbid same-colored blocks from touching - Mixed Objectives : Advanced levels combine multiple rules for maximum complexity

Strategic Block Placement

Every move matters in Ludoteca. You must: - Think Ahead : Plan your moves carefully to avoid getting stuck - Adapt Quickly : Adjust your strategy as new rules are introduced - Optimize Space : Make efficient use of the limited game board area - Rotate Strategically : Use block rotation to find the perfect fit

Brain Training Benefits

Ludoteca isn't just entertaining - it's a comprehensive brain workout that helps improve: - Logical Reasoning : Analyze rule patterns and consequences - Spatial Awareness : Visualize block placement and rotation - Problem-Solving : Find creative solutions to complex constraints - Adaptability : Quickly adjust to new challenges and rules

Game Mechanics

The core gameplay revolves around placing Tetris-like blocks on a grid while following specific rules that vary by level. The challenge isn't just fitting the pieces - it's understanding and working within the unique constraints each puzzle presents.

Progressive Difficulty

Ludoteca features a carefully designed difficulty curve that gradually introduces new concepts and rule combinations. Start with simple color-matching challenges and progress to complex multi-rule puzzles that will test even experienced puzzle gamers.

Operation Guide

Mouse Controls

  • Drag and Drop : Click and hold any block, then drag it to your desired position on the game board
  • Block Rotation : Right-click (or right mouse button) to rotate blocks 90 degrees
  • Dynamic Rotation : You can rotate blocks while dragging them for real-time positioning
  • Precise Placement : Release the mouse button to drop the block in its final position

Gameplay Strategy Tips

  1. Study the Rules : Each level displays its specific rules - read them carefully before placing blocks
  2. Plan Your Moves : Look at all available blocks before making your first move
  3. Use Rotation Wisely : Experiment with different orientations to find optimal placements
  4. Think in Sequences : Consider how each placement affects future moves
  5. Practice Patience : Take your time to analyze the puzzle before rushing into solutions

Why Play Ludoteca

Perfect for Puzzle Lovers

If you enjoy games like Tetris, Tangrams, or other spatial puzzles, Ludoteca offers a fresh take on block-based challenges. The changing rules system ensures you'll never get bored with repetitive gameplay.

Accessibility and Convenience

  • Free to Play : Complete puzzle experience with no hidden costs
  • Browser-Based : Play instantly without downloads or installations
  • Cross-Platform : Works seamlessly on desktop computers and mobile devices
  • Quick Sessions : Perfect for short breaks or extended puzzle-solving sessions

Educational Value

Ludoteca serves as an excellent tool for developing critical thinking skills, making it suitable for players of all ages who want to exercise their minds while having fun.

Unique Gaming Experience

The evolving rule system creates a puzzle game unlike any other. Each level feels fresh and presents new challenges, ensuring long-term engagement and replayability.

Frequently Asked Questions (FAQ)