Game display control method, device, electronic device and medium

By detecting whether the game character is in the range of the preset navigation route and determining the acceleration direction based on the relative position information, the problem of single navigation methods of the existing game is solved, and rich navigation gameplay and improved fun are achieved.

CN114588629BActive Publication Date: 2025-04-22NETEASE (HANGZHOU) NETWORK CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210242286.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-11
Publication Date
2025-04-22
Estimated Expiration
2042-03-11

AI Technical Summary

Technical Problem

The existing game navigation methods are relatively single and not fun enough.

Method used

By detecting whether the game character is within the preset range of the preset navigation route, the acceleration direction assigned to the game character is determined based on the relative position information of the game character and the navigation route, and the game character is controlled to perform navigation actions in the acceleration direction.

Benefits of technology

It enriches the game navigation gameplay, improves the fun of the game, and allows different game characters to show different navigation acceleration actions on the same navigation route.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114588629B_ABST
    Figure CN114588629B_ABST
Patent Text Reader

Abstract

The embodiments of the present invention provide a display control method, device, electronic device and medium for a game, the method comprising: detecting whether a game character is within a preset range of action of a preset navigation route; if the game character is within the preset range of action of the preset navigation route, determining the direction of acceleration assigned to the game character based on the relative position information between the game character and the preset navigation route; and controlling the game character to perform navigation actions under the action of the acceleration corresponding to the acceleration direction. According to the embodiments of the present invention, when it is detected that the game character is within the preset range of action of the navigation route, the game character can be assigned an acceleration in a specific direction for accelerated navigation. By adopting the above method, the game navigation gameplay can be enriched and the game fun can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a game display control method, a game display control device, an electronic device and a computer-readable storage medium. Background Art

[0002] With the development of multimedia technology and the popularization of wireless networks, people's entertainment activities have become more and more abundant, and the types of games have become more and more diverse, such as shooting games, role-playing games, racing games, and sailing games.

[0003] In some types of games, game characters or game roles can move in the game world or use vehicles to move, such as flying in the air, driving a virtual vehicle, sailing on a virtual ship, etc. However, existing game navigation methods are relatively simple and lack interest. Summary of the invention

[0004] In view of the above problems, embodiments of the present invention are proposed to provide a game display control method and a corresponding game display control device, an electronic device, and a computer-readable storage medium that overcome the above problems or at least partially solve the above problems.

[0005] An embodiment of the present invention discloses a game display control method, the method comprising:

[0006] Detect whether the game character is within the preset range of the preset navigation route;

[0007] If the game character is within the preset action range of the preset navigation route, determining the acceleration direction given to the game character according to the relative position information between the game character and the preset navigation route;

[0008] The game character is controlled to perform a navigation action under the acceleration corresponding to the acceleration direction.

[0009] Optionally, the detecting whether the game character is within a preset action range of a preset navigation route includes:

[0010] Detect whether the game character is within the radius range of the spline curve corresponding to the preset navigation route.

[0011] Optionally, determining the acceleration direction given to the game character according to the relative position information between the game character and the preset navigation route includes:

[0012] Dividing the preset navigation route into a plurality of line segments represented by function expressions;

[0013] Determine a target position point that is closest to the game character among the points on the multiple line segments, and determine a target line segment where the target position point is located;

[0014] The tangent direction of the target line segment at the target position point is determined as the acceleration direction given to the game character.

[0015] Optionally, determining a target position point that is closest to the game character among the points on the multiple line segments, and determining a target line segment where the target position point is located, comprises:

[0016] Calculating the shortest distances between the game character and the plurality of line segments respectively, and determining a minimum value among the plurality of calculated shortest distances;

[0017] The target position point closest to the game character is determined according to the vertical line segment corresponding to the minimum value, and the target line segment where the target position point is located is determined.

[0018] Optionally, dividing the preset navigation route into a plurality of line segments represented by a function expression includes:

[0019] Determining the control points of the preset navigation route configured in the editor;

