This document outlines how to contribute to the Pali project, such as setting up your development environment, running the game, and contributing code.
- Install Godot Engine
- Clone this repository
- Open the project in Godot
Since this is a multiplayer game, you will need to run a dedicated server and connect to it with two clients.
We need to configure the server address in the Global.gd
script and then tell Godot to run three instances of the game in debug mode.
- Open the
Global.gd
script - Set the
SERVER_ADDRESS
tolocalhost
- In the Godot UI, click Debug -> Run Multiple Instances -> Run 3 Instances
To start a local server, e need to make sure the Create Server (debug only)
button will appear on the main menu. To do this, we need to check Scenes/MainMenuUI/MainMenuUI.gd
and make sure the Create Server (debug only)
button is visible by toggling Toggle Visibility
button next to the CreateServerBtn
.
Once you have configured Godot to start three instances and ensured the CreateServerBtn
is visible, you can run the game.
- Click the play button in the Godot UI
- In one of the three instances, click the
Create Server (debug only)
button - In the other two instances, click the
Join Server
button after entering a player name
- Fork this repository
- Create a new branch for your feature or bug fix
- Make your changes
- Push your changes to your fork
- Create a pull request to this repository
- Wait for a maintainer to review your changes
- Make any requested changes
- Once your changes are approved, they will be merged into the main branch