Awesome
Unreal Engine 4 Shooter Game Demo
The Unreal Engine Shooter Game demo with quality-of-life improvements. Improvements are licensed under the MIT license.
Command Line Options
-vulkan
: Render the game using the Vulkan graphics API (supported on Linux and Windows)
-dx11
: Render the game using the DX11 graphics API (supported on Windows only)
-dx12
: Render the game using the DX12 graphics API (supported on Windows only)
-benchmark
: Launch the Shooter game in benchmarking mode. In this mode, the game will launch directly into a Free-for-All match with no bots
-timeout
: Exit benchmark after the specified number of seconds. Default: 60
Releases
Prebuilt binary packages for Linux and Windows are available on the GitHub Releases page.
Linux Build Setup
-
Clone Unreal Engine 4 from source:
mkdir -p ~/src && cd src git clone https://github.com/EpicGames/UnrealEngine.git # or if you are using ssh authentication: # git clone git@github.com:EpicGames/UnrealEngine.git cd UnrealEngine # checkout target engine version git checkout 4.26.0-release
-
Run initial engine setup:
./Setup.sh ./GenerateProjectFiles.sh make
-
Clone Shooter Game source:
cd ~/src # make sure git-lfs is initialized; see https://www.atlassian.com/git/tutorials/git-lfs#installing-git-lfs git lfs install git clone https://github.com/cqcallaw/shootergame.git
-
~/src/UnrealEngine/GenerateProjectFiles.sh -project ~/src/shootergame/ShooterGame.uproject -game -engine
-
Run initial build engine (without which, the Unreal Editor complains about changing engine files):
~/src/UnrealEngine/Engine/Build/BatchFiles/Linux/RunMono.sh ~/src/UnrealEngine/Engine/Binaries/DotNET/UnrealBuildTool.exe Development Linux -Project ~/src/shootergame/ShooterGame.uproject -TargetType=Editor -Progress
-
~/src/UnrealEngine/Engine/Binaries/Linux/UE4Editor ~/src/shootergame/ShooterGame.uproject
Windows Build Setup
- Setup Visual Studio (the Community edition works)
- Download and launch Unreal Engine 4
- Clone the ShooterGame project (Git LFS is required; Github Desktop works well)
- Open the ShooterGame.uproject project
- Click File->Generate Visual Studio Solution
Build FAQ
- Why does time run too fast in-game?
- Non-Shipping and builds that without complete lighting can exhibit this behavior. Try a lighting rebuild and building a Shipping binary.
- Why is the player start position random?
- Verify that benchmark mode has been enabled with the
-benchmark
command-line argument. Without this flag, the game behaves as normal Shooter Game demo.
- Verify that benchmark mode has been enabled with the