Control Method, Device and Storage Medium for Virtual Object

By superimposing the center and area of the virtual rocker on the cloud gaming client, the mapping relationship is used to convert the rocker operation into direction key instructions, solving the problem of low efficiency in controlling virtual objects by mobile terminals and achieving more efficient virtual object control.

CN114053692BActive Publication Date: 2025-07-11TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202010763546.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-07-31
Publication Date
2025-07-11
Estimated Expiration
2040-12-21

AI Technical Summary

Technical Problem

When existing mobile terminals control virtual objects by directly clicking the virtual direction key in cloud games, it is difficult to achieve the desired effect by the user in the shortest time, resulting in low control efficiency of virtual objects.

Method used

The virtual rocker center and area are superimposed on the game screen sent by the background server on the client display, and the user's rocker operation is converted into direction key commands through mapping relationships, and sent to the background server to control the movement of the virtual object.

Benefits of technology

It realizes the control efficiency of virtual objects through joystick control in cloud gaming scenarios, making operations more suitable for terminal devices and improving the accuracy and efficiency of control.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114053692B_ABST
    Figure CN114053692B_ABST
Patent Text Reader

Abstract

The present invention discloses a control method, device and storage medium for virtual objects in a cloud technology scenario. Specifically, it relates to cloud game technology. Among them, the method includes: displaying a first game screen sent by a background server on a client; superimposing and displaying the center of a virtual joystick and a virtual joystick area on the first game screen; when the center of the virtual joystick is located in a target area within the virtual joystick area, sending a target operation instruction to the background server, where the target operation instruction is used to instruct the background server to obtain a target direction key corresponding to the target area according to a target mapping relationship, and generate a second game screen corresponding to the target direction key, and the second game screen is a screen in which a target virtual object performs a target movement operation in the target direction corresponding to the target area; obtaining the second game screen sent by the background server. The present invention solves the technical problem of low control efficiency of virtual objects.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computers, and in particular, to a method and device for controlling a virtual object and a storage medium. Background Art

[0002] In recent years, the market share of cloud games has been increasing. When playing PC games on a mobile terminal in existing cloud games, the virtual direction keys are triggered by directly clicking on them. The drawback is that this operation method is a direct click operation to trigger the direction keys of a computer keyboard. However, on a mobile terminal, it is difficult to control a virtual object using the direction keys of a computer keyboard, and often the control of the virtual object cannot achieve the desired effect by the user in the shortest time. In other words, the control efficiency of virtual objects is low in the prior art.

[0003] In view of the above problems, no effective solution has been proposed yet. Summary of the Invention

[0004] Embodiments of the present invention provide a method and device for controlling a virtual object and a storage medium, so as to at least solve the technical problem of low control efficiency of virtual objects.

[0005] According to one aspect of an embodiment of the present invention, a method for controlling a virtual object is provided, including: displaying a first game screen sent by a background server in a client, where the first game screen is a screen in a target cloud game running on the background server, and a target virtual object controlled by the client participates in a game task in the target cloud game; superimposing and displaying a virtual joystick center and a virtual joystick area on the first game screen, where the virtual joystick area includes multiple areas, and the multiple areas have a target mapping relationship with multiple direction keys recognizable by the background server, and the virtual joystick center is used to determine a target area among the multiple areas in the virtual joystick area; when the virtual joystick center is located in the target area within the virtual joystick area, sending a target operation instruction to the background server, where the target operation instruction is used to instruct the background server to obtain a target direction key corresponding to the target area according to the target mapping relationship, and generate a second game screen corresponding to the target direction key, and the second game screen is a screen in which the target virtual object performs a target movement operation in a target direction corresponding to the target area; and obtaining the second game screen sent by the background server.

[0006] According to another aspect of the embodiments of the present invention, there is also provided a method for controlling a virtual object, including: sending a first game screen to the client, where the first game screen is a screen in a target cloud game running on the background server, and the target virtual object controlled by the client participates in a game task in the target cloud game; obtaining a target operation instruction sent by the client, where the target operation instruction is used to indicate that the center of a virtual joystick superimposed on the first game screen is located in a target area within a virtual joystick area superimposed on the first game screen, the virtual joystick area includes multiple areas, and the multiple areas have a target mapping relationship with multiple direction keys recognizable by the background server, the center of the virtual joystick is used to determine the target area among the multiple areas in the virtual joystick area, the target operation instruction is used to instruct the background server to obtain a target direction key corresponding to the target area according to the target mapping relationship, and generate a second game screen corresponding to the target direction key, the second game screen is a screen in which the target virtual object performs a target movement operation in the target direction corresponding to the target area; obtaining a target direction key corresponding to the target area according to the target mapping relationship, and generating the second game screen corresponding to the target direction key; sending the second game screen to the client.

[0007] According to another aspect of the embodiments of the present invention, there is also provided a control device for a virtual object, including: a first display unit, configured to display a first game screen sent by the background server in the client, where the first game screen is a screen in a target cloud game running on the background server, and the target virtual object controlled by the client participates in a game task in the target cloud game; a second display unit, configured to superimpose and display the center of a virtual joystick and a virtual joystick area on the first game screen, where the virtual joystick area includes multiple areas, and the multiple areas have a target mapping relationship with multiple direction keys recognizable by the background server, the center of the virtual joystick is used to determine the target area among the multiple areas in the virtual joystick area; a first sending unit, configured to send a target operation instruction to the background server when the center of the virtual joystick is located in the target area within the virtual joystick area, where the target operation instruction is used to instruct the background server to obtain a target direction key corresponding to the target area according to the target mapping relationship, and generate a second game screen corresponding to the target direction key, the second game screen is a screen in which the target virtual object performs a target movement operation in the target direction corresponding to the target area; a first obtaining unit, configured to obtain the second game screen sent by the background server.

[0008] According to another aspect of the embodiments of the present invention, there is also provided another control device for virtual objects, including: a second sending unit, configured to send a first game screen to a client, where the first game screen is a screen in a target cloud game running on a background server, and a target virtual object controlled by the client participates in a game task in the target cloud game; a second obtaining unit, configured to obtain a target operation instruction sent by the client, where the target operation instruction is used to indicate that the center of a virtual joystick superimposed on the first game screen is located in a target area within a virtual joystick area superimposed on the first game screen, the virtual joystick area includes multiple areas, and the multiple areas have a target mapping relationship with multiple direction keys recognizable by the background server, the center of the virtual joystick is used to determine the target area among the multiple areas in the virtual joystick area, and the target operation instruction is used to instruct the background server to obtain a target direction key corresponding to the target area according to the target mapping relationship and generate a second game screen corresponding to the target direction key, the second game screen being a screen in which the target virtual object performs a target movement operation in a target direction corresponding to the target area; a third obtaining unit, configured to obtain a target direction key corresponding to the target area according to the target mapping relationship and generate the second game screen corresponding to the target direction key; and a third sending unit, configured to send the second game screen to the client.

[0009] According to yet another aspect of the embodiments of the present invention, there is also provided a computer-readable storage medium, in which a computer program is stored, and the computer program is configured to execute the above-mentioned control method for virtual objects when running.

[0010] According to yet another aspect of the embodiments of the present invention, there is also provided an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor executes the above-mentioned control method for virtual objects through the computer program.

[0011] In an embodiment of the present invention, a first game screen sent by a background server is displayed on a client. The first game screen is a screen in a target cloud game running on the background server, and a target virtual object controlled by the client participates in a game task in the target cloud game. A virtual joystick center and a virtual joystick area are superimposed and displayed on the first game screen. The virtual joystick area includes multiple areas, and the multiple areas have a target mapping relationship with multiple direction keys recognizable by the background server. The virtual joystick center is used to determine a target area among the multiple areas in the virtual joystick area. When the virtual joystick center is located in the target area within the virtual joystick area, a target operation instruction is sent to the background server. The target operation instruction is used to instruct the background server to obtain a target direction key corresponding to the target area according to the target mapping relationship and generate a second game screen corresponding to the target direction key. The second game screen is a screen in which the target virtual object performs a target movement operation in the target direction corresponding to the target area. The second game screen sent by the background server is obtained, and the area where the virtual joystick center is located is converted into a direction key for controlling the target virtual object to perform a movement operation through a mapping relationship, so that in the cloud game scenario, the user can still obtain a corresponding game screen in a joystick control manner, thereby achieving the purpose of controlling the virtual object to perform operations in a joystick manner more suitable for terminal device operation, thus realizing the effect of improving the control efficiency of the virtual object, and further solving the technical problem of low control efficiency of the virtual object.

[0012] In an embodiment of the present invention, a first game screen is sent to a client. The first game screen is a screen in a target cloud game running on a background server, and a target virtual object controlled by the client participates in a game task in the target cloud game. A target operation instruction sent by the client is obtained. The target operation instruction is used to indicate that the center of a virtual joystick superimposed on the first game screen is located in a target area within a virtual joystick area superimposed on the first game screen. The virtual joystick area includes multiple areas, and the multiple areas have a target mapping relationship with multiple direction keys recognizable by the background server. The center of the virtual joystick is used to determine the target area among the multiple areas in the virtual joystick area. The target operation instruction is used to instruct the background server to obtain a target direction key corresponding to the target area according to the target mapping relationship, and generate a second game screen corresponding to the target direction key. The second game screen is a screen in which the target virtual object performs a target movement operation in a target direction corresponding to the target area. According to the target mapping relationship, a target direction key corresponding to the target area is obtained, and the second game screen corresponding to the target direction key is generated. The second game screen is sent to the client. By converting the area where the center of the virtual joystick is located into a direction key for controlling the target virtual object to perform a movement operation through a pre-established mapping relationship, the effect that in a cloud game scenario, a user can still control a virtual object to perform a movement operation in a joystick control manner is achieved. Furthermore, the purpose of controlling a virtual object to perform an operation in a joystick manner more suitable for terminal device operation is achieved, thereby realizing the effect of improving the control efficiency of the virtual object, and further solving the technical problem of low control efficiency of the virtual object. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] The drawings described herein are used to provide a further understanding of the present invention, and constitute a part of this application. The schematic embodiments of the present invention and their descriptions are used to explain the present invention, and do not constitute an improper limitation to the present invention. In the drawings:

[0014] Figure 1 is a schematic diagram of an application environment of an optional method for controlling a virtual object according to an embodiment of the present invention;

