Game Control Method, Device, Storage Medium and Electronic Device

By responding to the movement control instructions of virtual characters in games such as MMORPG, determining their movement trajectory and putting the virtual camera in front of them, the problems of low game scene utilization and insufficient visual perception of virtual characters' movement trajectory are solved, and more efficient game scene loading and better player decision-making experience are achieved.

CN113975802BActive Publication Date: 2025-06-13NETEASE (HANGZHOU) NETWORK CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111260546.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-10-28
Publication Date
2025-06-13
Estimated Expiration
2041-10-28

AI Technical Summary

Technical Problem

In games such as MMORPG, virtual characters are always located in the center of the game screen, resulting in low utilization of game scenes, too little loading of new game scenes, and weak visual perception of virtual characters' movement trajectory, which affects player decisions.

Method used

The terminal device provides a graphical user interface, in response to the movement control instructions of the virtual character, obtain its initial and target positions, determine the first movement trajectory of the virtual character, and determine the second movement trajectory of the virtual camera based on the trajectory, so that the virtual camera is located in front of the virtual character.

Benefits of technology

It improves the utilization rate of game scenes, provides more new game scenes, enhances players' visual perception of the movement trajectory of virtual characters, and helps players make better decisions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113975802B_ABST
    Figure CN113975802B_ABST
Patent Text Reader

Abstract

The present disclosure provides a game control method, apparatus, medium, and device, relating to the field of game technologies. The game control method determines a first movement trajectory for a virtual character to move by obtaining a first initial position of the virtual character in a game scene currently and a target position to be moved to; determines a second movement trajectory for a virtual camera to move according to the first movement trajectory, wherein, with reference to the movement direction of the virtual character, at least one position of a second target node on the second movement trajectory is in front of the position of a first target node on the first movement trajectory, and the first target node and the second target node are nodes corresponding to the positions reached by the virtual character and the virtual camera respectively at the same moment; controls the virtual character to move according to the first movement trajectory, and controls the virtual camera to move according to the second movement trajectory. In the present disclosure, the camera moves in front of the character, which can load more new game scenes and enhance the player's visual perception of the character's movement trajectory.
Need to check novelty before this filing date? Find Prior Art

Description

Background Art

[0002] In MMORPG (Multiplayer Online Role-Playing Game) and other types of games, virtual characters sometimes need to find their way to a certain location in the game scene. The game screen presented in this process is usually the game scene containing the virtual character shot by a virtual camera.

[0003] In the related technology, when a virtual camera shoots a game scene, the virtual character is always located in the center of the game screen, resulting in too few new game scenes being loaded during the movement of the virtual character, and the utilization rate of the game scene is low. At the same time, the visual perception of the movement trajectory of the virtual character is weakened, which is not conducive to the player's decision-making.

[0004] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present disclosure, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention

[0005] The present disclosure provides a game control method, a game control device, a computer-readable storage medium and an electronic device, thereby at least to a certain extent solving the problem in the related art that too few new game scenes are loaded and the visual perception of the movement trajectory of the virtual character is weak.

[0006] Other features and advantages of the present disclosure will become apparent from the following detailed description, or may be learned in part by the practice of the present disclosure.

[0007] According to a first aspect of the present disclosure, there is provided a game control method. A graphical user interface is provided through a terminal device. The graphical user interface displays a game screen. The game screen includes a game scene captured by a virtual camera and a virtual character located in the game scene. The virtual character is a virtual object controlled by the terminal device. The method includes: in response to a movement control instruction for the virtual character, obtaining a first initial position of the virtual character in the game scene currently and a target position to be moved to, wherein the first initial position is located at the center of the field of view of the current position of the virtual camera; determining a first movement trajectory for the virtual character to be moved according to the first initial position and the target position; determining a second movement trajectory for the virtual camera to be moved according to the first movement trajectory, wherein, with reference to the movement direction of the virtual character, at least one position of a second target node on the second movement trajectory is in front of the position of a first target node on the first movement trajectory, and the first target node and the second target node are nodes corresponding to the positions reached by the virtual character and the virtual camera respectively at the same moment; controlling the virtual character to move according to the first movement trajectory and controlling the virtual camera to move according to the second movement trajectory.

[0008] In an exemplary embodiment of the present disclosure, before controlling the virtual character to move according to the first movement trajectory and controlling the virtual camera to move according to the second movement trajectory, the method further includes: controlling the virtual camera to move from the current position to a second initial position; wherein, with reference to the movement direction of the virtual character, the second initial position is in front of the first initial position.

