Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bend-n/splitter
1-6 player splitscreen multiplayer addon
https://github.com/bend-n/splitter
godot-engine gpm multiplayer splitscreen
Last synced: about 1 month ago
JSON representation
1-6 player splitscreen multiplayer addon
- Host: GitHub
- URL: https://github.com/bend-n/splitter
- Owner: bend-n
- License: mit
- Created: 2023-01-29T22:48:31.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-04-21T04:57:20.000Z (over 1 year ago)
- Last Synced: 2024-04-24T07:48:31.060Z (7 months ago)
- Topics: godot-engine, gpm, multiplayer, splitscreen
- Language: GDScript
- Homepage:
- Size: 907 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# splitter
[![version](https://img.shields.io/badge/4.x-blue?logo=godot-engine&logoColor=white&label=godot&style=for-the-badge)](https://godotengine.org "Made with godot")
[![package](https://img.shields.io/npm/v/@bendn/splitter?label=version&style=for-the-badge)](https://www.npmjs.com/package/@bendn/remap)
Small addon for multiplayer splitscreen
[![image](https://raw.githubusercontent.com/bend-n/splitter/main/.github/image.png)](_blank "Picture!")
## Usage
```GDScript
extends Splitscreenfunc _ready() -> void:
super()
var cam := Camera3D.new()
join().viewport.add_child(cam)
await get_tree().create_timer(1).timeout
cam = Camera3D.new()
join().viewport.add_child(cam)
```## Installation
With the Godot Package Manager
> **Note** The information here may not be up to date. For most up to date information, see [gpm#using-packages](https://github.com/godot-package-manager#using-packages-quickstart)
> **Warning** This addon is not compatible with being used as a sub addon(a addon to another addon), as it uses classes.
This addon is installable via the [gpm](https://github.com/godot-package-manager).
To install, create a [`godot.package`](https://github.com/godot-package-manager#godotpackage) file.
It should look something like this.```jsonc
packages: {
@bendn/splitter: 1.0.1 // this is the package version.
}
```Then download the [latest version](https://github.com/godot-package-manager/cli/releases/latest) of the [cli](https://github.com/godot-package-manager/cli#installation), move the executable to your `PATH` as `gpm` (`wget "https://github.com/godot-package-manager/cli/releases/latest/download/godot-package-manager.x86_64" -O /bin/gpm`).
And finally, to download[^1]:
```bash
gpm update # in the same dir as your godot.package
# or, if in a different dir,
# gpm update --config-file path-to-godot.package
```
Manually
- Download the repo (`wget https://github.com/bend-n/splitter/archive/refs/heads/main.zip && unzip main.zip`).
- Move the `splitter-main/addons/splitter` folder into your `addons` folder (`mkdir addons && mv splitter-main/addons/splitter addons/`)[^1]: [Usage instructions for the cli](https://github.com/godot-package-manager/cli#usage)