[0020] The preset navigation route is divided by taking two adjacent control points as line segment endpoints, and the function expression of the corresponding line segment is calculated according to the line segment endpoints to obtain the multiple line segments represented by the function expression.

[0021] Optionally, the role model of the game character has a bounding box, and the detecting whether the game character is within a preset action range of a preset navigation route includes:

[0022] Determine the radius range of the spline curve corresponding to the preset navigation route;

[0023] Determine whether the sum of the radius of the bounding box and the radius range is not less than the minimum value;

[0024] If the sum of the radius of the bounding box and the radius action range is not less than the minimum value, it is determined that the game character is within the preset action range of the preset navigation route.

[0025] Optionally, it also includes:

[0026] The tangent direction of the target line segment at the target position point is used as the navigation direction of the game character.

[0027] Optionally, determining the target position point closest to the game character according to the vertical line segment corresponding to the minimum value, and determining the target line segment where the target position point is located, comprises:

[0028] The intersection point of the vertical line segment and the corresponding line segment is determined as the target position point, and the line segment where the intersection point is located is determined as the target line segment.

[0029] The embodiment of the present invention further discloses a game display control device, the device comprising:

[0030] A detection module, used to detect whether the game character is within a preset range of a preset navigation route;

[0031] A first determination module, configured to determine the acceleration direction given to the game character according to the relative position information between the game character and the preset navigation route if the game character is within the preset action range of the preset navigation route;

[0032] The control module is used to control the game character to perform navigation actions under the acceleration corresponding to the acceleration direction.

[0033] Optionally, the detection module includes:

[0034] The detection submodule is used to detect whether the game character is within the radius range of the spline curve corresponding to the preset navigation route.

[0035] Optionally, the first determining module includes:

[0036] A division submodule, used for dividing the preset navigation route into a plurality of line segments represented by a function expression;

[0037] A first determination submodule is used to determine a target position point that is closest to the game character among the points on the multiple line segments, and to determine a target line segment where the target position point is located;

[0038] The second determining submodule is used to determine the tangent direction of the target line segment at the target position point as the acceleration direction given to the game character.

[0039] Optionally, the first determining submodule includes:

[0040] A calculation unit, used for calculating the shortest distances between the game character and the plurality of line segments respectively, and determining a minimum value among the plurality of calculated shortest distances;

[0041] The first determining unit is used to determine the target position point that is closest to the game character according to the vertical line segment corresponding to the minimum value, and determine the target line segment where the target position point is located.

[0042] Optionally, the division submodule includes:

[0043] A second determining unit, used to determine the control points of the preset navigation route configured in the editor;

[0044] The division unit is used to divide the preset navigation route by taking two adjacent control points as line segment endpoints, and calculate the function expression of the corresponding line segment according to the line segment endpoints to obtain the multiple line segments represented by the function expression.

[0045] Optionally, the role model of the game role has a bounding box, and the detection module includes:

[0046] A third determination submodule is used to determine the radius range of the spline curve corresponding to the preset navigation route;

[0047] A judging submodule, used for judging whether the sum of the radius of the bounding box and the radius range is not less than the minimum value;

[0048] The fourth determination submodule is used to determine that the game character is within the preset range of action of the preset navigation route if the sum of the radius of the bounding box and the radius range is not less than the minimum value.

[0049] Optionally, it also includes:

[0050] The second determination module is used to use the tangent direction of the target line segment at the target position point as the navigation direction of the game character.

[0051] Optionally, the first determining unit includes:

[0052] A determination subunit is used to determine the intersection point of the vertical line segment and the corresponding line segment as the target position point, and determine the line segment where the intersection point is located as the target line segment.

[0053] An embodiment of the present invention further discloses an electronic device, comprising: a processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein when the computer program is executed by the processor, the steps of the display control method of a game as described above are implemented.

[0054] The embodiment of the present invention further discloses a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the display control method of a game as described above are implemented.

[0055] The embodiments of the present invention include the following advantages:

