Edit of asset "Simple WebSocket Multiplayer" New

Old/Current New/Edit
Title Simple WebSocket Multiplayer
Description # Simple WebSocket Multiplayer for Godot

![Godot Version](https://img.shields.io/badge/Godot-4.x-blue.svg)
![License](https://img.shields.io/badge/License-MIT-green.svg)

A simple addon for Godot 4.x that provides a solid foundation for WebSocket-based multiplayer games, including a functional lobby, room system, and player synchronization. Mobile compatible.

## Features

* Automatic server connection.
* Simple lobby system (create/join rooms by code).
* Synchronized match start.
* Automatic spawning and management of player nodes.
* Includes a ready-to-use Node.js server example.

## How to Start (Quick Guide)

### 1. Install the Addon
1. Copy the `SimpleMultiplayer` folder into your project's `addons/` directory.
2. Go to **Project -> Project Settings... -> Plugins** and enable the "Simple WebSocket Multiplayer" plugin.

### 2. Set Up & Run the Server
The addon requires a Node.js server to run. The example server is in a separate repository.

**➡️ [Find the Server Repository Here](https://github.com/welson-rodrigues/ServidorWebSocketGodot)**

To run it locally, open the server's folder in a terminal and run `npm install`, then `node server.js`. For online play, a full tutorial on deploying to Render.com will be available in the video guide.

**➡️ [Full Video Tutorial (Coming Soon!)]**

### 3. Configure the URL in Godot
1. In the Godot editor, go to **Project -> Project Settings... -> Simple Multiplayer**.
2. Set the `Server Url` property:
* **Local:** `ws://127.0.0.1:9090`
* **Online:** `wss://your-server.onrender.com`

## How It Works

The addon provides two global Singletons:

* **`WebSocketClient`**: Manages the connection and communication with the server. It emits signals for key events like `connection_succeeded`, `room_created`, `room_joined`, and `start_game`. Connect to these signals in your lobby script to manage the UI flow.
* **`MultiplayerManager`**: Automatically listens for server commands to spawn, remove, and update player positions. It requires a node named `PlayerContainer` in your game scene to function.

## Example Project

For a complete and functional example, explore the `/demo` folder in the addon's main repository. It contains all the necessary scenes and scripts to see the addon in action.

## License
This project is distributed under the MIT License. See the [LICENSE](https://github.com/welson-rodrigues/GodotWebSocketMultiplayer/blob/main/LICENSE) file for more details.

---

*Created by Zee GameDev.*
*Visit my YouTube channel to learn how to use this addon!*
**➡️ [YouTube Channel]**
Simple WebSocket Multiplayer for Godot

A simple addon for Godot 4.x that provides a solid foundation for WebSocket-based multiplayer games, including a functional lobby, room system, and player synchronization. Mobile compatible.

Features

- Automatic server connection.
- Simple lobby system (create/join rooms by code).
- Synchronized match start.
- Automatic spawning and management of player nodes.
- Includes a ready-to-use Node.js server example.

How to Start (Quick Guide)

1. Install the Addon
1.2 Copy the `SimpleMultiplayer` folder into your project's `addons/` directory.
1.3. Go to **Project -> Project Settings... -> Plugins** and enable the "Simple WebSocket Multiplayer" plugin.

2. Set Up & Run the Server
The addon requires a Node.js server to run. The example server is in a separate repository.

Find the Server Repository Here https://github.com/welson-rodrigues/ServidorWebSocketGodot

To run it locally, open the server's folder in a terminal and run `npm install`, then `node server.js`. For online play, a full tutorial on deploying to Render.com will be available in the video guide.

Full Video Tutorial (Coming Soon!)

3. Configure the URL in Godot
3.1. In the Godot editor, go to Project -> Project Settings... -> Simple Multiplayer.
3.2. Set the `Server Url` property:
Local: `ws://127.0.0.1:9090`
Online: `wss://your-server.onrender.com`

How It Works

The addon provides two global Singletons:

`WebSocketClient`: Manages the connection and communication with the server. It emits signals for key events like `connection_succeeded`, `room_created`, `room_joined`, and `start_game`. Connect to these signals in your lobby script to manage the UI flow.
`MultiplayerManager`: Automatically listens for server commands to spawn, remove, and update player positions. It requires a node named `PlayerContainer` in your game scene to function.

Example Project

For a complete and functional example, explore the `/demo` folder in the addon's main repository. It contains all the necessary scenes and scripts to see the addon in action.

Created by Zee GameDev.
Visit my YouTube channel to learn how to use this addon!
Category Scripts
License MIT
Repository Provider GitHub
Repository Url https://github.com/welson-rodrigues/GodotWebSocketMultiplayer
Issues Url https://github.com/welson-rodrigues/GodotWebSocketMultiplayer/issues
Godot version Godot 4.4
Version String v3.1 v3.2
Download Commit bef1856b3af5d87ba2c574f9555dff77821d1081 f995b26db8d191c0eb4c8d7df606050b4e00bec9
Download Url (Computed) https://github.com/welson-rodrigues/GodotWebSocketMultiplayer/archive/bef1856b3af5d87ba2c574f9555dff77821d1081.zip https://github.com/welson-rodrigues/GodotWebSocketMultiplayer/archive/f995b26db8d191c0eb4c8d7df606050b4e00bec9.zip
Icon Url https://raw.githubusercontent.com/welson-rodrigues/GodotWebSocketMultiplayer/refs/heads/main/addons/SimpleMultiplayer/icon.png
https://raw.githubusercontent.com/welson-rodrigues/GodotWebSocketMultiplayer/refs/heads/main/addons/SimpleMultiplayer/icone2.jpg