Trap Craft - Minecraft Style Tower Defense Game

Seele01-Flash
By
Trap Craft combines Minecraft aesthetics with intense tower defense gameplay. Protect mystical portals from zombie hordes using creative traps and strategic defenses across multiple character storylines.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "Trap Craft". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style**: Voxel/Blocky aesthetic (Minecraft-inspired). Use low-poly `BoxGeometries` for almost everything to maintain high performance on mobile devices. Textures should be pixelated and vibrant. * **Environment**: A flat, grassy plane (`MeshLambertMaterial` with green color) serving as the base. A distinct gray "cobblestone" path winds from a spawn point to a destination point. * **Key Assets**: * **The Portal**: A blocky obsidian-style frame at the end of the path with swirling purple particles (using `THREE.Points`) representing the objective to protect. * **Enemies ("Noobs" & Zombies)**: Humanoid voxel characters composed of simple boxes. Give them the classic "Steve" color palette (cyan shirt, blue pants) but with goofy, vacant facial expressions (texture mapping). * **Traps**: * **Circular Saw**: A large, metallic, serrated disk that spins continuously. * **Spikes**: Floor tiles that extend sharp spikes upward. * **Player Character**: A first-person view (represented by a blocky hand on the screen) or a third-person voxel character. * **Optimization**: Use `InstancedMesh` for repeating floor blocks and environment props to reduce draw calls. Use simple directional lighting with soft shadows. ### 2. Audio Requirements * **BGM**: An upbeat, quirky 8-bit/chiptune track that loops. It should sound mischievous rather than scary. * **Sound Effects (SFX)**: * **Zombies**: Comical "Oof" or groaning sounds when hit. * **Traps**: Loud mechanical buzzing for the saw; metallic "clank" for spikes. * **UI**: A "cha-ching" or coin sound when a zombie is eliminated (gaining currency). A satisfying "thud" or "click" when placing a trap. * **Portal**: Low-frequency humming noise when zombies get too close. ### 3. Gameplay Loop * **Core Mechanics**: A wave-based Tower Defense mixed with Action. Zombies spawn in groups and follow the predefined path toward the Portal. * **Trap Placement**: The player spends "Coins" to place traps on the path. Traps deal damage over time or instant damage to enemies passing through them. * **Economy**: Start with basic funds. Killing a zombie grants +10 Coins. * **Win/Loss Condition**: * **Lose**: If 10 zombies reach the Portal, the game ends. * **Win**: Survive all waves (e.g., 3 waves of increasing difficulty). * **Player Interaction**: The player can move around the map to get better angles for placing traps, or potentially hit zombies manually (optional click-to-attack mechanic). ### 4. Mobile Controls & Interaction * **Orientation**: Landscape mode. * **Movement**: A Virtual Joystick on the bottom-left of the screen for moving the camera/character (WASD logic adaptation). * **Camera Control**: Swipe anywhere on the right half of the screen to rotate the view (First-person or Third-person camera). * **Trap Selection UI**: A hotbar at the bottom center with large, square icons (min 60x60px) representing available traps (Saw, Spikes). Selected trap highlights in yellow. * **Placement Action**: * Tap a "Place" button (floating action button on the right) to build the selected trap at the reticle's location. * Implement a Raycaster from the center of the screen to detect if the ground is valid for placement (must be on the path, not overlapping other traps). * Show a "ghost" preview of the trap before placing. * **Feedback**: Trigger a short vibration (Haptic Feedback) via `navigator.vibrate(50)` when a trap is successfully placed or a zombie dies. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About Trap Craft

Trap Craft is an innovative tower defense game that brings the beloved Minecraft pixel art style to strategic defense gameplay. This free online game challenges players to protect magical portals from relentless zombie attacks using an arsenal of creative traps and defensive strategies. With its unique blend of familiar blocky graphics and strategic gameplay, Trap Craft offers an engaging experience for both Minecraft fans and tower defense enthusiasts.

Core Features

Multiple Character Storylines

Experience the game through different perspectives with iconic Minecraft-inspired characters including Princess, Noob, Pro, and Herobrine. Each character offers a unique storyline with its own ending, providing excellent replay value and diverse gameplay experiences.

Creative Trap System

The heart of Trap Craft lies in its innovative trap-building mechanics. Players can strategically place various types of traps to create deadly obstacle courses for approaching zombies. From spinning saw blades to explosive devices, each trap serves a specific purpose in your defense strategy.

Portal Protection Gameplay

Your primary objective is defending mystical portals from waves of zombie attacks. The game requires both quick thinking and strategic planning as you manage resources, upgrade defenses, and adapt to increasingly challenging enemy waves.

Pet Companion System

Collect and befriend various pets that will accompany you throughout your defense missions. These loyal companions not only provide emotional support but can also assist in combat situations.

Authentic Minecraft Aesthetics

Enjoy the familiar blocky, pixelated graphics that Minecraft fans love, combined with smooth 3D gameplay mechanics that enhance the strategic elements of tower defense.

Gameplay Mechanics

Strategic Trap Placement

Success in Trap Craft depends on intelligent trap positioning. Study zombie movement patterns, identify chokepoints, and create elaborate trap combinations to maximize efficiency. The game rewards creative thinking and strategic foresight.

Wave-Based Defense

Face increasingly difficult waves of zombie enemies, each requiring different tactical approaches. Early waves serve as tutorials for learning basic mechanics, while later stages demand mastery of advanced strategies.

Resource Management

Balance your resources carefully between building new traps, upgrading existing defenses, and preparing for future waves. Efficient resource allocation is key to long-term survival.

Game Controls

Movement and Navigation

  • WASD keys or Arrow keys : Move your character around the battlefield
  • Mouse movement : Navigate menus and target specific areas

Trap Building and Combat

  • Left-click : Select traps, items, or interface elements
  • Hold and release left-click : Place traps strategically on the battlefield
  • Right-click and drag : Rotate camera view for better battlefield visibility

Advanced Controls

The intuitive control scheme allows for quick trap placement during intense moments while maintaining precision for strategic positioning.

Why Play Trap Craft

Perfect Fusion of Popular Genres

Trap Craft successfully combines the creativity and aesthetic appeal of Minecraft with the strategic depth of tower defense games, creating a unique gaming experience that appeals to fans of both genres.

Completely Free Experience

Enjoy the full game experience without any cost. Play directly in your web browser without downloads, installations, or hidden fees.

Cross-Platform Accessibility

Whether you prefer playing on desktop computers or mobile devices, Trap Craft adapts seamlessly to your preferred platform, ensuring optimal gameplay on both web browsers and Android devices.

High Replay Value

With multiple character storylines, various trap combinations, and increasingly challenging waves, Trap Craft offers countless hours of entertainment. Each playthrough can feel fresh with different strategic approaches.

Family-Friendly Content

The game features appropriate content for players of all ages, making it perfect for family gaming sessions or casual play during breaks.

Frequently Asked Questions (FAQ)