[0056] In the embodiment of the present invention, when it is detected that the game character is within the preset range of the navigation route, the game character can be given an acceleration in a specific direction to accelerate the navigation. Since the positions of the game characters controlled by the game players in the game world are diverse, different game characters and the navigation routes have different relative position information, so for a navigation route, different game characters can also have different navigation acceleration actions. By adopting the above method, the game navigation gameplay can be enriched and the game fun can be improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0057] Figure 1 is a flowchart of a method for controlling the display of a game provided by an embodiment of the present invention;

[0058] Figure 2 is a schematic diagram of a navigation route in a game scene according to an embodiment of the present invention;

[0059] Figure 3 is a flowchart of another game display control method provided by an embodiment of the present invention;

[0060] Figure 4 is a schematic diagram of navigation route control points in an embodiment of the present invention;

[0061] Figure 5 is a schematic diagram of determining the nearest target location point according to an embodiment of the present invention;

[0062] Figure 6 is a schematic diagram of assigning an acceleration direction to a game character according to an embodiment of the present invention;

[0063] Figure 7 It is a schematic diagram of the interface for configuring the radius of the navigation route;

[0064] Figure 8 is a flow chart of a game display control method according to an embodiment of the present invention;

[0065] Fig. 9 It is a structural block diagram of a game display control device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0066] In order to make the above-mentioned purposes, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field belong to the scope of protection of the present invention.

[0067] In three-dimensional games, it is a common requirement for game characters to navigate in the game world, such as flying in the air, driving a vehicle, sailing a ship, etc. However, the existing game navigation methods are relatively simple and not interesting enough.

[0068] One of the core concepts of the embodiment of the present invention is that when it is detected that the game character is within the preset range of the navigation route, the game character can be given an acceleration in a specific direction to accelerate the navigation. Since the positions of the game characters controlled by the game players in the game world are diverse, different game characters and the navigation routes have different relative position information, so for a navigation route, different game characters can also have different navigation acceleration actions. By adopting the above method, the game navigation gameplay can be enriched and the game fun can be improved.

[0069] Reference Figure 1 , shows a flowchart of a game display control method provided by an embodiment of the present invention, which may specifically include the following steps:

[0070] Step 101, detecting whether the game character is within a preset range of action of a preset navigation route.

[0071] Graphical User Interface (GUI) refers to a computer operation user interface that is displayed in a graphical manner. Most games interact with game players through a graphical user interface.

[0072] In the embodiment of the present invention, after starting the three-dimensional game, the game scene can be displayed in the graphical user interface. The game scene can display a role model of a game character controlled by a player, and in addition, a pre-set navigation route can be displayed in the game scene, and the navigation route refers to the navigation track planned for the game character when performing a navigation action.

[0073] In one example, the player can enter corresponding operation instructions in the game interface to draw a navigation route, and the navigation route is displayed in the game scene. Figure 2 FIG. 1 is a schematic diagram of a navigation route in a game scene of an embodiment of the present invention, and the framed area in the figure is a drawn flight route. In another example, the flight route can be hidden in the game scene as a game easter egg that is not directly visible to the game player.

[0074] In one example, the process of drawing a navigation route may include: 1. Adding a USplineComponent component in a game engine to draw a Spline curve; 2. Using a NiagaraActor in the game engine to add particle effects; 3. Setting the particle effects on the corresponding Spline curve; 4. Displaying the drawn navigation route in the game scene.

[0075] In an embodiment of the present invention, it is possible to detect whether the game character controlled by the player is within the preset range of action of the preset navigation route. If it is determined to be within the preset range of action of the preset navigation route, it means that the preset navigation route can affect the navigation method of the game character.

[0076] Step 102: If the game character is within the preset action range of the preset navigation route, the acceleration direction given to the game character is determined according to the relative position information between the game character and the preset navigation route.

[0077] In an embodiment of the present invention, if it is determined that the current position of the game character is within the preset range of the preset navigation route, the navigation mode of the game character can be determined according to the preset navigation route. In one example, the game character can be given an acceleration in a specific direction according to the relative position information between the game character and the preset navigation route.

