Cocos Creator officially supports HarmonyOS multi-device collaboration

According to the HarmonyOS developer official account, in June of this year, HarmonyOS 2 was officially commercialized.

On the 23rd of the same month, the Cocos team announced that its Cocos Creator 3.2 officially supports HarmonyOS 2, becoming the world’s first game engine to support HarmonyOS.

As a lightweight and efficient cross-platform game development tool, in order to help game developers easily develop games with multi-device collaboration capabilities.

Cocos creator 3.2 is the first to get through the game development process that supports the HarmonyOS system.

The official said that it will make full use of the convenience of device circulation and collaboration brought by HarmonyOS “distributed technology”.

The Cocos engine brings a multi-device collaboration game template that supports HarmonyOS, allowing developers to quickly create games or applications that support multi-device collaboration through this template.

It is worth mentioning that in HarmonyOS, after discovery, pairing, connection, combination, and verification, the two devices can be connected, bringing more interesting applications and game experience scenarios as well as new interactive modes.

Based on this feature, Cocos thought of developing a “playable at any time, multiplayer” Party Game.

Although many party games have been born on PCs and consoles, due to issues such as the number of handles and portability, players cannot achieve a multiplayer interactive gaming experience.

_118777954_00596c2b-90ad-44fe-ad30-1c5baecd3c33

In “Gold Coins”, the game terminal will be placed in the smart screen to run, and the mobile phone is only used as a handle to achieve control.

When the game starts, the smart screen will pop up the device selection page, select a nearby Huawei phone as the handle input terminal, establish a connection, and initialize the device.

After the connection is established, the smart screen will use the senDataToRemote interface to inform the mobile phone that it can enter the game state as a controller.

The mobile phone as a handle receives the signal that the game can start operation through onRemoteRequest, and then starts to send the control data to the smart screen.

The official said that in the overall game process, all control data can be transmitted and fed back through these two interfaces to realize the game logic of picking up gold coins, picking up hammers, and grabbing gold coins.

By using the distributed capabilities of HarmonyOS and making full use of the players’ existing equipment, these problems can be solved well, so that more friends can join the game at any time.

It is reported that the in-depth cooperation between Cocos and HarmonyOS will help HarmonyOS create real-time interactive content in entertainment, education, etc., and release the special ability of “free hardware combination”.