This is a template for a 3D multiplayer game developed in Godot Engine 4.3. It provides a basic structure for a multiplayer setup, where each player has a nickname displayed above their character and the option to choose from four different skins: red, green, blue, or yellow.
This template is also available in the Godot Asset Library.
docker build --platform linux/x86_64 -t godot-server-demo:latest -f docker/Dockerfile .Tag your image
docker tag godot-server-demo:latest my-namespace/godot-server-demo:latest
docker push my-namespace/godot-server-demo:latestYou need to login once to GitHub repository
rift docker login --username <your_username> --password <your_password>You launch your container with similar syntax to docker command. You can bypass host port to use the same port as container (8080:8080 equals 8080)
rift docker run -d -p 8080/udp my-namespace/godot-server-demo:latestYou can list running containers with rift docker ps command. It will also display ip address that can be used to connect to the server.
- Download or clone this GitHub repository.
- Open the project in Godot Engine.
- Press F5 or
Run Project.
Note: To test multiplayer locally, follow these steps:
Go to Debug > Customize Run Instances, then enable Enable Multiple Instances and set the number of instances to run simultaneously. In this template, the host is not treated as a player.
- W A S D to move.
- Shift to run.
- Space to jump.
- ` to show/hide chat
- Esc to quit.
- 3D-Godot-Robot-Platformer-Character - https://github.com/AGChow/3D-Godot-Robot-Platformer-Character (CC0)
- Godot Multiplayer Template - https://github.com/devmoreir4/godot-3d-multiplayer-template