Repository for hosting the Godot project for Tortuga's Last Stand.
- Download the latest version of Godot from the Godot home page.
- Install git from the Git website.
- Open a terminal (I use Hyper but you can use the normal command line) in the folder you would like to store the repository in.
- Clone the project repository with
git clone https://github.com/Virtual-Quad/Tortugas-Last-Stand.git - Import the project in Godot by pressing import, then navigating to where you cloned the repository, then clicking on the
project.godotfile in theTortugas-Last-Standfolder.
- Ensure your branches are up-to-date (using
git pull). - Choose a task that you are interested in, assign yourself, and move it to in-progress.
- Open a terminal in the
Tortugas-Last-Standfolder (right click in the folder to open Hyper if you installed it, or type cmd in the file path). - Read up on the Git Basics section below or ask questions if you are unfamiliar with Git.
- Branch off of main, and create a new branch in this format (
git checkout -b dev/name-here):leaf/IssueNumber-Issue_Name_or_Descriptionordev/IssueNumber-Issue_Name_or_Description - Example:
leaf/A1.1-Character_Movementordev/A1.1-Character_Movement - Do NOT use
main/as a pre-fix for your branch name. - Checkout to your newly created branch, work on your branch, and when you finish the task, open a pull request and get two approvals, and mention the issue number in your pull request.
- When you receive one approval, squash and merge your pull request, and put the Github issue # of your task in the front of the merge message.
- Do not be afraid to ask questions.
- Read the Godot Documentation for references.
- Look up how other people have solved your problem or similar problems with Godot.
- Use
git branch example-branch-nameto make a new branch. - Use
git checkout example-branch-nameto switch to a different branch. - To do the branch and checkout commands in one command, do
git checkout -b example-branch-name. - Use
git add .to add all your changes to be committed. - Use
git commit -m "Your message here"to make a commit and add a message along with it. (Any time you make a decent amount of changes, you should commit it with a descriptive message). - Use
git pushto push your changes to your current branch. - When you finish your task, open up a pull request to merge your changes into main.
- From here, get at least one approval, make any necessary changes, and squash and merge your changes, and place the issue number for the task you worked on in front of the merge message.
- Once merged, delete your development/feature branch, and close your issue.
- This project will have unit testing using the GUT framework.
- I would recommend trying to write unit tests for applicable code (but that doesn't mean you have to write one for every single function)!
- For some examples and tips, I would suggest reading some comments from this reddit post.
- A general idea would be you would write your test first to fail, then write your code to pass that test, then refactor the code to be better while still passing.