[0009] In an exemplary embodiment of the present disclosure, controlling the virtual character to move according to the first movement trajectory and controlling the virtual camera to move according to the second movement trajectory includes: controlling the virtual character to start moving from the first initial position according to the first movement trajectory, and at the same time controlling the virtual camera to start moving from the second initial position according to the second movement trajectory.

[0010] In an exemplary embodiment of the present disclosure, controlling the virtual character to move along the first movement trajectory starting from the first initial position, while controlling the virtual camera to move along the second movement trajectory starting from the second initial position, includes: obtaining the first movement speed of the virtual character; determining the second movement speed of the virtual camera according to the first movement speed of the virtual character, the distance between the first target node and the next node on the first movement trajectory, and the distance between the second target node and the next node on the second movement trajectory; controlling the virtual character to move along the first movement trajectory starting from the first initial position at the first movement speed, while controlling the virtual camera to move along the second movement trajectory starting from the second initial position at the second movement speed.

[0011] In an exemplary embodiment of the present disclosure, the method further includes: obtaining the first connection line between the first target node and the next node of the first target node on the first movement trajectory; taking the position where the first target node is located as the center point of the game screen, and obtaining the intersection point of the first connection line and the game screen; obtaining the second target node located on the second connection line according to the intersection point and the second connection line of the first target node.

[0012] In an exemplary embodiment of the present disclosure, both the first target node and the next node of the first target node on the first movement trajectory are inflection points on the first movement trajectory.

[0013] In an exemplary embodiment of the present disclosure, when the virtual character reaches the target position, the virtual camera reaches the end point of the second movement trajectory.

[0014] In an exemplary embodiment of the present disclosure, when the virtual character is located at the target position and the virtual camera is located at the end point of the second movement trajectory, the virtual character falls into the center of the field of view of the current position of the virtual camera.

[0015] According to a second aspect of the present disclosure, there is provided a game control device that provides a graphical user interface through a terminal device. The graphical user interface displays a game screen, which includes a game scene captured by a virtual camera and a virtual character located in the game scene. The virtual character is a virtual object controlled by the terminal device. The device includes: a character position acquisition module configured to, in response to a movement control instruction for the virtual character, acquire a first initial position of the virtual character in the game scene and a target position to be moved, where the first initial position is located at the center of the field of view of the current position of the virtual camera; a character trajectory determination module configured to determine a first movement trajectory of the virtual character to be moved according to the first initial position and the target position; a camera trajectory determination module configured to determine a second movement trajectory of the virtual camera to be moved according to the first movement trajectory, where, with reference to the movement direction of the virtual character, at least one position of a second target node on the second movement trajectory is in front of the position of a first target node on the first movement trajectory, and the first target node and the second target node are nodes corresponding to the positions reached by the virtual character and the virtual camera respectively at the same moment; and a movement control module configured to control the virtual character to move according to the first movement trajectory and control the virtual camera to move according to the second movement trajectory.

[0016] According to a third aspect of the present disclosure, there is provided a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the above game control method is implemented.

[0017] According to a fourth aspect of the present disclosure, there is provided an electronic device, including: a processor; and a memory configured to store executable instructions of the processor; wherein the processor is configured to execute the above game control method by executing the executable instructions.

[0018] The technical solution of the present disclosure has the following beneficial effects:

[0019] During the above game control process, in response to a movement control instruction for a virtual character, the first initial position of the virtual character in the game scene and the target position to be moved are obtained, where the first initial position is located at the center of the field of view of the current position of the virtual camera; the first movement trajectory of the virtual character to be moved is determined according to the first initial position and the target position; the second movement trajectory of the virtual camera to be moved is determined according to the first movement trajectory, where, with reference to the movement direction of the virtual character, at least one position of a second target node on the second movement trajectory is in front of the position of a first target node on the first movement trajectory, and the first target node and the second target node are the nodes corresponding to the positions reached by the virtual character and the virtual camera respectively at the same moment; the virtual character is controlled to move according to the first movement trajectory, and the virtual camera is controlled to move according to the second movement trajectory. On the one hand, since the virtual camera is in front of the virtual character at the same moment during the movement of the character, more new game scenes can be provided for the player, improving the utilization rate of the game scenes. On the other hand, before the virtual character and the virtual camera move, the movement trajectory of the camera is determined in advance, and the virtual camera is in front of the virtual character, so the movement trajectory of the virtual character can be implied, improving the player's psychological expectation of the destination and the movement trajectory of the virtual character, so that the player can make a decision in advance.

[0020] It should be understood that the above general description and the following detailed description are only exemplary and explanatory, and cannot limit the present disclosure. Brief Description of the Drawings

