Cursed Treasure - Tower Defense Game

Seele01-Flash
By
Cursed Treasure is an epic tower defense strategy game where you must protect your mysterious cursed treasure from waves of enemies. Build and upgrade powerful ice, volcano, and archery towers to create the ultimate defense system.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "Cursed Treasure 3D". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style**: Low-poly, vibrant "Diorama" style with a Toon Shader (Cel-shading) to mimic the cartoon art style while maintaining high FPS on mobile devices. * **Map Design**: A grid-based tile system. The path must be clearly distinguished from "High Ground" tiles where towers are placed. * **Terrain Types**: Implement three distinct terrain colors for tower foundations: Green (Grass), Blue (Snow/Ice), and Red (Scorched Earth). * **The Treasure**: A central "Treasure Pit" holding 5 glowing Green Gems. Use `THREE.PointLight` and a bloom effect to make them pulse. * **Characters (Low Poly)**: * **Enemies**: Peasants (basic), Ninjas (fast/stealth), Paladins (armored). Represented by simple geometric humanoid shapes with distinct colors. * **Towers**: * *Orc Den* (Green tiles): Wooden archer tower structure. * *Crypt* (Blue tiles): Stone obelisk emitting cold particles. * *Temple* (Red tiles): Obsidian structure with a magma core. * **Performance**: Use InstancedMesh for floor tiles and repeated enemy meshes. Texture resolution capped at 512x512. Limit dynamic lights; rely on baked ambient occlusion or simple directional lighting. ### 2. Audio Requirements * **BGM**: A loopable track that is "Mischievous and Evil" yet upbeat. Orchestral style with heavy percussion and brass, suitable for an "Evil Overlord" defending their loot. * **Sound Effects**: * **UI**: Crisp "Wood block" click sounds for menu selection. * **Combat**: distinct sounds for Arrows (swoosh), Ice Beam (crackling), and Fireball (explosion). * **Critical**: A loud "Alarm" or "Shatter" sound when an enemy picks up a gem. * **Feedback**: A "Coin jingle" sound when an enemy is killed. ### 3. Gameplay Loop * **Objective**: Protect the 5 Gems in the Treasure Pit. The player loses if all gems are carried off the map by enemies. * **Enemy Logic (The "Carry" Mechanic)**: 1. Spawn at "Start Point". 2. Travel along the path to "Treasure Pit". 3. If they reach the pit, they pick up 1 Gem (visualized by the gem attaching to the enemy model) and move at 50% speed back to the "Start Point". 4. If killed while carrying a gem, the gem drops on the floor and slowly floats back to the pit. * **Tower Mechanics**: * **Placement Restriction**: Green Towers can only be built on Grass tiles, Blue on Snow, Red on Scorched Earth. * **Damage Types**: Red (Splash damage), Green (Single target high speed), Blue (Slow effect). * **Economy**: Start with 500 Gold. Earn Gold by killing enemies. ### 4. Mobile Controls & Interaction * **Camera**: Fixed Isometric View (OrthographicCamera). No rotation needed to prevent motion sickness; allow single-finger panning within map limits. * **Touch Controls**: * **Raycasting**: Tap a "High Ground" tile to select it. * **Selection State**: * *Empty Tile*: Opens a floating circular menu or bottom sheet showing available towers for that terrain type. * *Existing Tower*: Opens a bottom sheet with "Upgrade" and "Sell" buttons. * **UI Layout**: * Top Left: Wave Counter & Health (Gem count). * Top Right: Gold Counter. * Bottom Center: Context-sensitive action bar (Build/Upgrade). Buttons must be at least 48x48px. * **Feedback**: * **Visual**: Screen shake (slight camera offset) when a Gem is stolen or a Fire tower explodes. * **Haptic**: Trigger `navigator.vibrate(10)` on valid button taps and `navigator.vibrate([50, 50, 50])` when a gem is stolen. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

Cursed Treasure is a captivating tower defense game that combines strategic planning with intense action gameplay. Your mission is simple yet challenging: protect your valuable cursed treasure from endless waves of intruders who dare to steal it. What they don't know is that your treasure carries a deadly curse - but that doesn't stop you from defending it with everything you've got.

This HTML5 browser game offers hours of strategic entertainment without requiring any downloads or installations. Simply open your web browser and dive into this thrilling world of tower defense warfare.

Core Features

Multiple Tower Types

The game features three distinct tower categories, each with unique combat abilities:

  • Ice Towers : Freeze enemies in their tracks, slowing down entire groups and giving your other defenses more time to eliminate threats
  • Volcano Towers : Unleash devastating fire attacks that can melt enemies where they stand with explosive area damage
  • Archery Towers : Provide precise, long-range attacks with deadly accuracy against individual targets

Strategic Upgrade System

As enemies become stronger and more numerous, your towers must evolve to meet the challenge. The comprehensive upgrade system allows you to:

  • Increase firing speed for rapid-fire elimination
  • Extend range to cover more battlefield area
  • Boost damage output for more powerful attacks
  • Unlock special abilities unique to each tower type

Progressive Difficulty

Each wave brings new challenges with stronger, faster, and more resilient enemies. Success requires careful resource management and strategic foresight to stay ahead of the increasingly dangerous threats.

Gameplay Strategy

Tower Placement Strategy

Effective tower placement is crucial for success. Consider these strategic elements:

  • Chokepoints : Position towers at narrow passages where enemies must pass
  • Coverage Areas : Ensure overlapping fields of fire for maximum effectiveness
  • Tower Synergy : Combine ice towers to slow enemies with high-damage volcano and archery towers
  • Resource Efficiency : Balance immediate needs with long-term upgrade planning

Enemy Analysis

Different enemy types require different defensive approaches. Study enemy patterns, speeds, and resistances to optimize your tower selection and upgrade priorities.

Operation Guide

The game features intuitive mouse-based controls designed for easy learning but deep strategic gameplay:

  • Mouse Navigation : Use your mouse to operate all in-game menus and interfaces
  • Tower Purchase : Click on tower icons to select and purchase different tower types
  • Tower Placement : Click on valid map locations to place your chosen towers
  • Automatic Combat : Towers automatically engage enemies within their range
  • Upgrade System : Click on existing towers to access upgrade menus and enhance their capabilities
  • Strategic Planning : Use the mouse to navigate between different game screens for planning and resource management

Tips for Success

  • Start with a balanced mix of tower types
  • Prioritize upgrades that complement your overall strategy
  • Always plan several waves ahead
  • Don't neglect defensive positions near your treasure
  • Experiment with different tower combinations

Why Play Cursed Treasure

Cursed Treasure stands out in the tower defense genre for several compelling reasons:

  • Completely Free : Enjoy the full game experience without any cost or hidden fees
  • No Download Required : Play instantly in your web browser using HTML5 technology
  • Cross-Platform Compatibility : Works perfectly on desktop computers, laptops, tablets, and smartphones
  • Engaging Storyline : The cursed treasure theme adds narrative depth to strategic gameplay
  • Balanced Difficulty : Challenging enough for strategy veterans while remaining accessible to newcomers
  • Replayability : Multiple strategies and approaches keep the game fresh across multiple playthroughs

Whether you're a tower defense veteran or new to the genre, Cursed Treasure offers the perfect blend of strategic depth and accessible gameplay. The curse may doom those who steal your treasure, but the real magic lies in the addictive gameplay that will keep you coming back for more defensive battles.

Frequently Asked Questions (FAQ)