[0078] Step 103, controlling the game character to perform a navigation action under the acceleration corresponding to the acceleration direction.

[0079] After determining the acceleration assigned to the game character in a specific direction, the game character can be controlled to perform navigation actions in a three-dimensional game scene under the action of the acceleration corresponding to the acceleration direction, thereby providing a method for accelerating on a specific navigation route, which can enrich the navigation gameplay in the game and improve the user's gaming experience.

[0080] In summary, in the embodiment of the present invention, when it is detected that the game character is within the preset range of the navigation route, the game character can be given an acceleration in a specific direction to accelerate the navigation. Since the positions of the game characters controlled by the game players in the game world are diverse, different game characters and the navigation routes have different relative position information, so for a navigation route, different game characters can also have different navigation acceleration actions. By adopting the above method, the game navigation gameplay can be enriched and the game fun can be improved.

[0081] Reference Figure 3 , shows a flowchart of another game display control method provided by an embodiment of the present invention, which may specifically include the following steps:

[0082] Step 301, detecting whether the game character is within a preset range of action of a preset navigation route.

[0083] The game display control method provided by the embodiment of the present invention can be applied to a three-dimensional game. After starting the game, a role model of a game character controlled by a player can be displayed in the game scene of the game interface. In response to an operation instruction generated after the player operates in the game interface according to a preset operation process, a navigation route can be drawn in the game scene. The navigation route can have particle effects.

[0084] The navigation route has a corresponding preset scope of action. The preset scope of action refers to the area in which the navigation route is effective. When the game character is within the area, the navigation route can affect the navigation actions performed by the game character; when the game character is not within the area, the navigation route cannot affect the navigation actions performed by the game character. The preset scope of action can be customized by the player or pre-set by the developer. Whether the game character is within the preset scope of action of the navigation route can be determined based on the relative position relationship between the game character and the navigation route.

[0085] For step 301, the following steps may be performed:

[0086] Detect whether the game character is within the radius range of the spline curve corresponding to the preset navigation route.

[0087] In one embodiment of the present invention, the preset navigation route may be a spline curve drawn by a USplineComponent component, and the spline curve has a configurable radius range parameter. The radius range may refer to an area range consisting of any point on the spline curve as the center and the radius range parameter as the radius.

[0088] In the present invention, it is possible to detect whether the game character is within the radius of the spline curve corresponding to the preset navigation route.

[0089] Step 302: If the game character is within the preset action range of the preset navigation route, the preset navigation route is divided into a plurality of line segments represented by function expressions.

[0090] If it is determined that the game character is within the preset scope of the preset navigation route, it means that the preset navigation route can affect the navigation method of the game character. If it is determined that the game character is not within the preset scope of the preset navigation route, it means that the preset navigation route cannot affect the navigation method of the game character.

[0091] When the game character is within the preset scope of the preset navigation route, the preset navigation route may be divided into a plurality of line segments, which may include curve segments or straight line segments, and each line segment has a corresponding function expression.

[0092] For step 302, the following steps may be performed:

[0093] Sub-step S11, determining the control points of the preset navigation route configured in the editor.

[0094] Sub-step S12, dividing the preset navigation route by using two adjacent control points as line segment endpoints, and calculating the function expression of the corresponding line segment according to the line segment endpoints to obtain the multiple line segments represented by the function expression.

[0095] In the embodiment of the present invention, the control points in the preset navigation route can be determined, referring to Figure 4 FIG. 1 is a schematic diagram of the control points of the navigation route in the embodiment of the present invention. The navigation route in the figure has 7 control points. A line segment can be formed between two adjacent control points. The navigation route in the figure can be divided into 6 line segments. In addition, the function expression of each line segment can be calculated according to the control points.

[0096] Step 303: determine the target position point closest to the game character among the points on the multiple line segments, and determine the target line segment where the target position point is located.

[0097] In the embodiment of the present invention, the target position point closest to the game character among the points on the multiple line segments and the target line segment where the target position point is located can be determined by calculation.

