Tetra Blocks

Seele01-Flash
By
Tetra Blocks is a modern take on the classic block-stacking puzzle game, featuring vibrant neon graphics and an innovative star-matching bonus system that adds extra excitement to the traditional gameplay.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "**Neon Cyber-Tetris**". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style:** Implement a vibrant, "Retrowave" or "Cyberpunk" aesthetic. The primary color palette should be deep midnight blue for the background with intense, glowing neon colors for the blocks (hot pink, cyan, lime green, bright orange, electric yellow). * **Grid & Background:** The playing field is a 10x20 grid. The background should feature a subtle, scrolling wireframe grid or a retro "starfield" effect that moves slowly to create depth without distracting the player. * **Block Design (Tetrominoes):** * Use simple 3D cubes to construct the classic I, O, T, S, Z, J, and L shapes. * **Critical Visual Effect:** Apply a `MeshStandardMaterial` with high `emissive` properties to make the blocks appear to glow. Add a `UnrealBloomPass` (post-processing) to create a soft, hazy neon bleed effect around the blocks. * **The "Star" Mechanic:** Randomly, individual blocks within a Tetromino should have a distinct texture (e.g., a pulsating star icon or a brighter core). Matching these star blocks when clearing a line triggers a special particle explosion. * **Ghost Piece:** Include a translucent, wireframe "ghost" piece at the bottom of the grid to show where the current block will land. * **Performance:** Keep geometry simple (low poly cubes). Use instanced mesh rendering if possible for the settled blocks to maintain high FPS on mobile devices. ### 2. Audio Requirements * **BGM:** A looped "Synthwave" or "Chillwave" track. It should be rhythmic but relaxing to induce the "flow state" mentioned in the description. Think low-tempo electronic beats with synthesizer pads. * **Sound Effects (SFX):** * *Movement/Rotation:* Crisp, short digital "blips." * *Hard Drop:* A satisfying, bass-heavy "thud." * *Line Clear:* A futuristic, ascending chime or a "laser sweep" sound. * *Star Bonus:* A high-pitched, magical "sparkle" or "power-up" sound when a star block is cleared. * *Game Over:* A pitch-down "powering off" sound effect. ### 3. Gameplay Loop * **Core Mechanics:** Classic falling block puzzle logic. Spawning random Tetrominoes at the top. * **Scoring System:** * Standard points for 1, 2, 3, or 4 (Tetris) lines cleared at once. * **Star Multiplier:** If a cleared line contains a "Star Block," award a significant point bonus (e.g., 2x or +500 points). * **Progression:** Increase the falling speed slightly for every 10 lines cleared. * **Game Over:** The game ends when a new piece cannot spawn because the grid is full. Show a neon-styled "Game Over" modal with the final score and a "Retry" button. ### 4. Mobile Controls & Interaction * **Orientation:** Portrait Mode (Vertical) is mandatory for this grid layout. * **Touch Controls (Invisible UI Overlay):** * **Tap Left/Right side of screen:** Rotate the piece (Left tap = Counter-Clockwise, Right tap = Clockwise). * **Swipe Left/Right:** Move the piece horizontally. Sensitivity needs to be tuned so one swipe doesn't fly across the entire screen unintentionally. * **Swipe Down:** Soft drop (moves faster). * **Swipe Down (Fast/Flick):** Hard drop (instant lock). * Alternatively, provide large, translucent on-screen buttons at the bottom (D-pad style) if gesture detection is too complex, ensuring buttons are at least 44x44px. * **Feedback:** * **Haptic Feedback:** Trigger a short vibration (`navigator.vibrate(50)`) when a piece locks into place or a line is cleared. * **Visual Feedback:** The screen should shake slightly (camera shake) when a "Tetris" (4 lines) is cleared. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

Tetra Blocks is a captivating arcade puzzle game that breathes new life into the beloved block-stacking genre. This modern interpretation of the classic formula combines nostalgic gameplay with stunning neon visuals and an innovative star-matching mechanic that rewards skilled players with bonus points.

The game creates a mesmerizing atmosphere with its groovy neon colors and smooth animations, designed to induce a flow state where time seems to fade away. Whether you're a longtime fan of block puzzle games or new to the genre, Tetra Blocks offers an engaging experience that's both familiar and refreshingly different.

Core Features

Innovative Star Bonus System

Unlike traditional block games, Tetra Blocks introduces a unique star-matching mechanic that gives players extra points when they successfully match special star pieces. This addition adds a new layer of strategy and excitement to the classic formula.

Stunning Neon Aesthetic

The game features vibrant, eye-catching neon graphics that create an immersive visual experience. The colorful blocks and glowing effects transform the familiar gameplay into a modern, stylish adventure.

Classic Gameplay Refined

At its core, Tetra Blocks maintains the addictive puzzle mechanics that made the genre famous - arranging falling blocks to form complete rows while preventing the stack from reaching the top.

Free Browser Gaming

Completely free to play with no downloads required. Simply open your web browser and start playing immediately on any device.

Gameplay Mechanics

The objective is straightforward yet challenging: direct falling tetromino pieces left or right to form complete horizontal rows. When you successfully create a spotless row without gaps, it disappears and awards points. The key to high scores lies in:

  • Strategic placement of pieces to maximize row completions
  • Star matching to earn bonus points through the special mechanic
  • Speed management as the game gradually increases in pace
  • Stack management to prevent blocks from reaching the top

Control Guide

Basic Controls

  • Arrow Keys : Move falling pieces left and right
  • Down Arrow : Soft drop (faster descent)
  • Spacebar or Up Arrow : Hard drop (instant placement)
  • Z/X Keys : Rotate pieces counterclockwise/clockwise

Advanced Techniques

Master players can employ advanced strategies like T-spins, wall kicks, and line stacking to achieve higher scores and handle faster speeds effectively.

Why Play Tetra Blocks

Perfect for All Skill Levels

Whether you're a casual gamer looking for quick entertainment or a puzzle enthusiast seeking a challenge, Tetra Blocks adapts to your skill level while providing room for improvement.

Stress Relief and Mental Exercise

The rhythmic gameplay and satisfying line clears make it an excellent stress reliever, while the strategic thinking required keeps your mind sharp and engaged.

No Commitment Required

As a browser-based game, you can enjoy quick sessions during breaks or extended play sessions - there's no pressure to install software or create accounts.

Timeless Appeal

The classic block-puzzle format has entertained players for decades, and Tetra Blocks proves that this formula remains as addictive and enjoyable as ever.

Platform Compatibility

Tetra Blocks runs smoothly on all modern web browsers and devices: - Desktop computers (Windows, Mac, Linux) - Tablets (iPad, Android tablets) - Smartphones (iPhone, Android phones) - Chromebooks and other web-enabled devices

The game automatically adjusts to your screen size and input method, ensuring optimal gameplay whether you're using keyboard controls or touch gestures.

Frequently Asked Questions (FAQ)