[0015] Figure 2 is a schematic diagram of a flowchart of an optional method for controlling a virtual object according to an embodiment of the present invention;

[0016] Figure 3 is a schematic diagram of an optional method for controlling a virtual object according to an embodiment of the present invention;

[0017] Figure 4 is a schematic diagram of another optional method for controlling a virtual object according to an embodiment of the present invention;

[0018] Figure 5 It is a schematic diagram of another optional control method for virtual objects according to an embodiment of the present invention;

[0019] Figure 6 It is a schematic diagram of another optional control method for virtual objects according to an embodiment of the present invention;

[0020] Figure 7 It is a schematic diagram of another optional control method for virtual objects according to an embodiment of the present invention;

[0021] Figure 8 It is a schematic diagram of a flowchart of another optional control method for virtual objects according to an embodiment of the present invention;

[0022] Figure 9 It is a schematic diagram of another optional control method for virtual objects according to an embodiment of the present invention;

[0023] Figure 10 It is a schematic diagram of another optional control method for virtual objects according to an embodiment of the present invention;

[0024] Figure 11 It is a schematic diagram of an optional control device for virtual objects according to an embodiment of the present invention;

[0025] Figure 12 It is a schematic diagram of another optional control device for virtual objects according to an embodiment of the present invention;

[0026] Figure 13 It is a schematic structural diagram of an optional electronic device according to an embodiment of the present invention. Detailed implementation manners

[0027] In order to enable those skilled in the art to better understand the solution of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without making creative efforts shall fall within the protection scope of the present invention.

[0028] It should be noted that the terms "first", "second", etc. in the description, claims and above-mentioned drawings of the present invention are used to distinguish similar objects, and do not necessarily describe a specific order or sequence. It should be understood that the data used in this way can be interchanged under appropriate circumstances, so that the embodiments of the present invention described here can be implemented in an order other than those illustrated or described here. In addition, the terms "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device comprising a series of steps or units does not necessarily have to be limited to those steps or units clearly listed, but may include other steps or units not clearly listed or inherent to these processes, methods, products or devices.

[0029] Cloud technology refers to a hosting technology that unifies a series of resources such as hardware, software, and networks within a wide area network or local area network to achieve data computing, storage, processing, and sharing.

[0030] Cloud technology is a general term for network technology, information technology, integration technology, management platform technology, application technology, etc. based on the cloud computing business model. It can form a resource pool, be used on demand, and is flexible and convenient. Cloud computing technology will become an important support. The back-end services of the technical network system require a large amount of computing and storage resources, such as video websites, picture websites, and more portal websites. With the highly developed and applied Internet industry, in the future, each item may have its own identification mark and needs to be transmitted to the back-end system for logical processing. Data at different levels will be processed separately, and various industry data requires a powerful system back-end support, which can only be achieved through cloud computing.

[0031] Cloud gaming, also known as gaming on demand, is an online gaming technology based on cloud computing technology. Cloud gaming technology enables lightweight devices (thin clients) with relatively limited graphics processing and data computing capabilities to run high-quality games. In the cloud gaming scenario, the game does not run on the player's game terminal, but on the cloud server. The cloud server renders the game scene into a video and audio stream and transmits it to the player's game terminal through the network. The player's game terminal only needs to have basic streaming media playback capabilities and the ability to obtain the player's input instructions and send them to the cloud server.

[0032] According to one aspect of the embodiments of the present invention, a method for controlling a virtual object is provided. Optionally, as an alternative implementation, the above method for controlling a virtual object can be but is not limited to being applied to, for example Figure 1In the environment shown. Among them, it may but is not limited to include the user device 102, the network 110, and the server 112. Among them, the user device 102 may but is not limited to include a display 108, a processor 106, and a memory 104. The display 108 may but is not limited to be used for displaying the first game screen 1022, the target virtual object 1024 in the first game screen 1022, the virtual joystick center 1026, the virtual joystick area 1028, and the target area 1030 within the virtual joystick area 1028 superimposed on the first game screen 1022. The display 108 may also but is not limited to be used for displaying the second game screen 1032, and the screen of the target virtual object 1024 performing the target movement operation 1034 included in the second game screen 1032. The display 108 may also but is not limited to be installed with a sensor that can recognize touch operations.

[0033] The specific process can be as follows:

[0034] Step S102, the user device 102 obtains the signal triggered by the position where the virtual joystick center 1026 is superimposed on the first game screen 1022 currently displayed on the display 108 through the sensor installed in the display 108 that can recognize touch operations, and obtains the target operation instruction when the virtual joystick center 1026 is located in the target area 1032 within the virtual joystick area 1028.

[0035] Steps S104 - S106, the user device 102 sends the target operation instruction to the server 112 through the network 110.

[0036] Step S108, the server 112 searches the database 114 for the target direction key (not shown in the figure) corresponding to the target area 1030 parsed from the target operation instruction, and generates the second game screen 1032 corresponding to the target direction key through the processing engine 116 according to the target direction key recognizable by the server 112.

[0037] Steps S110 - S112, the server 112 sends the second game screen 1032 to the user device 102 through the network 110.

[0038] Step S114, the processor 106 in the user device 102 processes and displays the second game screen 1032 on the display 108, and stores the second game screen 1032 in the memory 104. Among them, the second game screen 1032 may but is not limited to include the virtual joystick center 1026 superimposed on the target area 1030 within the virtual joystick area 1028, and the screen of the target virtual object 1024 performing the target movement operation 1034.

[0039] Optionally, as an alternative implementation, such as Figure 2As shown, the control method for virtual objects includes:

[0040] S202, display a first game screen sent by the background server on the client. The first game screen is a screen in the target cloud game running on the background server, and the target virtual object controlled by the client participates in the game tasks in the target cloud game;

[0041] S204, superimpose and display the center of the virtual joystick and the virtual joystick area on the first game screen. The virtual joystick area includes multiple areas, and there is a target mapping relationship between the multiple areas and multiple direction keys recognizable by the background server. The center of the virtual joystick is used to determine the target area among the multiple areas in the virtual joystick area;

[0042] S206, when the center of the virtual joystick is located in the target area within the virtual joystick area, send a target operation instruction to the background server. The target operation instruction is used to instruct the background server to obtain the target direction key corresponding to the target area according to the target mapping relationship, and generate a second game screen corresponding to the target direction key. The second game screen is a screen where the target virtual object performs a target movement operation in the target direction corresponding to the target area;

[0043] S208, obtain the second game screen sent by the background server.

[0044] Optionally, a control method for virtual objects can be but is not limited to being applied to a cloud game scenario where a mobile terminal is used to control a virtual character in a computer-based online game to perform virtual tasks. Optionally, the cloud game can be but is not limited to a game mode based on cloud computing. In the operating mode of the cloud game, all games are run on the server side, and the rendered game screens are compressed and transmitted to the user through the network. On the client side, the user's game device does not require any high-end processors and graphics cards, and can be but is not limited to only requiring basic video decompression capabilities. The virtual joystick area can be but is not limited to one or more circular areas, and the center of the virtual joystick can be but is not limited to the center of the virtual joystick area. Optionally, the virtual joystick area can include but is not limited to one or more virtual areas, and in the case of having multiple virtual areas, the multiple virtual areas can be but is not limited to respectively used to indicate the generation of different joystick operation instructions, but the joystick operation instructions are usually not recognized by the background server, while the direction operation instructions corresponding to the direction keys can be recognized by the background server. Optionally, the game screen can be but is not limited to one frame or multiple frames of screens. The direction keys can be but are not limited to signal forms recognizable by the background server, such as movement signals triggered by a physical keyboard. The direction keys can be but are not limited to being displayed on a mobile terminal or a computer-based online game.

[0045] It should be noted that the first game screen sent by the background server is displayed on the client. The first game screen is the screen in the target cloud game running on the background server, and the target virtual object controlled by the client participates in the game tasks in the target cloud game. The center of the virtual joystick and the virtual joystick area are superimposed and displayed on the first game screen. The virtual joystick area includes multiple regions, and there is a target mapping relationship between the multiple regions and multiple direction keys recognizable by the background server. The center of the virtual joystick is used to determine the target region among the multiple regions in the virtual joystick area. When the center of the virtual joystick is located in the target region within the virtual joystick area, a target operation instruction is sent to the background server. The target operation instruction is used to instruct the background server to obtain the target direction key corresponding to the target region according to the target mapping relationship and generate a second game screen. The second game screen is the screen where the target virtual object performs a target movement operation in the target direction corresponding to the target region. The second game screen sent by the background server is obtained.

[0046] For further illustration by example, optionally, for example Figure 3 As shown, it includes a mobile terminal 302 (client), a cloud server 304 (background server), and a computer online game 306 (target cloud game). The specific steps are as follows:

[0047] Step S302, the mobile terminal 302 detects that the mobile phone joystick (center of the virtual joystick) is pressed and moved to the target region (the target region within the virtual joystick area);

[0048] Step S304, the cloud server 304 recognizes the target region and sends key mapping information (target operation instruction);

[0049] Step S306, the cloud server 304 performs the corresponding key mapping according to the key mapping information (the target direction key used to instruct the control of the target virtual operation object to perform a target movement operation in the target direction);

[0050] Step S308, the computer online game 306 returns the corresponding game screen (second game screen) to the cloud server 304;

[0051] Step S310, the cloud server 304 returns the corresponding game screen (second game screen) to the mobile terminal 302;

[0052] Step S312, the mobile terminal 302 detects that the joystick is lifted and returns to the default;

[0053] Step S314, the cloud server 304 closes the previous key mapping transmission;

[0054] Step S316, the computer online game 306 cancels the previous key mapping execution;

[0055] Step S318, the PC online game 306 returns the corresponding game screen (the first game screen) to the cloud server 304;

[0056] Step S320, the cloud server 304 returns the corresponding game screen (the first game screen) to the mobile terminal 302.

