Wood Blocks - Classic Tetris Puzzle Game

Seele01-Flash
By
Wood Blocks is an engaging Tetris-style puzzle game featuring beautiful wooden block graphics. Place differently-shaped blocks on a 10x10 grid, clear complete lines, and achieve high scores in this addictive strategy puzzle.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "Wood Blocks". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style:** High-quality **skeuomorphic design** focusing on realistic wood textures. The aesthetic should be warm, polished, and relaxing. * **The Board:** A 10x10 grid recessed into a wooden board. The empty slots should look like carved indentations. * **The Blocks:** Procedurally generated wooden blocks (using `RoundedBoxGeometry` for smooth, light-catching bevels). Different block shapes (Tetrominoes and others) should have slightly different wood grain shades (oak, pine, cherry) to distinguish them, but keep the palette cohesive. * **Lighting:** Warm, studio-style lighting. A main directional light to cast soft shadows (enhancing the depth of the blocks) and an ambient light to keep the scene cozy. * **Mobile Optimization:** Use `InstancedMesh` for the grid tiles to reduce draw calls. Ensure textures are optimized (low resolution with high-quality filtering) or use procedural noise materials to save bandwidth. ### 2. Audio Requirements * **BGM:** A relaxing, acoustic guitar or lo-fi jazz track that loops seamlessly. It should be unobtrusive and Zen-like. * **Sound Effects (SFX):** * **Pick up:** A soft "woosh" or suction sound. * **Placement:** A solid, satisfying organic wooden "thock" or "clack" sound when a block snaps into the grid. * **Invalid Move:** A dull thud or subtle shake sound. * **Line Clear:** A harmonious chime or marimba run, accompanied by a "crunching" wood sound. * **Game Over:** A slowing-down musical cue. ### 3. Gameplay Loop * **Core Mechanic:** The game follows the "Woodoku" or "1010!" style mechanics. * **Spawn:** Three random block shapes appear in a "hand" area at the bottom of the screen. * **Place:** The player drags a shape onto the 10x10 grid. The block can only be placed if there is enough empty space. * **Clear:** When a full row (horizontal) or full column (vertical) is filled with wooden blocks, that line glows and disappears (clearing space). * **Scoring:** Points are awarded for placing blocks and bonus points for clearing lines (combo multiplier for clearing multiple lines at once). * **Gravity/Logic:** Unlike traditional Tetris, blocks **do not** fall automatically. They are static once placed. (Note: Although the description mentioned gravity, the "10x10 grid" + "3 shapes" mechanic implies static placement strategy, which is the standard for this genre). * **Win/Loss:** The game continues until there is no space on the board to place any of the remaining three shapes. ### 4. Mobile Controls & Interaction * **Touch & Drag:** Implement a robust Raycaster-based drag system. * **Essential Mobile Feature (Touch Offset):** When the player drags a block, render the block slightly **above** the touch point (Y-axis offset). This prevents the player's finger from obscuring the block and the grid underneath, allowing for precise placement. * **Visual Feedback:** * **Shadow/Ghost:** Show a semi-transparent "ghost" projection on the grid indicating where the block will land if released. * **Highlight:** Highlight valid grid slots in green and invalid ones in red during dragging. * **Haptics:** Trigger `navigator.vibrate(10)` when a block snaps into a valid position and a stronger vibration when a line is cleared. * **Screen Adaptation:** Lock the camera to a top-down perspective (OrthographicCamera is recommended for a clean puzzle look). The board should fit the width of the screen in Portrait mode. Ensure the UI (Score, Restart button) does not overlap the playable grid. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

Wood Blocks is a captivating puzzle strategy game that combines the classic Tetris gameplay with a charming wooden aesthetic. In this brain-teasing challenge, you'll place various shaped wooden blocks onto a 10x10 grid, using gravity and strategic thinking to create complete lines and maximize your score.

The game features beautiful wooden textures and a warm, rustic design that makes puzzle-solving both relaxing and engaging. Each round presents you with three different block shapes to choose from, requiring careful planning and spatial awareness to succeed.

Core Features

Classic Tetris-Style Gameplay

Experience the timeless appeal of block-dropping puzzle games with a fresh wooden twist. The familiar mechanics make it easy to learn while providing endless challenge for puzzle enthusiasts.

Strategic Block Placement

With three different shapes available each turn, you'll need to think ahead and plan your moves carefully. Every placement matters as you work to avoid creating unfillable gaps in your grid.

Beautiful Wooden Design

Enjoy the warm, natural aesthetic of wooden blocks and textures that create a relaxing gaming atmosphere. The game offers two background color options to customize your visual experience.

Mobile-Friendly Gaming

Perfectly optimized for mobile browsers, allowing you to enjoy puzzle gaming anywhere, anytime. The intuitive drag-and-drop controls work seamlessly on both desktop and mobile devices.

Game Mechanics

The objective is simple yet challenging: place the wooden blocks strategically to create complete horizontal or vertical lines. When you successfully fill a complete line, those blocks disappear, earning you points and creating space for more blocks.

Gravity plays a crucial role as blocks will drop down to fill empty spaces below them. This adds an extra layer of strategy, as you must consider not just where to place blocks, but how they'll settle after placement.

Operation Guide

Desktop Controls: - Mouse : Drag and drop blocks from the selection area to the grid - Left Click : Select and place blocks precisely where you want them

Mobile Controls: - Touch and Drag : Simply touch a block and drag it to your desired position on the grid - Tap : Select blocks and placement locations with intuitive touch controls

The game features an easy-to-learn control scheme that makes block placement smooth and precise, whether you're playing on a computer or mobile device.

Why Play This Game

Perfect for Puzzle Lovers : If you enjoy Tetris, block puzzle games, or strategic thinking challenges, Wood Blocks offers the perfect blend of familiar gameplay and fresh mechanics.

Relaxing Yet Challenging : The wooden aesthetic creates a calming atmosphere while the strategic gameplay keeps your mind engaged and sharp.

Accessible Anywhere : Being a browser-based game, you can play instantly without downloads or installations. Perfect for quick gaming sessions during breaks or extended puzzle-solving marathons.

Skill Development : Regular play helps improve spatial reasoning, strategic planning, and quick decision-making skills while providing entertaining gameplay.

Whether you're a casual gamer looking for a relaxing puzzle experience or a competitive player aiming for high scores, Wood Blocks delivers satisfying gameplay that grows with your skills.

Frequently Asked Questions (FAQ)