High School Tower Defense

Seele01-Flash
By
High School Tower Defense is a hilarious strategy game where nerds battle jocks using clever traps and tower defenses. Rearrange furniture strategically and deploy unique nerd towers to protect your territory.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "High School Tower Defense". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style**: 3D Low-Poly with **Cel-Shading (Toon Shader)** to mimic the original Flash game's cartoon aesthetic. Bright, saturated colors typical of a high school setting (yellows, greens, team colors). * **Environment (The Map)**: * A grid-based "Classroom" or "Hallway" floor layout using a tiling wood or linoleum texture. * **Background**: Walls with lockers, chalkboards, and "Go Team!" posters to frame the play area without obstructing the view. * **Characters (Low Poly)**: * **Towers (Nerds)**: * *The Smelly Nerd*: Surrounded by a green gas particle cloud (AOE damage). * *The Love Nerd*: Wears pink, shoots heart particles (Slows enemies). * *The Geek*: Throws calculators or pencils (Standard projectile). * **Enemies (Jocks)**: * *Cheerleaders*: Fast movement, low health, distinctive blonde hair. * *Football Players*: Slow movement, high health, bulky geometry (Varsity jackets). * **Obstacles (Furniture)**: Desks and Chairs that act as walls. The player uses these to build the maze. * **Mobile Optimization**: Use `InstancedMesh` for enemy mobs and floor tiles to reduce draw calls. Texture resolution capped at 512x512. ### 2. Audio Requirements * **BGM**: A goofy, up-tempo **Ska-Punk** or **Marching Band** track (synthesized) that loops. It should sound chaotic but fun. * **Sound Effects (SFX)**: * *Spawn*: A school bell ringing. * *Tower Attack*: Cartoonish "Fart" noises (for Smelly Nerd), "Kiss" sounds (for Love Nerd), and "Pew Pew" (for Geek). * *Enemy Hit*: "Eww!" (Cheerleaders) or Grunts (Jocks). * *Game Over*: A sad trombone sound or a locker slamming shut. * *UI Click*: Chalk writing on a blackboard sound. ### 3. Gameplay Loop * **Maze Building (Core Mechanic)**: Unlike traditional TDs, the map starts empty. The player must spend "Lunch Money" to place **Furniture (Desks)** to block the enemies' path, forcing them to take a longer route. * **Pathfinding Logic**: Implement a grid-based **A* (A-Star) pathfinding algorithm**. If the player tries to completely block the path from Start to End, the placement must be invalid (highlight red). * **Wave Logic**: Enemies spawn from the "Entrance" (Door) and try to reach the "Teacher's Desk" (Base). * **Win/Loss**: * Player loses "Grade Point Average (GPA)" (Lives) if an enemy reaches the base. * Game Over if GPA drops to 0.0. * Win wave to earn "Lunch Money" to buy more Nerds or Furniture. ### 4. Mobile Controls & Interaction * **Camera**: Fixed Isometric Camera (OrthographicCamera preferred for grid precision). No rotation allowed to keep controls simple, but allow two-finger pinch to slight zoom. * **Touch Controls**: * **Drag & Drop**: Players drag towers/furniture from a bottom UI menu onto the grid. * **Raycasting**: Precise touch detection on the grid floor. * **Placement Feedback**: Show a **Ghost Mesh** while dragging. Green = Valid placement; Red = Invalid (blocked path or overlapping). * **UI Layout (Landscape Mode)**: * *Top Left*: GPA (Lives) and Lunch Money (Currency). * *Top Right*: Wave Counter and "Start Wave" button (School Bell icon). * *Bottom Bar*: Scrollable horizontal container for selecting units (Desk, Smelly Nerd, Love Nerd). Buttons must be at least 44x44 pixels for touch targets. * **Feedback**: * Trigger `navigator.vibrate(50)` on valid placement or button click. * Floating damage numbers pop up when enemies take damage. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

High School Tower Defense brings a fresh and humorous twist to the classic tower defense genre. In this engaging strategy game, you'll join Marvin and his fellow nerds in an epic battle against their natural enemies - the jocks! With a rating of 3.4/5 from players, this game combines strategic gameplay with laugh-out-loud humor that appeals to teens and strategy game enthusiasts alike.

The game's unique premise revolves around the age-old high school rivalry between nerds and jocks, but with a strategic twist that makes every playthrough entertaining and challenging.

Core Features

Unique Tower Defense Mechanics

Unlike traditional tower defense games, High School Tower Defense allows you to rearrange furniture as part of your defensive strategy. This innovative feature adds an extra layer of tactical thinking, as you can create mazes and chokepoints using desks, chairs, and other classroom furniture.

Specialized Nerd Towers

Deploy various types of nerd towers, each with unique abilities: - Smelly Nerd : Uses offensive odors to slow down and damage jock invaders - Love Nerd : Distracts jocks with romantic advances, causing confusion - Additional specialized towers with their own strategic advantages

Engaging Storyline

Follow Marvin and his nerdy companions as they execute their cunning plan to eliminate the jock threat using elaborate traps and strategic positioning.

Free Browser Gameplay

Enjoy this complete tower defense experience directly in your web browser without any downloads or installations required.

Gameplay Strategy

Furniture Arrangement Tactics

The key to success lies in smart furniture placement. Create winding paths that force jocks to take longer routes, giving your nerd towers more time to deal damage. Strategic chokepoints can make even the strongest jock waves manageable.

Tower Positioning

Place your nerd towers at optimal positions along the jock pathways. Consider each tower's range, damage type, and special abilities when planning your defense layout.

Resource Management

Balance your spending between new towers and furniture rearrangement. Sometimes repositioning existing defenses is more effective than building new ones.

Operation Guide

Basic Controls

  • Mouse : Primary control for all game interactions
  • Click and Drag : Rearrange furniture pieces to create strategic layouts
  • Click : Select and place nerd towers at desired positions
  • Menu Navigation : Access tower upgrades and game options

Getting Started

  1. Analyze the Map : Study the initial layout and identify key defensive positions
  2. Plan Your Defense : Decide where to place furniture obstacles and towers
  3. Deploy Strategically : Start with basic nerd towers and upgrade as resources allow
  4. Adapt and Overcome : Adjust your strategy based on incoming jock waves

Why Play This Game

Perfect Blend of Strategy and Humor

High School Tower Defense successfully combines deep strategic gameplay with genuinely funny content. The nerd vs jock theme is executed with clever humor that keeps players engaged beyond just the tactical elements.

Accessible Yet Challenging

The game is easy to learn but offers plenty of depth for strategy enthusiasts. The furniture rearrangement mechanic adds a unique twist that sets it apart from other tower defense games.

Teen-Friendly Content

With its Teen+ content rating, this game is perfect for younger players while remaining entertaining for adults who appreciate the nostalgic high school setting.

No Commitment Required

As a free browser game, you can jump in and play immediately without any downloads, registrations, or financial commitments. Perfect for quick gaming sessions or extended strategic planning.

Frequently Asked Questions (FAQ)