Boxhead - Zombie Survival Shooter

Seele01-Flash
By
Boxhead is an intense zombie survival shooter where you fight endless waves of undead enemies. Navigate through bloody battles while avoiding civilian casualties in this classic online action game.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "Boxhead Mobile Survival". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style**: Adopt a strict **Voxel / Low-Poly** aesthetic. All characters (Player, Zombies, Civilians) should be constructed from simple `THREE.BoxGeometry`. * **Player**: A white box character with a distinct face texture (like the provided reference). * **Zombies**: Green/Grey box characters, perhaps slightly varied in size. * **Civilians**: Blue or neutral-colored box characters. * **Environment**: A high-contrast, grey grid-based arena (concrete floor texture) with white bounding walls to prevent players from exiting the screen. * **VFX (Bloody Tag)**: This is a key requirement. Implement a `THREE.Points` particle system that emits red "blood" cubes or sprites when a zombie is hit or killed. The blood should splatter on the floor and stay for a few seconds before fading to optimize performance. * **Camera**: Use an `OrthographicCamera` positioned at an isometric angle (e.g., position (20, 20, 20), lookAt (0, 0, 0)) to mimic the classic flash game look while ensuring consistent rendering on different mobile screen sizes. * **Performance**: Use object pooling for zombies and bullets to maintain 60FPS on mobile browsers. Shadow mapping should be simple (e.g., `DirectionalLight` with basic shadows). ### 2. Audio Requirements * **BGM**: A fast-paced, adrenaline-pumping electronic or rock loop that plays during gameplay. * **SFX**: * **Shooting**: A punchy, arcade-style gunshot sound. * **Zombie Hit/Death**: squishy, organic impact sounds ("splat" noises) to emphasize the "Bloody" tag. * **Civilian Hit**: A distinct "buzzer" or error sound to indicate a mistake. * **Game Over**: A dramatic down-pitch sound effect. ### 3. Gameplay Loop * **Core Mechanic**: Wave-based survival shooter. The player must survive as long as possible against spawning zombies. * **Enemy Logic**: Zombies spawn from the edges of the map and move directly toward the player's position at varying speeds. * **Civilian Logic**: Civilians spawn periodically and wander randomly. **Constraint**: Killing a civilian deducts score or spawns an extra wave of fast zombies (punishment mechanism). * **Combat**: * Player fires projectiles in the direction they are facing. * 3 hits to kill a zombie; 1 hit to kill a civilian (fragile). * **Win/Loss**: The game continues until the player's health reaches 0 (collision with zombie). Display a "Game Over" modal with the final score and a "Tap to Restart" button. ### 4. Mobile Controls & Interaction * **Control Scheme**: Since the original used Arrow Keys + Space, translate this to a **Virtual Twin-Stick** or **Stick + Button** layout via HTML/CSS overlays on top of the canvas: * **Bottom-Left**: A virtual analog stick (or D-pad) for movement. * **Bottom-Right**: A large, circular "FIRE" button. Holding it down enables auto-fire. * **Orientation**: Force the rendering to fit the screen, but optimize the UI layout for **Landscape Mode** preference. If in Portrait, scale the camera zoom out to ensure the player sees enemies approaching. * **Feedback**: * **Haptic**: Trigger `navigator.vibrate(50)` when the player shoots and `navigator.vibrate(200)` when the player takes damage. * **Visual**: Flash the screen red slightly when the player is hit. * **UI Scaling**: Ensure the Health Bar (top left) and Score (top right) use large, readable fonts (min 24px) suitable for small phone screens. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

Boxhead is a thrilling zombie survival shooter that has captivated players with its intense action and strategic gameplay. In this bloody battle for survival, you'll face relentless waves of zombies trying to tear you apart. The game combines fast-paced shooting mechanics with survival strategy, creating an addictive gaming experience that keeps players coming back for more.

With a unique box-headed art style and gore-filled combat, Boxhead delivers pure adrenaline-pumping action. Every zombie encounter tests your reflexes and tactical thinking as you navigate through increasingly dangerous situations.

Core Features

Intense Zombie Combat

Face endless hordes of bloodthirsty zombies in heart-pounding survival battles. Each wave brings more dangerous enemies, testing your shooting skills and survival instincts to the limit.

Strategic Civilian Protection

The game adds a moral challenge - avoid shooting innocent civilians while battling zombies. This unique twist makes every shot count and adds strategic depth to the frantic action.

Classic Browser Gaming

Enjoy this iconic zombie shooter directly in your web browser. No downloads required - just pure, instant zombie-blasting action whenever you want it.

Progressive Difficulty

Start with manageable zombie groups and face increasingly overwhelming hordes. The escalating challenge ensures the game remains exciting as your skills improve.

Retro Action Style

Experience classic arcade-style shooting with modern browser compatibility. The distinctive box-headed character design and blood-splattered visuals create a memorable gaming atmosphere.

Gameplay Mechanics

Boxhead focuses on survival against overwhelming odds. Your character moves through various environments while zombies spawn continuously around you. The key to success lies in constant movement, accurate shooting, and smart positioning.

The civilian protection element adds complexity - accidentally shooting innocents can make your survival even more challenging. This creates tension between aggressive zombie elimination and careful target selection.

Operation Guide

Master these simple yet effective controls:

  • Arrow Keys : Move your character in all four directions
  • Spacebar : Fire your weapon at zombies
  • Strategic Movement : Keep moving to avoid being overwhelmed
  • Target Selection : Aim carefully to avoid hitting civilians

The controls are designed for quick response and fluid movement, essential for surviving the zombie apocalypse. Practice makes perfect - the more you play, the better your survival instincts become.

Why Play This Game

Boxhead offers the perfect blend of action and strategy that zombie game fans crave. The game's accessibility through web browsers means you can jump into zombie-slaying action instantly, whether you have five minutes or an hour to spare.

The unique civilian protection mechanic sets it apart from typical zombie shooters, adding moral complexity to the mindless action. This creates a more engaging experience that challenges both your reflexes and decision-making skills.

For fans of retro gaming and zombie action, Boxhead delivers authentic arcade-style entertainment with modern convenience. The progressive difficulty ensures long-term replay value as you strive to survive longer against increasingly impossible odds.

Frequently Asked Questions (FAQ)