Following the Game Makers Toolkit tutorial (https://www.youtube.com/watch?v=XtQMytORBmM) to learn Unity and game development.
- RPG Essentals SFX Free
- On flap:
30_Jump_03.wav
- On death:
52_Dive_02.wav
- On gain point:
001_Hover_01.wav
- On break record:
013_Confirm_03.wav
- On flap:
- Unity v2022.3.21f1
- Visual Studio v17.9.2
- With "Game development with Unity" extension
- Python v3.12.2
- Nuke v8.0.0 (Installed from commandline:
dotnet tool install Nuke.GlobalTool --global
)
In the .nuke/parameters.secrets.json
the GitHubPersonalAccessToken
parameter is defined.
https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens#creating-a-fine-grained-personal-access-token describes how to define one for the Build Script.
The token requires the following grants:
- Read+Write to contents (needed for creating Releases and uploading files to a release)
To generate the .nuke/parameters.secrets.json
file:
- Open commandline in repository root.
- Run
nuke :secrets secrets
- Provide a password (Save this to something like a Password Safe, as you'll require to provide it for build targets that depend on secrets)
- Navigate the menu to
GitHubPersonalAccessToken
and provide a value. - Navigate the menu to
<Save and Exit>
.
- Open commandline in repository root.
- Run
nuke --target CreateReleaseOnGithub --profile secrets --Version x.y.z
- The
Version
parameter can optionally be post-fixed with -alpha or -beta - Not specifying the
Version
parameter causes the script to ask you interactively in the commandline
- The
- Provide the password for the secrets file
- Open commandline in repository root.
- Run
nuke --target BuildWin32BitReleaseZipFile --Version x.y.z
- The
Version
parameter can optionally be post-fixed with -alpha or -beta - Not specifying the
Version
parameter causes the script to ask you interactively in the commandline
- The
- The zip-file can be found in
<repo root>\Builds\winx86
- Open commandline in repository root.
- Run
nuke --target BuildWin64BitReleaseZipFile --Version x.y.z
- The
Version
parameter can optionally be post-fixed with -alpha or -beta - Not specifying the
Version
parameter causes the script to ask you interactively in the commandline
- The
- The zip-file can be found in
<repo root>\Builds\winx64
- Open commandline in repository root.
- Run
nuke --target CreateReleaseCommitAndPush --Version x.y.z
- The
Version
parameter can optionally be post-fixed with -alpha or -beta - Not specifying the
Version
parameter causes the script to ask you interactively in the commandline
- The
- Open commandline in repository root.
- Run
nuke --target BuildAppAsWin32bit
. - Build can be found in
<repo root>\Builds\winx86
.
- Open commandline in repository root.
- Run
nuke --target BuildAppAsWin64bit
. - Build can be found in
<repo root>\Builds\winx64
.
- From repository root, open
GameMakersToolkitFlappyBirdTutorial
folder. - File > Build Settings
- Ensure Platform
Windows, Mac, Linux
is active.- If not, click the
Switch Platform
button in the lower right corner and wait for the switch to finish.
- If not, click the
- Click the 'Build and Run' button.
- When asked, determine the location to build
- Recommendation 32 bit:
<repo root>\Builds\winx86
for anWindows
target platform andIntel 32-bit
architecture - Recommendation 64 bit:
<repo root>\Builds\winx64
for anWindows
target platform andIntel 64-bit
architecture
- Recommendation 32 bit:
- Wait for the build to complete. The game will start automatically after.
- From repository root, open
GameMakersToolkitFlappyBirdTutorial
folder. - File > Build Settings
- Ensure Platform
WebGL
is active.- If not, click the
Switch Platform
button in the lower right corner and wait for the switch to finish.
- If not, click the
- Click the 'Build' button.
- When asked, determine the location to build
- Recommendation:
<repo root>\Builds\html5
- Recommendation:
- Wait for the build to complete.
- Navigate into the build folder.
- Open a command line in that folder.
- Run the command:
python -m http.server
- Open a browser. Naviate to
localhost:8000
(assuming 8000 portnumber; Specific port number is mentioned in the command line window). Game is now started.