Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(2 edits)

Nice. I was quite curious since I'm doing a lot of testing with Godot's high-level multiplayer api and I was impressed by how you managed to create a room system. Was create room system difficult? I haven't actually messed around trying to make my own implementation for such a system but it would be interesting to incorporating it into some of my future projects.

Thanks for your reply! I'm a newbie with the api so i don't think i used the best practices but i basically have two arrays, one of them keeps tracks of all of the players online and the other one its a array the diferrent rooms. When a player creates a room, his id its added to the rooms array and when a player joins to that room his id its added to the room object inside that array and after that the system checks to only room empty rooms! I can share you the code on github if you want. Beware, its mostly spaghetti!

(2 edits)

lol that's how my code is as well. I was thinking it worked something along those lines where you would have an empty array that you would append to when a room is created which you could sync through the server with an rset for that variable the only thing im  not to sure about is the instancing the correct players in the correct room.