[0057] Through the embodiments provided by the present application, the first game screen sent by the background server is displayed on the client side, where the first game screen is the screen in the target cloud game running on the background server, and the target virtual object controlled by the client participates in the game tasks in the target cloud game; the virtual joystick center and the virtual joystick area are superimposed and displayed on the first game screen, where the virtual joystick area includes multiple areas, and the multiple areas have a target mapping relationship with multiple direction keys recognizable by the background server, and the virtual joystick center is used to determine the target area among the multiple areas in the virtual joystick area; when the virtual joystick center is located in the target area of the virtual joystick area, a target operation instruction is sent to the background server, where the target operation instruction is used to instruct the background server to obtain the target direction key corresponding to the target area according to the target mapping relationship, and generate a second game screen corresponding to the target direction key, and the second game screen is the screen of the target virtual object performing a target movement operation in the target direction corresponding to the target area; the second game screen sent by the background server is obtained, and the area where the virtual joystick center is located is converted into a direction key for controlling the target virtual object to perform a movement operation through the mapping relationship, so that in the cloud game scenario, the user can still obtain the corresponding game screen in the way of joystick control, and further achieves the purpose of controlling the virtual object to perform operations in a joystick manner more suitable for the operation of the terminal device, thereby achieving the effect of improving the control efficiency of the virtual object.

[0058] As an optional solution, the virtual joystick center, the first virtual joystick area, and the second virtual joystick area are superimposed and displayed on the first game screen, where the distance between the second virtual joystick area and the virtual joystick center is greater than the distance between the first virtual joystick area and the virtual joystick center.

[0059] It should be noted that the virtual joystick center, the first virtual joystick area, and the second virtual joystick area are superimposed and displayed on the first game screen, where the distance between the second virtual joystick area and the virtual joystick center is greater than the distance between the first virtual joystick area and the virtual joystick center.

[0060] For further illustration by example, optionally, for example Figure 4 As shown, it includes the first game screen 402, and the virtual joystick center 404, the second virtual joystick area 406, and the first virtual joystick area 408 superimposed and displayed on the first game screen 402.

[0061] Through the embodiments provided by the present application, a virtual joystick center, a first virtual joystick area, and a second virtual joystick area are superimposed and displayed on the first game screen. Among them, the distance between the second virtual joystick area and the virtual joystick center is greater than the distance between the first virtual joystick area and the virtual joystick center, achieving the purpose of superimposing and displaying multiple virtual joystick elements on the game screen and realizing the effect of improving the display diversity of the virtual game screen.

[0062] As an optional solution, before displaying the first game screen sent by the background server, it includes:

[0063] S1, displaying the third game screen sent by the background server in the client;

[0064] S2, superimposing and displaying multiple virtual direction keys on the third game screen, where the virtual direction keys are in one-to-one mapping with multiple direction keys recognizable by the background server;

[0065] S3, sending a switching instruction to the background server, where the switching instruction is used to instruct the background server to generate the first game screen according to the third game screen;

[0066] S4, obtaining the first game screen sent by the background server.

[0067] It should be noted that the third game screen sent by the background server is displayed in the client; multiple virtual direction keys are superimposed and displayed on the third game screen, where the virtual direction keys are in one-to-one mapping with multiple direction keys recognizable by the background server; a switching instruction is sent to the background server, where the switching instruction is used to instruct the background server to generate the first game screen according to the third game screen; the first game screen sent by the background server is obtained.

[0068] For further illustration by way of example, optionally, for example, a switching button for switching virtual operation buttons is displayed in the client. In the case of detecting a touch instruction triggered on the switching button, a switching operation instruction is generated, where the switching operation instruction is used to switch the third game screen with the currently displayed virtual operation button being the direction key to the first game screen with the virtual operation button being the virtual joystick.

[0069] Through the embodiments provided by the present application, the third game screen sent by the background server is displayed in the client; multiple virtual direction keys are superimposed and displayed on the third game screen, where the virtual direction keys are in one-to-one mapping with multiple direction keys recognizable by the background server; a switching instruction is sent to the background server, where the switching instruction is used to instruct the background server to generate the first game screen according to the third game screen; the first game screen sent by the background server is obtained, thereby achieving the purpose of displaying multiple types of virtual operation buttons in the game screen and realizing the effect of the display diversity of the game screen.

[0070] As an alternative solution, when the center of the virtual joystick is located in the target area within the virtual joystick area, sending a target operation instruction to the background server includes:

[0071] S1. When the center of the virtual joystick is located in the first area within the first virtual joystick area, sending a first operation instruction to the background server, where the first operation instruction is used to instruct the background server to obtain a first direction key corresponding to the first area according to a first mapping relationship, and generate a screen in which the target virtual object performs a first moving operation in a first direction corresponding to the first direction key;

[0072] S2. When the center of the virtual joystick is located in the second area within the first virtual joystick area, sending a second operation instruction to the background server, where the second operation instruction is used to instruct the background server to obtain a second direction key corresponding to the second area according to a second mapping relationship, and generate a screen in which the target virtual object performs a first moving operation in a second direction corresponding to the second direction key;

[0073] S3. When the center of the virtual joystick is located in the third area within the first virtual joystick area, sending a third operation instruction to the background server, where the third operation instruction is used to instruct the background server to obtain a first direction key and a second direction key corresponding to the third area according to a third mapping relationship, and generate a screen in which the target virtual object performs a first moving operation in a third direction corresponding to the first direction key and the second direction key, and the third direction is a combined direction of the first direction and the second direction.

[0074] It should be noted that when the center of the virtual joystick is located in the first area within the first virtual joystick area, sending a first operation instruction to the background server, where the first operation instruction is used to instruct the background server to obtain a first direction key corresponding to the first area according to a first mapping relationship, and generate a screen in which the target virtual object performs a first moving operation in a first direction corresponding to the first direction key; when the center of the virtual joystick is located in the second area within the first virtual joystick area, sending a second operation instruction to the background server, where the second operation instruction is used to instruct the background server to obtain a second direction key corresponding to the second area according to a second mapping relationship, and generate a screen in which the target virtual object performs a first moving operation in a second direction corresponding to the second direction key; when the center of the virtual joystick is located in the third area within the first virtual joystick area, sending a third operation instruction to the background server, where the third operation instruction is used to instruct the background server to obtain a first direction key and a second direction key corresponding to the third area according to a third mapping relationship, and generate a screen in which the target virtual object performs a first moving operation in a third direction corresponding to the first direction key and the second direction key, and the third direction is a combined direction of the first direction and the second direction.

[0075] For further illustration, optionally, for example Figure 5 As shown, it includes a first area 502 within the first virtual joystick area 408. When the center 404 of the virtual joystick is located in the first area 502 of the first virtual joystick area 408, a second game screen 506 is displayed in which the target virtual object 410 performs a moving operation in the first direction indicated by the first direction key 504.

[0076] For further illustration, optionally, for example Figure 6 As shown, it includes the center 602 of the virtual joystick and the first virtual joystick area 604. Among them, the first virtual joystick area 604 includes 8 areas numbered 1 to 8, and each numbered area is used to indicate the corresponding direction key. For example, the area numbered 1 is used to indicate the forward direction key, the area numbered 7 is used to indicate the left direction key, and the number 8 is used to indicate the direction of the left - front direction key (that is, the combined direction key of left and forward) for movement.

[0077] Through the embodiments provided by the present application, when the center of the virtual joystick is located in the first area within the first virtual joystick area, a first operation instruction is sent to the background server. Among them, the first operation instruction is used to instruct the background server to obtain the first direction key corresponding to the first area according to the first mapping relationship, and generate a screen in which the target virtual object performs a first moving operation in the first direction corresponding to the first direction key; when the center of the virtual joystick is located in the second area within the first virtual joystick area, a second operation instruction is sent to the background server. Among them, the second operation instruction is used to instruct the background server to obtain the second direction key corresponding to the second area according to the second mapping relationship, and generate a screen in which the target virtual object performs a first moving operation in the second direction corresponding to the second direction key; when the center of the virtual joystick is located in the third area within the first virtual joystick area, a third operation instruction is sent to the background server. Among them, the third operation instruction is used to instruct the background server to obtain the first direction key and the second direction key corresponding to the third area according to the third mapping relationship, and generate a screen in which the target virtual object performs a first moving operation in the third direction corresponding to the first direction key and the second direction key. The third direction is the combined direction of the first direction and the second direction, achieving the purpose of setting an operation method for multi - direction movement and realizing the effect of improving the flexibility of movement.

[0078] As an optional solution, when the center of the virtual joystick is located in the target area within the virtual joystick area, sending a target operation instruction to the background server includes:

[0079] When the center of the virtual joystick is located in the fourth area within the second virtual joystick area, a fourth operation instruction is sent to the background server. The fourth operation instruction is used to instruct the background server to obtain, according to the fourth mapping relationship, the first direction key corresponding to the fourth area and the target operation key, and generate a screen for the target virtual object to execute the first direction corresponding to the first direction key and the second movement operation corresponding to the target operation key.

[0080] It should be noted that when the center of the virtual joystick is located in the fourth area within the second virtual joystick area, a fourth operation instruction is sent to the background server. The fourth operation instruction is used to instruct the background server to obtain, according to the fourth mapping relationship, the first direction key corresponding to the fourth area and the target operation key, and generate a screen for the target virtual object to execute the first direction corresponding to the first direction key and the second movement operation corresponding to the target operation key. Optionally, the second movement operation can be but is not limited to an operation for increasing the movement speed or distance in a short period of time, such as accelerating running, jumping, rolling, etc.

[0081] For further illustration by example, optionally Figure 7 As shown, it includes a second virtual joystick area 606. Among them, the second virtual joystick area 606 includes 8 numbered areas numbered A to H. Optionally, the 8 numbered areas numbered A to H can be but are not limited to representing operation keys for performing the same type of operation. Optionally, for example, the 8 numbered areas numbered A to H are all used to represent operation keys for instructing to perform an accelerating running operation; the 8 numbered areas numbered A to H can also be but are not limited to representing operation keys for performing different types of operations. Optionally, for example, the numbered area A is used to represent an operation key for instructing to perform a rolling operation, and the numbered area B is used to represent an operation key for instructing to perform a jumping operation, etc.

[0082] For further illustration by example, optionally Figure 7 As shown, when the center 602 of the virtual joystick slides to the numbered area 1 in the first virtual joystick area 604, the first direction key indicated by the numbered area 1 is obtained; on this basis, if the center 602 of the virtual joystick slides to the numbered area A in the second virtual joystick area 606, then the operation key corresponding to the numbered area A for instructing to perform a rolling operation is obtained; the first direction key is combined with the operation key for instructing to perform a rolling operation to obtain an operation instruction for instructing to perform a rolling operation in the first direction.

