Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Cloud technology (Cloud technology) refers to a hosting technology for integrating hardware, software, network and other series resources in a wide area network or a local area network to realize calculation, storage, processing and sharing of data.
Cloud technology (Cloud technology) is based on the general terms of network technology, information technology, integration technology, management platform technology, application technology and the like applied by Cloud computing business models, and can form a resource pool, so that the Cloud computing business model is flexible and convenient as required. Cloud computing technology will become an important support. Background services of technical networking systems require a large amount of computing, storage resources, such as video websites, picture-like websites, and more portals. Along with the high development and application of the internet industry, each article possibly has an own identification mark in the future, the identification mark needs to be transmitted to a background system for logic processing, data with different levels can be processed separately, and various industry data needs strong system rear shield support and can be realized only through cloud computing.
Cloud gaming (Cloud gaming), which may also be referred to as game on demand, is an online gaming technology based on Cloud computing technology. Cloud gaming technology enables lightweight devices (THIN CLIENT) with relatively limited graphics processing and data computing capabilities to run high quality games. In a cloud game scene, the game is not run in a player game terminal, but is run in a cloud server, the cloud server renders the game scene into a video and audio stream, and the video and audio stream is transmitted to the player game terminal through a network. The player game terminal does not need to have strong graphic operation and data processing capability, and only needs to have basic streaming media playing capability and the capability of acquiring player input instructions and sending the player input instructions to the cloud server.
According to an aspect of the embodiment of the present invention, there is provided a control method of a virtual object, optionally, as an optional implementation manner, the control method of a virtual object may be, but is not limited to, applied to an environment as shown in fig. 1. The user device 102 may include, but is not limited to, a display 108, a processor 106, and a memory 104, the display 108 may be used to display a first game screen 1022, a target virtual object 1024 in the first game screen 1022, a virtual rocker center 1026 superimposed on the first game screen 1022, a virtual rocker area 1028, and a target area 1030 in the virtual rocker area 1028, the display 108 may be used to display a second game screen, and the target virtual object 1032 included in the second game screen 1032 may be used to perform a screen of the target movement operation 1034, and the display 108 may be used to mount a sensor capable of recognizing a touch operation.
The specific process comprises the following steps:
Step S102, the user equipment 102 obtains a signal triggered by the position of the virtual rocker center 1026, which is displayed on the first game screen 1022 and is displayed superimposed on the display 108, through the sensor installed in the display 108 and capable of recognizing the touch operation, and obtains a target operation instruction when the virtual rocker center 1026 is located in the target area 1032 in the virtual rocker area 1028;
Steps S104-S106, the user equipment 102 sends the target operation instruction to the server 112 through the network 110;
Step S108, the server 112 searches the database 114 for a target direction key (not shown) corresponding to the target area 1030 parsed in the target operation instruction, and generates a second game screen 1032 corresponding to the target direction key according to the target direction key identifiable by the server 112 through the processing engine 116;
Steps S110-S112, the server 112 transmitting the second game screen 1032 to the user equipment 102 via the network 110;
In step S114, the processor 106 in the user device 102 processes and displays the second game screen 1032 in the display 108, and stores the second game screen 1032 in the memory 104. Wherein the second game screen 1032 may include, but is not limited to, a screen including a virtual rocker center 1026 superimposed on a target area 1030 within the virtual rocker area 1028, and a target virtual object 1024 performing a target move operation 1034.
Optionally, as an optional implementation manner, as shown in fig. 2, the control method of the virtual object includes:
s202, displaying a first game picture sent by a background server in a client, wherein the first game picture is a picture in a target cloud game operated by the background server, and a target virtual object controlled by the client participates in a game task in the target cloud game;
S204, superposing and displaying a virtual rocker center and a virtual rocker area on the first game picture, wherein the virtual rocker area comprises a plurality of areas, the plurality of areas and a plurality of direction keys which can be identified by a background server are in a target mapping relation, and the virtual rocker center is used for determining a target area in the plurality of areas in the virtual rocker area;
S206, under the condition that the center of the virtual rocker is located in a target area in the virtual rocker area, sending a target operation instruction to the background server, wherein the target operation instruction is used for instructing the background server to acquire a target direction key corresponding to the target area according to a target mapping relation and generate a second game picture corresponding to the target direction key, and the second game picture is a picture for executing target moving operation of a target virtual object in a target direction corresponding to the target area;
S208, obtaining a second game picture sent by the background server.
Alternatively, a control method of a virtual object may be applied, but not limited to, in 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, the cloud game may be, but not limited to, a game mode based on cloud computing, in an operation mode of the cloud game, all games are operated at a server side, and after rendered game images are compressed and transmitted to a user through a network, while in a client side, a game device of the user does not need any high-end processor or display card, but may not be limited to only needing basic video decompression capability. The virtual rocker area may be, but not limited to, one or more circular areas, the virtual rocker center may be, but not limited to, the center of the virtual rocker area, optionally, the virtual rocker area may be, but not limited to, include one or more virtual areas, and in the case of multiple virtual areas, the multiple virtual areas may be, but not limited to, respectively, used for indicating that different rocker operation instructions are generated, but the rocker operation instructions are not typically recognized by the background server, and the direction operation instructions corresponding to the direction keys may be recognized by the background server. Alternatively, the game screen may be, but is not limited to being, one or more frames of screen. The directional keys may be, but are not limited to, in the form of signals recognizable by the background server, such as movement signals triggered by a physical keyboard. The direction key may be displayed in the mobile terminal or computer end stream, but is not limited thereto.
The method includes the steps of displaying a first game picture sent by a background server in a client, wherein the first game picture is a picture in a target cloud game operated by the background server, a target virtual object controlled by the client participates in a game task in the target cloud game, superposing and displaying a virtual rocker center and a virtual rocker area on the first game picture, wherein the virtual rocker area comprises a plurality of areas, a plurality of direction keys which can be identified by the background server are used as target mapping relations, the virtual rocker center is used for determining target areas in the plurality of areas in the virtual rocker area, and sending a target operation instruction to the background server under the condition that the virtual rocker center is located in the target area in the virtual rocker area, wherein the target operation instruction is used for instructing the background server to obtain a target direction key corresponding to the target area according to the target mapping relation and generate a second game picture corresponding to the target direction key, the second game picture is a picture for executing target moving operation in a target direction corresponding to the target area of the target virtual object, and the second game picture sent by the background server is obtained.
Further illustrative, optional examples include, as shown in fig. 3, a mobile terminal 302 (client), a cloud server 304 (background server), and a computer end game 306 (target cloud game), which are as follows:
Step S302, the mobile terminal 302 detects that a mobile phone rocker (a virtual rocker center) is pressed and moved to a target area (a target area in the virtual rocker area);
step S304, the cloud server 304 identifies the target area to transmit key mapping information (target operation instruction);
step S306, the cloud server 304 performs corresponding key mapping (target direction key for instructing the control target virtual operation object to perform the target movement operation to the target direction) according to the key mapping information;
step S308, the computer end stream 306 returns the corresponding game screen (second game screen) to the cloud server 304;
step S310, the cloud server 304 returns the corresponding game screen (second game screen) to the mobile terminal 302;
Step S312, the mobile terminal 302 detects that lifting the rocker returns to default;
step S314, the cloud server 304 closes the previous key map transmission;
Step S316, the computer end stream 306 cancels the previous key mapping;
step S318, the computer end stream 306 returns the corresponding game screen (the first game screen) to the cloud server 304;
in step S320, the cloud server 304 returns the corresponding game screen (first game screen) to the mobile terminal 302.
According to the embodiment of the application, a first game picture sent by a background server is displayed in a client, wherein the first game picture is a picture in a target cloud game operated by the background server, a target virtual object controlled by the client participates in a game task in the target cloud game, a virtual rocker center and a virtual rocker area are superimposed and displayed on the first game picture, the virtual rocker area comprises a plurality of areas, the plurality of areas and a plurality of direction keys identifiable by the background server are in a target mapping relation, the virtual rocker center is used for determining the target area in the virtual rocker area, a target operation instruction is sent to the background server under the condition that the virtual rocker center is located in the target area in the virtual rocker area, the target operation instruction is used for indicating the background server to obtain a target direction key corresponding to the target area and generate a second game picture corresponding to the target direction key, the second game picture is a picture for executing target moving operation in the target direction corresponding to the target area, the second game picture sent by the background server is obtained, the virtual rocker center is converted into a control target direction by the virtual object, and the virtual rocker center is controlled by a control terminal in a mode of moving the virtual object, so that the user can realize a control effect of the game terminal is realized.
As an alternative scheme, a virtual rocker center, a first virtual rocker area and a second virtual rocker area are displayed on the first game picture in a superimposed manner, wherein the distance between the second virtual rocker area and the virtual rocker center is greater than the distance between the first virtual rocker area and the virtual rocker center.
The virtual rocker center, the first virtual rocker area and the second virtual rocker area are displayed on the first game picture in a superimposed mode, wherein the distance between the second virtual rocker area and the virtual rocker center is larger than that between the first virtual rocker area and the virtual rocker center.
Further illustrated, an alternative example is shown in FIG. 4, including a first game screen 402, and a virtual rocker center 404, a second virtual rocker area 406, and a first virtual rocker area 408 superimposed on the first game screen 402.
According to the embodiment of the application, the virtual rocker center, the first virtual rocker area and the second virtual rocker area are displayed on the first game picture in a superimposed manner, wherein the distance between the second virtual rocker area and the virtual rocker center is larger than that between the first virtual rocker area and the virtual rocker center, so that the aim of displaying various virtual rocker elements on the game picture in a superimposed manner is fulfilled, and the effect of improving the display diversity of the virtual game picture is realized.
As an alternative, before displaying the first game screen sent by the background server, the method includes:
s1, displaying a third game picture sent by a background server in a client;
s2, superposing and displaying a plurality of virtual direction keys on the third game picture, wherein the virtual direction keys and the plurality of direction keys identifiable by the background server are mapped one by one;
S3, sending a switching instruction to the background server, wherein the switching instruction is used for instructing the background server to generate a first game picture according to the third game picture;
s4, acquiring a first game picture sent by a background server.
The method includes the steps of displaying a third game picture sent by a background server in a client, displaying a plurality of virtual direction keys in a superimposed mode on the third game picture, wherein the virtual direction keys and the plurality of direction keys identifiable by the background server are mapped in a one-to-one mode, sending a switching instruction to the background server, wherein the switching instruction is used for instructing the background server to generate a first game picture according to the third game picture, and obtaining the first game picture sent by the background server.
Further by way of example, a switching button for switching the virtual operation key is optionally displayed in the client, and a switching operation instruction is generated when a touch instruction triggered on the switching button is detected, where the switching operation instruction is used to switch a current third game screen displaying the virtual operation key as a direction key to a first game screen displaying the virtual operation key as a virtual rocker.
According to the embodiment of the application, the third game picture sent by the background server is displayed in the client, a plurality of virtual direction keys are overlapped and displayed on the third game picture, wherein the virtual direction keys and the plurality of direction keys which can be identified by the background server are mapped one by one, a switching instruction is sent to the background server, the switching instruction is used for instructing the background server to generate the first game picture according to the third game picture, the first game picture sent by the background server is obtained, and the purpose of displaying various virtual operation keys in the game picture is achieved, so that the effect of displaying diversity of the game picture is achieved.
As an alternative, in the case that the virtual rocker center is located in the target area in the virtual rocker area, sending the target operation instruction to the background server includes:
S1, under the condition that the center of a virtual rocker is located in a first area in a first virtual rocker area, a first operation instruction is sent to a background server, wherein the first operation instruction is used for instructing the background server to acquire a first direction key corresponding to the first area according to a first mapping relation and generating a picture of a target virtual object for executing a first moving operation in a first direction corresponding to the first direction key;
S2, under the condition that the center of the virtual rocker is located in a second area in the first virtual rocker area, sending a second operation instruction to the background server, wherein the second operation instruction is used for instructing the background server to acquire a second direction key corresponding to the second area according to a second mapping relation and generating a picture of executing a first moving operation of the target virtual object in a second direction corresponding to the second direction key;
And S3, under the condition that the center of the virtual rocker is located in a third area in the first virtual rocker area, sending a third operation instruction to the background server, wherein the third operation instruction is used for instructing the background server to acquire a first direction key and a second direction key corresponding to the third area according to a third mapping relation, generating a picture of executing the first moving operation by the target virtual object 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.
The method includes the steps of sending a first operation instruction to a background server under the condition that a virtual rocker center is located in a first area in a first virtual rocker area, wherein the first operation instruction is used for instructing the background server to obtain a first direction key corresponding to the first area according to a first mapping relation and generating a picture for enabling a target virtual object to execute first moving operation in a first direction corresponding to the first direction key, sending a second operation instruction to the background server under the condition that the virtual rocker center is located in a second area in the first virtual rocker area, wherein the second operation instruction is used for instructing the background server to obtain a second direction key corresponding to the second area according to a second mapping relation and generating a picture for enabling the target virtual object to execute first moving operation in a second direction corresponding to the second direction key, and sending a third operation instruction to the background server under the condition that the virtual rocker center is located in a third area, wherein the third operation instruction is used for instructing the background server to obtain the first direction key corresponding to the third area and the second direction key corresponding to the third area and the target virtual object and generating the first direction key and the second direction key corresponding to the third direction key according to the third mapping relation and combining the first direction and the second direction key and the first direction key and the second direction key.
Further illustratively, as shown in fig. 5, for example, a first area 502 within the first virtual rocker area 408 is optionally included, and in the case where the virtual rocker center 404 is located in the first area 502 within the first virtual rocker 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.
Further illustratively, as shown in fig. 6, the virtual rocker center 602 and the first virtual rocker area 604 are included, wherein the first virtual rocker area 604 includes 8 areas numbered 1-8, and each numbered area is used to indicate a corresponding movement direction key, for example, the area numbered 1 is used to indicate a forward movement direction key, the area numbered 7 is used to indicate a leftward movement direction key, and the area numbered 8 is used to indicate a movement direction of the leftward and forward direction key (i.e., a combination of leftward and forward direction keys).
According to the embodiment of the application, under the condition that the center of the virtual rocker is located in the first area in the first virtual rocker area, a first operation instruction is sent to the background server, wherein the first operation instruction is used for indicating the background server to acquire a first direction key corresponding to the first area according to the first mapping relation and generating a picture for enabling the target virtual object to execute first moving operation towards the first direction key, under the condition that the center of the virtual rocker is located in the second area in the first virtual rocker area, a second operation instruction is sent to the background server, wherein the second operation instruction is used for indicating the background server to acquire a second direction key corresponding to the second area according to the second mapping relation and generating a picture for enabling the target virtual object to execute first moving operation towards the second direction key, under the condition that the center of the virtual rocker is located in the third area, the third operation instruction is sent to the background server, and the third direction key corresponding to the third area is acquired according to the third mapping relation and the third direction key, and the first direction key is generated, and the movement direction of the target virtual object is enabled to execute the first moving operation towards the second direction key, and the first direction is achieved, and flexibility of the movement of the first direction key is improved.
As an alternative, in the case that the virtual rocker center is located in the target area in the virtual rocker area, sending the target operation instruction to the background server includes:
And under the condition that the center of the virtual rocker is located in a fourth area in the second virtual rocker area, sending a fourth operation instruction to the background server, wherein the fourth operation instruction is used for instructing the background server to acquire a first direction key corresponding to the fourth area and a target operation key according to a fourth mapping relation, and generating a picture that the target virtual object executes a second moving operation corresponding to the target operation key in a first direction corresponding to the first direction key.
Under the condition that the center of the virtual rocker is located in a fourth area in the second virtual rocker area, a fourth operation instruction is sent to the background server, wherein the fourth operation instruction is used for instructing the background server to acquire a first direction key and a target operation key corresponding to the fourth area according to a fourth mapping relation, and a picture that the target virtual object executes a second moving operation corresponding to the target operation key in a first direction corresponding to the first direction key is generated. Alternatively, the second moving operation may be, but not limited to, an operation for increasing the moving speed or the moving distance in a short time, such as acceleration running, jumping, scrolling, or the like.
Further by way of example, as shown in fig. 7, the second virtual rocker area 606 may be optionally included, where the second virtual rocker area 606 includes 8 numbered areas numbered a-H, optionally, the 8 numbered areas numbered a-H may be used to indicate operation keys for performing the same type of operation, optionally, all 8 numbered areas numbered a-H may be used to indicate operation keys for performing the run-up operation, the 8 numbered areas numbered a-H may be used to indicate operation keys for performing different types of operation, optionally, for example, the area numbered a may be used to indicate operation keys for performing the scroll operation, the area numbered B may be used to indicate operation keys for performing the jump operation, etc.
By way of further illustration, as shown in fig. 7, alternatively, when the virtual rocker center 602 slides to the number 1 area in the first virtual rocker area 604, a first direction key indicated by the number 1 area is obtained, on the basis of this, if the virtual rocker center 602 slides to the number a area of the second virtual rocker area 606 again, an operation key corresponding to the number a area for indicating to execute a scrolling operation is obtained, and the first direction key is combined with the operation key for indicating to execute the scrolling operation, and an operation instruction for indicating to execute the scrolling operation in the first direction is obtained.
According to the embodiment of the application, under the condition that the center of the virtual rocker is located in the fourth area in the second virtual rocker area, a fourth operation instruction is sent to the background server, wherein the fourth operation instruction is used for instructing the background server to acquire the first direction key and the target operation key corresponding to the fourth area according to the fourth mapping relation, and generating a picture that the target virtual object executes the second moving operation corresponding to the target operation key in the first direction corresponding to the first direction key, so that the combination of multiple rocker areas is achieved, the purpose of acquiring more comprehensive operation instructions is achieved, and the effect of improving the acquisition comprehensiveness of the operation instructions is achieved.
Alternatively, as an alternative embodiment, as shown in fig. 8, a control method of a virtual object includes:
s802, a first game picture is sent to a client, wherein the first game picture is a picture in a target cloud game operated by a background server, and a target virtual object controlled by the client participates in a game task in the target cloud game;
S804, acquiring a target operation instruction sent by a client, wherein the target operation instruction is used for indicating a target area, in which a virtual rocker center displayed in a superposition manner on a first game picture is located, in a virtual rocker area displayed in a superposition manner on the first game picture, the virtual rocker area comprises a plurality of areas, the plurality of areas and a plurality of direction keys identifiable by a background server are in a target mapping relationship, the virtual rocker center is used for determining a target area in the plurality of areas in the virtual rocker area, the target operation instruction is used for indicating the background server to acquire a target direction key corresponding to the target area according to the target mapping relationship, and generating a second game picture corresponding to the target direction key, and the second game picture is a picture for executing target moving operation of a target virtual object to a target direction corresponding to the target area;
s806, acquiring a target direction key corresponding to the target area according to the target mapping relation, and generating a second game picture corresponding to the target direction key;
S808, sending the second game picture to the client.
Alternatively, a control method of a virtual object may be applied, but not limited to, in 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, the cloud game may be, but not limited to, a game mode based on cloud computing, in an operation mode of the cloud game, all games are operated at a server side, and after rendered game images are compressed and transmitted to a user through a network, while in a client side, a game device of the user does not need any high-end processor or display card, but may not be limited to only needing basic video decompression capability. The virtual rocker area may be, but is not limited to, one or more circular areas, and the virtual rocker center may be, but is not limited to, the center of the virtual rocker area, optional. The virtual rocker area may include one or more virtual areas, and in the case of multiple virtual areas, the multiple virtual areas may be used, but are not limited to, respectively, to indicate that different rocker operation instructions are generated, but the rocker operation instructions are not generally recognized by the background server, and the direction operation instructions corresponding to the direction keys may be recognized by the background server. Alternatively, the game screen may be, but is not limited to being, one or more frames of screen. The directional keys may be, but are not limited to, in the form of signals recognizable by the background server, such as movement signals triggered by a physical keyboard. The direction key may be displayed in the mobile terminal or computer end stream, but is not limited thereto.
The method includes the steps of receiving a first game picture from a client, wherein the first game picture is a picture in a target cloud game operated by a background server, a target virtual object controlled by the client participates in a game task in the target cloud game, obtaining a target operation command sent by the client, wherein the target operation command is used for indicating a target area of a virtual rocker circle center which is overlapped and displayed on the first game picture and is positioned in a virtual rocker area which is overlapped and displayed on the first game picture, the virtual rocker area comprises a plurality of areas, the plurality of areas and a plurality of direction keys which can be identified by the background server are target mapping relations, the virtual rocker circle center is used for determining target areas in the plurality of areas in the virtual rocker area, the target operation command is used for indicating the background server to obtain a target direction key corresponding to the target area according to the target mapping relation and generate a second game picture corresponding to the target direction key, the second game picture is obtained by the second game picture which is a target virtual object and is moved to the target direction corresponding to the target area, obtaining the target direction key corresponding to the target area according to the target mapping relation and generating the target direction key, and sending the second picture to the client.
According to the embodiment of the application, a first game picture is sent to a client, wherein the first game picture is a picture in a target cloud game operated by a background server, 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 acquired, wherein the target operation instruction is used for indicating a target area of which the virtual rocker center displayed in a superposition manner on the first game picture is positioned in a virtual rocker area displayed in a superposition manner on the first game picture, the virtual rocker area comprises a plurality of areas, the plurality of areas and a plurality of direction keys identifiable by the background server are in a target mapping relationship, the virtual rocker center is used for determining the target area in the plurality of areas in the virtual rocker area, the target operation instruction is used for indicating 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 picture corresponding to the target direction key, the second game picture is used for executing a target moving operation in the target direction corresponding to the target area, the target direction key is acquired according to the target mapping relationship, the second game picture is used for generating the target direction key corresponding to the target virtual object and the target direction, the second game picture is used for playing the target direction key moving in the target direction, the virtual picture is still used for playing the virtual object in a control mode of the virtual rocker is moved to the control point of the virtual object, the control window is realized in a mode of moving the virtual picture is realized, and the user is controlled by the virtual key is in a control of the control terminal in a moving the control mode of the virtual key is positioned in the virtual key in the control position in the control mode, thereby realizing the effect of improving the control efficiency of the virtual object.
As an alternative, before sending the first game screen to the client, the method includes:
S1, a third game picture is sent to a client, wherein a plurality of virtual direction keys are displayed on the third game picture in a superimposed mode, and the virtual direction keys and a plurality of direction keys identifiable by a background server are mapped in a one-to-one mode;
s2, acquiring a switching instruction sent by the client, wherein the switching instruction is used for instructing the background server to generate a first game picture according to the third game picture;
And S3, sending the first game picture generated according to the switching instruction to the client.
The method includes the steps of sending a third game picture to a client, wherein a plurality of virtual direction keys are overlapped and displayed on the third game picture, the virtual direction keys and a plurality of direction keys which can be identified by a background server are mapped in a one-to-one mode, acquiring a switching instruction sent by the client, wherein the switching instruction is used for instructing the background server to generate a first game picture according to the third game picture, and sending the first game picture generated according to the switching instruction to the client.
According to the embodiment of the application, the third game picture is sent to the client, wherein a plurality of virtual direction keys are overlapped and displayed on the third game picture, the virtual direction keys and the plurality of direction keys which can be identified by the background server are mapped one by one, the switching instruction sent by the client is obtained, the switching instruction is used for instructing the background server to generate the first game picture according to the third game picture, the first game picture generated according to the switching instruction is sent to the client, and the purpose of displaying various virtual operation keys in the game picture is further achieved, so that the effect of displaying diversity of the game picture is achieved.
As an alternative, according to the target mapping relationship, obtaining a target direction key corresponding to the target area includes:
S1, acquiring a first direction key corresponding to a first area of a virtual rocker center located in a first virtual rocker area according to a first mapping relation, and generating a picture of a target virtual object for executing a first moving operation in a first direction corresponding to the first direction key;
S2, acquiring a second direction key corresponding to a second area of the virtual rocker center in the first virtual rocker area according to a second mapping relation, and generating a picture of executing a first moving operation of the target virtual object in a second direction corresponding to the second direction key;
and S3, acquiring a first direction key and a second direction key corresponding to a third area of the virtual rocker center in the first virtual rocker area according to a third mapping relation, and generating a picture of executing a first moving operation on the target virtual object in a third direction corresponding to the first direction key and the second direction key, wherein the third direction is a combined direction of the first direction and the second direction.
The method includes the steps of obtaining a first direction key corresponding to a first area, located in a first virtual rocker area, of a virtual rocker center according to a first mapping relation, generating a picture for executing first moving operation of a target virtual object in a first direction corresponding to the first direction key, obtaining a second direction key corresponding to a second area, located in the first virtual rocker area, of the virtual rocker center according to a second mapping relation, generating a picture for executing first moving operation of the target virtual object in a second direction corresponding to the second direction key, obtaining a first direction key and a second direction key corresponding to a third area, located in the first virtual rocker area, of the virtual rocker center according to a third mapping relation, and generating a picture for executing first moving operation of the target virtual object in a third direction corresponding to the first direction key and the second direction key, wherein the third direction is a combined direction of the first direction and the second direction.
According to the embodiment of the application, a first direction key corresponding to a first area of a virtual rocker center in a first virtual rocker area is obtained according to a first mapping relation, a picture for executing a first moving operation in a first direction corresponding to the first direction key of a target virtual object is generated, a second direction key corresponding to a second area of the virtual rocker center in the first virtual rocker area is obtained according to a second mapping relation, a picture for executing the first moving operation in a second direction corresponding to the second direction key of the target virtual object is generated, a first direction key and a second direction key corresponding to a third area of the virtual rocker center in the first virtual rocker area are obtained according to a third mapping relation, a picture for executing the first moving operation in a third direction corresponding to the first direction key and the second direction key of the target virtual object is generated, and the third direction is a combined direction of the first direction and the second direction, so that the purpose of controlling the virtual object to execute the moving operation in multiple directions is achieved, and the effect of controlling the flexibility of executing the moving operation of the virtual object is achieved.
As an alternative, according to the target mapping relationship, obtaining a target direction key corresponding to the target area includes:
And acquiring a first direction key and a target operation key corresponding to a fourth area of the virtual rocker center in the second virtual rocker area according to the fourth mapping relation, and generating a picture of the target virtual object executing a second moving operation corresponding to the target operation key in a first direction corresponding to the first direction key, wherein the distance between the second virtual rocker area and the virtual rocker center is larger than the distance between the first virtual rocker area and the virtual rocker center.
It should be noted that, according to the fourth mapping relationship, the first direction key and the target operation key corresponding to the fourth area where the center of the virtual rocker is located in the second virtual rocker area are obtained, and a picture that the target virtual object executes the second moving operation corresponding to the target operation key in the first direction corresponding to the first direction key is generated, where the distance between the second virtual rocker area and the center of the virtual rocker is greater than the distance between the first virtual rocker area and the center of the virtual rocker.
According to the embodiment of the application, the first direction key and the target operation key corresponding to the fourth area of the virtual rocker center in the second virtual rocker area are acquired according to the fourth mapping relation, and the picture that the target virtual object executes the second moving operation corresponding to the target operation key in the first direction corresponding to the first direction key is generated, wherein the distance between the second virtual rocker area and the virtual rocker center is larger than the distance between the first virtual rocker area and the virtual rocker center, so that the purpose of flexibly controlling the virtual object to execute additional operation is achieved, and the effect of improving the flexibility of controlling the virtual object is achieved.
As an alternative, before obtaining the target operation instruction sent by the client, the method includes:
and establishing target mapping relations between each virtual rocker center located in a plurality of areas and a plurality of direction keys identifiable by a background server.
It should be noted that, the target mapping relationship between each virtual rocker center located in a plurality of areas and a plurality of direction keys identifiable by the background server is established.
Further by way of example, as shown in FIG. 9, optionally, a type mapping 904 of the plurality of regions in the second virtual rocker region 606 with the one or more operation keys 902 is established, and a direction mapping 908 of the plurality of regions in the first virtual rocker region 604 with the one or more operation direction keys 906 is established.
By the embodiment of the application, the target mapping relation between each virtual rocker center in a plurality of areas and a plurality of direction keys identifiable by a background server is established, so that the purpose of establishing the mapping relation in advance to rapidly determine the type and direction of the mobile operation to be executed according to the rocker areas is achieved, and the effect of improving the determination efficiency of the mobile operation is achieved.
As an alternative scheme, establishing a target mapping relationship between each virtual rocker center located in a plurality of areas and a plurality of direction keys identifiable by a background server, wherein the target mapping relationship comprises at least one of the following steps:
S1, establishing a first mapping relation of a virtual rocker center on a first area and a first direction key;
S2, establishing a second mapping relation of the center of the virtual rocker to the second region and the second direction key;
S3, establishing a third mapping relation of the center of the virtual rocker to the first direction key and the second direction key in a third area;
and S4, establishing a fourth mapping relation of the center of the virtual rocker to the fourth area, the first direction key and the target operation key.
The method includes the steps of establishing a first mapping relation of a virtual rocker center located in a first area and a first direction key, establishing a second mapping relation of the virtual rocker center located in a second area and a second direction key, establishing a third mapping relation of the virtual rocker center located in a third area and the first direction key and the second direction key, and establishing a fourth mapping relation of the virtual rocker center located in a fourth area and the first direction key and a target operation key.
Further by way of example, as shown in FIG. 10, a third mapping 1004 between the number 6 area in the first virtual rocker area 604 and the third directional key 1002 is established, and a fourth mapping 1008 between the number H area in the second virtual rocker area 606 and the target operation key 1006 is established.
According to the embodiment of the application, a first mapping relation of the virtual rocker center on the first area and the first direction key is established, a second mapping relation of the virtual rocker center on the second area and the second direction key is established, a third mapping relation of the virtual rocker center on the third area, the first direction key and the second direction key is established, a fourth mapping relation of the virtual rocker center on the fourth area, the first direction key and the target operation key is established, and the technical purpose of rapidly determining the movement operation to be performed by the virtual object through the preset comprehensive mapping relation is achieved by presetting the mapping relation of each direction, each type direction key or other type keys and the area, so that the technical effect of determining the efficiency of the movement operation to be performed by the virtual object is achieved.
It should be noted that, for simplicity of description, the foregoing method embodiments are all described as a series of acts, but it should be understood by those skilled in the art that the present invention is not limited by the order of acts described, as some steps may be performed in other orders or concurrently in accordance with the present invention. Further, those skilled in the art will also appreciate that the embodiments described in the specification are all preferred embodiments, and that the acts and modules referred to are not necessarily required for the present invention.
According to another aspect of the embodiment of the present invention, there is also provided a control device for a virtual object for implementing the control method for a virtual object. As shown in fig. 11, the apparatus includes:
The first display unit 1102 is configured to display, in the client, a first game picture sent by the background server, where the first game picture is a picture in a target cloud game that is run by the background server, and a target virtual object controlled by the client participates in a game task in the target cloud game;
A second display unit 1104, configured to superimpose and display a virtual rocker center and a virtual rocker area on the first game screen, where the virtual rocker area includes a plurality of areas, and the plurality of areas and a plurality of direction keys identifiable by the background server are target mapping relationships, and the virtual rocker center is used to determine a target area in the plurality of areas in the virtual rocker area;
The first sending unit 1106 is configured to send a target operation instruction to the background server when the center of the virtual rocker is located in a target area in the virtual rocker 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 picture corresponding to the target direction key, where the second game picture is a picture that the target virtual object performs a target movement operation in a target direction corresponding to the target area;
The first obtaining unit 1108 is configured to obtain a second game screen sent by the background server.
Alternatively, a control device of a virtual object may be applied, but not limited to, in 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, the cloud game may be, but not limited to, a game mode based on cloud computing, in an operation mode of the cloud game, all games are operated at a server side, and after rendered game images are compressed and transmitted to a user through a network, while in a client side, a game device of the user does not need any high-end processor or display card, but may not be limited to only needing basic video decompression capability. The virtual rocker area may be, but is not limited to, one or more circular areas, and the virtual rocker center may be, but is not limited to, the center of the virtual rocker area, optional. The virtual rocker area may include one or more virtual areas, and in the case of multiple virtual areas, the multiple virtual areas may be used, but are not limited to, respectively, to indicate that different rocker operation instructions are generated, but the rocker operation instructions are not generally recognized by the background server, and the direction operation instructions corresponding to the direction keys may be recognized by the background server. Alternatively, the game screen may be, but is not limited to being, one or more frames of screen. The directional keys may be, but are not limited to, in the form of signals recognizable by the background server, such as movement signals triggered by a physical keyboard. The direction key may be displayed in the mobile terminal or computer end stream, but is not limited thereto.
The method includes the steps of displaying a first game picture sent by a background server in a client, wherein the first game picture is a picture in a target cloud game operated by the background server, a target virtual object controlled by the client participates in a game task in the target cloud game, displaying a virtual rocker center and a virtual rocker area in a superposition mode on the first game picture, wherein the virtual rocker center is used for controlling the target virtual object to execute moving operation in the virtual rocker area, sending a target operation instruction to the background server under the condition that the virtual rocker center is located in a target area in the virtual rocker area, wherein the target operation instruction is used for instructing the background server to generate a second game picture according to a target mapping relation, the second game picture is a picture for executing target moving operation in a target direction corresponding to the target area by the target virtual object, the target mapping relation is a mapping relation between the target area and an operation instruction for instructing the target virtual operation object to execute target moving operation in the target direction, and obtaining a second game picture sent by the background server.
For specific embodiments, reference may be made to the examples shown in the above-mentioned control method of the virtual object, which are not described herein.
According to the embodiment of the application, a first game picture sent by a background server is displayed in a client, wherein the first game picture is a picture in a target cloud game operated by the background server, a target virtual object controlled by the client participates in a game task in the target cloud game, a virtual rocker center and a virtual rocker area are superimposed and displayed on the first game picture, the virtual rocker area comprises a plurality of areas, the plurality of areas and a plurality of direction keys identifiable by the background server are in a target mapping relation, the virtual rocker center is used for determining the target area in the virtual rocker area, a target operation instruction is sent to the background server under the condition that the virtual rocker center is located in the target area in the virtual rocker area, the target operation instruction is used for indicating the background server to obtain a target direction key corresponding to the target area and generate a second game picture corresponding to the target direction key, the second game picture is a picture for executing target moving operation in the target direction corresponding to the target area, the second game picture sent by the background server is obtained, the virtual rocker center is converted into a control target direction by the virtual object, and the virtual rocker center is controlled by a control terminal in a mode of moving the virtual object, so that the user can realize a control effect of the game terminal is realized.
As an alternative, the second display unit 1104 includes:
the first display module is used for displaying the virtual rocker center, the first virtual rocker area and the second virtual rocker area in a superposition mode on the first game picture, wherein the distance between the second virtual rocker area and the virtual rocker center is larger than the distance between the first virtual rocker area and the virtual rocker center.
For specific embodiments, reference may be made to the examples shown in the above-mentioned control method of the virtual object, which are not described herein.
As an alternative, it includes:
a third display unit, configured to display, in the client, a third game screen sent by the background server before displaying the first game screen sent by the background server;
a fourth display unit, configured to superimpose and display a plurality of virtual direction keys on the third game frame before displaying the first game frame sent by the background server, where the virtual direction keys and the plurality of direction keys identifiable by the background server are mapped one-to-one;
the second sending unit is used for sending a switching instruction to the background server before the first game picture sent by the background server is displayed, wherein the switching instruction is used for instructing the background server to generate the first game picture according to the third game picture;
and the second acquisition unit is used for acquiring the first game picture sent by the background server before the first game picture sent by the background server is displayed.
For specific embodiments, reference may be made to the examples shown in the above-mentioned control method of the virtual object, which are not described herein.
As an alternative, the first transmitting unit 1106 includes:
The first sending module is used for sending a first operation instruction to the background server under the condition that the center of the virtual rocker is located in a first area in the first virtual rocker area, wherein the first operation instruction is used for instructing the background server to acquire a first direction key corresponding to the first area according to a first mapping relation and generating a picture of executing a first moving operation of a target virtual object in a first direction corresponding to the first direction key;
the second sending module is used for sending a second operation instruction to the background server under the condition that the center of the virtual rocker is located in a second area in the first virtual rocker area, wherein the second operation instruction is used for instructing the background server to acquire a second direction key corresponding to the second area according to a second mapping relation and generating a picture of executing a first moving operation of the target virtual object in a second direction corresponding to the second direction key;
The third sending module is used for sending a third operation instruction to the background server under the condition that the center of the virtual rocker is located in a third area in the first virtual rocker area, wherein the third operation instruction is used for instructing the background server to obtain a first direction key and a second direction key corresponding to the third area according to a third mapping relation, and generating a picture of executing the first moving operation of the target virtual object in a third direction corresponding to the first direction key and the second direction key, and the third direction is a combination direction of the first direction and the second direction.
For specific embodiments, reference may be made to the examples shown in the above-mentioned control method of the virtual object, which are not described herein.
As an alternative, the first transmitting unit 1106 includes:
and the fourth sending module is used for sending a fourth operation instruction to the background server under the condition that the center of the virtual rocker is located in a fourth area in the second virtual rocker area, wherein the fourth operation instruction is used for instructing the background server to acquire a first direction key and a target operation key corresponding to the fourth area according to a fourth mapping relation and generating a picture that the target virtual object executes a second moving operation corresponding to the target operation key in a first direction corresponding to the first direction key.
For specific embodiments, reference may be made to the examples shown in the above-mentioned control method of the virtual object, which are not described herein.
According to another aspect of the embodiment of the present invention, there is also provided a control device for a virtual object for implementing the control method for a virtual object. As shown in fig. 12, the apparatus includes:
A third sending unit 1202, configured to send a first game frame to a client, where the first game frame is a frame in a target cloud game that is run by a background server, and a target virtual object controlled by the client participates in a game task in the target cloud game;
A third obtaining unit 1204, configured to obtain a target operation instruction sent by the client, where the target operation instruction is used to indicate that a virtual rocker center displayed in a superimposed manner on the first game frame is located in a target area in the virtual rocker area displayed in a superimposed manner on the first game frame, the virtual rocker area includes a plurality of areas, and the plurality of areas and a plurality of direction keys identifiable by the background server are target mapping relationships, the virtual rocker center is used to determine a target area in the plurality of areas in the virtual rocker 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 relationships, and generate a second game frame corresponding to the target direction key, where the second game frame is a frame in which the target virtual object performs a target moving operation in a target direction corresponding to the target area;
A fourth obtaining unit 1206, configured 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;
a third sending unit 1208, configured to send the second game screen to the client.
Alternatively, a control device of a virtual object may be applied, but not limited to, in 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, the cloud game may be, but not limited to, a game mode based on cloud computing, in an operation mode of the cloud game, all games are operated at a server side, and after rendered game images are compressed and transmitted to a user through a network, while in a client side, a game device of the user does not need any high-end processor or display card, but may not be limited to only needing basic video decompression capability. The virtual rocker area may be, but is not limited to, one or more circular areas, and the virtual rocker center may be, but is not limited to, the center of the virtual rocker area, optional. The virtual rocker area may include one or more virtual areas, and in the case of multiple virtual areas, the multiple virtual areas may be used, but are not limited to, respectively, to indicate that different rocker operation instructions are generated, but the rocker operation instructions are not generally recognized by the background server, and the direction operation instructions corresponding to the direction keys may be recognized by the background server. Alternatively, the game screen may be, but is not limited to being, one or more frames of screen. The directional keys may be, but are not limited to, in the form of signals recognizable by the background server, such as movement signals triggered by a physical keyboard. The direction key may be displayed in the mobile terminal or computer end stream, but is not limited thereto.
The method includes the steps of receiving a first game picture from a client, wherein the first game picture is a picture in a target cloud game operated by a background server, a target virtual object controlled by the client participates in a game task in the target cloud game, obtaining a target operation command sent by the client, wherein the target operation command is used for indicating a target area of a virtual rocker circle center which is overlapped and displayed on the first game picture and is positioned in a virtual rocker area which is overlapped and displayed on the first game picture, the virtual rocker area comprises a plurality of areas, the plurality of areas and a plurality of direction keys which can be identified by the background server are target mapping relations, the virtual rocker circle center is used for determining target areas in the plurality of areas in the virtual rocker area, the target operation command is used for indicating the background server to obtain a target direction key corresponding to the target area according to the target mapping relation and generate a second game picture corresponding to the target direction key, the second game picture is obtained by the second game picture which is a target virtual object and is moved to the target direction corresponding to the target area, obtaining the target direction key corresponding to the target area according to the target mapping relation and generating the target direction key, and sending the second picture to the client.
For specific embodiments, reference may be made to the examples shown in the above-mentioned control method of the virtual object, which are not described herein.
According to the embodiment of the application, a first game picture is sent to a client, wherein the first game picture is a picture in a target cloud game operated by a background server, 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 acquired, wherein the target operation instruction is used for indicating a target area of which the virtual rocker center displayed in a superposition manner on the first game picture is positioned in a virtual rocker area displayed in a superposition manner on the first game picture, the virtual rocker area comprises a plurality of areas, the plurality of areas and a plurality of direction keys identifiable by the background server are in a target mapping relationship, the virtual rocker center is used for determining the target area in the plurality of areas in the virtual rocker area, the target operation instruction is used for indicating 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 picture corresponding to the target direction key, the second game picture is used for executing a target moving operation in the target direction corresponding to the target area, the target direction key is acquired according to the target mapping relationship, the second game picture is used for generating the target direction key corresponding to the target virtual object and the target direction, the second game picture is used for playing the target direction key moving in the target direction, the virtual picture is still used for playing the virtual object in a control mode of the virtual rocker is moved to the control point of the virtual object, the control window is realized in a mode of moving the virtual picture is realized, and the user is controlled by the virtual key is in a control of the control terminal in a moving the control mode of the virtual key is positioned in the virtual key in the control position in the control mode, thereby realizing the effect of improving the control efficiency of the virtual object.
As an alternative, it includes:
A fourth sending unit, configured to send a third game frame to the client, where the third game frame is superimposed with a plurality of virtual direction keys, and the virtual direction keys and the plurality of direction keys identifiable by the background server are mapped in a one-to-one mapping manner;
a fifth obtaining unit, configured to obtain 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;
and a fifth transmitting unit for transmitting the first game screen generated according to the switching instruction to the client.
For specific embodiments, reference may be made to the examples shown in the above-mentioned control method of the virtual object, which are not described herein.
As an alternative, the fourth obtaining unit 1206 includes:
The first acquisition module is used for acquiring a first direction key corresponding to a first area of which the center of the virtual rocker is positioned in the first virtual rocker area according to a first mapping relation and generating a picture of executing a first moving operation of the target virtual object in a first direction corresponding to the first direction key;
the second acquisition module is used for acquiring a second direction key corresponding to a second area of the virtual rocker center in the first virtual rocker area according to a second mapping relation and generating a picture of executing a first moving operation of the target virtual object in a second direction corresponding to the second direction key;
the third obtaining module is used for obtaining a first direction key and a second direction key corresponding to a third area, where the center of the virtual rocker is located in the first virtual rocker area, according to a third mapping relation, and generating a picture of the target virtual object for executing a first moving operation towards the 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.
For specific embodiments, reference may be made to the examples shown in the above-mentioned control method of the virtual object, which are not described herein.
As an alternative, the fourth obtaining unit 1206 includes:
the fourth obtaining module is configured to obtain, according to a fourth mapping relationship, a first direction key and a target operation key corresponding to a fourth area where a virtual rocker center is located in a second virtual rocker area, and generate a picture that the target virtual object executes a second movement operation corresponding to the target operation key in a first direction corresponding to the first direction key, where a distance between the second virtual rocker area and the virtual rocker center is greater than a distance between the first virtual rocker area and the virtual rocker center.
For specific embodiments, reference may be made to the examples shown in the above-mentioned control method of the virtual object, which are not described herein.
As an alternative, it includes:
The establishing unit is used for establishing target mapping relations between each virtual rocker center located in a plurality of areas and a plurality of direction keys identifiable by the background server before the first target operation instruction sent by the client is acquired.
For specific embodiments, reference may be made to the examples shown in the above-mentioned control method of the virtual object, which are not described herein.
As an alternative, the establishing unit includes at least one of:
the first establishing module is used for establishing a first mapping relation of the virtual rocker center on the first area and the first direction key;
The second establishing module is used for establishing a second mapping relation of the virtual rocker center of a circle in the second area and the second direction key;
the third establishing module is used for establishing a third mapping relation of the virtual rocker center in a third area, the first direction key and the second direction key;
And the fourth establishing module is used for establishing a fourth mapping relation of the center of the virtual rocker in the fourth area, the first direction key and the target operation key.
For specific embodiments, reference may be made to the examples shown in the above-mentioned control method of the virtual object, which are not described herein.
According to a further aspect of the embodiments of the present invention, there is also provided an electronic device for implementing the above-described control method of a virtual object, as shown in fig. 13, the electronic device comprising a memory 1302 and a processor 1304, the memory 1302 having stored therein a computer program, the processor 1304 being arranged to perform the steps of any of the method embodiments described above by means of the computer program.
Alternatively, in this embodiment, the electronic apparatus may be located in at least one network device of a plurality of network devices of the computer network.
Alternatively, in the present embodiment, the above-described processor may be configured to execute the following steps by a computer program:
s1, displaying a first game picture sent by a background server in a client, wherein the first game picture is a picture in a target cloud game operated by the background server, and a target virtual object controlled by the client participates in a game task in the target cloud game;
s2, superposing and displaying a virtual rocker center and a virtual rocker area on the first game picture, wherein the virtual rocker area comprises a plurality of areas, the plurality of areas and a plurality of direction keys which can be identified by a background server are in a target mapping relation, and the virtual rocker center is used for determining a target area in the plurality of areas in the virtual rocker area;
s3, under the condition that the center of the virtual rocker is located in a target area in the virtual rocker area, a target operation instruction is sent to the background server, wherein the target operation instruction is used for instructing the background server to acquire a target direction key corresponding to the target area according to a target mapping relation and generate a second game picture corresponding to the target direction key, and the second game picture is a picture for executing target moving operation of a target virtual object in a target direction corresponding to the target area;
S4, obtaining a second game picture sent by the background server. And/or
S1, a first game picture is sent to a client, wherein the first game picture is a picture in a target cloud game operated by a background server, and a target virtual object controlled by the client participates in a game task in the target cloud game;
S2, acquiring a target operation instruction sent by a client, wherein the target operation instruction is used for indicating a target area, in which a virtual rocker center displayed in a superposition manner on a first game picture is located, in the virtual rocker area displayed in the superposition manner on the first game picture, the virtual rocker area comprises a plurality of areas, the plurality of areas and a plurality of direction keys identifiable by a background server are in a target mapping relationship, the virtual rocker center is used for determining a target area in the plurality of areas in the virtual rocker area, the target operation instruction is used for indicating the background server to acquire a target direction key corresponding to the target area according to the target mapping relationship, and generating a second game picture corresponding to the target direction key, and the second game picture is a picture for executing target moving operation of a target virtual object to a target direction corresponding to the target area;
S3, acquiring a target direction key corresponding to the target area according to the target mapping relation, and generating a second game picture corresponding to the target direction key;
s4, sending the second game picture to the client.
Alternatively, it will be understood by those skilled in the art that the structure shown in fig. 13 is only schematic, and the electronic device may also be a smart phone (such as an Android phone, an iOS phone, etc.), a tablet computer, a palm computer, a Mobile internet device (Mobile INTERNET DEVICES, MID), a PAD, etc. Fig. 13 is not limited to the structure of the electronic device. For example, the electronic device may also include more or fewer components (e.g., network interfaces, etc.) than shown in FIG. 13, or have a different configuration than shown in FIG. 13.
The memory 1302 may be used to store software programs and modules, such as program instructions/modules corresponding to the method and apparatus for controlling a virtual object in the embodiment of the present invention, and the processor 1304 executes the software programs and modules stored in the memory 1302, thereby performing various functional applications and data processing, that is, implementing the method for controlling a virtual object described above. Memory 1302 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, memory 1302 may further include memory located remotely from processor 1304, which may be connected to the terminal via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof. The memory 1302 may be used for storing information such as a first game screen, a target operation instruction, a target mapping relationship, and a second game screen, but is not limited to. As an example, as shown in fig. 13, the memory 1302 may include, but is not limited to, a first display unit 1102, a second display unit 1104, a first transmitting unit 1106, and a first acquiring unit 1108 in the control device of the virtual object, and a third transmitting unit (not shown in the figure), a third acquiring unit (not shown in the figure), a fourth acquiring unit (not shown in the figure), and a third transmitting unit (not shown in the figure) in the control device of the other virtual object. In addition, other module units in the control device of the virtual object may be included, but are not limited to, and are not described in detail in this example.
Optionally, the transmission device 1306 is configured to receive or transmit data via a network. Specific examples of the network described above may include wired networks and wireless networks. In one example, the transmission means 1306 comprises a network adapter (Network Interface Controller, NIC) which can be connected to other network devices and routers via a network cable so as to communicate with the internet or a local area network. In one example, the transmission device 1306 is a Radio Frequency (RF) module for communicating wirelessly with the internet.
The electronic device further includes a display 1308 for displaying information such as the first game screen, the target operation command, the target mapping relation, and the second game screen, and a connection bus 1310 for connecting the respective module components of the electronic device.
According to a further aspect of embodiments of the present invention, there is also provided a computer readable storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the method embodiments described above when run.
Alternatively, in the present embodiment, the above-described computer-readable storage medium may be configured to store a computer program for executing the steps of:
s1, displaying a first game picture sent by a background server in a client, wherein the first game picture is a picture in a target cloud game operated by the background server, and a target virtual object controlled by the client participates in a game task in the target cloud game;
s2, superposing and displaying a virtual rocker center and a virtual rocker area on the first game picture, wherein the virtual rocker area comprises a plurality of areas, the plurality of areas and a plurality of direction keys which can be identified by a background server are in a target mapping relation, and the virtual rocker center is used for determining a target area in the plurality of areas in the virtual rocker area;
s3, under the condition that the center of the virtual rocker is located in a target area in the virtual rocker area, a target operation instruction is sent to the background server, wherein the target operation instruction is used for instructing the background server to acquire a target direction key corresponding to the target area according to a target mapping relation and generate a second game picture corresponding to the target direction key, and the second game picture is a picture for executing target moving operation of a target virtual object in a target direction corresponding to the target area;
S4, obtaining a second game picture sent by the background server. And/or
S1, a first game picture is sent to a client, wherein the first game picture is a picture in a target cloud game operated by a background server, and a target virtual object controlled by the client participates in a game task in the target cloud game;
S2, acquiring a target operation instruction sent by a client, wherein the target operation instruction is used for indicating a target area, in which a virtual rocker center displayed in a superposition manner on a first game picture is located, in the virtual rocker area displayed in the superposition manner on the first game picture, the virtual rocker area comprises a plurality of areas, the plurality of areas and a plurality of direction keys identifiable by a background server are in a target mapping relationship, the virtual rocker center is used for determining a target area in the plurality of areas in the virtual rocker area, the target operation instruction is used for indicating the background server to acquire a target direction key corresponding to the target area according to the target mapping relationship, and generating a second game picture corresponding to the target direction key, and the second game picture is a picture for executing target moving operation of a target virtual object to a target direction corresponding to the target area;
S3, acquiring a target direction key corresponding to the target area according to the target mapping relation, and generating a second game picture corresponding to the target direction key;
s4, sending the second game picture to the client.
Alternatively, in this embodiment, all or part of the steps in the various methods of the above embodiments may be implemented by a program for instructing the terminal device related hardware, and the program may be stored in a computer readable storage medium, where the storage medium may include a flash disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
The integrated units in the above embodiments may be stored in the above-described computer-readable storage medium if implemented in the form of software functional units and sold or used as separate products. Based on such understanding, the technical solution of the present invention may be embodied in essence or a part contributing to the prior art or all or part of the technical solution in the form of a software product stored in a storage medium, comprising several instructions for causing one or more computer devices (which may be personal computers, servers or network devices, etc.) to perform all or part of the steps of the method of the various embodiments of the present invention.
In the foregoing embodiments of the present invention, the descriptions of the embodiments are emphasized, and for a portion of this disclosure that is not described in detail in this embodiment, reference is made to the related descriptions of other embodiments.
In several embodiments provided by the present application, it should be understood that the disclosed client may be implemented in other manners. The above-described embodiments of the apparatus are merely exemplary, and are merely a logical functional division, and there may be other manners of dividing the apparatus in actual implementation, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some interfaces, units or modules, or may be in electrical or other forms.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The foregoing is merely a preferred embodiment of the present invention and it should be noted that modifications and adaptations to those skilled in the art may be made without departing from the principles of the present invention, which are intended to be comprehended within the scope of the present invention.