Weapon System
Tech Stack: Unity3D, C#
⚙️ Features:
-
Custom FPS Controller.
-
Smooth first-person movement with jumping and responsive camera controls.
-
-
Scalable Weapon System
-
Fully customizable weapons: Reload Time, Fire Rate, Magazine Size, Ammo Capacity, and Particle Effects.
-
-
Immersive Gameplay
-
Weapon sway, aiming with crosshair, instant-hit raycasting, and smooth weapon switching.
-
-
Audio-Visual Feedback
-
Integrated sound effects and dynamic shooting particle systems.
-
.png)
Design Patterns Used :
01.
MVC Architecture
-
MVC (Model-View-Controller)
-
Model: Handles weapon properties and player interactions.
-
View: Updates UI elements like crosshair position and ammo count.
-
Controller: Manages inputs and coordinates between Model and View.
-
02.
Service Locator
-
Centralized access to services like PlayerService, Weapon Management, and Sound.
-
Promotes decoupled architecture by eliminating direct dependencies.
03.
Observer Pattern
-
Unity Actions are used to start multiple functions in different services like UI and weapon without passing direct references to each other.