[0083] Through the embodiments provided in this application, when the center of the virtual joystick is located in the fourth area within the second virtual joystick area, a fourth operation instruction is sent to the background server. The fourth operation instruction is used to instruct the background server to obtain the first direction key and the target operation key corresponding to the fourth area according to the fourth mapping relationship, and generate a screen for the target virtual object to execute the first movement corresponding to the first direction key and the second movement corresponding to the target operation key. This achieves the combination of multiple joystick areas to obtain more comprehensive operation instructions, and realizes the effect of improving the comprehensiveness of obtaining operation instructions.

[0084] Optionally, as an alternative implementation, as Figure 8 shown, the control method of the virtual object includes:

[0085] S802, send the first game screen to the client. The first game screen is the screen in the target cloud game running on the background server, and the target virtual object controlled by the client participates in the game task in the target cloud game;

[0086] S804, obtain the target operation instruction sent by the client. The target operation instruction is used to represent that the center of the virtual joystick superimposed on the first game screen is located in the target area within the virtual joystick area superimposed on the first game screen. The virtual joystick area includes multiple areas, and the multiple areas have a target mapping relationship with multiple direction keys recognizable by the background server. The center of the virtual joystick is used to determine the target area among the multiple areas in the virtual joystick area. The target operation instruction is used to instruct the background server to obtain the target direction key corresponding to the target area according to the target mapping relationship, and generate a second game screen corresponding to the target direction key. The second game screen is the screen for the target virtual object to execute the target movement operation in the target direction corresponding to the target area;

[0087] S806, obtain the target direction key corresponding to the target area according to the target mapping relationship, and generate a second game screen corresponding to the target direction key;

[0088] S808, send the second game screen to the client.

[0089] Optionally, a control method for virtual objects can be but is not limited to being applied to a cloud game scenario where a mobile terminal is used to control a virtual character in a computer game to perform virtual tasks. Optionally, cloud games can be but are not limited to a game mode based on cloud computing. In the operating mode of cloud games, all games are run on the server side, and the rendered game screens are compressed and transmitted to the user through the network. On the client side, the user's game device does not require any high-end processors and graphics cards and can be but is not limited to only requiring basic video decompression capabilities. The virtual joystick area can be but is not limited to one or more circular areas, and the center of the virtual joystick can be but is not limited to the center of the virtual joystick area. Optionally, the virtual joystick area can include but is not limited to one or more virtual areas. In the case of having multiple virtual areas, the multiple virtual areas can be but are not limited to respectively used to indicate the generation of different joystick operation instructions, but the joystick operation instructions are generally not recognized by the background server, while the direction operation instructions corresponding to the direction keys can be recognized by the background server. Optionally, the game screen can be but is not limited to one frame or multiple frames of the screen. The direction keys can be but are not limited to a signal form recognizable by the background server, such as a movement signal triggered by a physical keyboard. The direction keys can be but are not limited to being displayed on the mobile terminal or in the computer game.

[0090] It should be noted that the first game screen is sent to the client, where the first game screen is the screen in the target cloud game run by the background server, and the target virtual object controlled by the client participates in the game tasks in the target cloud game; the target operation instruction sent by the client is obtained, where the target operation instruction is used to represent that the center of the virtual joystick superimposed on the first game screen is located in the target area within the virtual joystick area superimposed on the first game screen. The virtual joystick area includes multiple areas, and the multiple areas have a target mapping relationship with multiple direction keys recognizable by the background server. The center of the virtual joystick is used to determine the target area among the multiple areas in the virtual joystick area. The target operation instruction is used to instruct the background server to obtain the target direction key corresponding to the target area according to the target mapping relationship and generate a second game screen corresponding to the target direction key. The second game screen is the screen where the target virtual object performs a target movement operation in the target direction corresponding to the target area; the target direction key corresponding to the target area is obtained according to the target mapping relationship, and a second game screen corresponding to the target direction key is generated; the second game screen is sent to the client.

[0091] Through the embodiments provided in this application, a first game screen is sent to the client. The first game screen is the screen in the target cloud game running on the background server, and the target virtual object controlled by the client participates in the game task in the target cloud game. The target operation instruction sent by the client is obtained. The target operation instruction is used to indicate that the center of the virtual joystick superimposed on the first game screen is located in the target area within the virtual joystick area superimposed on the first game screen. The virtual joystick area includes multiple areas, and there is a target mapping relationship between the multiple areas and the multiple direction keys recognizable by the background server. The center of the virtual joystick is used to determine the target area among the multiple areas in the virtual joystick area. The target operation instruction is used to instruct the background server to obtain the target direction key corresponding to the target area according to the target mapping relationship, and generate a second game screen corresponding to the target direction key. The second game screen is the screen in which the target virtual object performs a target movement operation in the target direction corresponding to the target area. According to the target mapping relationship, the target direction key corresponding to the target area is obtained, and the second game screen corresponding to the target direction key is generated. The second game screen is sent to the client. By converting the area where the center of the virtual joystick is located into a direction key for controlling the target virtual object to perform a movement operation through a pre-established mapping relationship, the effect that in the cloud game scenario, the user can still control the virtual object to perform a movement operation in the way of joystick control is achieved. Furthermore, the purpose of controlling the virtual object to perform an operation in a joystick manner more suitable for the operation of the terminal device is achieved, thereby realizing the effect of improving the control efficiency of the virtual object.

[0092] As an optional solution, before sending the first game screen to the client, it includes:

[0093] S1. Send a third game screen to the client. Multiple virtual direction keys are superimposed on the third game screen, and there is a one-to-one mapping between the virtual direction keys and the multiple direction keys recognizable by the background server.

[0094] S2. Obtain the switching instruction sent by the client. The switching instruction is used to instruct the background server to generate the first game screen according to the third game screen.

[0095] S3. Send the first game screen generated according to the switching instruction to the client.

[0096] It should be noted that a third game screen is sent to the client. Multiple virtual direction keys are superimposed on the third game screen, and there is a one-to-one mapping between the virtual direction keys and the multiple direction keys recognizable by the background server. The switching instruction sent by the client is obtained. The switching instruction is used to instruct the background server to generate the first game screen according to the third game screen. The first game screen generated according to the switching instruction is sent to the client.

[0097] Through the embodiments provided in this application, a third game screen is sent to the client. Multiple virtual direction keys are superimposed and displayed on the third game screen, and the virtual direction keys are in one-to-one mapping with multiple direction keys recognizable by the background server. A switching instruction sent by the client is obtained, where the switching instruction is used to instruct the background server to generate a first game screen according to the third game screen. The first game screen generated according to the switching instruction is sent to the client, thereby achieving the purpose of displaying various types of virtual operation buttons in the game screen, and thus realizing the effect of the diversity of the display of the game screen.

[0098] As an optional solution, obtaining a target direction key corresponding to a target area according to a target mapping relationship includes:

[0099] S1. Obtain a first direction key corresponding to a first area where the center of the virtual joystick is located within the first virtual joystick area according to a first mapping relationship, and generate a screen in which the target virtual object performs a first movement operation in a first direction corresponding to the first direction key.

[0100] S2. Obtain a second direction key corresponding to a second area where the center of the virtual joystick is located within the first virtual joystick area according to a second mapping relationship, and generate a screen in which the target virtual object performs a first movement operation in a second direction corresponding to the second direction key.

[0101] S3. Obtain a first direction key and a second direction key corresponding to a third area where the center of the virtual joystick is located within the first virtual joystick area according to a third mapping relationship, and generate a screen in which the target virtual object performs a first movement operation in a third direction corresponding to the first direction key and the second direction key, and the third direction is a combined direction of the first direction and the second direction.

[0102] It should be noted that, obtain a first direction key corresponding to a first area where the center of the virtual joystick is located within the first virtual joystick area according to a first mapping relationship, and generate a screen in which the target virtual object performs a first movement operation in a first direction corresponding to the first direction key; obtain a second direction key corresponding to a second area where the center of the virtual joystick is located within the first virtual joystick area according to a second mapping relationship, and generate a screen in which the target virtual object performs a first movement operation in a second direction corresponding to the second direction key; obtain a first direction key and a second direction key corresponding to a third area where the center of the virtual joystick is located within the first virtual joystick area according to a third mapping relationship, and generate a screen in which the target virtual object performs a first movement operation in a third direction corresponding to the first direction key and the second direction key, and the third direction is a combined direction of the first direction and the second direction.

[0103] Through the embodiments provided by the present application, obtain the first direction key corresponding to the first area where the center of the virtual joystick is located within the first virtual joystick area according to the first mapping relationship, and generate a screen in which the target virtual object performs a first movement operation in the first direction corresponding to the first direction key; obtain the second direction key corresponding to the second area where the center of the virtual joystick is located within the first virtual joystick area according to the second mapping relationship, and generate a screen in which the target virtual object performs a first movement operation in the second direction corresponding to the second direction key; obtain the first direction key and the second direction key corresponding to the third area where the center of the virtual joystick is located within the first virtual joystick area according to the third mapping relationship, and generate a screen in which the target virtual object performs a first movement operation in the third direction corresponding to the first direction key and the second direction key, where the third direction is a combined direction of the first direction and the second direction, achieving the purpose of controlling the virtual object to perform movement operations in multiple directions and realizing the effect of improving the flexibility of controlling the virtual object to perform movement operations.

[0104] As an optional solution, obtaining the target direction key corresponding to the target area according to the target mapping relationship includes:

[0105] Obtain the first direction key and the target operation key corresponding to the fourth area where the center of the virtual joystick is located within the second virtual joystick area according to the fourth mapping relationship, and generate a screen in which the target virtual object performs a second movement operation corresponding to the target operation key in the first direction corresponding to the first direction key, where the distance between the second virtual joystick area and the center of the virtual joystick is greater than the distance between the first virtual joystick area and the center of the virtual joystick.

[0106] It should be noted that obtain the first direction key and the target operation key corresponding to the fourth area where the center of the virtual joystick is located within the second virtual joystick area according to the fourth mapping relationship, and generate a screen in which the target virtual object performs a second movement operation corresponding to the target operation key in the first direction corresponding to the first direction key, where the distance between the second virtual joystick area and the center of the virtual joystick is greater than the distance between the first virtual joystick area and the center of the virtual joystick.

