Skip to content

Conversation

@uzaiiirahmed
Copy link
Contributor

Following are the updates in this fork :-
Enabled 4 playes Support for 2d-platform-scene.
Count for current players in the lobby.
feature to send string using RPC on all connected player.
feature to send custom data types using RPC

uzaiiirahmed and others added 9 commits October 14, 2025 16:14
Increased max players per room to 4 and updated score text assignment logic in GameManager2d.cs. Changed mockMode and browser settings in platformer and lobby scenes. Updated build settings to enable 2d-platformer and TestScene, and switched WebGL template to PWA. Added .vsconfig for Visual Studio workload and made minor .vscode/settings.json adjustments.
Introduced a PlayerCountText UI element to display the current number of players in the 2D platformer example. Updated GameManager2d to manage and refresh the player count display when players join or leave.
Introduced a new TextMeshProUGUI field and UI element for displaying 'Hello, World!' in the 2d platformer example. Added RPC registration and logic to show the message on all players' screens when triggered, with automatic clearing after a delay.
Introduced new RPC methods to send and receive custom data types as JSON strings between players. Added IdkCoolClass for demonstration, updated GameManager2d to handle custom data RPCs, and included input handling for triggering these actions. Minor formatting and whitespace adjustments in PlayerController2d.
Enhanced RPC.cs to serialize custom serializable types using JsonUtility. Refactored GameManager2d.cs for better RPC registration, error handling, and data transmission. Updated .vscode and project settings for new solution and WebGL template. Disabled browser in 2d-platformer example scene.
Player-OnQuit-BugFixing
@momintlh momintlh self-requested a review October 20, 2025 06:41
Adding and removing of players is handled dynamically now also scores are handled and the color are fetched from
Changed RemovePlayer from static to instance method and removed redundant instance lookup. Streamlined player removal logic and direct access to class members for improved clarity and maintainability.
Updated the DisplayHelloWorldRPC method to accept data and caller parameters, allowing custom messages to be displayed. The RPC call now sends 'Hello, World!' as data, and the text display logic uses the provided data instead of a hardcoded string.
Introduces TestDictionaryData and NestedData classes for structured data transfer via RPC. Registers a new 'TestDictionaryRPC' method, sends test data on 'P' key press, and adds a handler to deserialize and log the received data.
@uzaiiirahmed uzaiiirahmed requested a review from momintlh October 21, 2025 11:50
Refactored GameManager2d to distinguish between TestData and dictionary-based RPC calls, adding new input handling for sending both types. Updated RPC.cs to better serialize/deserialize complex and dictionary data, improving error handling and JSON conversion. Updated .gitignore to exclude .vsconfig and .vscode/settings.json.
@uzaiiirahmed uzaiiirahmed requested a review from momintlh October 23, 2025 11:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants