Defend Your Nuts 2

Seele01-Flash
By
Defend Your Nuts 2 is an addictive free tower defense shooting game where you help Mr. Squirrel protect his precious nuts from waves of creepy invaders. Upgrade weapons, recruit fierce mice allies, and defend against increasingly challenging enemies.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "**Defend Your Nuts 2: Mobile Edition**". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style:** 2.5D Side-Scrolling perspective with a **Low-Poly, Cel-Shaded (Toon Shader)** aesthetic to mimic the original cartoon art style while ensuring high performance on mobile devices. Colors should be vibrant, saturated, and have bold outlines. * **Key Models:** * **Hero:** A cute, low-poly Brown Squirrel positioned on the left side, holding a weapon (start with a Bow or Slingshot). * **Objective:** A pile of golden Acorns (Nuts) positioned behind the Squirrel (far left). * **Enemies:** "The Creeps" - Low-poly Goblins, Skeletons, and Minotaurs. They spawn on the right and march left. * **Allies:** A small Wizard Mouse model (optional upgrade visual) standing near the squirrel. * **Environment:** A stylized forest branch floor. The background should be composed of 2-3 layers of flat planes (trees, moon, night sky) moving at different speeds (Parallax effect) to create depth without heavy rendering cost. * **Mobile Optimization:** Use `THREE.InstancedMesh` for enemies and projectiles. Limit texture sizes to 512x512. Use baked lighting where possible, relying on a single Directional Light for the toon effect. ### 2. Audio Requirements * **BGM:** A quirky, fast-paced "Cartoon War" track. It should feature orchestral hits (brass) mixed with playful pizzicato strings and a marching snare drum rhythm. * **Sound Effects (SFX):** * **Shooting:** A satisfying "Twang" (bow) or cartoonish "Pew-Pew" (guns). * **Impact:** A wooden "Thunk" or "Bonk" when enemies are hit. * **Theft:** A high-pitched "Yoink!" or crunching sound if an enemy steals a nut. * **UI:** Soft "Pop" sounds for button presses. ### 3. Gameplay Loop * **Core Mechanic:** The Squirrel is stationary on the left. Enemies spawn in waves from the right side of the screen and walk towards the Nuts on the left. * **Combat:** The player taps on the screen to fire projectiles from the Squirrel toward the touch position. Projectiles should have travel time and simple collision detection (AABB or Sphere). * **Win Condition:** Defeat all enemies in the wave. * **Lose Condition:** If enemies reach the nut pile, the Nut Count decreases. If Nut Count reaches 0, Game Over. * **Progression:** Killing enemies grants "Nut Points." Between waves, show a simple shop UI to upgrade Weapon Damage or Repair Defense (restore nuts). ### 4. Mobile Controls & Interaction * **Screen Orientation:** Landscape Mode (forced). * **Aiming & Firing:** * **Primary Input:** **Tap-to-Shoot**. The player taps anywhere on the right side of the screen, and the Squirrel automatically aims and fires a projectile at that coordinate. * **Weapon Swapping:** A vertical column of icons on the far right edge (thumb reachable) to switch between Bow (Single target) and Shotgun (Spread shot, slower cooldown). * **UI Layout:** * **Top Left:** Nut Counter (Health) & Wave Number. * **Top Right:** Pause Button (min size 44x44px). * **Feedback:** When an enemy is hit, spawn a floating damage number and slightly shake the camera (screen shake) for impact feel. Provide haptic feedback (vibration) on successful hits if supported. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

Defend Your Nuts 2 is a highly-rated free tower defense shooting game that combines cute cartoon graphics with intense strategic gameplay. With an impressive rating of 4.65 out of 5 stars from thousands of players, this game delivers an entertaining mix of shooting action and tower defense strategy that keeps players coming back for more.

In this charming sequel, you take control of Mr. Squirrel, a determined defender who will stop at nothing to protect his valuable nut collection. The game blends classic tower defense mechanics with direct shooting controls, creating a unique hybrid experience that appeals to fans of both genres.

Core Features

Defend Your Nuts 2 offers an engaging gameplay experience with several standout features:

Strategic Tower Defense Gameplay

Place defensive structures and plan your strategy carefully as waves of enemies attempt to steal your nuts. Each level presents new challenges that require tactical thinking and quick reflexes.

Direct Shooting Controls

Unlike traditional tower defense games, you can directly control Mr. Squirrel's aim and firing. Use your mouse to precisely target enemies and unleash devastating attacks.

Weapon Upgrade System

Collect resources to upgrade your arsenal with more powerful weapons. From basic acorn shooters to advanced nut launchers, customize your defenses to match your playstyle.

Adorable Ally System

Recruit fierce mice companions who fight alongside you. These cute but deadly allies provide additional firepower and special abilities to help turn the tide of battle.

Progressive Difficulty

Enemies become faster and stronger as you advance through levels. The escalating challenge ensures that even experienced players will find plenty of excitement.

Free Browser Gaming

Enjoy the complete game experience without any downloads or payments required. Play instantly in your web browser on any device.

Game Mechanics

The game features a unique blend of active shooting and passive tower defense elements. You'll need to balance direct combat with strategic placement of defensive structures. As enemies become more formidable, managing your resources and upgrading your equipment becomes crucial for survival.

The charming cartoon art style makes the intense battles feel lighthearted and fun, while the strategic depth keeps gameplay engaging across multiple sessions.

Operation Guide

Getting started with Defend Your Nuts 2 is simple:

  • Mouse Controls : Use your mouse to aim Mr. Squirrel's weapon and click to fire at approaching enemies
  • Number Keys (1-9) : Quickly switch between different weapons and tools in your arsenal
  • Strategic Placement : Click on designated areas to place towers and defensive structures
  • Upgrade Management : Use earned resources to improve weapons and unlock new defensive options

The intuitive control scheme makes it easy for new players to jump in while providing enough depth for strategic mastery.

Why Play This Game

Defend Your Nuts 2 stands out in the crowded tower defense genre for several compelling reasons:

Perfect Difficulty Balance : The game starts accessible for beginners but ramps up to provide genuine challenges for experienced players.

Charming Presentation : The cute graphics and humorous theme make it enjoyable for players of all ages, earning it an "All Ages" content rating.

No Financial Commitment : Being completely free removes any barrier to trying this entertaining game.

Instant Accessibility : No downloads or installations required - just open your browser and start playing immediately.

High Replay Value : Multiple upgrade paths and strategies encourage replaying levels to achieve better results.

Whether you're a tower defense veteran or new to the genre, Defend Your Nuts 2 offers an perfect introduction to strategic gaming with its blend of action and planning.

Frequently Asked Questions (FAQ)