[0107] Through the embodiments provided by the present application, obtain the first direction key and the target operation key corresponding to the fourth area where the center of the virtual joystick is located within the second virtual joystick area according to the fourth mapping relationship, and generate a screen in which the target virtual object performs a second movement operation corresponding to the target operation key in the first direction corresponding to the first direction key, where the distance between the second virtual joystick area and the center of the virtual joystick is greater than the distance between the first virtual joystick area and the center of the virtual joystick, achieving the purpose of flexibly controlling the virtual object to perform additional operations and realizing the effect of improving the flexibility of controlling the virtual object.

[0108] As an alternative solution, before obtaining the target operation instruction sent by the client, it includes:

[0109] Establish a target mapping relationship between each of the centers of the virtual joysticks located in multiple regions and multiple direction keys recognizable by the background server.

[0110] It should be noted that a target mapping relationship is established between each of the centers of the virtual joysticks located in multiple regions and multiple direction keys recognizable by the background server.

[0111] For further illustration by example, optionally, for example Figure 9 As shown, establish a type mapping relationship 904 between multiple regions in the second virtual joystick area 606 and one or more operation keys 902; establish a direction mapping relationship 908 between multiple regions in the first virtual joystick area 604 and one or more operation direction keys 906.

[0112] Through the embodiments provided in the present application, by establishing a target mapping relationship between each of the centers of the virtual joysticks located in multiple regions and multiple direction keys recognizable by the background server, the purpose of pre - establishing the mapping relationship to quickly determine the type and direction of the movement operation to be performed according to the joystick area is achieved, and the effect of improving the determination efficiency of the movement operation is realized.

[0113] As an alternative solution, establishing a target mapping relationship between each of the centers of the virtual joysticks located in multiple regions and multiple direction keys recognizable by the background server includes at least one of the following:

[0114] S1, establish a first mapping relationship between the center of the virtual joystick located in the first region and the first direction key;

[0115] S2, establish a second mapping relationship between the center of the virtual joystick located in the second region and the second direction key;

[0116] S3, establish a third mapping relationship between the center of the virtual joystick located in the third region and the first direction key and the second direction key;

[0117] S4, establish a fourth mapping relationship between the center of the virtual joystick located in the fourth region and the first direction key and the target operation key.

[0118] It should be noted that establish a first mapping relationship between the center of the virtual joystick located in the first region and the first direction key; establish a second mapping relationship between the center of the virtual joystick located in the second region and the second direction key; establish a third mapping relationship between the center of the virtual joystick located in the third region and the first direction key and the second direction key; establish a fourth mapping relationship between the center of the virtual joystick located in the fourth region and the first direction key and the target operation key.

[0119] For further illustration by example, optionally, for example Figure 10As shown, a third mapping relationship 1004 is established between area No. 6 in the first virtual joystick area 604 and the third direction key 1002; a fourth mapping relationship 1008 is established between area No. H in the second virtual joystick area 606 and the target operation key 1006.

[0120] Through the embodiments provided in this application, a first mapping relationship between the center of the virtual joystick located in the first area and the first direction key is established; a second mapping relationship between the center of the virtual joystick located in the second area and the second direction key is established; a third mapping relationship between the center of the virtual joystick located in the third area and the first direction key and the second direction key is established; a fourth mapping relationship between the center of the virtual joystick located in the fourth area and the first direction key and the target operation key is established. By presetting the mapping relationships between various directions, type direction keys or other types of keys and areas, the technical purpose of quickly determining the movement operation to be performed by the virtual object through the preset comprehensive mapping relationships is achieved, thereby realizing the technical effect of the determination efficiency of the movement operation to be performed by the virtual object.

[0121] It should be noted that for the foregoing method embodiments, for the sake of simple description, they are all expressed as a series of action combinations. However, those skilled in the art should know that the present invention is not limited by the described action sequence, because according to the present invention, certain steps can be performed in other sequences or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily essential to the present invention.

[0122] According to another aspect of the embodiments of the present invention, a control device for a virtual object for implementing the above virtual object control method is also provided. As Figure 11 shown, the device includes:

[0123] A first display unit 1102, configured to display a first game screen sent by a background server in a client, where the first game screen is a screen in a target cloud game run by the background server, and the target virtual object controlled by the client participates in a game task in the target cloud game;

[0124] A second display unit 1104, configured to superimpose and display the center of the virtual joystick and the virtual joystick area on the first game screen, where the virtual joystick area includes multiple areas, and the multiple areas have a target mapping relationship with multiple direction keys recognizable by the background server, and the center of the virtual joystick is used to determine a target area among the multiple areas in the virtual joystick area;

[0125] A first sending unit 1106, configured to send a target operation instruction to a background server when a center of a virtual joystick is located in a target area within a virtual joystick area, where the target operation instruction is used to instruct the background server to obtain a target direction key corresponding to the target area according to a target mapping relationship, and generate a second game screen corresponding to the target direction key, and the second game screen is a screen in which a target virtual object performs a target movement operation in a target direction corresponding to the target area;

[0126] A first obtaining unit 1108, configured to obtain the second game screen sent by the background server.

[0127] Optionally, a control device for a virtual object can be but is not limited to being applied to a cloud game scenario where a virtual character in a computer-end game is controlled by a mobile terminal to perform a virtual task. Optionally, cloud game can be but is not limited to a game mode based on cloud computing. In the operation mode of cloud game, all games are run on the server side, and the rendered game screens are compressed and transmitted to the user through the network. On the client side, the user's game device does not require any high-end processor and display card, and can be but is not limited to only require basic video decompression ability. The virtual joystick area can be but is not limited to one or more circular areas, and the center of the virtual joystick can be but is not limited to the center of the virtual joystick area. Optionally, the virtual joystick area can include but is not limited to one or more virtual areas. In the case of having multiple virtual areas, the multiple virtual areas can be but is not limited to respectively used to indicate the generation of different joystick operation instructions, but the joystick operation instructions are generally not recognized by the background server, while the direction operation instructions corresponding to the direction keys can be recognized by the background server. Optionally, the game screen can be but is not limited to one frame or multiple frames of screens. The direction key can be but is not limited to a signal form recognizable by the background server, such as a movement signal triggered by a physical keyboard. The direction key can be but is not limited to being displayed on the mobile terminal or the computer-end game.

[0128] It should be noted that the first game screen sent by the background server is displayed on the client. The first game screen is the screen in the target cloud game running on the background server, and the target virtual object controlled by the client participates in the game tasks in the target cloud game. The center of the virtual joystick and the virtual joystick area are superimposed and displayed on the first game screen. The center of the virtual joystick is used to control the target virtual object to perform a moving operation in the virtual joystick area. When the center of the virtual joystick is located in the target area within the virtual joystick area, a target operation instruction is sent to the background server. The target operation instruction is used to instruct the background server to generate a second game screen according to the target mapping relationship. The second game screen is the screen in which the target virtual object performs a target moving operation in the target direction corresponding to the target area. The target mapping relationship is the mapping relationship between the target area and the operation instruction used to instruct the control of the target virtual operation object to perform a target moving operation in the target direction. The second game screen sent by the background server is obtained.

[0129] For specific embodiments, reference can be made to the examples shown in the above control method of the virtual object, and details are not described herein again.

[0130] Through the embodiments provided by the present application, the first game screen sent by the background server is displayed on the client. The first game screen is the screen in the target cloud game running on the background server, and the target virtual object controlled by the client participates in the game tasks in the target cloud game. The center of the virtual joystick and the virtual joystick area are superimposed and displayed on the first game screen. The virtual joystick area includes multiple areas, and the multiple areas and multiple direction keys recognizable by the background server are in a target mapping relationship. The center of the virtual joystick is used to determine the target area among the multiple areas in the virtual joystick area. When the center of the virtual joystick is located in the target area within the virtual joystick area, a target operation instruction is sent to the background server. The target operation instruction is used to instruct the background server to obtain the target direction key corresponding to the target area according to the target mapping relationship and generate a second game screen corresponding to the target direction key. The second game screen is the screen in which the target virtual object performs a target moving operation in the target direction corresponding to the target area. The second game screen sent by the background server is obtained, and the area where the center of the virtual joystick is located is converted into a direction key for controlling the target virtual object to perform a moving operation through the mapping relationship, so that in the cloud game scenario, the user can still obtain the corresponding game screen in the way of joystick control, and further achieves the purpose of controlling the virtual object to perform operations in a joystick manner more suitable for the operation of the terminal device, thereby realizing the effect of improving the control efficiency of the virtual object.

[0131] As an optional solution, the second display unit 1104 includes:

[0132] The first display module is used to superimpose and display the center of the virtual joystick, the first virtual joystick area, and the second virtual joystick area on the first game screen, where the distance between the second virtual joystick area and the center of the virtual joystick is greater than the distance between the first virtual joystick area and the center of the virtual joystick.

[0133] For specific embodiments, reference can be made to the examples shown in the above control method of virtual objects, and details will not be repeated in this example.

[0134] As an alternative solution, it includes:

[0135] The third display unit is used to display the third game screen sent by the background server in the client before displaying the first game screen sent by the background server;

[0136] The fourth display unit is used to superimpose and display a plurality of virtual direction keys on the third game screen before displaying the first game screen sent by the background server, where the virtual direction keys and a plurality of direction keys recognizable by the background server are in one-to-one mapping;

[0137] The second sending unit is used to send a switching instruction to the background server before displaying the first game screen sent by the background server, where the switching instruction is used to instruct the background server to generate the first game screen according to the third game screen;

[0138] The second obtaining unit is used to obtain the first game screen sent by the background server before displaying the first game screen sent by the background server.

[0139] For specific embodiments, reference can be made to the examples shown in the above control method of virtual objects, and details will not be repeated in this example.

[0140] As an alternative solution, the first sending unit 1106 includes:

[0141] The first sending module is used to send a first operation instruction to the background server when the center of the virtual joystick is in the first area of the first virtual joystick area, where the first operation instruction is used to instruct the background server to obtain the first direction key corresponding to the first area according to the first mapping relationship, and generate a screen in which the target virtual object performs a first moving operation in the first direction corresponding to the first direction key;

[0142] The second sending module is used to send a second operation instruction to the background server when the center of the virtual joystick is in the second area of the first virtual joystick area, where the second operation instruction is used to instruct the background server to obtain the second direction key corresponding to the second area according to the second mapping relationship, and generate a screen in which the target virtual object performs a first moving operation in the second direction corresponding to the second direction key;

