Requires one of: UE 5.8 | UE 5.7
This is a very simple TopDown game template for quick prototyping and testing.
Follow the procedure below to fully customize your own new game based on this template.
NOTICE: DO NOT BLINDLY CUT/PASTE POWERSHELL INTO YOUR TERMINAL
Never trust someone else to think for you. Make sure you read each of these lines and you understand what it does before you execute it.
This project uses Lumen by default. You must explicitly enable legacy hardware support and static lighting if needed for your project.
## CHANGE THIS to your game name
$NewGameName = "MyGame"## CHANGE THIS to be your desired project root directory
$DevRoot = "C:/Dev" ## (on Linux/Mac use "~/dev")- Clone https://github.com/XistGG/XistGame-Template
- Rename Clone directory to
$NewGameName
# Make sure we are in your Dev workspace root
cd $DevRoot
# Clone XistGame-Template into $NewGameName
git clone https://github.com/XistGG/XistGame-Template $NewGameNameIf you want to switch branches, now is the time!
When you are happy with the branch you are on:
- Rename directories and files based on your name
- Replace content in source code based on your name
- Add CoreRedirect based on your name
# Make sure we are in your Dev workspace root
cd $DevRoot/$NewGameName
# NOTICE: IF YOU WANT TO SWITCH BRANCHES, DO SO NOW. For example:
# git checkout ue-5.7# This refactor might take a while depending on your hardware
./Scripts/Refactor.ps1 -NewGameName $NewGameName- Remove the Scripts directory (we ran the 1 script above, and we will not need it again)
- Disassociate your new game from the template Git repo
# Make sure we are in your Dev workspace root
cd $DevRoot/$NewGameName
# Don't want Scripts dir anymore
Remove-Item -Force -Recurse Scripts
# Disassociate our new game project from the template Git repo.
# NUKE the .git repo for XistGame since we're making a new game with a new repo.
Remove-Item -Force -Recurse .gitFor now, you can just keep the Git config from the Template repo unless you need to modify them specifically for your project needs.
# Make sure we are in your Dev workspace root
cd $DevRoot/$NewGameName
git init
git lfs install
git add .gitignore .gitattributes
git commit -m "Initialize UE5 Git Repo"If you get errors related to git lfs, you may need to
install Git LFS
For more info regarding setting up a new UE5 Git repository, see https://github.com/XistGG/UE5-Git-Init
- Open
$DevRoot/$NewGameName/$NewGameName.uprojectin Rider - Read your new Game README.md (it is copied from README.Template.md)
- Follow the setup instructions there