[0021] The drawings herein are incorporated into the specification and constitute a part of the specification, showing embodiments consistent with the present disclosure, and are used together with the specification to explain the principles of the present disclosure. Obviously, the drawings in the following description are only some embodiments of the present disclosure, and those of ordinary skill in the art can obtain other drawings based on these drawings without creative efforts.

[0022] Figure 1 Show a flowchart of a game control method in this exemplary embodiment;

[0023] Figure 2 Show an example diagram of a first movement trajectory of a virtual character in this exemplary embodiment;

[0024] Figure 3 Show a flowchart of determining a second target node in this exemplary embodiment;

[0025] Figure 4 Show an example diagram of several first target nodes on a first movement trajectory in this exemplary embodiment;

[0026] Figure 5An example diagram showing the relative position relationship between a first target node and its corresponding second target node in this exemplary embodiment;

[0027] Figure 6 An example diagram showing a second movement trajectory of a virtual camera in this exemplary embodiment;

[0028] Figure 7 A structural block diagram showing a game control device in this exemplary embodiment;

[0029] Figure 8 An electronic device for implementing the above method in this exemplary embodiment. Detailed implementation manners

[0030] Now, example embodiments will be described more fully with reference to the accompanying drawings. However, the example embodiments can be implemented in various forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be more thorough and complete, and will fully convey the concept of the example embodiments to those skilled in the art. The described features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of the embodiments of the present disclosure. However, those skilled in the art will realize that the technical solutions of the present disclosure can be practiced without one or more of the specific details, or other methods, components, devices, steps, etc. can be adopted. In other cases, well-known technical solutions are not shown or described in detail to avoid obscuring various aspects of the present disclosure.

[0031] In addition, the accompanying drawings are only schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and thus repeated descriptions thereof will be omitted. Some of the block diagrams shown in the drawings are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.

[0032] In this document, "first", "second", etc. are labels for specific objects and do not limit the quantity or order of the objects.

[0033] In the related art, the virtual character always stays in the center of the game screen. As a result, during the movement of the virtual character, too few new game scenes are loaded, failing to provide players with more details of the game scenes, and the visual perception of the character's movement trajectory is weak. Moreover, since the virtual camera moves completely following the movement of the virtual character and does not have a preset movement route, the related art cannot imply the movement trajectory of the virtual character based on the game screen captured by the virtual camera.

[0034] In view of one or more of the above problems, an exemplary embodiment of the present disclosure provides a game control method, which can be executed by a terminal device carrying the game. The terminal device can provide a graphical user interface, on which a game screen can be displayed. The displayed game screen may include a game scene captured by a virtual camera and a virtual character located in the game scene. The virtual character is a virtual object controlled by the terminal device. Among them, the terminal device can be a device with data processing functions such as a computer, a mobile phone, a tablet computer, etc. The embodiments of the present invention do not specifically limit this.

[0035] Figure 1 The schematic flow of a game control method in this exemplary embodiment is shown, including the following steps S110 to S140:

[0036] Step S110, in response to a movement control instruction for the virtual character, obtain the first initial position of the virtual character in the game scene currently and the target position to be moved, where the first initial position is located at the center of the field of view of the current position of the virtual camera;

[0037] Step S120, determine the first movement trajectory of the virtual character to be moved according to the first initial position and the target position;

[0038] Step S130, determine the second movement trajectory of the virtual camera to be moved according to the first movement trajectory, where, with reference to the movement direction of the virtual character, at least one position of a second target node on the second movement trajectory is in front of the position of a first target node on the first movement trajectory, and the first target node and the second target node are nodes corresponding to the positions reached by the virtual character and the virtual camera respectively at the same moment;

[0039] Step S140, control the virtual character to move according to the first movement trajectory, and control the virtual camera to move according to the second movement trajectory.

[0040] In the above game control process, on the one hand, since the virtual camera is located in front of the virtual character at the same moment during the movement of the character, it can provide players with more new game scenes and improve the utilization rate of the game scenes. On the other hand, before the virtual character and the virtual camera move, the movement trajectory of the camera is determined in advance, and the virtual camera is located in front of the virtual character, so the movement trajectory of the virtual character can be implied, improving the player's psychological expectations for the destination and the movement trajectory of the virtual character, so that the player can make decisions in advance.

[0041] The following will specifically describe Figure 1 each step in

[0042] Step S110: In response to a movement control instruction for the virtual character, obtain the first initial position of the virtual character in the game scene and the target position to be moved, where the first initial position is located at the center of the field of view of the current position of the virtual camera.

[0043] The virtual character refers to a dynamic virtual object that can be controlled by a terminal device in the game scene, and this dynamic object can be a virtual person, a virtual animal, an anime character, etc. The game scene is the scene where the player controls the complete game logic of the virtual character.