[0098] For step 303, the following steps may be performed:

[0099] Sub-step S21, calculating the shortest distances between the game character and the multiple line segments respectively, and determining the minimum value of the multiple shortest distances calculated.

[0100] Sub-step S22, determining the target position point closest to the game character according to the vertical line segment corresponding to the minimum value, and determining the target line segment where the target position point is located.

[0101] For sub-step S22, the following steps may be performed:

[0102] The intersection point of the vertical line segment and the corresponding line segment is determined as the target position point, and the line segment where the intersection point is located is determined as the target line segment.

[0103] Reference Figure 5As shown, it is a schematic diagram of determining the closest target position point according to an embodiment of the present invention. Assuming that the Pos point is the current position of the game character, the shortest distance between the Pos point and each line segment of the navigation route can be calculated (such as the line segment with an arrow in the figure), and the numerical values ​​of each shortest distance can be compared, and the minimum value is selected, and the intersection point of the vertical line segment corresponding to the minimum value and the corresponding line segment is determined as the closest point to the Pos point (the point in the box in the figure), that is, the target position point closest to the game character.

[0104] The following example shows how to find the target location. In the game, the coordinates and navigation routes of the game character are in three-dimensional space. The mathematical principle of finding the shortest distance from the game character's location to the curve is the same as that in two-dimensional space. In order to simplify the calculation process, two-dimensional space is used for explanation.

[0105] Assume that the navigation route consists of five curves, namely A->B, B>C, C->D, D->E and E->F. Assume that the position of the game character is point Pos, the coordinates are (dx, dy), the diameter of the character model bounding box is height, and the function expression of the curve A->B can be f(x, y) = 0. The vector from the nearest point (u, v) of the curve to point Pos must be perpendicular to the curve. The nearest point can be determined by finding a point that satisfies the following formula:

[0106] (1) (u, v) is a point on the curve, satisfying f(u, v) = 0;

[0107] (2) Vector s=(dx, dy)-(u, v), that is, (dx-u, dy-v);

[0108] Find all the vectors s, the one with the shortest length is the shortest distance from the point to the curve. Regarding formula (2), if it is to be orthogonal to the curve, the direction of the vector s should be parallel to the normal direction of the point on the curve. The normal vector of the point (u, v) is (df / dx, df / dy). In two-dimensional space, the tangent vector of the point can be determined by the normal vector of the point (vertical, dot product is 0), so the tangent vector t can be (df / dy, -df / dx). Because the vector s is parallel to the normal, it is perpendicular to the tangent, so s dot t = 0, that is

[0109] (dx-u,dy-v)dot(df / dy,-df / dx)=0;

[0110] Simplified:

[0111] df / dy*(dx-u)-df / dx*(dy-v)=0;

[0112] In summary, the shortest distance from a point to a curve is determined by the following system of equations:

[0113]

[0114] Among them, df / dy is the partial derivative of f with respect to v, df / dx is the partial derivative of f with respect to u, dx in (dx-u) is the coordinate of the known point, and dy in (dy-v) is also the coordinate of the known point.

[0115] Similarly, the shortest distances from point Pos to curves B>C, C->D, D->E, and E->F can be calculated. Assume that the closest point from Pos to curve A->B is p1, with a distance of Dis1, the closest point from Pos to curve B->C is p2, with a distance of Dis2, the closest point from Pos to curve C->D is p3, with a distance of Dis3, the closest point from Pos to curve D->E is p4, with a distance of Dis4, and the closest point from Pos to curve E->F is p5, with a distance of Dis5.

[0116] Compare the sizes of the shortest distances (Dis1, Dis2, Dis3, Dis4 and Dis5), take the minimum value, and then find the point where the vertical line segment corresponding to the minimum value intersects the corresponding curve, which is the target position point closest to the game character.

[0117] In an optional embodiment, the role model of the game role has a bounding box. For step 301, the following steps may be performed:

[0118] Sub-step S31, determining the radius range of the spline curve corresponding to the preset navigation route.

