Bookworm - Word Puzzle Game

Seele01-Flash
By
Bookworm is an engaging word puzzle game where you feed a hungry worm by creating words from letter tiles. The longer your words, the more points you score!

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "**Bookworm 3D: Lexical Library**". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style:** "Cozy Academic Cartoon" style. Use warm, saturated colors (amber, oak wood, emerald green). The scene should feel like a 3D pop-up book. * **The Mascot (The Worm):** Create a low-poly 3D character on the left side of the screen made of simple geometric shapes (green spheres for body segments, cylinders for glasses). It should have a simple idle animation (bouncing or adjusting glasses). * **The Grid:** A 7x7 grid of 3D "wooden" tiles (chamfered cubes) suspended in the center. Each tile has a letter (A-Z) texture on top. * *Optimization:* Use `THREE.InstancedMesh` for the tiles to ensure 60 FPS on mobile devices. * **Special Tiles:** * *Burning Tiles:* Red tint with a simple particle emitter (squares rising up) representing fire. * *Gold/Gem Tiles:* Shiny material (high metalness/roughness) with a yellow or cyan point light reflection. * **Background:** A low-poly library setting. Bookshelves in the background with depth-of-field blur (simulated via texture or simple fog) to keep focus on the board. ### 2. Audio Requirements * **BGM:** A whimsical, "scholarly" track featuring pizzicato strings and light woodwinds (looping). * **SFX:** * *Selection:* A satisfying wooden "clack" or "click" when a tile is touched. * *Submit:* A "munching" or "crunching" sound when the worm eats the word. * *Score:* A rising chime glissando for high-scoring words. * *Hazard:* A crackling fire sound if a burning tile exists. * *Game Over:* A comedic "book closing" thud or a library "Shhh!" sound. ### 3. Gameplay Loop * **Mechanic:** Players connect adjacent letters (horizontal, vertical, and diagonal) to form English words. * **Tile Behavior:** When a valid word (3+ letters) is submitted: 1. The tiles disappear (scale down to 0). 2. Existing tiles in the columns fall down (gravity) to fill gaps. 3. New random letter tiles spawn at the top and drop in. * **Scoring:** longer words = exponential points. * *Bonus:* Words with 5+ letters spawn a "Gold Tile" in the next turn. Gold tiles double the word score. * **Threat (The Burning Tile):** Every few turns, a red "Burning Tile" spawns at the top. It drops down one row after every move. If a Burning Tile reaches the bottom row, the library burns down, and it's **Game Over**. * **Dictionary Logic:** Since this is a frontend prototype, include a placeholder array of common words (e.g., "THE", "AND", "BOOK", "WORM", "WORD", "GAME") for validation testing, or a simple mock function that returns true for testing visuals. ### 4. Mobile Controls & Interaction * **Screen Orientation:** **Landscape Mode** (to accommodate the Worm on the left and Grid on the right). * **Touch Controls:** Implement a **"Drag-to-Connect"** interaction scheme (Swipe gesture): * User touches a tile -> drags finger to adjacent tiles -> lifts finger to submit. * Draw a dynamic **LineRenderer** (thick, glowing yellow line) connecting the selected tiles so the finger doesn't obscure the selection. * **Visual Feedback:** * Selected tiles should pop up slightly (z-axis translation) and glow. * If the current selection forms a valid word (mock check), the line turns Green. If invalid, the line is Red. * **UI Elements:** * Top Right: Score Display (Large, legible font). * Top Left: "Current Word" bubble showing the letters being chained. * All UI buttons must have a hit area of at least 44x44 pixels. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About Bookworm

Bookworm is a captivating word puzzle game that combines vocabulary skills with strategic thinking. In this delightful brain teaser, you'll help feed a cute green worm by connecting letter tiles to form words. The game challenges players to think creatively and expand their vocabulary while having fun.

The premise is simple yet addictive: drag your mouse across adjacent letter tiles to spell words and feed the hungry bookworm. Each word you create disappears from the board, making room for new letters and opportunities for even better words.

Core Features

Engaging Word Mechanics

The game's core appeal lies in its intuitive word-building system. Simply drag your mouse from one letter to another to create words of any length. The tiles must be adjacent (horizontally, vertically, or diagonally) to form valid connections.

Scoring System

  • Longer words = Higher scores : Three-letter words earn basic points, while longer words provide exponentially more rewards
  • Special letter tiles : Gold and colored letters appear throughout the game, offering bonus points when included in your words
  • Strategic depth : Plan your moves carefully to maximize scoring opportunities

Progressive Challenge

As you advance through the game, red "burning" tiles appear that add urgency and excitement. These tiles slowly work their way down the board - if they reach the bottom, the game ends! This mechanic keeps players engaged and thinking quickly.

Game Mechanics

Word Formation Rules

  • Connect adjacent letter tiles by dragging your mouse
  • Words must be at least 3 letters long
  • All standard English dictionary words are accepted
  • Longer words provide significantly more points
  • Special tiles multiply your word scores

Victory Conditions

The goal is to achieve the highest possible score while preventing burning tiles from reaching the bottom of the board. Success requires balancing quick word formation with strategic tile management.

Operation Guide

Basic Controls: - Mouse drag : Select letter tiles to form words - Click and drag : Start from any letter and drag to adjacent tiles - Submit words : Release the mouse to submit your word - Clear selection : Click elsewhere to cancel current word selection

Strategy Tips: - Look for opportunities to use rare letters like Q, X, and Z - Prioritize longer words when possible - a 6-letter word scores much more than two 3-letter words - Pay attention to special colored tiles for bonus points - Clear burning red tiles quickly to prevent game over

Why Play Bookworm

Perfect Brain Training : Bookworm offers excellent mental exercise, improving vocabulary, spelling, and pattern recognition skills. It's educational entertainment at its finest.

Accessible for All Ages : The game's simple mechanics make it perfect for players of all skill levels, from children learning to spell to adults looking to challenge their vocabulary.

Stress-Free Gaming : Unlike action-packed games, Bookworm provides a relaxing yet engaging experience that you can play at your own pace (until those burning tiles appear!).

Instant Accessibility : Play immediately in your web browser without downloads or installations. Perfect for quick gaming sessions during breaks or extended play sessions.

Proven Gameplay : This classic word game has entertained millions of players worldwide, standing the test of time with its perfectly balanced difficulty and rewarding progression system.

Frequently Asked Questions (FAQ)