Overview - Playing with Friends - (Unity module)
Introduction
The Playing with Friends feature brings together several core systems: Matchmaking, Game Sessions, and Friends, to enable a seamless social gameplay experience. With this feature, players can easily invite friends to join their current game session, whether it's created through matchmaking or a custom session. This module will guide you through integrating these systems to support friend invitations and session joining, making it easy for players to team up and play together.
Prerequisites
In order to complete this module, you need:
-
To have completed the following modules:
-
The Byte Wars
tutorialmodules
branch checked out in your local Byte Wars Unity project repository. -
To have force enabled this module. You can do this by adding the following code to the
Assets/Resources/Modules/TutorialModuleConfig.json
file:{
"enableModulesOverride": true,
"forceEnabledModules": ["PlayingWithFriends"],
}
Learning objectives
By following this module, you learn how to:
- Invite friends to your current game session.
- Accept game session invitations from other players.
- Reject game session invitations from other players.
Preview
At the end of this module, your project will look like the images below:
-
Inviting friends to the current game session.
-
Accepting game session invitation.
-
Rejecting game session invitation.