Build a First-Person Shooter

Movement, camera, weapons, projectiles, enemy AI, and screen effects for an FPS prototype.

8 steps 9 scripts 2 kits intermediate

The path

Add these in order. Each step builds on the one before it.

  1. Start: 3D character controller with sprint and jump PlayerController3D.cs · First/third person character controller with smooth movement, jumping, and slope handling using CharacterController.
  2. Add first-person mouse look FirstPersonCamera.cs · First person mouse look camera with sensitivity, vertical clamp, and cursor lock. Plug into any FPS or exploration game.
  3. Create melee and ranged weapons WeaponSystem.cs · ScriptableObject-driven weapon system with melee and ranged attacks, cooldowns, ammo, and damage calculation.
  4. Add projectiles with damage and pooling Projectile.cs · Configurable projectile with speed, damage, lifetime, and optional homing. Integrates with Object Pool for zero-alloc shooting.
  5. Add health to player and enemies HealthSystem.cs · Reusable health component with damage, healing, invincibility frames, and events.
  6. Add impact feedback with camera shake CameraShake.cs · Perlin noise camera shake with magnitude, frequency, and duration. Trigger from explosions, impacts, or any event.
  7. Create enemies that detect and chase the player EnemyChaseAI.cs · Enemy AI that detects the player within radius, chases with line-of-sight, and returns to patrol when player escapes.
  8. Spawn enemy waves for combat encounters WaveSpawner.cs · Wave-based enemy spawner with configurable wave definitions, spawn points, delays, and wave completion callbacks.

Kits for this path

Every script in this path