[0119] Sub-step S32, determining whether the sum of the radius of the bounding box and the radius range is not less than the minimum value.

[0120] Sub-step S33: If the sum of the radius of the bounding box and the radius range is not less than the minimum value, it is determined that the game character is within the preset range of the preset navigation route.

[0121] The character model in the game usually has a bounding box, which can be a closed space that contains the character model. Encapsulating complex objects in a simple bounding box can improve the efficiency of geometric operations.

[0122] In an embodiment of the present invention, it is determined whether the game character controlled by the player is within the preset range of action of the preset navigation route. Specifically, it can be determined whether the sum of the radius of the bounding box of the character model and the radius range of action of the spline curve corresponding to the preset navigation route is not less than the minimum value of the shortest distances obtained by the above calculation. If so, it can be determined that the game character is within the preset range of action of the preset navigation route; otherwise, the game character is not within the preset range of action of the preset navigation route.

[0123] In one example, the drawing of the navigation route in the game can be implemented by using USplineComponent of ue4 (unreal engine 4). And the radius of the navigation route can be configured in the corresponding parameter configuration item. Figure 7 The figure shows an interface diagram for configuring the radius range of a navigation route. The radius range parameters of the navigation route can be configured in the Spline Radius configuration item in the figure.

[0124] Step 304: determine the tangent direction of the target line segment at the target position point as the acceleration direction given to the game character.

[0125] Reference Figure 6 As shown in FIG. 1 , a schematic diagram of assigning acceleration direction to a game character according to an embodiment of the present invention is shown. Assuming that point P is the target position point obtained, the tangent direction at point P (such as the arrow direction in the figure) is used as the acceleration direction of the game character.

[0126] In an optional embodiment, the navigation direction of the game character may also be set according to the navigation route, and specifically the following steps may be performed:

[0127] The tangent direction of the target line segment at the target position point is used as the navigation direction of the game character.

[0128] In the embodiment of the present invention, the game character can perform a navigation action when entering the preset range of action of the preset navigation route. When it is determined that the game character is within the range of action of the preset navigation route, the closest point to the game character in each line segment of the preset navigation route is calculated, for example, point P, and the tangent direction at point P can be used as the navigation direction of the game character.

[0129] The following example shows how to find the tangent line of the target position. Assume that the target position closest to the game character is point P, with coordinates P(x1, y1), and the line segment where point P is located is y=f(x). If point P is a tangent point, the equation for the tangent line of the curve at point P can be used to solve it; if point P is not a tangent point, the coordinates of the tangent point can be set to (x0, y0), and then the coordinates of the tangent point can be obtained according to the following set of equations:

[0130]

[0131] Then use the point-slope form or two-point form of the straight line to find the tangent line equation.

[0132] Step 305: Control the game character to perform a navigation action under the acceleration corresponding to the acceleration direction.

[0133] The game character is controlled to accelerate navigation under the action of the acceleration corresponding to the acceleration direction, thereby enriching the navigation gameplay in the game and improving the user's gaming experience.

[0134] In order to enable those skilled in the art to better understand step 301 to step 305 of the embodiment of the present invention, an example is given below to illustrate:

[0135] Reference Figure 8 The flowchart of a display control method of a game according to an embodiment of the present invention is shown, wherein the navigation route may be a flight route, and the specific process is as follows:

[0136] 1. Divide the flight path in the game into multiple line segments represented by function expressions, determine the position of the game character controlled by the player, and calculate the shortest distance from the game character to different line segments;

[0137] 2. Take the minimum value of the shortest distance and set it as Distance;

[0138] 3. Determine the vertical line segment corresponding to the minimum value, and determine the intersection of the vertical line segment and the corresponding line segment as the target position point closest to the game character among the multiple line segments of the flight path, set as point P; obtain the radius range of the flight path, assuming it is Radius; the diameter of the bounding box where the role model of the game character is located is height; calculate the sum of Radius and height / 2, and compare the sum with Distance;