[0044] The movement control instruction refers to a self - movement instruction for the virtual character controlled by the current terminal device. When executing the automatic movement instruction, the terminal device can control the virtual character to move according to the determined character movement trajectory, without the player having to manually control the virtual character through the interaction controls of the graphical user interface.

[0045] The first initial position refers to the position where the virtual character is located in the game scene when the movement control instruction for the virtual character is triggered. The target position to be moved refers to the position that the virtual character needs to reach in the game scene, and the target position to be moved can be determined by the specific game events triggered by the virtual character, which is not specifically limited here.

[0046] The virtual camera can be used to photograph the game scene and the virtual character located in the game scene. The current position of the virtual camera refers to the position where the virtual camera is located in the game scene when the movement control instruction for the virtual character is triggered. The field of view of the virtual camera refers to the range of the game scene that the virtual camera can photograph.

[0047] The first initial position is located at the center of the field of view of the current position of the virtual camera, that is, the current virtual character is at the center of the game screen displayed on the graphical user interface.

[0048] Step S120: Determine the first movement trajectory of the virtual character to be moved according to the first initial position and the target position.

[0049] The first movement trajectory refers to the path trajectory along which a virtual character can move from a first initial position to a target position. As shown in Figure 2 the character trajectory in it, where the position of node S represents the first initial position of the virtual character, the position of node E represents the target position to which the virtual character is to move, and the connection line between node S and node E represents the first movement trajectory along which the virtual character is to move.

[0050] When determining the first movement path, the reachable path from the first initial position to the target position can be found for the virtual character according to the game scene, and the determined reachable path from the first initial position to the target position is used as the first movement trajectory. When there are multiple reachable paths from the first initial position to the target position, an optimal path can be determined for the virtual character from these multiple reachable paths, and the optimal path is used as the first movement trajectory.

[0051] Step S130, determine the second movement trajectory along which the virtual camera is to move according to the first movement trajectory. Among them, with reference to the movement direction of the virtual character, at least one position of a second target node on the second movement trajectory is in front of the position of a first target node on the first movement trajectory, and the first target node and the second target node are the nodes corresponding to the positions reached by the virtual character and the virtual camera respectively at the same moment.

[0052] The second movement path refers to the path trajectory along which the virtual camera is going to move. The first target node is a node on the first movement trajectory, and the second target node is a node on the second movement trajectory. Here, the first target node and the second target node are the nodes corresponding to the positions reached by the virtual character and the virtual camera respectively at the same moment, and the second target node has a corresponding relationship with the first target node. The position of the second target node corresponding to the first target node can be determined according to the position of the first target node.

[0053] In an alternative embodiment, the position of the second target node can be determined according to the position of the first target node through the steps as shown in Figure 3 specifically including the following steps S310 to S330:

[0054] Step S310, obtain the first connection line between the first target node and the next node of the first target node on the first movement trajectory;

[0055] Step S320, take the position of the first target node as the center point of the game screen, and obtain the intersection point of the first connection line and the game screen;

[0056] Step S330, obtain the second target node located on the second connection line according to the second connection line between the intersection point and the first target node.

[0057] Figure 3In the steps shown, the position of the second target node is determined on the line connecting the first target node and the next node of the first target node to ensure that the second target node can be located in front of the first target node so that the virtual camera can capture more new game scenes. The intersection of the first line and the game screen with the position of the first target node as the center point is obtained, and the second target node is further determined on the intersection and the line connecting the first target node to ensure that the virtual camera can capture the virtual character during the movement.

[0058] The first target node and the next node of the first target node on the first moving trajectory can both be inflection points on the first moving trajectory. The inflection point here refers to the turning node of the trajectory. The first target node here can also include the starting node on the first moving trajectory, and the position of the starting node on the first moving trajectory is the first initial position of the virtual character. It should be noted that when the first target node is the last inflection point on the first moving trajectory, the end node of the first moving trajectory can be used as the next node of the first target node. For example Figure 4 As shown, the P on the trajectory can be 1 , P 2 , P 3 , P 4 and P 5 Node as the first target node, and the end node P 6 As P 5 The next node of a node.

[0059] When determining the second moving trajectory of the virtual camera to be moved according to the first moving trajectory, a plurality of first target nodes may be extracted from the first moving trajectory, and the second target nodes corresponding to each of the plurality of first target nodes may be determined. In addition, when the first moving trajectory includes an arc-shaped trajectory segment, a preset number of first target nodes may be uniformly extracted from the arc-shaped trajectory segment, and the second target nodes corresponding to each of the preset number of first target nodes in the arc-shaped trajectory segment may be determined.

