Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Amazing!!


Does this template includes connecting into a lobby? or it's only for P2P?

(+1)

Thank you <3
Yes ! The template have a lobby where all players can connect to before starting the match.
But it also uses P2P, THNK works as: the host is the server, and when the host makes a lobby, it means now there is a server in the lobby other players can connect to, using P2P.

Thanks for answering. So this means that if a user disconnects the game won't end for everyone else? Do you still to add the Hex Key to join or that can be "omitted"? 

Correct, if a client disconnect, the game will keep going, I programmed this template to do as:
if a client disconnect → delete all that client related objects (character/weapon...etc) for all players.

But, if the Host disconnected, the game will finish for everyone, because in THNK-P2P, the host is the server, and if the host disconnected, it means the server is down, which mean all clients will disconnect.

P2P ID (Hex key), is required to copy and send to the players you want to play with, you can replace that with an automatic system that will make everyone join together without using the ID (using Firebase), BUT it's not safe, because now, you don't know who are you playing with, and THNK-P2P leaks the player IP, so to protect the client IP leaking, i make it as: Copy ID → give it to your friend or people you trust → play together, like that it's safer because you know who are you playing with now (someone you trust).

Nice Downloadable Project (worth the small cost)  ; )  since it's been hard finding a complete game example using THNK.  It's been fun to play as well.  : )