[0139] 4. If Radius+height / 2>=Distance, it means that the game character is within the range of the flight path and the tangent at point P can be obtained; otherwise, the process ends.

[0140] 5. Set the tangent direction at point P as the flight direction and acceleration direction of the game character, so that the game character can accelerate its flight in the game world.

[0141] In summary, in the embodiment of the present invention, when it is detected that the game character is within the preset range of the navigation route, the game character can be given an acceleration in a specific direction to accelerate the navigation. Since the positions of the game characters controlled by the game players in the game world are diverse, different game characters and the navigation routes have different relative position information, so for a navigation route, different game characters can also have different navigation acceleration actions. By adopting the above method, the game navigation gameplay can be enriched and the game fun can be improved.

[0142] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.

[0143] Reference Fig. 9 , shows a structural block diagram of a game display control device provided by an embodiment of the present invention, which may specifically include the following modules:

[0144] A detection module 901 is used to detect whether the game character is within a preset range of a preset navigation route;

[0145] A first determination module 902 is used to determine the acceleration direction given to the game character according to the relative position information between the game character and the preset navigation route if the game character is within the preset action range of the preset navigation route;

[0146] The control module 903 is used to control the game character to perform navigation actions under the acceleration corresponding to the acceleration direction.

[0147] In an embodiment of the present invention, the detection module includes:

[0148] The detection submodule is used to detect whether the game character is within the radius range of the spline curve corresponding to the preset navigation route.

[0149] In this embodiment of the present invention, the first determining module includes:

[0150] A division submodule, used for dividing the preset navigation route into a plurality of line segments represented by a function expression;

[0151] A first determination submodule is used to determine a target position point that is closest to the game character among the points on the multiple line segments, and to determine a target line segment where the target position point is located;

[0152] The second determining submodule is used to determine the tangent direction of the target line segment at the target position point as the acceleration direction given to the game character.

[0153] In this embodiment of the present invention, the first determining submodule includes:

[0154] A calculation unit, used for calculating the shortest distances between the game character and the plurality of line segments respectively, and determining a minimum value among the plurality of calculated shortest distances;

[0155] The first determining unit is used to determine the target position point that is closest to the game character according to the vertical line segment corresponding to the minimum value, and determine the target line segment where the target position point is located.

[0156] In the embodiment of the present invention, the division submodule includes:

[0157] A second determining unit, used to determine the control points of the preset navigation route configured in the editor;

[0158] The division unit is used to divide the preset navigation route by taking two adjacent control points as line segment endpoints, and calculate the function expression of the corresponding line segment according to the line segment endpoints to obtain the multiple line segments represented by the function expression.

[0159] In the embodiment of the present invention, the role model of the game role has a bounding box, and the detection module includes:

[0160] A third determination submodule is used to determine the radius range of the spline curve corresponding to the preset navigation route;

[0161] A judging submodule, used for judging whether the sum of the radius of the bounding box and the radius range is not less than the minimum value;

[0162] The fourth determination submodule is used to determine that the game character is within the preset range of action of the preset navigation route if the sum of the radius of the bounding box and the radius range is not less than the minimum value.

[0163] In an embodiment of the present invention, it also includes:

[0164] The second determination module is used to use the tangent direction of the target line segment at the target position point as the navigation direction of the game character.

[0165] In this embodiment of the present invention, the first determining unit includes:

[0166] A determination subunit is used to determine the intersection point of the vertical line segment and the corresponding line segment as the target position point, and determine the line segment where the intersection point is located as the target line segment.

[0167] In summary, in the embodiment of the present invention, when it is detected that the game character is within the preset range of the navigation route, the game character can be given an acceleration in a specific direction to accelerate the navigation. Since the positions of the game characters controlled by the game players in the game world are diverse, different game characters and the navigation routes have different relative position information, so for a navigation route, different game characters can also have different navigation acceleration actions. By adopting the above method, the game navigation gameplay can be enriched and the game fun can be improved.