[0060] Figure 5 shows a relative position relationship between a first target node and its corresponding second target node, where P i is the location of the i-th first target node, P i+1 is the location of the next node of the i-th first target node, P ni is the location of the second target node corresponding to the i-th first target node.

[0061] Figure 5 When determining the specific location of the second target node, the location P of the i-th first target node can be iAs the center point of the game screen 501, the connection line between the i-th first target node and the next node of the i-th first target node is used as the first connection line 502, and the intersection point of the first connection line 502 and the game screen 501 is the intersection point 503. The vector of the second connection line between the intersection point 503 and the i-th first target node can be calculated by V i = T i - P i where T i is the position where the intersection point 503 is located. Subtracting a preset correction vector V i from the obtained vector V 2 of the second connection line can obtain the vector V 3 of the connection line 504 between the i-th first target node and its corresponding second target node. Through the vector V 3 of the connection line 504 and the position P i where the i-th first target node is located, the position P ni of the second target node corresponding to the i-th first target node can be obtained. By repeating the execution, the second target nodes corresponding to all the first target nodes can be obtained. As shown in Figure 6 for the second target nodes P n1 , P n2 , P n3 , P n4 and P n5 , which respectively correspond to the first target nodes P 1 , P 2 , P 3 , P 4 and P 5 . The position where the end node P n6 is located is the end position where the virtual camera is to move. When the virtual camera is at this end position, the position where the end node of the first movement trajectory is located is exactly at the center of the virtual camera's field of view. Connecting the determined second target nodes and the end node of the second trajectory in sequence can obtain the second movement trajectory.

[0062] It should be noted that the above preset correction vector V 2 and the size of the game screen 501 can be dynamically set as needed and debugged according to the specific game screen presentation effect, and no specific limitation is made here.

[0063] Step S140, controlling the virtual character to move according to the first movement trajectory and controlling the virtual camera to move according to the second movement trajectory.

[0064] In an alternative embodiment, before controlling the virtual character to move along the first movement trajectory and controlling the virtual camera to move along the second movement trajectory, the virtual camera can also be controlled to move from the current position to a second initial position; wherein, with reference to the movement direction of the virtual character, the second initial position is in front of the first initial position.

[0065] The second initial position is the position where the second target node corresponding to the starting node of the first movement trajectory is located, and can be determined by Figure 3 the steps shown. Moving the virtual camera to the second initial position in advance can ensure that the virtual camera can always be in front of the virtual character during operation, improving the utilization rate of the game scene while prompting the player that the virtual character is about to start moving.

[0066] In an alternative embodiment, after moving the virtual camera from the current position to the second initial position, the above-mentioned controlling the virtual character to move along the first movement trajectory and controlling the virtual camera to move along the second movement trajectory can also be achieved in the following way: controlling the virtual character to start moving along the first movement trajectory from the first initial position, and at the same time controlling the virtual camera to start moving along the second movement trajectory from the second initial position, so that the virtual character and the virtual camera move synchronously.

[0067] When the virtual character reaches the target position, the virtual camera can reach the end point of the second movement trajectory so that the virtual character and the virtual camera end their movements simultaneously.

[0068] When the virtual character is at the target position and the virtual camera is at the end point of the second movement trajectory, the virtual character can fall into the center of the field of view of the current position of the virtual camera, so as to prompt the player that the virtual character has moved to the target position and ended this movement.

[0069] In an alternative embodiment, when controlling the virtual character to start moving along the first movement trajectory from the first initial position and at the same time controlling the virtual camera to start moving along the second movement trajectory from the second initial position, the first movement speed of the virtual character can also be obtained; according to the first movement speed of the virtual character, the distance between the first target node and the next node on the first movement trajectory, and the distance between the second target node and the next node on the second movement trajectory, the second movement speed of the virtual camera is determined; controlling the virtual character to start moving along the first movement trajectory from the first initial position at the first movement speed, and at the same time controlling the virtual camera to start moving along the second movement trajectory from the second initial position at the second movement speed, so that the virtual character and the virtual camera can respectively reach the position where the next node of the first target node is located and the position where the next node of the second target node corresponding to the first target node is located simultaneously.

[0070] It should be noted that the above first moving speed can be the moving speed of the virtual character between the first target node and the next node on the first moving trajectory, and the second moving speed can be the moving speed of the virtual camera between the second target node and the next node on the second moving trajectory.

[0071] Taking Figure 6 two adjacent first target nodes P 1 node and P 2 node in it as an example for illustration, it is preset that the running speed of the virtual character between the P 1 node and the P 2 node is S. If the distance between the node P 1 and the node P 2 is L 1 , P 1 node and P 2 the distances between the nodes and their respective corresponding second target nodes P n1 and P n2 are both L 2 , then the camera moving speed of the virtual camera between the second target nodes P n1 and P n2 can be set to L 1 / L 2 *S.

