I am currently making my first 2D Top-Down survival horror game and it's going to be multiplayer and has in game payment too I was wondering how I could make the Multiplayer for a lobby system where the other player needs to enter the code to join other people game and how can i make the Google play payment in my shop for people to buy coins from shop using real money
So I am making 2D multiplayer horror survival game in godot 4.4
nice, i like these projects where the main character tells what he is going to do but he needs your help to do it
https://docs.godotengine.org/en/stable/tutorials/networking/high_level_multiplayer.html
codeisme it's going to be multiplayer
I posted you resources that should help
codeisme how I could make the Multiplayer for a lobby system
Video + docs
codeisme where the other player needs to enter the code to join other people
This is a generic problem. Create a function that generates you a "code". When people create server, let the server announce that code to a main list server.
When people browse for servers, serve a currently live lobbies from main server list.
If youre that bald, you could look into adapting DP master. This is exactly what i did.
I have gdmaster, https://github.com/kuligs2/gdmaster server that acts as masterlist server.
You then create a game, and just send the correct packets to the masterlist to register server/lobbies that are online.. Example is in the other repo https://github.com/kuligs2/gdmaster-server-browser
I havent tested this on the newer versions, hopefully the TCP UDP is not broken on the godot side..
codeisme i dont know what norway is, but you need to write code that will approximate player positions to account for the lag. this is what other games use and is called "prediction" code.. not sure how to implement but one way maybe this could give you ideas
I looked at that norway thing.. idk.. seems a bit too complex for a simple p2p.
The method i described was more like server browser, where you open up a browser and see what lobbies are online and join.. this needs the masterlist server that keeps all the online server in a list and when people open up browser they get served the list and then they can join any of the server using the godots enet multiplayer peer connections ..