[0168] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0169] An embodiment of the present invention also provides an electronic device, comprising: a processor, a memory, and a computer program stored in the memory and capable of running on the processor. When the computer program is executed by the processor, the various processes of the display control method embodiment of the above-mentioned game are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0170] An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the various processes of the above-mentioned display control method embodiment of a game are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0171] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0172] It will be appreciated by those skilled in the art that the embodiments of the present invention may be provided as methods, devices, or computer program products. Therefore, the embodiments of the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the embodiments of the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.

[0173] The embodiments of the present invention are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0174] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0175] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable terminal device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0176] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present invention.

[0177] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.

[0178] The above describes in detail a game display control method and a game display control device, an electronic device and a computer-readable storage medium provided by the present invention. Specific examples are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of ​​the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. A game display control method, characterized in that: The method comprises: Detect whether the game character is within the preset range of the preset navigation route; If the game character is within the preset action range of the preset navigation route, dividing the preset navigation route into a plurality of line segments represented by a function expression; Determine a target position point that is closest to the game character among the points on the multiple line segments, and determine a target line segment where the target position point is located; Determine the tangent direction of the target line segment at the target position point as the acceleration direction given to the game character; The game character is controlled to perform a navigation action under the acceleration corresponding to the acceleration direction.

2. The method according to claim 1, characterized in that The detecting whether the game character is within the preset action range of the preset navigation route includes: Detect whether the game character is within the radius of the spline curve corresponding to the preset navigation route.

3. The method according to claim 1, characterized in that The step of determining a target position point that is closest to the game character among the points on the plurality of line segments, and determining a target line segment where the target position point is located, comprises: Calculating the shortest distances between the game character and the plurality of line segments respectively, and determining a minimum value among the plurality of calculated shortest distances; The target position point closest to the game character is determined according to the vertical line segment corresponding to the minimum value, and the target line segment where the target position point is located is determined.

4. The method according to claim 1, characterized in that The step of dividing the preset navigation route into a plurality of line segments represented by a function expression comprises: Determining the control points of the preset navigation route configured in the editor; The preset navigation route is divided by taking two adjacent control points as line segment endpoints, and the function expression of the corresponding line segment is calculated according to the line segment endpoints to obtain the multiple line segments represented by the function expression.

5. The method according to claim 3, characterized in that: The role model of the game character has a bounding box, and the detecting whether the game character is within a preset action range of a preset navigation route includes: Determine the radius range of the spline curve corresponding to the preset navigation route; Determine whether the sum of the radius of the bounding box and the radius range is not less than the minimum value; If the sum of the radius of the bounding box and the radius action range is not less than the minimum value, it is determined that the game character is within the preset action range of the preset navigation route.

6. The method according to claim 1, characterized in that Also includes: The tangent direction of the target line segment at the target position point is used as the navigation direction of the game character.

7. The method according to claim 3, characterized in that Determining the target position point closest to the game character according to the vertical line segment corresponding to the minimum value, and determining the target line segment where the target position point is located, comprises: The intersection point of the vertical line segment and the corresponding line segment is determined as the target position point, and the line segment where the intersection point is located is determined as the target line segment.

8. A game display control device, characterized in that: The device comprises: A detection module, used to detect whether the game character is within a preset range of action of a preset navigation route; A first determination module, configured to determine the acceleration direction given to the game character according to the relative position information between the game character and the preset navigation route if the game character is within the preset action range of the preset navigation route; A control module, used for controlling the game character to perform a navigation action under the acceleration corresponding to the acceleration direction; Wherein, the first determining module includes: A division submodule, used for dividing the preset navigation route into a plurality of line segments represented by a function expression; A first determination submodule is used to determine a target position point that is closest to the game character among the points on the multiple line segments, and to determine a target line segment where the target position point is located; The second determining submodule is used to determine the tangent direction of the target line segment at the target position point as the acceleration direction given to the game character.

9. An electronic device, characterized in that: include: A processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein when the computer program is executed by the processor, the steps of a display control method for a game as described in any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of a display control method for a game as claimed in any one of claims 1 to 7 are implemented.