Design Document and all individual contribution reports can be found in the /docs folder of this repository.
These instructions will get you a copy of the project up and running on your local machine for development and testing.
NOTE: This guide is meant for Windows users. If you are using Linux or macOS, please let me, Johnny, know!
-
At least Godot 4, preferrably 4.4.1
(There's a beta version of 4.5, but we should use the stable 4.4.1 release)
-
Git installed on your machine. You can download it from git-scm.com.
(You may need to restart your computer after installation.)
-
Alternatively, you can use GitHub Desktop to clone the repository. Download it from desktop.github.com.
Go to the Extensions tab in VS Code and put @recommended into the search bar. This will show you all the necessary extensions for this project.
-
Download Godot 4 Windows build from godotengine.org.
-
IMPORTANT: Unzip
Godot_v4.x.x-stable_win64.exeunderC:\Godot.(This is important for running our setup script later on)
-
Open Godot once for it to initialize the necessary directories, then close it.
The most straightforward way is to use Git Bash CLI provided by Git
Open Git Bash where you want to clone the repository, then run:
git clone https://github.com/rmit-computing-technologies/assignment-2-tohardware.gitAlternatively, you can use GitHub Desktop to clone the repository and choose the destination folder.
The setup script will:
- Scan your system for your VS Code and Godot installations.
- Create the necessary VS Code settings file.
- Create a Godot addon script to toggle settings needed for VS Code integration.
- Register the project in the Godot config for it to show up on the launcher.
- Go to the
/setupfolder in the cloned repository. - Run the
setup.batscript - Wait for the script to finish running. It will prompt you to press any key when done.
NOTE: You will also notice that the Godot theme color is applied automatically afterwards.
After opening Godot again, you should see the project listed in the list. Click on it to open.
To ensure development consistency across the project, please follow these conventions:
-
Use
snake_casefor variables and functions; folder and file names. -
Use
PascalCasefor class names. -
Use
UPPERCASEfor constants. -
Group related stuff into separate folders and files.
-
For code indentation, use tabs, not spaces.
-
Try and have meaningful and descriptive comments, especially for functions, classes and other noteworthy sections of code. This helps others (and future you) understand the code better.
-
Ex:
player.gdextends Node2D class_name Player # Handles player movement and interactions. const myConst = 200 # Constant for some purpose. var myVar = 0 # Variable for some purpose. # This function does something. func myFunc(param1: int, param2: String) -> void: # This part does something ...some code # This part does something else ...some more code
-
-
Before introducing any changes to the codebase:
- Make sure to create a new branch from
main - Branch name should try to follow the format
type/short-description, wheretypecan be:assets(for adding or modifying assets)docs(for documentation changes, like README or code comments)refactor(for code refactoring)feature(for new features)fix(for fixing bugs)- Ex:
feature/add-player-character
- NOTES:
- Branch names must NOT contain spaces. Use hyphens
-to separate words instead. - You can do all the other stuff in a
featurebranch, but try to keep it minimal and focused on the main feature.
- Branch names must NOT contain spaces. Use hyphens
- Make sure to create a new branch from
-
When committing code:
- Keep commit messages concise and descriptive.
- Try your best to follow the format
[type] messagefor commit messages, wheretypecan be:feat(for new features),fix(for fixing bugs)docs(for non code-related things like added code comments or README)- Ex:
[feat] Added player assets
For other GDScript conventions, please refer to the Godot GDScript Style Guide.
- Simply download the file from the Release page, unzip the
.exeand run it - To play the game:
- Press
Enterto start. - Pause the game by pressing
Esc. - After losing, press
Enterto go back to the Main Menu. - Use
WASDorArrow keysto move the player. - Use
JorZto shoot. - On the Main Menu, hold
=in 3 seconds to reset the highscore
- Press
To compile the game, follow these steps:
- Open the project in Godot.
- Go to the Project menu and select Export.
- Choose the target platform (e.g., Windows).
- (Optional) Configure
rcedit: Go to Editor Settings > Export > Windows, then choose the includedrcedit.exefile in/build_tools. - Click on
Export Projectand choose the destination folder. - Click
Saveto export the project. - Just run the
.exefile in the destination folder to play the game.
This project uses MIT license for demo and educational purposes. See LICENSE for details.
However, audio assets are NOT covered by the MIT license and are subject to separate terms. See ASSETS_LICENSE for details.

