Sci-Fi Shooter Gameplay
The Sci-Fi Shooter is a simple third person shooter built in Unreal Engine 4. Players begin in a Sci-Fi base and must navigate the mazelike architecture while eliminating all enemy combatants. Assets provided by Unreal’s Free Library & GameDev.tv
Features
Full Project Code Available on GitHub. Clicking each code snippet will link to that specific code block in the github repository.
Artificial Intelligence Controller
The enemies in the game are controlled with Unreal Engine’s AI Behavior Tree, utilizing Services, Sequences and Tasks. The behavior is essentially for the enemy to do nothing until the player comes into the enemies line of sight, at which point the Enemy chases the player until it comes within range and starts shooting. If the player leaves the Enemy’s line of sight the Enemy will go to the player’s last known location. If it still can’t find the player, the Enemy returns to it’s starting location.
End Game
Players either win the game by eliminating all enemies, or get eliminated by enemies and lose the game. In either case, a UI Widget is spawned to communicate the result, and the game restarts taking advantage of Unreal Engine’s Timer API.