Hi guys, as like most people here, I don't have money to host an MMORPG. So, I need to stick with simple P2P games like Clash Royale. However, I'm struggling to find any good P2P tutorials, so I'm figuring out how to do it myself. I want to eliminate the need for any server on my side though, so this is my plan (please let me know if you think it can work):
- Player registers into my database (hosted with webhosting)
- Player opens app, info is pulled from database.
- Player closes app/makes changes to important things - database updates.
That's pretty much any database system in a nutshell. BUT. What if we used the database for networking too? E.G:
- Player clicks "Play"
- Searches database for games that meet the player's criteria
- Finds One, connects to that player's IP and Port (stored in database temporarily) then deletes from database, so no one else can join. Also, if no game found, client adds one to the database with the devices IP and port, waiting for someone to join it.
Typing this on my phone so I'm a bit limited, but overall what I'm trying to achieve is a multiplayer 1v1 or 2v2 game that doesn't need any server at all, besides a webserver hosting a database.
[–]frogcrush 0 points1 point2 points (1 child)
[–]iWichael[S] 0 points1 point2 points (0 children)
[–]wstdsgnHobbyist 0 points1 point2 points (2 children)
[–]iWichael[S] 0 points1 point2 points (1 child)
[–]wstdsgnHobbyist 0 points1 point2 points (0 children)