[0072] The above process can ensure that when the virtual camera reaches the position of any first target node on the first moving trajectory, the virtual camera can reach the position of the second target node corresponding to the any first target node, so that the moving speed of the virtual camera matches the moving speed of the virtual character, realizing synchronous movement, and further enabling the virtual character to always be within the field of view of the virtual camera.

[0073] The exemplary embodiment of the present disclosure also provides a game control device, which provides a graphical user interface through a terminal device. The graphical user interface displays a game screen, and the game screen includes a game scene captured by a virtual camera and a virtual character located in the game scene. The virtual character is a virtual object controlled by the terminal device. As Figure 7 shown, the game control device 700 may include:

[0074] A character position acquisition module 710, configured to respond to a movement control instruction for the virtual character, and acquire the first initial position and the target position to be moved of the virtual character in the game scene, where the first initial position is located at the center of the field of view of the current position of the virtual camera;

[0075] A character trajectory determination module 720, configured to determine the first moving trajectory of the virtual character to be moved according to the first initial position and the target position;

[0076] The camera trajectory determination module 730 is configured to determine a second movement trajectory for the virtual camera to move according to the first movement trajectory. Wherein, with reference to the movement direction of the virtual character, at least one position of a second target node on the second movement trajectory is in front of the position of a first target node on the first movement trajectory. The first target node and the second target node are nodes corresponding to the positions reached by the virtual character and the virtual camera respectively at the same moment.

[0077] The movement control module 740 is configured to control the virtual character to move according to the first movement trajectory and control the virtual camera to move according to the second movement trajectory.

[0078] In an optional implementation manner, before executing the movement control module 740, the game control device 700 further includes: a camera pre-movement module, configured to control the virtual camera to move from the current position to a second initial position; wherein, with reference to the movement direction of the virtual character, the second initial position is in front of the first initial position.

[0079] In an optional implementation manner, the movement control module 740 can be configured to: control the virtual character to start moving according to the first movement trajectory from the first initial position, and at the same time control the virtual camera to start moving according to the second movement trajectory from the second initial position.

[0080] In an optional implementation manner, the game control device 700 further includes: a first connection line acquisition module, configured to acquire a first connection line between the first target node and the next node of the first target node on the first movement trajectory; an intersection point acquisition module, configured to use the position where the first target node is located as the center point of the game screen and acquire the intersection point of the first connection line and the game screen; a camera node acquisition module, configured to acquire a second target node located on the second connection line according to the second connection line between the intersection point and the first target node.

[0081] In an optional implementation manner, both the first target node and the next node of the first target node on the first movement trajectory in the game control device 700 are inflection points on the first movement trajectory.

[0082] In an optional implementation manner, the movement control module 740 can also be configured to: when the virtual character reaches the target position, the virtual character falls into the center of the field of view of the current position of the virtual camera.

[0083] The specific details of each part in the above game control device 700 have been described in detail in the implementation manner of the method part. The details not disclosed can be referred to the content of the implementation manner of the method part, and thus will not be elaborated here.

[0084] Exemplary embodiments of the present disclosure also provide a computer-readable storage medium having stored thereon a program product capable of implementing the above-described game control method of this specification. In some possible embodiments, various aspects of the present disclosure may also be implemented in the form of a program product, which includes program code that, when the program product runs on an electronic device, causes the electronic device to execute the steps according to various exemplary embodiments of the present disclosure described in the above "Exemplary Method" section of this specification. The program product may be a portable compact disc read-only memory (CD-ROM) and includes program code and may run on an electronic device, such as a personal computer. However, the program product of the present disclosure is not limited thereto. In this document, the readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.

[0085] The program product may employ any combination of one or more readable media. The readable media may be a readable signal medium or a readable storage medium. The readable storage medium may, for example, but is not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.

[0086] The computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries the readable program code. Such a propagated data signal may take various forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The readable signal medium may also be any readable medium other than the readable storage medium, which can send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0087] The program code contained on the readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wired, optical fiber cable, RF, etc., or any suitable combination of the above.

[0088] Program code for performing the operations of the present disclosure can be written in any combination of one or more programming languages, including object-oriented programming languages such as Java, C++, etc., and also including conventional procedural programming languages such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computing device, partially on the user's device, executed as a stand-alone software package, partially on the user's computing device and partially on a remote computing device, or entirely on a remote computing device or server. In cases involving a remote computing device, the remote computing device can be connected to the user's computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or, alternatively, can be connected to an external computing device (e.g., by using an Internet service provider to connect through the Internet).