[0143] A third sending module, configured to send a third operation instruction to the background server when the center of the virtual joystick is located in a third area within the first virtual joystick area, where the third operation instruction is used to instruct the background server to obtain a first direction key and a second direction key corresponding to the third area according to a third mapping relationship, and generate a screen in which a target virtual object performs a first moving operation in a third direction corresponding to the first direction key and the second direction key, and the third direction is a combined direction of the first direction and the second direction.

[0144] For specific embodiments, reference may be made to the examples shown in the above control method of the virtual object, and details are not described herein again in this example.

[0145] As an optional solution, the first sending unit 1106 includes:

[0146] A fourth sending module, configured to send a fourth operation instruction to the background server when the center of the virtual joystick is located in a fourth area within the second virtual joystick area, where the fourth operation instruction is used to instruct the background server to obtain a first direction key and a target operation key corresponding to the fourth area according to a fourth mapping relationship, and generate a screen in which a target virtual object performs a second moving operation corresponding to the target operation key in a first direction corresponding to the first direction key.

[0147] For specific embodiments, reference may be made to the examples shown in the above control method of the virtual object, and details are not described herein again in this example.

[0148] According to another aspect of the embodiments of the present invention, there is also provided a control device for a virtual object for implementing the above control method of the virtual object. As Figure 12 shown, the device includes:

[0149] A third sending unit 1202, configured to send a first game screen to the client, where the first game screen is a screen in a target cloud game running on the background server, and the target virtual object controlled by the client participates in a game task in the target cloud game;

[0150] A third obtaining unit 1204, configured to obtain a target operation instruction sent by the client, where the target operation instruction is used to represent that the center of the virtual joystick superimposed on the first game screen is located in a target area within the virtual joystick area superimposed on the first game screen, the virtual joystick area includes multiple areas, and the multiple areas have a target mapping relationship with multiple direction keys recognizable by the background server, the center of the virtual joystick is used to determine the target area among the multiple areas in the virtual joystick area, and the target operation instruction is used to instruct the background server to obtain a target direction key corresponding to the target area according to the target mapping relationship, and generate a second game screen corresponding to the target direction key, and the second game screen is a screen in which the target virtual object performs a target moving operation in the target direction corresponding to the target area;

[0151] A fourth acquisition unit 1206, configured to acquire a target direction key corresponding to a target area according to a target mapping relationship, and generate a second game screen corresponding to the target direction key.

[0152] A third sending unit 1208, configured to send the second game screen to the client.

[0153] Optionally, a control device for a virtual object can be but is not limited to being applied to a cloud game scenario where a mobile terminal is used to control a virtual character in a computer-end game to perform a virtual task. Optionally, cloud games can be but are not limited to a game mode based on cloud computing. In the operating mode of cloud games, all games are run on the server side, and the rendered game screens are compressed and transmitted to the user through the network. On the client side, the user's game device does not require any high-end processors and graphics cards, and can be but is not limited to only requiring basic video decompression capabilities. The virtual joystick area can be but is not limited to one or more circular areas, and the center of the virtual joystick can be but is not limited to the center of the virtual joystick area. Optionally, the virtual joystick area can include but is not limited to one or more virtual areas. In the case of having multiple virtual areas, the multiple virtual areas can be but are not limited to being respectively used to indicate the generation of different joystick operation instructions, but the joystick operation instructions are generally not recognized by the background server, while the direction operation instructions corresponding to the direction keys can be recognized by the background server. Optionally, the game screen can be but is not limited to one frame or multiple frames of screens. The direction key can be but is not limited to a signal form recognizable by the background server, such as a movement signal triggered by a physical keyboard. The direction key can be but is not limited to being displayed on the mobile terminal or in the computer-end game.

[0154] It should be noted that the first game screen is sent to the client, where the first game screen is the screen in the target cloud game run by the background server, and the target virtual object controlled by the client participates in the game task in the target cloud game; the target operation instruction sent by the client is obtained, where the target operation instruction is used to represent that the center of the virtual joystick superimposed on the first game screen is located in the target area within the virtual joystick area superimposed on the first game screen. The virtual joystick area includes multiple areas, and the multiple areas have a target mapping relationship with multiple direction keys recognizable by the background server. The center of the virtual joystick is used to determine the target area among the multiple areas in the virtual joystick area. The target operation instruction is used to instruct the background server to acquire the target direction key corresponding to the target area according to the target mapping relationship, and generate a second game screen corresponding to the target direction key. The second game screen is the screen where the target virtual object performs a target movement operation in the target direction corresponding to the target area; the target direction key corresponding to the target area is acquired according to the target mapping relationship, and the second game screen corresponding to the target direction key is generated; the second game screen is sent to the client.

[0155] For specific embodiments, reference may be made to the examples shown in the above control method of virtual objects, and details will not be elaborated herein.

[0156] Through the embodiments provided in the present application, a first game screen is sent to the client. The first game screen is the screen in the target cloud game running on the background server, and the target virtual object controlled by the client participates in the game tasks in the target cloud game. The target operation instruction sent by the client is obtained. The target operation instruction is used to represent that the center of the virtual joystick superimposed on the first game screen is located in the target area within the virtual joystick area superimposed on the first game screen. The virtual joystick area includes multiple areas, and the multiple areas have a target mapping relationship with multiple direction keys recognizable by the background server. The center of the virtual joystick is used to determine the target area among the multiple areas in the virtual joystick area. The target operation instruction is used to instruct the background server to obtain the target direction key corresponding to the target area according to the target mapping relationship, and generate a second game screen corresponding to the target direction key. The second game screen is the screen of the target virtual object performing a target movement operation in the target direction corresponding to the target area. According to the target mapping relationship, the target direction key corresponding to the target area is obtained, and the second game screen corresponding to the target direction key is generated. The second game screen is sent to the client, and the area where the center of the virtual joystick is located is converted into a direction key for controlling the target virtual object to perform a movement operation through a pre-established mapping relationship, so as to achieve the effect that in the cloud game scenario, the user can still control the virtual object to perform a movement operation in the way of joystick control, and further achieve the purpose of controlling the virtual object to perform an operation in a joystick manner more suitable for the operation of the terminal device, thereby realizing the effect of improving the control efficiency of the virtual object.

[0157] As an alternative solution, it includes:

[0158] A fourth sending unit for sending a third game screen to the client, where multiple virtual direction keys are superimposed on the third game screen, and the virtual direction keys have a one-to-one mapping with multiple direction keys recognizable by the background server;

[0159] A fifth obtaining unit for obtaining a switching instruction sent by the client, where the switching instruction is used to instruct the background server to generate a first game screen according to the third game screen;

[0160] A fifth sending unit for sending the first game screen generated according to the switching instruction to the client.

[0161] For specific embodiments, reference may be made to the examples shown in the above control method of virtual objects, and details will not be elaborated herein.

[0162] As an alternative solution, the fourth obtaining unit 1206 includes:

[0163] The first acquisition module is configured to acquire a first direction key corresponding to a first area where the center of the virtual joystick is located within a first virtual joystick area according to a first mapping relationship, and generate a screen for a target virtual object to perform a first movement operation in a first direction corresponding to the first direction key.

[0164] The second acquisition module is configured to acquire a second direction key corresponding to a second area where the center of the virtual joystick is located within the first virtual joystick area according to a second mapping relationship, and generate a screen for a target virtual object to perform a first movement operation in a second direction corresponding to the second direction key.

[0165] The third acquisition module is configured to acquire a first direction key and a second direction key corresponding to a third area where the center of the virtual joystick is located within the first virtual joystick area according to a third mapping relationship, and generate a screen for a target virtual object to perform a first movement operation in a third direction corresponding to the first direction key and the second direction key, where the third direction is a combined direction of the first direction and the second direction.

[0166] For specific embodiments, reference may be made to the examples shown in the above control method of the virtual object, and details are not described herein again.

[0167] As an alternative solution, the fourth acquisition unit 1206 includes:

[0168] The fourth acquisition module is configured to acquire a first direction key and a target operation key corresponding to a fourth area where the center of the virtual joystick is located within a second virtual joystick area according to a fourth mapping relationship, and generate a screen for a target virtual object to perform a second movement operation corresponding to the target operation key in a first direction corresponding to the first direction key, where the distance between the second virtual joystick area and the center of the virtual joystick is greater than the distance between the first virtual joystick area and the center of the virtual joystick.

[0169] For specific embodiments, reference may be made to the examples shown in the above control method of the virtual object, and details are not described herein again.

[0170] As an alternative solution, it includes:

[0171] The establishment unit is configured to establish a target mapping relationship between each of multiple areas where the center of the virtual joystick is located and multiple direction keys recognizable by the background server before acquiring a first target operation instruction sent by the client.

[0172] For specific embodiments, reference may be made to the examples shown in the above control method of the virtual object, and details are not described herein again.

[0173] As an alternative solution, the establishment unit includes at least one of the following:

[0174] A first establishing module, configured to establish a first mapping relationship between the center of the virtual joystick located in the first area and the first direction key;

[0175] A second establishing module, configured to establish a second mapping relationship between the center of the virtual joystick located in the second area and the second direction key;

[0176] A third establishing module, configured to establish a third mapping relationship between the center of the virtual joystick located in the third area and the first direction key and the second direction key;

[0177] A fourth establishing module, configured to establish a fourth mapping relationship between the center of the virtual joystick located in the fourth area and the first direction key and the target operation key.

[0178] For specific embodiments, reference may be made to the examples shown in the above control method of virtual objects, and details are not described herein again.

[0179] According to another aspect of the embodiments of the present invention, there is also provided an electronic device for implementing the above control method of virtual objects. As Figure 13 shown, the electronic device includes a memory 1302 and a processor 1304. A computer program is stored in the memory 1302, and the processor 1304 is configured to execute the steps in any one of the above method embodiments through the computer program.

[0180] Optionally, in this embodiment, the above electronic device may be at least one of multiple network devices in a computer network.

[0181] Optionally, in this embodiment, the above processor may be configured to execute the following steps through the computer program:

[0182] S1, display a first game screen sent by a background server in a client, where the first game screen is a screen in a target cloud game running on the background server, and a target virtual object controlled by the client participates in a game task in the target cloud game;

