Multiplayer Game In Unity with Firebase tutorial! (all platforms w/ Realtime/Auth & Cloud Functions)

preview_player
Показать описание
Today I'll show you the capabilities of Firebase by creating a Multiplayer game in Unity using services like Realtime Database, Authentication & Cloud functions! This setup will allow for secure matchmaking & turn-based multiplayer between users for all platforms and little to no cost!
Leave a like if you enjoy these sorts of videos and let me know what I should do next!
- - - - - - - - -
- - - - - - - - -
Mentioned videos
- - - - - - - - -
Chapters:
0:00 Intro
0:59 Why use Firebase?
3:50 Demonstration time!
9:12 Client/Firebase communication
11:35 Supported platforms
13:21 Project structure
17:40 Let's make a move!
20:36 What are coroutines?
24:22 Error handling
26:17 Let's listen for a move!
31:05 User authentication
34:22 Backend code!
36:41 The queue
38:13 Matchmaking
40:42 What are transactions?
45:07 Ready-up
46:21 Processing a move
48:22 Securing our database!
52:38 Let's recap!
53:40 Outro
- - - - - - - - -
- Music used in the video made by Elektronomia
#unity #firebase #multiplayer
Рекомендации по теме
Комментарии
Автор

Thank you so much Nico! I like your video and you are a great teacher!

simple_
Автор

keep it up ! I got alot of ideas with help of ur techs!! best thanks man.

srigjksefjlsgkd
Автор

Nico, I think that your explanations are thorough and great but I have a hard time focusing with the background music. I would prefer that there would be no background music at all because it's distracting to me.

jedi
Автор

How do you handle players losing connection? I.e. in a 1vs1 multiplayer game where a lost connection from either player should result in game ending?

spolmy
Автор

Thanks for the video. From looking at your video I do not understand the waiting for move mechanism.

Is the gamemanager polling the firebase server at an interval? Or does it make a request and then wait indefinitely for an answer?

joerideman
Автор

why when i deploy the index file under every function in the cloud panel says us-central1 if i created the database in europe?

thanks

carras
Автор

I am confused. How did you signal other player from within the game that you want to join his room? There was no reference for the connection between them like a same id or room name being shared so one can join his friend's game and not a random player's

kazimashiatsumaira
Автор

Great video, one question.
How would you add a timer, lets say user has 15 seconds to make a move?

urosstojanovic
Автор

Ciao Niko! If you want to experiment with something different than firebase that offers most of its features in a lightweight open-source solution, for my current Unity project I'm leveraging kinto-storage. I'm very happy so far, open to share more if interested

studiomalaka
Автор

The problem with your approach is firebase unity sdk on desktopis for development purposes only and shouldn't be used in builds as of today. => Firebase auth has no support for native desktop unity games

akosdanielbollok