Mad Virus - Viral Infection Puzzle Game

Seele01-Flash
By
Mad Virus is an engaging puzzle game where you strategically spread a viral infection across a colorful grid. Select the right colors to maximize your infection rate and dominate the entire board.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "Mad Virus" (a Hexagonal Flood-Fill Puzzle). Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style**: A clean, "Cute" low-poly laboratory aesthetic. Use a soft, off-white or light gray background to represent a sterile surface or petri dish. * **Game Board**: Generate a **Hexagonal Grid** (Honeycomb pattern) of approximately 7-10 rings or a roughly 10x10 arrangement. * **Tile Models**: Each tile should be an extruded `CylinderGeometry` (6 segments) to form a 3D hexagon. They should have slightly beveled edges or look like soft gummy candies (using `MeshStandardMaterial` with some roughness and metalness for a plastic/gummy look). * **Color Palette**: Use 6 distinct, high-saturation "Cute" pastel colors (e.g., Bubblegum Pink, Mint Green, Sky Blue, Lemon Yellow, Lavender, Sunset Orange) to distinguish the "virus" strains. * **Visual Effects**: * **Infection Animation**: When tiles change color, they should perform a slight "pop" or "wobble" animation (scale up and down quickly using a tweening logic) to simulate a biological reaction. * **Lighting**: Soft ambient light + a directional light casting soft shadows to give depth to the hex grid. ### 2. Audio Requirements * **BGM**: A quirky, rhythmic, "thinking" style track. Think minimal synth-pop that sounds scientific but playful. * **SFX**: * **Infect**: A soft "squish" or "bloop" sound when the color spreads. * **Win**: A cheerful chime or major chord progression. * **Fail**: A comical "womp-womp" or glass cracking sound. * **UI Click**: Crisp, high-pitched ticks. ### 3. Gameplay Loop * **Core Mechanic**: This is a **Flood-Fill Puzzle**. The board starts with randomized colors on every hex. The player controls the "Virus" starting from the center hex (or top-left). * **Action**: The player selects one of the 6 colors from a UI palette. The starting cluster changes to that color and absorbs all adjacent hexes of the *same* new color. * **Goal**: Turn the entire board into a single color within a limited number of moves (e.g., 25 moves). * **Win Condition**: `activeTiles.length === totalTiles`. Show a "Virus Spread Complete!" victory modal. * **Lose Condition**: Move counter reaches 0 before the board is unicolor. Show a "Containment Failed" retry modal. ### 4. Mobile Controls & Interaction * **Screen Orientation**: Portrait Mode (vertical layout). * **Camera**: Fixed Orthographic camera looking down at the board (slightly angled is fine, but ensure the grid is fully visible). * **Controls**: * **Do not** require the player to tap the grid itself (fingers block the view). * Create a **Control Bar** at the bottom of the screen containing 6 large, circular buttons representing the available colors. * **Touch Feedback**: * Buttons should visually depress or highlight when tapped. * Trigger `navigator.vibrate(50)` (haptic feedback) on every valid move. * **UI Layout**: * **Top**: "Moves Left" counter (large, clear font) and a Reset button. * **Center**: The 3D Canvas. * **Bottom**: The 6-color palette bar (ensure buttons are at least 48x48px hit area). Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

Mad Virus is a unique puzzle game that combines strategic thinking with viral spreading mechanics. Your mission is simple yet challenging: infect as much of the game board as possible by strategically selecting colors. The game features a minimalist design with colorful hexagonal tiles that create an engaging visual experience as your virus spreads across the grid.

With a solid rating of 3.89 out of 5 stars, Mad Virus has captured the attention of puzzle enthusiasts who enjoy games that require both strategy and quick thinking. The game's simple concept belies its strategic depth, making it accessible to players of all ages while providing enough challenge to keep experienced puzzle solvers engaged.

Core Features

Strategic Color Selection

The heart of Mad Virus lies in its color-based infection system. You must carefully choose which color to target next, as each selection determines how your virus will spread. Adjacent tiles of the same color become infected, creating chain reactions that can dramatically expand your viral territory.

Progressive Difficulty

As you advance through levels, the puzzle layouts become more complex, requiring increasingly sophisticated strategies. You'll need to think several moves ahead to maximize your infection efficiency and achieve the best possible scores.

Minimalist Visual Design

The game features clean, colorful graphics with hexagonal tiles that make it easy to see the infection patterns. The cute visual style makes the virus theme approachable and fun rather than intimidating, perfect for players of all ages.

Quick Gameplay Sessions

Each level can be completed in just a few minutes, making Mad Virus perfect for quick gaming breaks or extended puzzle-solving sessions. The bite-sized gameplay keeps you coming back for "just one more level."

Gameplay Mechanics

The infection spreads based on color adjacency rules. When you select a color, all connected tiles of that color adjacent to your current infected area become part of your viral territory. The key is to identify which color selection will give you the maximum expansion with each move.

Strategic Planning

Success requires looking ahead and identifying color clusters that will provide the best spreading opportunities. Sometimes the optimal choice isn't immediately obvious, requiring careful analysis of the entire board state.

Chain Reactions

The most satisfying moments come when a single color selection triggers a massive chain reaction, suddenly expanding your infected territory across large portions of the board. Learning to set up and execute these combinations is crucial for achieving high scores.

How to Play

Basic Controls

  • Mouse Click : Select the color you want to target for infection
  • Color Selection : Choose from the available colors shown on the interface
  • Strategic Thinking : Plan your moves to maximize viral spread

Winning Strategy

The goal is to infect the entire board or achieve the maximum possible infection coverage. Each level may have different objectives, but the core mechanic remains consistent: select colors strategically to spread your virus as efficiently as possible.

Tips for Success

  • Look for large clusters of the same color adjacent to your infected area
  • Plan several moves ahead to set up powerful chain reactions
  • Consider the entire board layout before making each selection
  • Sometimes smaller immediate gains can set up larger future expansions

Why Play Mad Virus

Perfect for Puzzle Lovers : If you enjoy games that challenge your strategic thinking and pattern recognition skills, Mad Virus offers a unique twist on traditional puzzle mechanics.

Accessible Yet Deep : The simple color-selection mechanic makes the game easy to learn, but mastering the strategic elements provides long-term replay value.

Quick Entertainment : With fast-paced gameplay that doesn't require long-term commitments, it's ideal for casual gaming sessions.

Brain Training : The game exercises spatial reasoning, strategic planning, and pattern recognition skills, making it both entertaining and mentally stimulating.

Free to Play : Enjoy the complete gaming experience without any cost, accessible through your web browser on any device.

Frequently Asked Questions (FAQ)