Recreating Incursion in UE5 with C++ - Store, Towers, Stat Tracking and More!

Опубликовано: 15 Август 2026
на канале: Luke Baughan
13
0

The video displays my latest changes to Incursion (C++):

The player's health now replenishes upon ending a wave
Created a pause menu widget which is displayed when pausing the game
Set up pause menu button event dispatchers for unpausing, displaying the controls menu and for returning to the main menu

Added a wave counter to the HUD which increments every wave

Added points to the HUD
Points are awarded by defeating enemies and surviving waves
Created Armoury menu which will be used for purchasing / selling towers
The armoury menu can be opened by pressing the "F" key
Upon opening the armoury, clicking on the "Standard" button Creates a preview tower (if the player has enough point to purchase it) which is held in front of the player
Pressing the "F" key while holding a preview tower while destroy it
When towers are placed next to each other, a wall is created between them

Towers can only be placed on unoccupied grid nodes (when a tower is placed on a grid node, the node becomes occupied)
Changed enemy collider from box collider to static mesh component (so that it would affect the nav mesh in the intended way)
Towers can't be placed if they will block the enemies path to the end goal


When enemies enter the tower attack radius the tower now uses a timeline to smoothly look towards the enemy (the body of the tower and the turret both rotate independently)
Towers continuously shoot (time between shots depends on rate of fire stat) the first enemy to enter it's attack radius
A sound effect and muzzle flash effect spawns at the tower's muzzle when firing
When shooting, towers' muzzles have recoil
If a targeted enemies either dies, reaches the goal or leaves the tower's attack range, the tower will target the next enemy (or will stop targeting if there are no enemies in range)

Added Blockade Towers: affordable towers which don't attack enemies but act as a wall, useful for controlling the enemies' path

Sell towers can now be placed on towers to sell them for half of their purchase price
Attempting to place a non-blockade tower on a blockade tower now sells the blockade tower and places the requested tower
Standard Tower: The same as the base tower but with a unique mesh
Quad Tower: Faster rate of fire but less damage than the standard tower, cycles between 4 muzzles to shoot from
Shotgun Tower: Slow rate of fire but shoots many pellets per shot, each pellet deals a set amount of damage

Upon finishing the last wave, a win screen is now displayed, where players can either restart the game or return to the main menu

The following stats are now saved and can be viewed in the stats menu:
Games Played
Victories
Enemies Killed
Total Points Earned
Player Deaths

Implemented the settings menu, the following settings can be changed: Fullscreen Mode, Graphics Quality, Vsync Enabled, Frame Rate Limit

Updated Level (New Meshes, Lighting, Skybox etc)



What is Incursion?

A mix of the tower defence genre and the first-person shooter genre where the player must defend against waves of alien enemies in order to survive.
They can achieve this by purchasing towers to attack autonomously in addition to shooting the enemies themselves.

Marketplace Content

I did not create the assets used in my project (meshes, sounds, animations, FX etc). The following is what I sourced to use:

Military Weapons Dark - Adia Entertainment
https://www.unrealengine.com/marketpl...

Military Weapons Silver - Adia Entertainment
https://www.unrealengine.com/marketpl...

Humanoids Creatures Pack - Bugrimov Maksim
https://www.unrealengine.com/marketpl...

41 Animations For Monsters - Bugrimov Maksim
https://www.unrealengine.com/marketpl...

Modular Sci-Fi Weapons - Ebal Studios
https://www.unrealengine.com/marketpl...

Animation Starter Pack – Epic Games
https://www.unrealengine.com/marketpl...

Aggressive EDM Music Pack - Intersonic Sound
https://www.unrealengine.com/marketpl...

Modular SciFi Season 1 Starter Bundle - Jonathon Frederick
https://www.unrealengine.com/marketpl...

Modular Scifi Season 2 Starter Bundle - Jonathon Frederick
https://www.unrealengine.com/marketpl...

Monsters Sound Two - Mechanics Mechanics
https://www.unrealengine.com/marketpl...

FPS Military Arms - Quantum Assets
https://www.unrealengine.com/marketpl...