Tower Town - Stacking Game

Seele01-Flash
By
Tower Town is an engaging stacking game where you build an entire civilization in a single tower. Test your precision and timing as you stack floors higher and higher in this addictive browser-based challenge.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "Tower Town". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style**: Low-poly, stylized "Japanese Architecture" aesthetic (resembling Osaka Castle). The color palette should be pastel (light blues, sakura pinks, slate greens, and white). * **Tower Blocks**: Instead of simple cubes, the stacking blocks should visually represent floors of a castle. White walls with a slight teal/green "roof" lip at the top edges. * **Background**: A vertical gradient skybox transitioning from Day (light blue) to Sunset (orange/purple) as the tower gets higher. In the distance, a low-poly Mount Fuji silhouette should be visible at the base level. * **Effects**: * **Sakura Particles**: Gentle pink cherry blossom petals falling in the foreground. * **Debris**: When a block is trimmed (imperfect stack), the cut-off portion must physically fall down off the screen. * **Mobile Optimization**: Use `THREE.OrthographicCamera` for easier depth perception on small screens. Limit real-time shadows to the top 3 active blocks to save battery. Use simple `MeshLambertMaterial` for performance. ### 2. Audio Requirements * **BGM**: A relaxing, lo-fi hip-hop track mixed with traditional Asian instruments (Koto or Flute). * **Sound Effects**: * **Placement**: A satisfying wooden "Clack" or stone impact sound when a block is placed. * **Slice**: A sharp "Swish" sound when part of the block is cut off. * **Perfect Drop**: A high-pitched, harmonious chime/gong for perfectly aligned drops (combo counter). * **Game Over**: A crumbling stone sound. ### 3. Gameplay Loop * **Core Mechanic**: The player builds a tower by stacking blocks. A new block slides back and forth (alternating X and Z axes) above the previous block. * **Input**: On screen tap/click, the moving block stops immediately and drops. * **Slicing Logic**: * If the block is perfectly aligned with the one below: The stack grows, and the player gets a "Combo" multiplier. * If the block is misaligned: The overhanging part is "sliced" off and falls away. The remaining block becomes the new base size for the next turn (making the game harder as the tower gets thinner). * If the block misses entirely: The block falls, and it is **Game Over**. * **Progression**: The camera must smoothly pan up as the tower grows. * **Scoring**: +1 point for every block landed. Bonus points for "Perfect" drops. ### 4. Mobile Controls & Interaction * **Controls**: One-touch input. Trigger `touchstart` (and `mousedown` for PC debug) on the entire canvas to drop the block. * **Orientation**: Lock to **Portrait Mode** logic (camera aspect ratio adjusted for vertical screens). * **UI Layout**: * **Score**: Large, readable font (Impact or similar) at the top center. * **Start/Restart Button**: Large, rounded button (min 44px height) in the center of the screen when not playing. * **Feedback**: * **Haptic**: Trigger `navigator.vibrate(50)` on a successful drop and `navigator.vibrate(200)` on Game Over. * **Visual**: A white flash overlay on the block when a "Perfect" drop occurs. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About Tower Town

Tower Town is a captivating stacking game that challenges players to build an entire town within a single towering structure. With a 3.4/5 rating from players, this game combines precision timing with strategic stacking to create an addictive gaming experience. In a world where ground space is limited, the only way to expand is upward, making every click and timing decision crucial to your success.

Core Features

Precision-Based Gameplay

Tower Town demands exceptional hand-eye coordination as you time the release of swinging tower floors. Each floor swings from side to side, and you must click at the perfect moment to drop it precisely on target. Missing the base shrinks your available space, making subsequent floors increasingly challenging to place.

Progressive Difficulty System

The game features an intelligent difficulty curve that keeps players engaged. Each missed placement reduces the size of your foundation, creating a smaller target for the next floor. This mechanic ensures that the game becomes progressively more challenging as you build higher, testing your skills and concentration.

Scoring and Bonus System

Earn points by reaching predetermined tower heights, with bonus points awarded for maintaining maximum tower width. The wider your tower remains, the higher your score multiplier, encouraging players to maintain precision throughout their building journey.

Cross-Platform Compatibility

  • Free to Play : Completely free with no hidden costs or premium features
  • HTML5 Technology : Runs smoothly in any modern web browser
  • Mobile-Friendly : Optimized for both desktop and mobile devices
  • Instant Play : No downloads or installations required

Gameplay Mechanics

Tower Town revolves around a simple yet challenging core mechanic. Players watch as building floors swing back and forth across the screen, timing their clicks to drop each floor onto the growing tower. The key to success lies in:

  • Timing Precision : Releasing floors at the exact moment they align with your base
  • Width Preservation : Maintaining as much floor space as possible for higher scores
  • Strategic Planning : Understanding that each mistake compounds the difficulty

Visual and Audio Design

The game features clean, colorful graphics with a charming city-building theme. Each successfully placed floor adds to your growing civilization, creating a visual sense of progress and achievement.

Operation Guide

Basic Controls

  • Left Mouse Button : Click to drop the swinging floor onto your tower base
  • Timing : Watch the floor swing from left to right and release when perfectly aligned
  • Goal : Keep as much of each new floor on the base as possible

Winning Strategy

  1. Focus on Precision : Accuracy is more important than speed
  2. Maintain Width : Wider towers score more bonus points
  3. Stay Patient : Rushed clicks lead to shrinking foundations
  4. Practice Timing : Each floor has a consistent swing pattern

Why Play Tower Town

Tower Town offers the perfect blend of simplicity and challenge that makes it ideal for quick gaming sessions or extended play. Whether you're looking to improve your reflexes, enjoy a casual gaming break, or challenge yourself with increasingly difficult precision tasks, Tower Town delivers an engaging experience that's both accessible to newcomers and rewarding for skilled players.

The game's instant-play nature means you can jump in immediately without any setup, making it perfect for office breaks, commute entertainment, or casual gaming at home. Its progressive difficulty ensures that you'll always have a new challenge to overcome, while the scoring system provides clear goals to work toward.

Frequently Asked Questions (FAQ)