How baronefernando/multiplayer-game-public-repo works
This is a work-in-progress Unity multiplayer game with a Java UDP server and MySQL-backed user tracking. The visible server workflow receives datagrams, creates a handler per packet, routes connection, movement, disconnect, and message commands, and broadcasts responses; the handler starts database work for user changes. The Unity scripts and scene are present, but their source was not provided, so their behavior and connections to the server cannot be verified. The MySQL dependency is visible in the database helper.
Main entry points: Server.java UDP listener · ClientHandler.java Command handler · DB_Manager.java User DB helper · NetworkManager.cs Client networking
Components 8
Unity client
- Client networking
Game/Assets/Scripts/NetworkManager.cs - Scene control
Game/Assets/Scripts/SceneManager.cs - Main scene
Game/Assets/Scenes/Main.unity
UDP server
- UDP listener
Server/Server.java - Command handler
Server/ClientHandler.java
User persistence
- User DB helper
Server/DB_Manager.java
Other components
- Player
- MySQL database
Connections 7
- Player → Client networking: uses
- Client networking → UDP listener: sends UDP
- UDP listener → Command handler: starts handler
Server/Server.java - Command handler → UDP listener: broadcasts packets
Server/ClientHandler.java - UDP listener → User DB helper: tests connection
Server/Server.java - Command handler → User DB helper: updates users
Server/ClientHandler.java - User DB helper → MySQL database: executes SQL
Server/DB_Manager.java