[0183] S2, superimpose and display the center of the virtual joystick and the virtual joystick area on the first game screen, where the virtual joystick area includes multiple areas, and there is a target mapping relationship between the multiple areas and multiple direction keys recognizable by the background server, and the center of the virtual joystick is used to determine a target area among the multiple areas in the virtual joystick area;

[0184] S3. When the center of the virtual joystick is located in the target area within the virtual joystick area, send a target operation instruction to the background server. The target operation instruction is used to instruct the background server to obtain the target direction key corresponding to the target area according to the target mapping relationship, and generate a second game screen corresponding to the target direction key. The second game screen is a screen in which the target virtual object performs a target movement operation in the target direction corresponding to the target area.

[0185] S4. Obtain the second game screen sent by the background server. And / or

[0186] S1. Send the first game screen to the client. The first game screen is a screen in the target cloud game run by the background server, and the target virtual object controlled by the client participates in the game tasks in the target cloud game.

[0187] S2. Obtain the target operation instruction sent by the client. The target operation instruction is used to represent that the center of the virtual joystick superimposed on the first game screen is located in the target area within the virtual joystick area superimposed on the first game screen. The virtual joystick area includes multiple areas, and the multiple areas have a target mapping relationship with multiple direction keys recognizable by the background server. The center of the virtual joystick is used to determine the target area among the multiple areas in the virtual joystick area. The target operation instruction is used to instruct the background server to obtain the target direction key corresponding to the target area according to the target mapping relationship, and generate a second game screen corresponding to the target direction key. The second game screen is a screen in which the target virtual object performs a target movement operation in the target direction corresponding to the target area.

[0188] S3. According to the target mapping relationship, obtain the target direction key corresponding to the target area, and generate a second game screen corresponding to the target direction key.

[0189] S4. Send the second game screen to the client.

[0190] Optionally, those of ordinary skill in the art can understand that Figure 13 The structure shown is only for illustration. The electronic device can also be a smart phone (such as an Android phone, an iOS phone, etc.), a tablet computer, a handheld computer, and terminal devices such as Mobile Internet Devices (MID), PAD, etc. Figure 13 It does not limit the structure of the above-mentioned electronic device. For example, the electronic device may further include more or fewer components (such as a network interface, etc.) than those shown in Figure 13 or have a different configuration from that shown in Figure 13 shown.

[0191] Among them, the memory 1302 can be used to store software programs and modules, such as the program instructions / modules corresponding to the control method and device of the virtual object in the embodiments of the present invention. The processor 1304 executes various functional applications and data processing by running the software programs and modules stored in the memory 1302, that is, implements the above-mentioned control method of the virtual object. The memory 1302 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memories. In some instances, the memory 1302 may further include a memory remotely disposed relative to the processor 1304, and these remote memories can be connected to the terminal through a network. Examples of the above network include but are not limited to the Internet, an enterprise intranet, a local area network, a mobile communication network, and combinations thereof. Among them, the memory 1302 can specifically but not limitedly be used to store information such as a first game screen, a target operation instruction, a target mapping relationship, and a second game screen. As an example, as Figure 13 shown, the above memory 1302 may include but are not limited to the first display unit 1102, the second display unit 1104, the first sending unit 1106, and the first obtaining unit 1108 in the control device of the virtual object, and the third sending unit (not shown in the figure), the third obtaining unit (not shown in the figure), the fourth obtaining unit (not shown in the figure), and the third sending unit (not shown in the figure) in the control device of another virtual object. In addition, it may also include but are not limited to other module units in the control device of the virtual object, which will not be elaborated in this example.

[0192] Optionally, the above-mentioned transmission device 1306 is used to receive or send data via a network. Specific examples of the above network may include a wired network and a wireless network. In one instance, the transmission device 1306 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices and a router through a network cable, thereby enabling communication with the Internet or a local area network. In one instance, the transmission device 1306 is a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0193] In addition, the above electronic device further includes: a display 1308, which is used to display information such as the first game screen, the target operation instruction, the target mapping relationship, and the second game screen; and a connection bus 1310, which is used to connect each module component in the above electronic device.

[0194] According to another aspect of an embodiment of the present invention, there is also provided a computer-readable storage medium, in which a computer program is stored. Wherein, the computer program is configured to execute the steps in any one of the above method embodiments when running.

[0195] Optionally, in this embodiment, the above computer-readable storage medium may be configured to store a computer program for executing the following steps:

[0196] S1. Display a first game screen sent by a background server in a client. Wherein, the first game screen is a screen in a target cloud game run by the background server, and a target virtual object controlled by the client participates in a game task in the target cloud game;

[0197] S2. Overlay and display a virtual joystick center and a virtual joystick area on the first game screen. Wherein, the virtual joystick area includes multiple areas, and the multiple areas have a target mapping relationship with multiple direction keys recognizable by the background server. The virtual joystick center is used to determine a target area among the multiple areas in the virtual joystick area;

[0198] S3. In the case where the virtual joystick center is located in the target area of the virtual joystick area, send a target operation instruction to the background server. Wherein, the target operation instruction is used to instruct the background server to obtain a target direction key corresponding to the target area according to the target mapping relationship, and generate a second game screen corresponding to the target direction key. The second game screen is a screen in which the target virtual object performs a target movement operation in the target direction corresponding to the target area;

[0199] S4. Obtain the second game screen sent by the background server. And / or

[0200] S1. Send the first game screen to the client. Wherein, the first game screen is a screen in a target cloud game run by the background server, and a target virtual object controlled by the client participates in a game task in the target cloud game;

[0201] S2. Obtain a target operation instruction sent by the client. Wherein, the target operation instruction is used to indicate that the virtual joystick center overlaid and displayed on the first game screen is located in the target area of the virtual joystick area overlaid and displayed on the first game screen. The virtual joystick area includes multiple areas, and the multiple areas have a target mapping relationship with multiple direction keys recognizable by the background server. The virtual joystick center is used to determine a target area among the multiple areas in the virtual joystick area. The target operation instruction is used to instruct the background server to obtain a target direction key corresponding to the target area according to the target mapping relationship, and generate a second game screen corresponding to the target direction key. The second game screen is a screen in which the target virtual object performs a target movement operation in the target direction corresponding to the target area;

[0202] S3. According to the target mapping relationship, obtain the target direction key corresponding to the target area, and generate a second game screen corresponding to the target direction key;

[0203] S4. Send the second game screen to the client.

[0204] Optionally, in this embodiment, those of ordinary skill in the art can understand that all or part of the steps in the above various methods of the embodiments can be completed by instructing the relevant hardware of the terminal device through a program, and the program can be stored in a computer-readable storage medium. The storage medium may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disc, etc.

[0205] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0206] If the integrated unit in the above embodiments is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in the above computer-readable storage medium. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in the storage medium and includes several instructions for causing one or more computer devices (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods of the various embodiments of the present invention.

[0207] In the above embodiments of the present invention, the descriptions of the various embodiments have their own emphases. For the parts not detailed in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0208] In the several embodiments provided by the present application, it should be understood that the disclosed client can be implemented in other ways. Among them, the device embodiments described above are only illustrative. For example, the division of units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed mutual coupling or direct coupling or communication connection can be through some interfaces, and the indirect coupling or communication connection of units or modules can be in an electrical or other form.

[0209] The unit described as a separation component may or may not be physically separated, and the component shown as a unit may or may not be a physical unit, that is, it may be located in one place or distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0210] In addition, each functional unit in various embodiments of the present invention may be integrated into one processing unit, may exist separately as individual physical units, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.

[0211] The above are only the preferred embodiments of the present invention. It should be noted that for those of ordinary skill in the art, without departing from the principle of the present invention, several improvements and modifications can be made, and these improvements and modifications should also be regarded as the protection scope of the present invention.

Claims

1. A control method for a virtual object, characterized in that, Including: Displaying a first game screen sent by a background server in a client of a mobile terminal, where the first game screen is a screen in a target cloud game run by the background server, the target cloud game is a cloud game for controlling a target virtual object in a computer game using the client, and the target virtual object controlled by the client participates in a game task in the target cloud game; Overlaying and displaying a virtual joystick center and a virtual joystick area on the first game screen, where the virtual joystick area includes a first virtual joystick area and a second virtual joystick area, the first virtual joystick area includes multiple areas, and the multiple areas have a first target mapping relationship with multiple direction keys recognizable by the background server, the second virtual joystick area includes multiple operation areas, and the multiple operation areas have a second target mapping relationship with multiple operation keys recognizable by the background server, and the virtual joystick center is used to determine a target area among the multiple areas or the multiple operation areas in the virtual joystick area; When the virtual joystick center is in the target area within the first virtual joystick area, sending a first target operation instruction to the background server, where the first target operation instruction is used to instruct the background server to obtain a target direction key corresponding to the target area according to the first target mapping relationship and generate a second game screen corresponding to the target direction key, and the second game screen is a screen in which the target virtual object performs a target movement operation in a target direction corresponding to the target area; When the virtual joystick center slides from the first virtual joystick area to the target area within the second virtual joystick area, sending a second target operation instruction to the background server, where the second target operation instruction is used to instruct the background server to obtain a target direction key and a target operation key corresponding to the target area according to the first target mapping relationship and the second target mapping relationship and generate a second game screen corresponding to the target direction key and the target operation key, and the second game screen is a screen in which the target virtual object performs a target composite operation in a target direction corresponding to the target area; Obtaining the second game screen sent by the background server.

2. The method according to claim 1, wherein The overlaying and displaying the virtual joystick center and the virtual joystick area on the first game screen includes: Overlaying and displaying the virtual joystick center, the first virtual joystick area, and the second virtual joystick area on the first game screen, where the distance between the second virtual joystick area and the virtual joystick center is greater than the distance between the first virtual joystick area and the virtual joystick center.

3. The method according to claim 1, characterized in that, Before displaying the first game screen sent by the background server, including: Displaying a third game screen sent by the background server in the client; Overlaying and displaying multiple virtual direction keys on the third game screen, where the virtual direction keys are in one-to-one mapping with the multiple direction keys recognizable by the background server. Send a switching instruction to the background server, where the switching instruction is used to instruct the background server to generate a first game screen according to the third game screen; Obtain the first game screen sent by the background server.

