Dead of Night - Zombie Defense Game

Seele01-Flash
By
Dead of Night is an intense zombie defense game where you must survive nightly undead attacks. Build strategic defenses during the day, then fight for your life when darkness falls.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "**Dead of Night: Mobile Defense**". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style:** Low-poly 3D or Voxel art style (reminiscent of the original 2D sprites but modernized). Use a dark, gritty color palette dominated by mud browns, dark greens, and slate grays. * **Camera:** Top-down orthographic camera (Isometic view), optimized for mobile screens (landscape orientation). * **Lighting & Atmosphere:** * **Day Phase:** Even, slightly desaturated sunlight. * **Night Phase:** Heavy blue/black ambient light with thick distance fog (to obscure map edges and save rendering performance). The player character should have a dynamic **Spotlight** (flashlight) casting shadows. * **Key Models:** * **Player:** A distinct low-poly survivor character holding a shotgun. * **Zombies:** Green-skinned, blocky humanoids with red pants. Simple shambling animations. * **Defenses:** Wooden stake barricades (upgradeable visual states), barbed wire, and explosive barrels. * **Performance:** Use instanced mesh rendering for zombies and barricades to maintain 60FPS on mobile devices. Limit real-time shadows to the player's flashlight only. ### 2. Audio Requirements * **BGM (Day):** An eerie silence with subtle wind howling and distant crow caws. High-tension silence. * **BGM (Night):** Fast-paced, industrial horror synth tracks with a thumping heartbeat rhythm that speeds up as the wave progresses. * **Sound Effects (SFX):** * **UI:** Soft clicks for menu selection, a heavy "thud" when placing barricades. * **Combat:** loud, punchy shotgun blasts (bass-heavy), zombie groans (spatial audio based on distance), squishing sounds for zombie deaths, and wood splintering sounds when barricades are destroyed. ### 3. Gameplay Loop * **Phase 1: The Day (Preparation):** * The player is safe. A "Build UI" is active. * **Economy:** Player uses "Scrap" (earned from previous nights) to buy and place barricades, traps, or upgrade their weapon. * **Interaction:** Player taps a "Start Night" button when ready. * **Phase 2: The Night (Action):** * Zombies spawn from the map edges in waves, pathfinding toward the player. * Zombies attack barricades if they block the path. * **Objective:** Survive the timer or kill all zombies in the wave. * **Failure:** Player Health reaches 0. * **Progression:** Each survived night increases zombie density and speed. ### 4. Mobile Controls & Interaction * **Orientation:** **Landscape Mode** is mandatory. * **Day Controls (Touch & Drag):** * **Build Menu:** A scrollable bar at the bottom of the screen with icons (Barricade, Mine, Upgrade). * **Placement:** Select an item, then tap on the grid to place it. * **Start Button:** A prominent "Nightfall" button in the top-right corner. * **Night Controls (Twin-Stick Shooter):** * **Left Virtual Joystick:** Controls player movement. * **Right Virtual Joystick:** Controls aiming rotation and firing (shoot automatically when the stick is held/pushed). * **Feedback:** Add camera shake (screenshake) when shooting. Add haptic feedback (vibration) when the player takes damage or a barricade breaks. * **UI Design:** All buttons must be at least 44x44 pixels for touch targets. Use a red health bar floating above the player and a wave counter at the top center. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

Dead of Night is a thrilling zombie defense game that combines strategic planning with intense survival action. Rated 3.4 out of 5 stars by players, this game challenges you to survive relentless nightly zombie attacks by building smart defenses and making tactical decisions under pressure.

In this post-apocalyptic world, daylight is your friend and darkness brings terror. You must use precious daylight hours to construct barricades, set deadly traps, and prepare for the inevitable zombie onslaught that comes with nightfall.

Core Features

Strategic Defense Building

During daylight hours, you have limited time to construct your defensive perimeter. Choose wisely between different types of barriers, traps, and fortifications. Each structure serves a specific purpose in your survival strategy.

Day-Night Cycle Gameplay

The game features a unique day-night mechanic that creates natural tension. Use daylight for preparation and construction, then switch to combat mode when zombies emerge after dark.

Progressive Difficulty

As you survive more nights, zombie hordes become larger and more aggressive. Adapt your strategies and upgrade your defenses to handle increasingly challenging waves.

Resource Management

Balance your limited resources between different types of defenses. Every decision matters when your survival depends on smart resource allocation.

Free Browser Gaming

Enjoy this complete zombie defense experience directly in your web browser - no downloads, installations, or purchases required.

Gameplay Mechanics

Daytime Strategy Phase

During daylight, click to deploy various defensive structures around your position. Plan your layout carefully, considering zombie movement patterns and creating chokepoints to maximize your defensive efficiency.

Nighttime Combat Phase

When darkness falls, switch to combat mode. Use your mouse to aim and fire at approaching zombies. Your survival depends on both your defensive preparations and your shooting accuracy.

Trap Systems

Set up automated traps that continue working even when you're focused on direct combat. These passive defenses can be game-changers during overwhelming zombie attacks.

Operation Guide

Daytime Controls: - Mouse Click : Deploy and place defensive structures - Strategic Planning : Position defenses for maximum zombie elimination

Nighttime Controls: - Mouse Movement : Aim your weapon at incoming zombies - Mouse Click : Fire at undead targets - Tactical Positioning : Use your defenses as cover and support

Survival Tips: - Prioritize creating multiple defense layers - Leave escape routes in case you need to reposition - Monitor your ammunition and resource levels - Learn zombie movement patterns to predict attack routes

Why Play This Game

Perfect for Strategy Lovers : If you enjoy tower defense games with a horror twist, Dead of Night offers the perfect blend of strategic planning and action-packed combat.

Accessible Horror Gaming : Experience zombie survival thrills without graphic violence, making it suitable for players seeking tension without excessive gore.

Quick Gaming Sessions : Each survival attempt offers a complete gaming experience, perfect for players who want engaging gameplay in shorter time frames.

Skill Development : Improve your strategic thinking, resource management, and quick decision-making skills while having fun.

Free Entertainment : Enjoy full gameplay features completely free through your web browser, with no hidden costs or premium content locks.

Frequently Asked Questions (FAQ)