A FPS Survival Game

Using Unity 3D

FPS Survival Game is an open world game with endless waves of zombies, cannibals, and wild boars trying to kill you. Try to survive as long as you can with your six given weapons: axe, revolver, shotgun, assault rifle, spear, and bow. Switch between weapons using numbers 1-6 on keyboard or with the scroll wheel on your mouse. Enemies have spawn points throughout the map. They only chase you if you cross into their chase radius and attack once they’ve reached you. The enemy’s chase radius is made larger when they are provoked by being attacked first. All weapons are shot by left clicking and can be aimed (zoom) with right click except the axe. The bow and spear require you to draw before shooting.

In this project I learned how to animate the player, weapons, and enemies. To draw certain weapons I used two cameras with different FOVs. Dealing damage the axe has an attack point attached to its head to detect collisions just like the punches and kicks in the Beat Em Up game . Projectiles, like the spears and arrows, have similar attack points attached on the head of the projectiles. These prefabs that are instantiated when fired and shoot forward using a force. They also slightly rotate in a forward arch to imitate gravity. The remaining hitscan gun weapons use Ray Tracing to register a hit. The player has a capsule collider that resizes when crouching and jumps with the player when jumping. Sound FX are placed throughout the map, the player, the weapons, and on the NPCs. The game has a scene manager.

The UI added includes a health and stamina bar (top left) which both regenerate over time. Stamina is used for the player’s sprint ability. Two more enemy health bars will appear (top right) only when an enemy is actively aware of you. The top bar is used for cannibals/zombies and the bottom one is for boars. If you have more than one enemy after you, the enemy health bar will show the last enemy you attacked. A new enemy will spawn at one of the designated spawn points when another of its kind has been killed. It will patrol the map on walkable terrain using Unity's NavMesh Pro.