Skip to content

fortunto2/zombie-blitz-3d

Repository files navigation

Zombie Blitz 3D

A fast-paced 3D first-person shooter game where you battle against waves of zombies. Built with React Three Fiber.

Zombie Blitz 3D

Features

  • 🧟 Wave-based zombie hordes with increasing difficulty
  • 🔫 First-person shooter gameplay with weapon effects
  • 🐕 Optional dog companion that helps you hunt zombies
  • 🏛️ 3D arena with obstacles and strategic positions
  • 🔊 Dynamic sound effects for an immersive experience
  • 📊 Score tracking and health system
  • 🎮 Full keyboard and mouse controls

Installation

Prerequisites

  • Node.js (v14 or newer)
  • pnpm (recommended) or npm

Setup

  1. Clone the repository:
git clone https://github.com/fortunto2/zombie-blitz-3d.git
cd zombie-blitz-3d
  1. Install dependencies:
pnpm install
# or with npm
npm install
  1. Start the development server:
pnpm dev
# or with npm
npm run dev
  1. Open your browser and navigate to http://localhost:5173

Game Controls

  • WASD - Move around
  • Mouse - Look around
  • Left Click - Shoot
  • ESC - Pause game

Technical Information

Built With

Project Structure

  • src/components/ - Game components (Player, Zombies, Arena, etc.)
  • src/hooks/ - Custom React hooks
  • src/models/ - 3D model components
  • src/engine/ - Game engine functionality
  • src/utils/ - Utility functions
  • public/assets/ - Game assets (sounds, images, etc.)

Performance Optimizations

The game includes several performance optimizations:

  • Efficient zombie spawning system with visual warnings
  • Collision detection optimizations
  • State batching to prevent React rendering issues
  • Level of detail adjustments for distant objects
  • Custom shaders for visual effects

License

MIT License - See the LICENSE file for details.

Contributing

Contributions, issues, and feature requests are welcome! Feel free to check the issues page.

Known Issues

  • In fullscreen mode, high CPU usage might occur in some browsers
  • Certain key combinations can cause input conflicts

About

3D FPS game with zombies built with React Three Fiber

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors