A method and device for connecting games
By deploying the Hongmeng operating system in the main and secondary devices, using graphical user interface and character area technology, players can directly connect and control the game through the secondary devices, solving the problem of insufficient control devices and realizing multiplayer online.
Patent Information
- Application Number
- CN202111445013.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-30
- Publication Date
- 2025-08-08
- Estimated Expiration
- 2041-11-30
AI Technical Summary
In existing multiplayer competitive games, insufficient control equipment has caused some players to be unable to connect to the game.
By deploying the Hongmeng operating system in the main device and the secondary device, the main device provides a graphical user interface that includes multiple character areas, detects the target character area when the secondary device is approaching, controls the secondary device to access the game and provides a game interface, and players can control the virtual character through the secondary device.
The special restrictions on game control devices are lifted, allowing players without control devices to connect to the game through sub-device to enable multiplayer online.
Smart Images

Figure CN114225373B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of game technology, and in particular to a method for connecting games and a device for connecting games. Background Art
[0002] Multiplayer competitive games typically support multiplayer online play, allowing players to team up with multiple friends. For example, in existing multiplayer party games, if multiple players control virtual objects on the same main device, multiple control devices, such as game controllers or other peripherals, are usually required. This requires certain control devices, and insufficient control devices may prevent some players from connecting to the game. Summary of the Invention
[0003] In view of the above-mentioned problem that when multiple players need to connect to the game, some players without control devices cannot connect to the game due to special requirements for control devices, embodiments of the present invention are proposed to provide a method for connecting to a game and a corresponding device for connecting to a game that overcome the above-mentioned problem or at least partially solve the above-mentioned problem.
[0004] An embodiment of the present invention discloses a method for connecting to a game, which is applied to a primary device and a secondary device deploying the Hongmeng operating system. The primary device provides a graphical user interface, wherein the graphical user interface includes multiple character areas. The method includes:
[0005] determining a target character area from the plurality of character areas when detecting that the secondary device is close to the primary device;
[0006] The secondary device is controlled to access the game in the primary device through the target character area, and a game interface is provided on the secondary device so that the user can play the game through the game interface.
[0007] Optionally, when detecting that the secondary device is close to the primary device, determining a target role area from the multiple role areas includes:
[0008] When detecting that the secondary device is close to the primary device, determining a position of the secondary device close to the primary device;
[0009] A target character area is determined from the plurality of character areas according to a position of the secondary device close to the primary device.
[0010] Optionally, the method further includes:
[0011] Displaying multiple virtual characters on the game interface;
[0012] In response to a selection operation on the game interface of the secondary device, a target virtual character is determined from the plurality of virtual characters, and the target virtual character is controlled through the game interface of the secondary device.
[0013] Optionally, determining to control the target virtual character through a game interface of the secondary device includes:
[0014] Determining whether the target virtual character is in an idle state;
[0015] When the target virtual character is in an idle state, it is determined to control the target virtual character through the game interface of the secondary device.
[0016] Optionally, the method further includes:
[0017] When the target virtual character is not in an idle state, it is determined that the control of the target virtual character through the game interface of the secondary device fails, and a connection failure is prompted through the secondary device.
[0018] Optionally, the prompting of connection failure by the secondary device includes any one or more of the following:
[0019] Controlling the secondary device to voice broadcast a connection failure message;
[0020] Displaying a connection failure message on the game interface of the secondary device;
[0021] The secondary device is controlled to vibrate, and a connection failure message is displayed on the game interface of the secondary device.
[0022] Optionally, the method further includes:
[0023] After determining that the target virtual character is controlled through the game interface of the secondary device, the target virtual character is set to a connected state.
[0024] Optionally, the game interface includes an exit control, and the method further includes:
[0025] In response to a touch operation on the exit control, the secondary device is controlled to exit the game in the primary device and the game interface is canceled from being displayed.
[0026] Optionally, the method further includes:
[0027] After controlling the secondary device to exit the game in the primary device, the target virtual character controlled through the game interface of the secondary device is set to an idle state.
[0028] Optionally, the secondary device includes: a smart bracelet, a smart watch and a mobile terminal.
[0029] An embodiment of the present invention further discloses a device for connecting to a game, which is applied to a primary device and a secondary device deploying the Hongmeng operating system. The primary device provides a graphical user interface, wherein the graphical user interface includes multiple character areas. The device includes:
[0030] an area determination module, configured to determine a target role area from the plurality of role areas when detecting that the secondary device is close to the primary device;
[0031] The game access module is used to control the secondary device to access the game in the primary device through the target character area, and provide a game interface on the secondary device so that the user can play the game through the game interface.
[0032] An embodiment of the present invention further discloses an electronic device, including:
[0033] A processor and a storage medium, wherein the storage medium stores machine-readable instructions executable by the processor. When the electronic device is running, the processor executes the machine-readable instructions to perform the method as described in any one of the embodiments of the present invention.
[0034] An embodiment of the present invention further discloses a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the method according to any one of the embodiments of the present invention is executed.
[0035] The embodiments of the present invention include the following advantages:
[0036] A method for connecting to a game provided by an embodiment of the present invention is applied to a primary device and a secondary device that deploy the HarmonyOS operating system. The primary device provides a graphical user interface containing multiple character areas. When a secondary device is detected approaching the primary device, a target character area is determined from the multiple character areas. The secondary device is controlled to access the game on the primary device through the target character area, and a game interface is provided on the secondary device so that the user can play the game through the game interface. As long as the HarmonyOS operating system is deployed on the primary and secondary devices, players can connect to the game based on the HarmonyOS operating system by bringing the secondary device close to the primary device, removing special restrictions on game control devices and thus avoiding the problem of some players without control devices being unable to connect to the game due to insufficient control devices. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] In order to more clearly illustrate the technical solution of the present invention, the following briefly introduces the drawings required for use in the description of the present invention. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0038] Figure 1 This is a flowchart of a method for connecting to a game provided by an embodiment of the present invention;
[0039] Figure 2 is a schematic diagram of a master device and a slave device provided by an embodiment of the present invention;
[0040] Figure 3 This is a schematic diagram of a secondary device connected to a primary device according to an embodiment of the present invention;
[0041] Figure 4 This is a structural block diagram of a device for connecting games provided by an embodiment of the present invention;
[0042] Figure 5 It is a structural block diagram of an electronic device of the present invention;
[0043] Figure 6 It is a structural block diagram of a computer-readable storage medium of the present invention. DETAILED DESCRIPTION
[0044] To make the above-mentioned objects, features, and advantages of the present invention more clearly understood, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments. It should be understood that the embodiments described are only a portion of the embodiments of the present invention, not all of them. All other embodiments derived by persons of ordinary skill in the art based on the embodiments of the present invention without inventive effort are also within the scope of protection of the present invention.
[0045] In the existing technology, players need to connect to the game through a control device used to control the game. When multiple players need to connect to the game, if there are not enough control devices, some players without control devices will be unable to connect to the game. To solve the problems existing in the existing technology, the embodiments of the present invention provide a method for connecting to the game. Only by installing the Hongmeng operating system on the device, players can join the game through this device and control the virtual character to play the game.
[0046] Specifically, the method is applied to a primary device and a secondary device that deploy the Hongmeng operating system, wherein the primary device provides a graphical user interface containing multiple character areas. The method includes: upon detecting that the secondary device is close to the primary device, determining a target character area from the multiple character areas; controlling the secondary device to access the game in the primary device through the target character area, and providing a game interface on the secondary device so that the user can play the game through the game interface. As long as the Hongmeng operating system is deployed on the primary and secondary devices, players can connect to the game based on the Hongmeng operating system by bringing the secondary device close to the primary device, removing special restrictions on game control devices, thereby avoiding the problem of some players without control devices being unable to connect to the game due to insufficient control devices.
[0047] Reference Figure 1 , showing a flowchart of a method for connecting to a game according to an embodiment of the present invention, which is applied to a master device and a slave device deploying the Hongmeng operating system. The master device provides a graphical user interface, which includes multiple character areas. The method may specifically include the following steps:
[0048] Step 101, when it is detected that the secondary device is close to the primary device, determining a target role area from the multiple role areas;
[0049] The Hongmeng operating system can include multiple subsystems, each of which can be deployed on different devices, and the devices in each subsystem can communicate with each other. In an embodiment of the present invention, the Hongmeng operating system can be deployed on a primary device and a secondary device. The primary device can be used as a device to run game applications and display the main game interface, while the secondary device serves as a game control device. Players can use the secondary device to join the game and control the virtual character in the game.
[0050] Specifically, the main device can be a portable mobile terminal, such as a smart phone, a car computer, etc., or an electronic device such as a laptop, a tablet computer, an IPAD, etc. By running a game application on the main device and rendering it on the display screen of the main device to obtain a graphical user interface, the content displayed by the graphical user interface can include a part or all of the game scene. The specific form of the game scene can be a square or other shapes (for example, a circle, etc.). The game scene can also include one or more virtual objects. The virtual object can be a non-player character (NPC) pre-set by the game developer in a specific game scene. The player can interact with the virtual object. In an embodiment of the present invention, the graphical user interface can include multiple character areas, each character area has a one-to-one corresponding virtual character, and the virtual character is presented through the graphical user interface. The presented content can include all of the virtual character or a part of the virtual character.
[0051] The secondary device can be a wearable device, such as a smart bracelet or smartwatch, or a mobile terminal, such as a mobile phone, iPad, tablet, or laptop. By deploying the HarmonyOS operating system on the secondary device, players can directly use the secondary device to connect to the game based on the HarmonyOS. In this embodiment of the present invention, multiple secondary devices can be included to allow multiple players to connect to the game.
[0052] In a specific implementation, when a player wants to connect to the game, he can move a secondary device close to the main device. The main device can detect the approach of other devices. For example, the main device can detect the approach of other devices through NFC (Near Field Communication) technology. When it is detected that the secondary device is close to the main device, the target character area can be determined from multiple character areas, wherein the target character area refers to the character area to which the secondary device is close. Specifically, when the main device detects the approach of the secondary device, it can determine the NFC detection point to which the secondary device is close. The position of the NFC detection point is the position of the secondary device close to the main device, and then the target character area can be determined from multiple character areas based on the position of the secondary device close to the main device.
[0053] Step 102: Control the secondary device to access the game in the primary device through the target character area, and provide a game interface on the secondary device so that the user can play the game through the game interface.
[0054] In an embodiment of the present invention, after determining the target character area that the secondary device is near, the secondary device can be controlled to access the game on the primary device through the target character area, and a game interface can be provided on the secondary device so that the user can play the game through the game interface. The game interface can include controls required for operating the game, or controls corresponding to buttons on a game controller. For example, direction controls, displacement controls, jump controls, and hitting controls can be included. In a specific implementation, the controls included in the game interface can be designed according to the game requirements, and this embodiment of the present invention does not limit this.
[0055] As an example, Figure 2 As shown, assuming that a maximum of 4 players are supported to participate in the game, after the game is run in the main device, 4 character areas are displayed in the main device. For example, these 4 character areas are respectively located in the 4 corners of the graphical user interface, as shown in FIG. Figure 2 Area 1, Area 2, Area 3 and Area 4 in the game. Player A's device is a mobile phone, and Player B's device is a smart watch. Player A's device and Player B's device are slave devices. Figure 3 As shown, assuming that player A's device is close to area 1 in the main device, the device controlling player A is quickly connected to the game on the main device, becoming a game control device, and adding player A to the game. Players in area 1 can select a virtual character in the game to control, and this virtual character is the 1P character controlled by player A. Assuming that player B's device is close to area 2 in the main device, the device controlling player B is quickly connected to the game on the main device, becoming a game control device, and adding player B to the game. Players in area 2 can select a virtual character in the game to control, and this virtual character is the 2P character controlled by player B. Figure 3 As shown, after player A's device and player B's device are connected to the game, a game interface is displayed on player A's device and player B's device, and player A and player B can control their respective characters through the game interface.
[0056] In a preferred embodiment of the present invention, step 101 may specifically include the following sub-steps:
[0057] When it is detected that the secondary device is close to the primary device, a position of the secondary device close to the primary device is determined; and a target character area is determined from the multiple character areas according to the position of the secondary device close to the primary device.
[0058] In an embodiment of the present invention, a primary device can detect the proximity of another device using a sensor. As an example, the primary device can detect the proximity of another device using NFC technology. When a secondary device is detected approaching the primary device, an NFC detection point that the secondary device is approaching can be determined. The location of the NFC detection point is the location where the secondary device is approaching the primary device. Then, based on the location of the secondary device approaching the primary device, a target role area can be determined from multiple role areas.
[0059] In a preferred embodiment of the present invention, the method further comprises:
[0060] Displaying a plurality of virtual characters on the game interface; determining a target virtual character from the plurality of virtual characters in response to a selection operation on the game interface of the secondary device, and determining to manipulate the target virtual character through the game interface of the secondary device.
[0061] In an embodiment of the present invention, multiple virtual characters can be displayed on a game interface, and a player accessing the game can select a virtual character to control through the game interface. The game application can respond to a selection operation on the game interface of a secondary device, determine a target virtual character from the multiple virtual characters, and determine to control the target virtual character through the game interface of the secondary device. Specifically, the selection operation can carry touch position information, and by extracting the touch position information from the selection operation, the target virtual character can be determined from the multiple virtual characters based on the touch position information.
[0062] In a preferred embodiment of the present invention, determining to control the target virtual character through the game interface of the secondary device may specifically include the following sub-steps:
[0063] Determine whether the target virtual character is in an idle state; and when the target virtual character is in an idle state, determine to control the target virtual character through the game interface of the secondary device.
[0064] In an embodiment of the present invention, once the virtual character corresponding to the character area has been controlled, other players can no longer control the virtual character. Specifically, by determining whether the target virtual character is in an idle state, for example, if the virtual character has a corresponding state parameter, determining whether the target virtual character is in an idle state based on the attribute value corresponding to the state parameter, and when the target virtual character is in an idle state, determining to control the target virtual character through the game interface of the secondary device.
[0065] In a preferred embodiment of the present invention, the method further comprises:
[0066] When the target virtual character is not in an idle state, it is determined that the control of the target virtual character through the game interface of the secondary device fails, and a connection failure is prompted through the secondary device.
[0067] In an embodiment of the present invention, when the target virtual character is not in an idle state, it is determined that the control of the target virtual character through the game interface of the secondary device has failed, and the secondary device prompts the connection failure, so that the player can select other virtual characters to control through the game interface of the secondary device.
[0068] In a preferred embodiment of the present invention, the prompting of connection failure by the secondary device includes any one or more of the following:
[0069] Control the auxiliary device to voice broadcast a connection failure message; display the connection failure message on the game interface of the auxiliary device; control the auxiliary device to vibrate, and display the connection failure message on the game interface of the auxiliary device.
[0070] In an embodiment of the present invention, the secondary device can be controlled to announce a connection failure message via voice. For example, the connection failure message can be "The virtual character has been connected." The connection failure message can also be displayed on the game interface of the secondary device, or the secondary device can be controlled to vibrate and display the connection failure message on the game interface of the secondary device.
[0071] In a preferred embodiment of the present invention, the method further comprises:
[0072] After determining that the target virtual character is controlled through the game interface of the secondary device, the target virtual character is set to a connected state.
[0073] Specifically, after determining that the target virtual character is controlled through the game interface of the secondary device, the target virtual character can be set to a connected state according to the state parameters of the target virtual character.
[0074] In a preferred embodiment of the present invention, the game interface includes an exit control, and the method further includes:
[0075] In response to a touch operation on the exit control, the secondary device is controlled to exit the game in the primary device and the game interface is canceled from being displayed.
[0076] The game interface of the secondary device may include an exit control, which allows the player to exit the currently connected game. For example, the exit control may be displayed in the upper right corner of the game interface. When the player touches the exit control, the game application may respond to the touch operation, control the secondary device to exit the game on the primary device, and cancel the game interface. Touch operations may include clicks, double-clicks, long presses, or hard presses, and are not limited in this embodiment of the present invention.
[0077] In a specific implementation, after canceling the display of the game interface, the secondary device can display the main interface, or display the user interface displayed before connecting to the game.
[0078] In a preferred embodiment of the present invention, the method further comprises:
[0079] After controlling the secondary device to exit the game in the primary device, the target virtual character controlled through the game interface of the secondary device is set to an idle state.
[0080] Specifically, after controlling the secondary device to exit the game in the primary device, the target virtual character controlled through the game interface of the secondary device can be set to an idle state according to the state parameters of the target virtual character.
[0081] A method for connecting to a game provided by an embodiment of the present invention is applied to a primary device and a secondary device that deploy the HarmonyOS operating system. The primary device provides a graphical user interface containing multiple character areas. When a secondary device is detected approaching the primary device, a target character area is determined from the multiple character areas. The secondary device is controlled to access the game on the primary device through the target character area, and a game interface is provided on the secondary device so that the user can play the game through the game interface. As long as the HarmonyOS operating system is deployed on the primary and secondary devices, players can connect to the game based on the HarmonyOS operating system by bringing the secondary device close to the primary device, removing special restrictions on game control devices and thus avoiding the problem of some players without control devices being unable to connect to the game due to insufficient control devices.
[0082] It should be noted that for the sake of simplicity, the method embodiments are described as a series of actions. However, those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in this specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.
[0083] Reference Figure 4 , shows a structural block diagram of a device for connecting to a game provided by an embodiment of the present invention, which is applied to a primary device and a secondary device deploying the Hongmeng operating system. The primary device provides a graphical user interface, which includes multiple character areas. The device may specifically include the following modules:
[0084] The area determination module 401 is configured to determine a target role area from the multiple role areas when detecting that the secondary device is close to the primary device;
[0085] The game access module 402 is used to control the secondary device to access the game in the primary device through the target character area, and provide a game interface on the secondary device so that the user can play the game through the game interface.
[0086] In a preferred embodiment of the present invention, the region determination module 401 includes:
[0087] a proximity position determination submodule, configured to determine a position of the secondary device close to the primary device when detecting that the secondary device is close to the primary device;
[0088] The area determination submodule is configured to determine a target role area from the multiple role areas according to a position of the secondary device close to the primary device.
[0089] In a preferred embodiment of the present invention, the device further comprises:
[0090] A character display module, configured to display multiple virtual characters on the game interface;
[0091] The character manipulation module is configured to respond to a selection operation on the game interface of the secondary device, determine a target virtual character from the multiple virtual characters, and determine to manipulate the target virtual character through the game interface of the secondary device.
[0092] In a preferred embodiment of the present invention, the character control module includes:
[0093] A state judgment submodule is used to judge whether the target virtual character is in an idle state;
[0094] The first character control submodule is configured to determine, when the target virtual character is in an idle state, to control the target virtual character through the game interface of the secondary device.
[0095] In a preferred embodiment of the present invention, the character control module further includes:
[0096] The second character control submodule is configured to determine that the control of the target virtual character through the game interface of the secondary device fails when the target virtual character is not in an idle state, and prompt a connection failure through the secondary device.
[0097] In a preferred embodiment of the present invention, the second connection control submodule includes any one or more of the following:
[0098] A voice broadcast unit, used to control the secondary device to voice broadcast a connection failure message;
[0099] a message display unit, configured to display a connection failure message on the game interface of the secondary device;
[0100] The vibration unit is used to control the vibration of the secondary device and display a connection failure message on the game interface of the secondary device.
[0101] In a preferred embodiment of the present invention, the character control module further includes:
[0102] The connected state setting module is used to set the target virtual character to a connected state after determining that the target virtual character is controlled through the game interface of the secondary device.
[0103] In a preferred embodiment of the present invention, the game interface includes an exit control, and the character control module further includes:
[0104] The connection cancellation module is used to respond to the touch operation acting on the exit control, control the secondary device to exit the game in the primary device, and cancel the display of the game interface.
[0105] In a preferred embodiment of the present invention, the device further comprises:
[0106] The idle state setting module is used to set the target virtual character controlled through the game interface of the secondary device to an idle state after controlling the secondary device to exit the game in the primary device.
[0107] In a preferred embodiment of the present invention, the secondary device includes: a smart bracelet, a smart watch and a mobile terminal.
[0108] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0109] The embodiment of the present invention further provides an electronic device, such as Figure 5 Shown, including:
[0110] A processor 501 and a storage medium 502, wherein the storage medium 502 stores machine-readable instructions executable by the processor 501. When the electronic device is running, the processor 501 executes the machine-readable instructions to perform the method according to any one of the embodiments of the present invention. The specific implementation methods and technical effects are similar and will not be repeated here.
[0111] The embodiment of the present invention also provides a computer readable storage medium, such as Figure 6 As shown, the storage medium stores a computer program 601, which is executed by a processor to execute the method according to any one of the embodiments of the present invention. The specific implementation and technical effects are similar and will not be described in detail here.
[0112] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0113] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, apparatus, or computer program products. Thus, embodiments of the present invention may take the form of a fully hardware embodiment, a fully software embodiment, or an embodiment combining software and hardware. Furthermore, embodiments of the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0114] The embodiments of the present invention are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the process in the flowchart and / or block diagram. Figure 1 a process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0115] These computer program instructions may also be stored in a computer readable memory that can direct a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 a process or multiple processes and / or boxes Figure 1 The function specified in one or more boxes.
[0116] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable terminal device to implement the process. Figure 1 a process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0117] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they become aware of the basic creative concepts. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present invention.
[0118] Finally, it should be noted that, in this document, relational terms such as first and second, etc., are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the terms "comprises," "comprising," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or terminal device that includes a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or terminal device. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article, or terminal device that includes the element.
[0119] The above is a detailed introduction to a method for connecting games and a device for connecting games provided by the present invention. Specific examples are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the ideas of the present invention, there may be changes in the specific implementation methods and application scopes. In summary, the contents of this specification should not be understood as limiting the present invention.
Claims
1. A method for connecting to a game, characterized in that: Applied to a primary device and a secondary device deploying the Hongmeng operating system, the primary device provides a graphical user interface, wherein the graphical user interface includes multiple role areas, and the method includes: When it is detected that the secondary device is close to the primary device, determining an NFC detection point that the secondary device is close to, and determining a target role area from the multiple role areas according to the NFC detection point; The secondary device is controlled to access the game in the primary device through the target character area, and a game interface is provided on the secondary device so that the user can play the game through the game interface; the game interface includes controls required to operate the game, or controls corresponding to buttons in the game controller.
2. The method according to claim 1, characterized in that The method further comprises: Displaying multiple virtual characters on the game interface; In response to a selection operation on the game interface of the secondary device, a target virtual character is determined from the plurality of virtual characters, and the target virtual character is determined to be manipulated through the game interface of the secondary device.
3. The method according to claim 2, characterized in that The determining to control the target virtual character through the game interface of the secondary device includes: Determining whether the target virtual character is in an idle state; When the target virtual character is in an idle state, it is determined to control the target virtual character through the game interface of the secondary device.
4. The method according to claim 3, characterized in that The method further comprises: When the target virtual character is not in an idle state, it is determined that the control of the target virtual character through the game interface of the secondary device fails, and a connection failure is prompted through the secondary device.
5. The method according to claim 4, characterized in that The prompt of connection failure by the secondary device includes any one or more of the following: Controlling the secondary device to voice broadcast a connection failure message; Displaying a connection failure message on the game interface of the secondary device; The secondary device is controlled to vibrate, and a connection failure message is displayed on the game interface of the secondary device.
6. The method according to claim 2, characterized in that The method further comprises: After determining that the target virtual character is controlled through the game interface of the secondary device, the target virtual character is set to a connected state.
7. The method according to claim 2, characterized in that The game interface includes an exit control, and the method further includes: In response to a touch operation on the exit control, the secondary device is controlled to exit the game in the primary device and the game interface is canceled from being displayed.
8. The method according to claim 7, characterized in that The method further comprises: After controlling the secondary device to exit the game in the primary device, the target virtual character controlled through the game interface of the secondary device is set to an idle state.
9. The method according to claim 1, characterized in that The secondary devices include: smart bracelets, smart watches and mobile terminals.
10. A device for connecting games, characterized in that: Applicable to a primary device and a secondary device deploying the Hongmeng operating system, providing a graphical user interface through the primary device, wherein the graphical user interface includes multiple role areas, and the apparatus includes: an area determination module, configured to, when detecting that the secondary device is close to the primary device, determine an NFC detection point that the secondary device is close to, and determine a target role area from the multiple role areas based on the NFC detection point; A game access module is used to control the secondary device to access the game in the primary device through the target character area, and to provide a game interface on the secondary device so that the user can play the game through the game interface; the game interface includes controls required to operate the game, or controls corresponding to buttons on the game controller.
11. An electronic device, characterized in that: include: A processor and a storage medium, wherein the storage medium stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor executes the machine-readable instructions to perform the method according to any one of claims 1 to 9.
12. A computer-readable storage medium, characterized in that The storage medium stores a computer program, which, when executed by a processor, executes the method according to any one of claims 1 to 10.
Citation Information
Patent Citations
Method for realizing multi-person interactive game in network television and network television
CN102611942A