[0089] Exemplary embodiments of the present disclosure also provide an electronic device capable of implementing the above game control method. The following will refer to Figure 8 to describe the electronic device 800 according to such an exemplary embodiment of the present disclosure. Figure 8 The electronic device 800 shown is merely an example and should not impose any limitations on the functions and scope of use of the embodiments of the present disclosure.

[0090] As Figure 8 shown, the electronic device 800 can be presented in the form of a general-purpose computing device. The components of the electronic device 800 can include, but are not limited to: at least one processing unit 810, at least one storage unit 820, a bus 830 connecting different system components (including the storage unit 820 and the processing unit 810), and a display unit 840.

[0091] The storage unit 820 stores program code, and the program code can be executed by the processing unit 810, so that the processing unit 810 executes the steps according to various exemplary embodiments of the present disclosure described in the above "Exemplary Method" section of this specification. For example, the processing unit 810 can execute Figure 1 , Figure 3 any one or more of the method steps in

[0092] The storage unit 820 can include a readable medium in the form of a volatile storage unit, such as a random access storage unit (RAM) 821 and / or a cache storage unit 822, and can further include a read-only storage unit (ROM) 823.

[0093] The storage unit 820 may also include a program / utilities 824 having a set (at least one) of program modules 825. Such program modules 825 include, but are not limited to: an operating system, one or more application programs, other program modules, and program data. Each or some combination of these examples may include an implementation of a network environment.

[0094] The bus 830 may represent one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus structures.

[0095] The electronic device 800 may also communicate with one or more external devices 900 (such as a keyboard, a pointing device, a Bluetooth device, etc.), may also communicate with one or more devices that enable a user to interact with the electronic device 800, and / or may communicate with any device that enables the electronic device 800 to communicate with one or more other computing devices (such as a router, a modem, etc.). Such communication may be through an input / output (I / O) interface 850. And, the electronic device 800 may also communicate with one or more networks (such as a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) through a network adapter 860. As shown in the figure, the network adapter 860 communicates with other modules of the electronic device 800 through the bus 830. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 800, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, etc.

