❄ eat dumplings, bask in the snow, “you there snow?”

🎉 Carnival, screen, Shouting “EDG NB!”

On the start of Winter of 2021, the two styles of painting are intertwined and the generational differences are stark.

“EDG won the championship”, “e-sports into Asia” let e-sports once again at the forefront of the storm, praise, criticism mixed voice. But there is no doubt that the success of esports has re-ignited the game industry, and the commercial value of games is being recognized by the mainstream market. China’s e-sports market is expected to grow to 184.33 billion yuan by 2022, according to iMedia Research. [Rongyun Global Internet Communication Cloud]

Another trend behind this trend is that games are deeply integrated with social entertainment, and a game that is both popular and successful can only be built around social.

How to make players have a better social experience? Type on the blackboard and copy the following answer.

Rongyun provides simple and feasible communication ability access solutions for different kinds of game businesses, such as casual games, strategy games and sandbox games developed and operated based on Unity platform. Please check 👇.

BTW, On November 20th, Beibei Xiao, General manager of Unity greater China will visit WICC · Guangzhou to share the key to open the metasomes. Welcome to sign up.

Casual games

This category is mainly composed of board and card games such as gobang, Diaster and mahjong, and casual puzzle games such as billiards and Lianliankan, as shown below.

!

Features of this game:

(1) There is only one RTC room during the game, and all personnel are in the same room;

(2) Players subscribe to each other’s audio by default;

 

(3) Players cannot control other players’ microphones, only their own microphones can be turned off;

(4) Players can selectively listen to the audio of some players, and can selectively block the unfriendly audio.

Communication method:

IM: chat room, chat room Text messages, emoticons, emojis

RTC: 1V1 speech; Random match, invite friends

Voice requirements during the game:

(1) After matching the opponent, the player will join the same RTC room with the other player, and the microphone and headset/speaker will be turned on by default;

② The player can turn off his microphone, the other party will not hear his speech;

(3) The player can turn off his/her headset/speaker, and he/she will not hear the other party’s speech;

(4) When the game is over, the call ends by default, and both the player and the other player are kicked out of the room, and the room is destroyed (if the game is directly played again, the game is not over).

Team strategy games

This category includes MOBA (multiplayer online battle arena) games such as Snake Battle, Call of Time, Honor of Kings and LOL mobile games, and shooter games such as Free Fire and Peace Elite.

Features of this game:

① There are 3 IM chat rooms and 2 RTC rooms in the game, as shown below.

(Diagram of the relationship between teams and voice rooms)

② The team is in an IM chat room, the other team is in an IM chat room, and all players are in IM public chat room; One team is in the same RTC room, and the other team is in the same RTC room. The two RTC rooms cannot communicate with each other.

③ Players read the configuration list to determine whether to subscribe to other people’s audio after entering the game.

(Configuration list)

(4) Players can turn off their microphone, the other party will not hear other players speak;

(5) Players can selectively listen to the audio of some players and selectively block the unfriendly audio.

Communication method:

IM: single chat, group chat, chat room; Text messages, emojis, emojis, voice messages

RTC: Conference model; Subscribe to each other

Voice requirements during the game:

(Team voice)

① After the game starts, all the players in team A and team B join the IM public chat room, then the players in team A join the IM chat room and RTC voice room of team A, and the players in team B join the IM chat room and RTC voice room of team B;

 

② Add the function explanation of each room:

  • All players of teams A and B join the IM public chat room: members of teams A and B can send messages to each other in the public chat room.
  • Players in team A join team A’s IM chat room: Members of team A can send messages to each other in team A’s IM chat room. The messages are visible only to team A’s members.
  • Players in team A join team A’s RTC voice room: Team A members can chat in team A’s RTC voice room, but team B members cannot hear.

③ When AA occurs when players in team A form A team, the group members in AA can communicate with each other by subscribing to each other.

④ Grouping function explanation in the room:

  • Subscribe to all: members in AA group can subscribe to all voice calls of other members in RTC room of team A, so as to realize voice communication with all members in team A.
  • Within a subscription group: You can subscribe only the voice of the members in the AA group. In this way, you can communicate with the members in the AA group only.

Sandbox game

Games in this category are represented by Pups, Fantastic Parties, Roblox, Mini Worlds and Minecraft.

Features of this game:

① All members in the room can access the mic and subscribe to each other;

All the members in the room are free to speak.

Communication method:

IM: single chat, group chat, chat room; Text messages, emojis, emojis, voice messages

RTC: Conference model; Subscribe to each other

Voice requirements during the game:

① Players can read the configuration list to determine whether to automatically subscribe to other people’s audio after entering the game;

② All members in the room are on the mic or members can apply to the room administrator for the mic;

(3) Wheat members can be wheat at any time;

④ By default, all members in the room subscribe to each other and can hear the audio of all other members;

(5) Players can selectively listen to the audio of some players and selectively block the unfriendly audio.

Access mode and related interfaces

The above game categories can be enhanced by accessing the SDK of Rongyun to provide high-quality and low-delay interactive experience for players.

Access mode:

Directly integrate the Unity RTCLib SDK of Rongyun into the game project, Android and iOS can directly call the Unity interface encapsulated by RTCLib to achieve the in-game voice requirements.

Scheme advantages:

① Cross-platform, one writing to achieve multi-platform operation;

② Save labor cost, easy to maintain;

(3) Avoid the tedious of calling two interfaces in the business caused by the separate integration of iOS and Android.

Interfaces involved:

① Join the room:

Join the room as an anchor

/ / join the RTC RCRTCRoomSetup room setup = RCRTCRoomSetup Builder. The Create () WithRole (RCRTCRole. LIVE_BROADCASTER). The Build (); Engine.JoinRoom(RoomId, setup);Copy the code

② Mike risk control system:

The host can turn on or off the local microphone in the room

Int EnableMicrophone(bool enable);Copy the code

Speaker control:

Anchors can switch sound Settings, speakers or earpieces in the room. This method is called when a peripheral is connected, such as a Bluetooth speaker, and returns -1.

Int EnableSpeaker(bool enable);Copy the code

④ Publish local audio:

Publish local audio after joining RTC room successfully

Engine.Publish(RCRTCMediaType.AUDIO);
Copy the code

⑤ Cancel publishing local audio:

Engine.Unpublish(RCRTCMediaType.AUDIO);
Copy the code

⑥ Subscribers:

Int Subscribe(String userId, RCRTCMediaType type); int Subscribe(IList<String> userIds, RCRTCMediaType type);Copy the code

⑦ Unsubscribe users:

Int Unsubscribe(String userId, RCRTCMediaType type); int Unsubscribe(IList<String> userIds, RCRTCMediaType type);Copy the code

⑧ Leave the room:

Engine.LeaveRoom();
Copy the code