4. The method according to claim 2, wherein When the center of the virtual joystick is located in the target area within the first virtual joystick area, sending a first target operation instruction to the background server includes: When the center of the virtual joystick is located in the first area within the first virtual joystick area, send a first operation instruction to the background server, where the first operation instruction is used to instruct the background server to obtain a first direction key corresponding to the first area according to a first mapping relationship, and generate a screen in which the target virtual object performs a first movement operation in a first direction corresponding to the first direction key; When the center of the virtual joystick is located in the second area within the first virtual joystick area, send a second operation instruction to the background server, where the second operation instruction is used to instruct the background server to obtain a second direction key corresponding to the second area according to a second mapping relationship, and generate a screen in which the target virtual object performs the first movement operation in a second direction corresponding to the second direction key; When the center of the virtual joystick is located in the third area within the first virtual joystick area, send a third operation instruction to the background server, where the third operation instruction is used to instruct the background server to obtain the first direction key and the second direction key corresponding to the third area according to a third mapping relationship, and generate a screen in which the target virtual object performs the first movement operation in a third direction corresponding to the first direction key and the second direction key, and the third direction is a combined direction of the first direction and the second direction.

5. The method according to claim 4, wherein When the center of the virtual joystick slides from the first virtual joystick area to the target area within the second virtual joystick area, sending a second target operation instruction to the background server further includes: When the center of the virtual joystick slides from the first area to the fourth area, send a fourth operation instruction to the background server, where the fourth operation instruction is used to instruct the background server to obtain the first direction key corresponding to the first area where the center of the virtual joystick is located within the first virtual joystick area and the target operation key corresponding to the fourth area where the center of the virtual joystick is located within the second virtual joystick area according to the first mapping relationship and a fourth mapping relationship, and generate a screen in which the target virtual object performs the first direction corresponding to the first direction key and a second movement operation corresponding to the target operation key, and the fourth area is the target area located within the second virtual joystick area.

6. A control method for a virtual object, characterized in that, Includes: Send the first game screen to the client of the mobile terminal. The first game screen is the screen of the target cloud game running on the background server. The target cloud game is a cloud game that uses the client to control the target virtual object in the computer game. The target virtual object controlled by the client participates in the game tasks in the target cloud game; Overlay and display the center of the virtual joystick and the virtual joystick area on the first game screen. The virtual joystick area includes a first virtual joystick area and a second virtual joystick area. The first virtual joystick area includes multiple areas, and the multiple areas have a first target mapping relationship with multiple direction keys recognizable by the background server. The second virtual joystick area includes multiple operation areas, and the multiple operation areas have a second target mapping relationship with multiple operation keys recognizable by the background server. The center of the virtual joystick is used to determine the target area among the multiple areas or the multiple operation areas in the virtual joystick area; When the center of the virtual joystick is in the target area within the first virtual joystick area, obtain the first target operation instruction sent by the client. The first target operation instruction is used to instruct the background server to obtain the target direction key corresponding to the target area according to the first target mapping relationship and generate a second game screen corresponding to the target direction key. The second game screen is the screen of the target virtual object performing a target movement operation in the target direction corresponding to the target area; When the center of the virtual joystick slides from the first virtual joystick area to the target area within the second virtual joystick area, obtain the second target operation instruction sent by the client. The second target operation instruction is used to instruct the background server to obtain the target direction key and the target operation key corresponding to the target area according to the first target mapping relationship and the second target mapping relationship and generate a second game screen corresponding to the target direction key and the target operation key. The second game screen is the screen of the target virtual object performing a target composite operation in the target direction corresponding to the target area; Send the second game screen to the client.

7. The method according to claim 6, characterized in that, Before sending the first game screen to the client of the mobile terminal, it includes: Send a third game screen to the client. Multiple virtual direction keys are overlaid and displayed on the third game screen, and the virtual direction keys are in one-to-one mapping with the multiple direction keys recognizable by the background server; Obtain the switching instruction sent by the client. The switching instruction is used to instruct the background server to generate the first game screen according to the third game screen; Send the first game screen generated according to the switching instruction to the client.

8. The method according to claim 6, wherein The obtaining of the target direction key corresponding to the target area according to the first target mapping relationship includes: Obtain a first direction key corresponding to a first area where the center of the virtual joystick is located within a first virtual joystick area according to a first mapping relationship, and generate a screen in which the target virtual object performs a first movement operation in a first direction corresponding to the first direction key; Obtain a second direction key corresponding to a second area where the center of the virtual joystick is located within the first virtual joystick area according to a second mapping relationship, and generate a screen in which the target virtual object performs the first movement operation in a second direction corresponding to the second direction key; Obtain the first direction key and the second direction key corresponding to a third area where the center of the virtual joystick is located within the first virtual joystick area according to a third mapping relationship, and generate a screen in which the target virtual object performs the first movement operation in a third direction corresponding to the first direction key and the second direction key, where the third direction is a combined direction of the first direction and the second direction.

9. The method according to claim 8, characterized in that, The obtaining of the target direction key and the target operation key corresponding to the target area according to the first target mapping relationship and the second target mapping relationship includes: When the center of the virtual joystick slides from the first area to a fourth area, obtain the first direction key corresponding to the first area where the center of the virtual joystick is located within the first virtual joystick area according to the first mapping relationship, and obtain the target operation key corresponding to the fourth area where the center of the virtual joystick is located within a second virtual joystick area according to a fourth mapping relationship, and generate a screen in which the target virtual object performs the first direction corresponding to the first direction key and a second movement operation corresponding to the target operation key, where the distance between the second virtual joystick area and the center of the virtual joystick is greater than the distance between the first virtual joystick area and the center of the virtual joystick, and the fourth area is the target area located within the second virtual joystick area.

10. The method according to claim 9, characterized in that, Before obtaining the target operation instruction sent by the client, it includes: Establish a target mapping relationship between each area where the center of the virtual joystick is located within the multiple areas and the multiple direction keys recognizable by the background server.

11. The method according to claim 10, wherein The establishing of the target mapping relationship between each area where the center of the virtual joystick is located within the multiple areas and the multiple direction keys recognizable by the background server includes at least one of the following: Establish the first mapping relationship between the center of the virtual joystick located in the first area and the first direction key; Establish the second mapping relationship between the center of the virtual joystick located in the second area and the second direction key; Establish the third mapping relationship between the center of the virtual joystick located in the third area and the first direction key and the second direction key; Establish the fourth mapping relationship between the center of the virtual joystick located in the fourth area and the target operation key.

12. A control device for a virtual object, characterized in that, It includes: A first display unit, configured to display a first game screen sent by a background server in a client of a mobile terminal, where the first game screen is a screen in a target cloud game run by the background server, the target cloud game is a cloud game for controlling a target virtual object in a computer game using the client, and the target virtual object controlled by the client participates in a game task in the target cloud game; A second display unit, configured to superimpose and display a virtual joystick center and a virtual joystick area on the first game screen, where the virtual joystick area includes a first virtual joystick area and a second virtual joystick area, the first virtual joystick area includes multiple areas, and the multiple areas have a first target mapping relationship with multiple direction keys recognizable by the background server, the second virtual joystick area includes multiple operation areas, and the multiple operation areas have a second target mapping relationship with multiple operation keys recognizable by the background server, and the virtual joystick center is used to determine a target area in the multiple areas or the multiple operation areas in the virtual joystick area; A first sending unit, configured to send a first target operation instruction to the background server when the first virtual joystick center is located in the target area within the virtual joystick area, where the first target operation instruction is used to instruct the background server to obtain a target direction key corresponding to the target area according to the first target mapping relationship, and generate a second game screen corresponding to the target direction key, and the second game screen is a screen in which the target virtual object performs a target movement operation in the target direction corresponding to the target area; A first obtaining unit, configured to obtain the second game screen sent by the background server; The device is further configured to: When the virtual joystick center slides from the first virtual joystick area to the target area within the second virtual joystick area, send a second target operation instruction to the background server, where the second target operation instruction is used to instruct the background server to obtain a target direction key and a target operation key corresponding to the target area according to the first target mapping relationship and the second target mapping relationship, and generate a second game screen corresponding to the target direction key and the target operation key, and the second game screen is a screen in which the target virtual object performs a target composite operation in the target direction corresponding to the target area.

13. A control device for a virtual object, characterized in that, It includes: A second sending unit, configured to send a first game screen to a client of a mobile terminal, where the first game screen is a screen in a target cloud game run by a background server, the target cloud game is a cloud game for controlling a target virtual object in a computer game using the client, and the target virtual object controlled by the client participates in a game task in the target cloud game; The device is further configured to: Overlay and display the center of the virtual joystick and the virtual joystick area on the first game screen. Among them, the virtual joystick area includes a first virtual joystick area and a second virtual joystick area. The first virtual joystick area includes multiple areas, and the multiple areas have a first target mapping relationship with multiple direction keys recognizable by the background server. The second virtual joystick area includes multiple operation areas, and the multiple operation areas have a second target mapping relationship with multiple operation keys recognizable by the background server. The center of the virtual joystick is used to determine a target area among the multiple areas or the multiple operation areas in the virtual joystick area; In the case where the center of the virtual joystick is located in the target area of the first virtual joystick area, obtain a first target operation instruction sent by the client. Among them, the first target operation instruction is used to instruct the background server to obtain a target direction key corresponding to the target area according to the first target mapping relationship, and generate a second game screen corresponding to the target direction key. The second game screen is a screen in which the target virtual object performs a target movement operation in the target direction corresponding to the target area; In the case where the center of the virtual joystick slides from the first virtual joystick area to the target area in the second virtual joystick area, obtain a second target operation instruction sent by the client. Among them, the second target operation instruction is used to instruct the background server to obtain a target direction key and a target operation key corresponding to the target area according to the first target mapping relationship and the second target mapping relationship, and generate a second game screen corresponding to the target direction key and the target operation key. The second game screen is a screen in which the target virtual object performs a target composite operation in the target direction corresponding to the target area; Send the second game screen to the client.

14. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a stored program, where the program, when running, executes the method described in any one of claims 1 to 11 above.

15. An electronic device, comprising a memory and a processor, characterized in that, A computer program is stored in the memory, and the processor is configured to execute the method described in any one of claims 1 to 11 through the computer program.

Citation Information

Patent Citations

  • Game instruction processing method and device

    CN105511782A

  • Information processing method and device, electronic equipment and computer readable storage medium

    CN107008003A