[0096] Through the description of the above embodiments, those skilled in the art can easily understand that the exemplary embodiments described herein can be implemented by software, or can be implemented by a combination of software and necessary hardware. Therefore, the technical solutions according to the embodiments of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (which can be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the exemplary embodiments of the present disclosure.

[0097] In addition, the above drawings are only schematic illustrations of the processes included in the method according to the exemplary embodiments of the present disclosure, rather than for limiting purposes. It is easy to understand that the processes shown in the above drawings do not indicate or limit the time sequence of these processes. Additionally, it is also easy to understand that these processes may be executed synchronously or asynchronously, for example, in multiple modules.

[0098] It should be noted that although several modules or units of the device for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the exemplary embodiments of the present disclosure, the features and functions of two or more of the above-described modules or units can be embodied in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided and embodied by multiple modules or units.

[0099] Those skilled in the art can understand that various aspects of the present disclosure can be implemented as a system, a method, or a program product. Therefore, various aspects of the present disclosure can be specifically implemented in the following forms, namely: a complete hardware implementation, a complete software implementation (including firmware, microcode, etc.), or an implementation combining hardware and software aspects, which can be collectively referred to as "circuitry", "module", or "system" here. After considering the specification and practicing the invention disclosed herein, those skilled in the art will readily think of other embodiments of the present disclosure. This application is intended to cover any variations, uses, or adaptations of the present disclosure, which follow the general principles of the present disclosure and include known common knowledge or conventional technical means in the technical field not disclosed in the present disclosure. The specification and embodiments are only regarded as exemplary, and the true scope and spirit of the present disclosure are pointed out by the claims.

[0100] It should be understood that the present disclosure is not limited to the exact structures already described and shown in the drawings, and various modifications and changes can be made without departing from its scope. The scope of the present disclosure is only defined by the appended claims.

Claims

1. A game control method, characterized in that, a graphical user interface is provided by a terminal device, the graphical user interface displays a game screen, the game screen includes a game scene captured by a virtual camera, and a virtual character located in the game scene, the virtual character being a virtual object controlled by the terminal device, and the method includes: responding to a movement control instruction for the virtual character, obtaining a first initial position of the virtual character in the game scene currently and a target position to be moved, wherein the first initial position is located at the center of the field of view of the current position of the virtual camera; determining a first movement trajectory for the virtual character to be moved according to the first initial position and the target position; determining a second movement trajectory for the virtual camera to be moved according to the first movement trajectory, wherein, with reference to the movement direction of the virtual character, at least one position of a second target node on the second movement trajectory is in front of the position of a first target node on the first movement trajectory, and the first target node and the second target node are nodes corresponding to the positions reached by the virtual character and the virtual camera respectively at the same moment; controlling the virtual character to move according to the first movement trajectory, and controlling the virtual camera to move according to the second movement trajectory; wherein the second target node has a corresponding relationship with the first target node, and the method further includes: determining the position of the second target node corresponding to the first target node according to the position of the first target node; wherein the determining the position of the second target node corresponding to the first target node according to the position of the first target node includes: obtaining a first connection line between the first target node and the next node of the first target node on the first movement trajectory; both the first target node and the next node of the first target node on the first movement trajectory are inflection points on the first movement trajectory; taking the position where the first target node is located as the center point of the game screen, and obtaining the intersection point of the first connection line and the game screen; obtaining the second target node located on the second connection line according to the intersection point and the second connection line of the first target node.

2. The method according to claim 1, characterized in that, before the controlling the virtual character to move according to the first movement trajectory and controlling the virtual camera to move according to the second movement trajectory, the method further includes: controlling the virtual camera to move from the current position to a second initial position; wherein, with reference to the movement direction of the virtual character, the second initial position is in front of the first initial position.

3. The method according to claim 2, characterized in that, the controlling the virtual character to move according to the first movement trajectory and controlling the virtual camera to move according to the second movement trajectory includes: controlling the virtual character to start moving according to the first movement trajectory from the first initial position, and simultaneously controlling the virtual camera to start moving according to the second movement trajectory from the second initial position.

4. The method according to claim 3, wherein, controlling the virtual character to move along the first movement trajectory starting from the first initial position, and simultaneously controlling the virtual camera to move along the second movement trajectory starting from the second initial position includes: obtaining a first movement speed of the virtual character; determining a second movement speed of the virtual camera according to the first movement speed of the virtual character, the distance between the first target node and the next node on the first movement trajectory, and the distance between the second target node and the next node on the second movement trajectory; controlling the virtual character to move along the first movement trajectory starting from the first initial position at the first movement speed, and simultaneously controlling the virtual camera to move along the second movement trajectory starting from the second initial position at the second movement speed.

5. The method according to claim 1, wherein, when the virtual character reaches the target position, the virtual camera reaches the end point of the second movement trajectory.

6. The method according to claim 5, wherein, when the virtual character is located at the target position and the virtual camera is located at the end point of the second movement trajectory, the virtual character falls into the center of the field of view of the current position of the virtual camera.

7. A game control device, wherein, providing a graphical user interface through a terminal device, the graphical user interface displaying a game screen, the game screen including a game scene captured by a virtual camera and a virtual character located in the game scene, the virtual character being a virtual object controlled by the terminal device, the device includes: a character position acquisition module, configured to respond to a movement control instruction for the virtual character and acquire a first initial position of the virtual character currently in the game scene and a target position to be moved, wherein the first initial position is located at the center of the field of view of the current position of the virtual camera; a character trajectory determination module, configured to determine a first movement trajectory for the virtual character to be moved according to the first initial position and the target position; a camera trajectory determination module, configured to determine a second movement trajectory for the virtual camera to be moved according to the first movement trajectory, wherein, with reference to the movement direction of the virtual character, at least one position of a second target node on the second movement trajectory is in front of the position of a first target node on the first movement trajectory, and the first target node and the second target node are nodes corresponding to the positions reached by the virtual character and the virtual camera respectively at the same moment; a movement control module, configured to control the virtual character to move along the first movement trajectory and control the virtual camera to move along the second movement trajectory; wherein, the second target node has a corresponding relationship with the first target node, and the device further includes: a node determination module, configured to determine the position of the second target node corresponding to the first target node according to the position of the first target node; wherein, the node determination module is configured as: Obtain a first connection line between the first target node and the next node of the first target node on the first movement trajectory; both the first target node and the next node of the first target node on the first movement trajectory are inflection points on the first movement trajectory; Take the position where the first target node is located as the center point of the game screen, and obtain the intersection point of the first connection line and the game screen; Obtain a second target node located on the second connection line according to the second connection line between the intersection point and the first target node.

8. A computer-readable storage medium, on which a computer program is stored, characterized in that, when the computer program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.

9. An electronic device, characterized in that, comprising: a processor; and a memory for storing executable instructions of the processor; wherein, the processor is configured to execute the method according to any one of claims 1 to 6 by executing the executable instructions.

Citation Information

Patent Citations

  • Method and apparatus for generating dynamic route

    CN109260709A

  • Game display control method and device, electronic equipment and storage medium

    CN111437604A