Zombie Cube Defense: Apocalypse Enhanced

Overview

Zombie Cube Defense: Apocalypse Enhanced is an action-packed, survival-based first- and third-person shooter built with Three.js. Set in a post-apocalyptic world, players must fend off relentless waves of zombies across a dynamic, destructible map. The game combines strategic combat, immersive visuals, and a variety of gameplay mechanics to deliver a thrilling experience for both desktop and mobile players.

Key Features

  • Dynamic Combat: Engage zombies with a primary gun (shoot with Space/Click) and grenades (G key), featuring headshot bonuses for double damage.
  • Zombie Types:
    • Normal: Fast, aggressive melee attackers (red, medium health).
    • Brute: Slow, tanky heavy-hitters (dark red, high health).
    • Spitter: Ranged enemies that fire toxic projectiles (green, low health).
  • Toggleable Perspectives: Switch between first-person (immersive aiming) and third-person (better situational awareness) views with the V key.
  • Interactive Map: Navigate a 50x50 arena with:
    • Buildings for cover (gray, indestructible).
    • Explosive barrels (red, trigger chain reactions).
    • Destructible walls (gray, breakable with gunfire or explosions).
  • Day/Night Cycle: A dynamic lighting system shifts between day and night, affecting visibility and atmosphere.
  • Upgrades: Earn points by killing zombies to purchase upgrades every two waves, including faster firing, increased damage, extra health, improved speed, or more grenades.
  • Health Bars: Zombies display real-time health bars above their heads, color-coded for quick assessment.
  • Grenade Mechanics: Throw grenades (limited supply) for area-of-effect damage, ideal for clearing zombie clusters or triggering barrels.
  • Wave System: Survive escalating waves, with a 5-second countdown timer displayed before each wave. Zombie numbers and difficulty increase over time.
  • Audio Immersion: Toggleable background music and sound effects (gunshots, explosions, zombie spawns) enhance the experience.
  • Local Storage: High scores are saved locally, encouraging replayability to beat personal bests.
  • Mobile Support: Touch controls include a joystick for movement, shoot button, and grenade button, with a crosshair for aiming in first-person mode.
  • Particle Effects: Enhanced visuals for blood splatters, explosions, and grenade impacts add to the chaos.
  • Pause and Restart: Pause with P key; restart from the game-over screen to try again.

Gameplay

Players spawn in the center of a 50x50 map, equipped with a gun and limited grenades. Zombies appear in waves, spawning at the map’s edges and pursuing the player. The goal is to survive as long as possible, earning points for kills to unlock upgrades. Use buildings for cover, trigger explosive barrels for crowd control, and break walls to create new paths. The game ends when the player’s health (displayed as a colored bar) reaches zero, showing final score, wave, and kills.

Controls

  • Desktop:
    • Move: WASD / Arrow Keys
    • Aim: Mouse
    • Shoot: Left Click / Space
    • Grenade: G
    • Toggle View: V
    • Pause: P
  • Mobile:
    • Move: Virtual joystick (touch)
    • Shoot: Shoot button
    • Grenade: Grenade button
    • Aim: Auto-aim in third-person; manual in first-person

Technical Details

  • Engine: Three.js with PointerLockControls for smooth camera handling.
  • Hosting: Requires a local server (e.g., python -m http.server) for pointer lock to work; access via http://localhost:8000/zombie_game.html.
  • Dependencies: Three.js (CDN), Orbitron font (Google Fonts), placeholder music (replaceable).
  • Collision Detection: Uses Box3 for accurate player, zombie, and obstacle interactions.

Objective

Survive the zombie apocalypse by mastering combat, leveraging the environment, and strategically upgrading your abilities. Can you achieve the highest score and dominate the leaderboards?

StatusReleased
PlatformsHTML5
Rating
Rated 5.0 out of 5 stars
(2 total ratings)
Authordevxsyntax
GenreShooter, Action
Tags3D, Indie, Retro
Average sessionA few seconds
ContentNo generative AI was used

Comments

Log in with itch.io to leave a comment.

nice game! making 3D games without game engine is very complex task 🙎