A method and device for displaying overtaking in a game

By detecting the position and speed of virtual subjects and objects in the game scene, judging and displaying overtaking events, the problem of insufficient overtaking experience in the existing technology is solved, and the player's immersion and gaming experience are enhanced.

CN108714304BActive Publication Date: 2024-09-17NETEASE (HANGZHOU) NETWORK CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201810285109.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2018-04-02
Publication Date
2024-09-17
Estimated Expiration
2038-04-02

AI Technical Summary

Technical Problem

In existing mobile racing games, the experience of overtaking and being overtaken is not enhanced, and prompt methods are insufficient, resulting in a lack of situational immersion and positive feedback, which affects player immersion and gaming experience.

Method used

By detecting the position and speed of virtual subjects and objects in the game scene, it determines whether there is an overtaking event, and displays the image of the overtaking event in a preset area in the graphical user interface to enhance the player's immersion and positive feedback.

Benefits of technology

It enhances the player's sense of immersion and situational substitution in the game, provides a more realistic overtaking experience, and improves the player's gaming experience and motivation to complete the game.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN108714304B
    Figure CN108714304B
Patent Text Reader

Abstract

The present invention discloses a method and device for displaying overtaking in a game, wherein the method comprises: S1: detecting the position and speed of a virtual subject in a game scene, and the position and speed of at least one virtual object within a preset range of the virtual subject; S2: judging whether an overtaking event will occur within a preset time according to the position and the speed; S3: triggering a display instruction when the overtaking event occurs; wherein the display instruction is used to display an image of the overtaking event in a preset area of ​​a graphical user interface. The present invention can enhance the player's sense of immersion in the racing game, stimulate the player to complete the game better, and enhance the player's gaming experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of game interactive control, and in particular to a method and device for displaying overtaking in a game. Background Art

[0002] Some of the existing mobile racing games will provide simple prompts for overtaking and being overtaken, such as marking the names of other players in the game interface to indicate the positions of other players, but the experience of overtaking and being overtaken is not enhanced.

[0003] For example, Figure 1a and Figure 1b As shown in the figure, in this game, when the player behind is about to overtake, a user avatar and user name prompt is displayed at the bottom of the interface according to the position of the player behind. The prompt method for overtaking and being overtaken is the same and only serves as a reminder of the front and rear positions. The overtaking prompt is particularly weak, and it seems to only serve as a reminder of "there is someone in front". There is a lack of immersion in the overtaking scene and no obvious information feedback. Figure 2 As shown, in this game, when overtaking is imminent, a prompt of the player's ranking and user name appears near the player's vehicle in front. There is no obvious prompt for overtaking, and there is a lack of immersion in the overtaking scenario.

[0004] The disclosure of the above background technology content is only used to assist in understanding the concept and technical solution of the present invention. It does not necessarily belong to the prior art of this patent application. In the absence of clear evidence that the above content has been disclosed on the filing date of this patent application, the above background technology should not be used to evaluate the novelty and creativity of the present application. Summary of the invention

[0005] In order to overcome the defects of the prior art, the present invention proposes a method and device for displaying overtaking in a game, which can enhance the player's sense of immersion in the racing game, stimulate the player to complete the game better, and enhance the player's gaming experience.

[0006] In order to achieve the above object, the present invention adopts the following technical solutions:

[0007] An embodiment of the present invention discloses a method for displaying overtaking in a game, comprising the following steps:

[0008] S1: Detecting the position and speed of a virtual subject in a game scene, and the position and speed of at least one virtual object within a preset range of the virtual subject;

[0009] S2: judging whether an overtaking event will occur within a preset time according to the position and the speed;

[0010] S3: When the overtaking event occurs, triggering a display instruction;

[0011] The display instruction is used to display the image of the overtaking event in a preset area of ​​the graphical user interface.

[0012] An embodiment of the present invention discloses a device for displaying overtaking in a game, comprising:

[0013] A detection program, used to detect the position and speed of a virtual subject in a game scene, and the position and speed of at least one virtual object within a preset range of the virtual subject;

[0014] A judgment program, used for judging whether an overtaking event will occur within a preset time according to the position and the speed;

[0015] A control program is used to trigger a display instruction when the overtaking event occurs; wherein the display instruction is used to display an image of the overtaking event in a preset area of ​​a graphical user interface.

[0016] An embodiment of the present invention discloses a computer-readable storage medium storing a computer program, wherein the computer program is executed by a processor to implement the above-mentioned overtaking display method in the game.

[0017] An embodiment of the present invention discloses a mobile terminal, including a processor and a memory; the memory stores a computer program, and the processor loads the computer program to execute the above-mentioned overtaking display method in the game.

[0018] Compared with the prior art, the beneficial effect of the present invention lies in that the overtaking display method and device in the game of the present invention triggers an instruction to display an image of the overtaking event in a preset area in the graphical user interface when an overtaking event occurs in the game scene, so that the virtual subject can allow the player to view the image of the overtaking event before overtaking or being overtaken, which can enhance the player's immersion in the racing game, provide positive feedback to the player, stimulate the player to complete the game better, and enhance the player's gaming experience.

[0019] In a further solution, an image of the virtual object of overtaking or being overtaken is displayed before a preset time before the overtaking event occurs, and the image is hidden after a preset time after the overtaking event occurs, so that the player's gaming experience is more realistic and the sense of immersion in the game situation is enhanced. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] Figure 1a and Figure 1b They are schematic diagrams of a game interface of Example 1 in the prior art;

[0021] Figure 2 is a schematic diagram of a game interface of Example 2 in the prior art;

[0022] Figure 3 is a flow chart of a method for displaying overtaking in a game according to a preferred embodiment of the present invention;

[0023] Figure 4 is a schematic diagram of a display method before overtaking according to Example 1 of the present invention;

[0024] Figure 5 is a schematic diagram of a display method after overtaking according to Example 1 of the present invention;

[0025] Figure 6 is a schematic diagram of a display method before being overtaken according to Example 2 of the present invention;

[0026] Figure 7 is a schematic diagram of a display method after being overtaken according to Example 2 of the present invention;

[0027] Figure 8 It is a flowchart of a method for displaying overtaking in a game according to an embodiment of the present invention. DETAILED DESCRIPTION

[0028] The present invention will be further described below with reference to the accompanying drawings and in combination with preferred embodiments.

[0029] like Figure 3 As shown, the overtaking display method in the game of the preferred embodiment of the present invention comprises the following steps:

[0030] S1: Detecting the position and speed of a virtual subject in a game scene, and the position and speed of at least one virtual object within a preset range of the virtual subject;

[0031] S2: judging whether there will be an overtaking event within a preset time according to the position and speed;

[0032] S3: When there is an overtaking event, a display instruction is triggered;

[0033] The display instruction is used to display an image of the overtaking event in a preset area of ​​the graphical user interface. The image of the overtaking event can be an image of the entire process from before the overtaking event to after the overtaking event occurs, or an image within a period of time before the overtaking event occurs and an image within a period of time after the overtaking event occurs.

[0034] Wherein, in step S1, it also includes detecting the relative distance and relative speed between the virtual subject and the virtual object.

[0035] In some embodiments, step S2 further includes: judging whether the virtual subject will overtake the virtual object within a first preset time threshold according to the position and the speed. Step S3 further includes: when the virtual subject will overtake the virtual object within the first preset time threshold, displaying a first image of the virtual object being overtaken.

[0036] Among them, the first image can be an image of the entire process from before the overtaking event to after the overtaking event, or it can be an image within a first preset time threshold before the overtaking event and an image within a second preset time threshold after the overtaking event; the image before the overtaking event and the image after the overtaking event can be displayed in the same preset area in the graphical user interface, or can be set in different preset areas in the graphical user interface.

[0037] For example, in a specific embodiment of the present invention, the virtual camera is set above and behind the virtual subject, and can capture all game scenes. The orientation relationship between the virtual subject and the virtual object being overtaken is determined, and a mapping relationship is set according to the orientation relationship and the rotation angle of the virtual camera to control the rotation of the virtual camera. In the game, the image of the virtual object being overtaken is viewed from the perspective of the virtual subject. Specifically, according to the position and speed of the virtual subject and at least one virtual object within the preset range of the virtual subject, it is determined whether the virtual subject will overtake the virtual object within a first preset time threshold (for example, 3 seconds); when it is detected that the virtual subject will overtake the virtual object within 3 seconds, a display instruction is triggered; a sub-display window is provided on the upper side of the graphical user interface to display the first image of the virtual object, and the first image includes the image of the virtual object from 3 seconds before being overtaken to the second preset time threshold (for example, 2 seconds) after the overtaking is completed.

[0038] Furthermore, after the virtual subject overtakes the virtual object by a second preset time threshold, the first image is hidden. In the game, the first image of the virtual object being overtaken disappears after the second preset time threshold after the virtual subject overtakes the virtual object. Hiding the first image may be moving from a preset area of ​​the graphical user interface at a preset speed until it disappears, or may be hidden by fading out, retracting, or closing.

[0039] In another specific embodiment of the present invention, a third sub-image of the virtual object being overtaken is displayed in the first preset area, and a fourth sub-image of the virtual object being overtaken is displayed in the second preset area. The third sub-image may be an image within a first preset time threshold before the overtaking event occurs, and the fourth sub-image may be an image within a second preset time threshold after the overtaking event occurs.

[0040] For example, according to the position and speed of the virtual subject and at least one virtual object within a preset range of the virtual subject, it is determined whether the virtual subject will overtake the virtual object within a first preset time threshold (for example, 3 seconds); when it is detected that the virtual subject will overtake the virtual object within 3 seconds, a display instruction is triggered; a first sub-display window is provided on the upper side of the graphical user interface to display a third sub-image within the first preset time threshold (for example, 3 seconds) before the virtual object is overtaken, such as Figure 4and displaying a fourth sub-image within a second preset time threshold (eg, 2 seconds) after the virtual object is overtaken on the left or right side of the graphical user interface, such as Figure 5 shown.

[0041] Furthermore, after the second preset time threshold after the virtual subject overtakes the virtual object, the first image is hidden, including: when the virtual subject overtakes the virtual object, the third sub-image is hidden; after the second preset time threshold after the virtual subject overtakes the virtual object, the fourth sub-image is hidden. In the game, for example, the third sub-image is displayed 3 seconds before overtaking; the third sub-image is hidden when overtaking, and the fourth sub-image is displayed; the fourth sub-image is hidden 2 seconds after overtaking. Hiding the third sub-image or hiding the fourth sub-image can be moving from a preset area of ​​the graphical user interface at a preset speed until it disappears, or it can be hidden by fading out, retracting or closing. The first preset time threshold and the second preset time threshold can be 1 to 3 seconds respectively.

[0042] In some cases, after step S3, the method further includes: within a first preset time threshold after the first image is displayed, when the distance between the virtual subject and the virtual object being overtaken is greater than a preset threshold, hiding the first image. For example, within the first preset time threshold after the first image is displayed, when the virtual subject slows down or hits an obstacle, or when the virtual object accelerates, the distance between the virtual subject and the virtual object being overtaken may become larger and larger, resulting in the virtual subject being unable to overtake the virtual object within the first preset time threshold, and the first image is hidden at this time.

[0043] In another specific embodiment of the present invention, before the virtual subject overtakes the virtual object, the third sub-image displayed in the first preset area is similar to the image displayed by the driving recorder, and the size of the graphic of the virtual object being overtaken in the third sub-image gradually increases as the distance between the virtual subject and the virtual object decreases; wherein the first preset area may be the upper middle position of the graphical user interface, and the third sub-image may move from top to bottom to this position and move in the opposite direction and disappear after the virtual subject overtakes the virtual object. Within the second preset time threshold after the virtual subject overtakes the virtual object, the fourth sub-image displayed in the second preset area is similar to the image displayed in the rearview mirror, and the size of the graphic of the virtual object being overtaken in the fourth sub-image gradually decreases as the distance between the virtual subject and the virtual object increases; wherein the second preset area may be the upper left corner or upper right corner of the graphical user interface, if the virtual subject overtakes from the right side of the virtual object, it may be the upper left corner of the graphical user interface, if the virtual subject overtakes from the left side of the virtual object, it may be the upper right corner of the graphical user interface, and the fourth sub-image may move from left to right or from left to right to the corresponding position and move in the opposite direction and disappear after the second preset time threshold after the virtual subject overtakes the virtual object. wherein a reference mark (such as a stroke, a halo, a darkened color, a protrusion, etc.) is also provided on the graphic of the virtual object being overtaken in the third sub-image and / or the fourth sub-image for the player to observe.

[0044] In some embodiments, step S2 further includes: judging whether the virtual subject will be overtaken by the virtual object within a third preset time threshold according to the position and the speed. Step S3 further includes: when the virtual subject will be overtaken by the virtual object within the third preset time threshold, displaying a second image of the overtaking virtual object.

[0045] Among them, the second image can be an image of the entire process from before the overtaking event to after the overtaking event, or it can be an image within a third preset time threshold before the overtaking event and an image within a fourth preset time threshold after the overtaking event; the image before the overtaking event and the image after the overtaking event can be displayed in the same preset area in the graphical user interface, or can be set in different preset areas in the graphical user interface respectively.

[0046] For example, in a specific embodiment of the present invention, the virtual camera is set above and behind the virtual subject, and can capture all game scenes. The orientation relationship between the virtual subject and the virtual object to be overtaken is determined, and a mapping relationship is set according to the orientation relationship and the rotation angle of the virtual camera to control the rotation of the virtual camera. In the game, the image of the virtual object to be overtaken is viewed from the perspective of the virtual subject. Specifically, according to the position and speed of the virtual subject and at least one virtual object within the preset range of the virtual subject, it is determined whether the virtual subject will be overtaken by the virtual object within a third preset time threshold (for example, 3 seconds); when it is detected that the virtual subject will be overtaken by the virtual object within 3 seconds, a display instruction is triggered; a sub-display window is provided on the upper side of the graphical user interface to display a second image of the virtual object, and the second image includes an image of the virtual object from 3 seconds before the overtaking to the fourth preset time threshold (for example, 2 seconds) after the overtaking is completed.

[0047] Furthermore, after a fourth preset time threshold after the virtual subject is overtaken by the virtual object, the second image is hidden. In the game, the second image of the virtual object that is overtaken disappears after a fourth preset time threshold after the virtual subject is overtaken by the virtual object. Hiding the second image may be moving from a preset area of ​​the graphical user interface at a preset speed until it disappears, or may be hidden by fading out, retracting, or closing.

[0048] In another specific embodiment of the present invention, a fifth sub-image of the virtual object of the overtaking is displayed in the third preset area, and a sixth sub-image of the virtual object of the overtaking is displayed in the fourth preset area. The fifth sub-image may be an image within a third preset time threshold before the overtaking event occurs, and the sixth sub-image may be an image within a fourth preset time threshold after the overtaking event occurs.

[0049] For example, according to the position and speed of the virtual subject and at least one virtual object within the preset range of the virtual subject, it is determined whether the virtual subject will be overtaken by the virtual object within a third preset time threshold (for example, 3 seconds); when it is detected that the virtual subject will be overtaken by the virtual object within 3 seconds, a display instruction is triggered; a second sub-display window is provided on the left or right side of the graphical user interface to display a third sub-image within the third preset time threshold (for example, 3 seconds) before the virtual object overtakes, such as Figure 6 and displaying a sixth sub-image within a fourth preset time threshold (eg, 2 seconds) after the virtual object overtakes the vehicle on the upper side of the graphical user interface, such as Figure 7 shown.

[0050] Furthermore, after the fourth preset time threshold after the virtual subject is overtaken by the virtual object, the second image is hidden, including: when the virtual subject is overtaken by the virtual object, the fifth sub-image is hidden; after the fourth preset time threshold after the virtual subject is overtaken by the virtual object, the sixth sub-image is hidden. In the game, for example, the fifth sub-image is displayed 3 seconds before being overtaken; the fifth sub-image is hidden when being overtaken, and the sixth sub-image is displayed; the sixth sub-image is hidden 2 seconds after being overtaken. Hiding the fifth sub-image or hiding the sixth sub-image can be moving from a preset area of ​​the graphical user interface at a preset speed until it disappears, or it can be hidden by fading out, retracting or closing. The third preset time threshold and the fourth preset time threshold can be 1 to 3 seconds respectively.

[0051] In some cases, after step S3, the method further includes: hiding the second image when the distance between the virtual subject and the overtaking virtual object is greater than a preset threshold within a third preset time threshold after the second image is displayed. For example, when the virtual subject accelerates and the virtual object decelerates or hits an obstacle within the third preset time threshold of displaying the second image, the distance between the virtual subject and the overtaking virtual object may become larger and larger, resulting in the virtual subject being unable to be overtaken by the virtual object within the third preset time threshold, and the second image is hidden at this time.

[0052] In another specific embodiment of the present invention, before the virtual subject is overtaken by the virtual object, the size of the graphic of the overtaking virtual object in the fifth sub-image displayed in the third preset area increases as the distance between the virtual subject and the virtual object decreases; wherein the third preset area may be the upper left corner or upper right corner of the graphical user interface, if the virtual subject is overtaken by the virtual object from the right, it may be the upper right corner of the graphical user interface, if the virtual subject is overtaken by the virtual object from the left, it may be the upper left corner of the graphical user interface, the fifth sub-image may move from left to right or from left to right to the corresponding position and move in the opposite direction and disappear after the virtual subject is overtaken by the virtual object. Within the fourth preset time threshold after the virtual subject is overtaken by the virtual object, the size of the graphic of the overtaking virtual object in the sixth sub-image displayed in the fourth preset area decreases as the distance between the virtual subject and the virtual object increases; wherein the fourth preset area may be the upper middle position of the graphical user interface, the sixth sub-image may move from top to bottom to the position and move in the opposite direction and disappear after the fourth preset time threshold after the virtual subject is overtaken by the virtual object. In which, a reference mark (such as a stroke, a halo, a darkened color, a protrusion, etc.) is also provided on the graphic of the overtaking virtual object in the fifth sub-image and / or the sixth sub-image for the player to observe.

[0053] In some embodiments, step S2 further includes: judging whether the virtual subject will overtake any virtual object within the first preset time threshold and judging whether the virtual subject will be overtaken by any virtual object within the third preset time threshold according to the position and the speed. Step S3 further includes: when the virtual subject will overtake a virtual object only within the first preset time threshold, displaying the first image of the overtaken virtual object; when the virtual subject will be overtaken by a virtual object only within the third preset time threshold, displaying the second image of the overtaken virtual object; when the virtual subject will overtake a virtual object within the first preset time threshold and the virtual subject will be overtaken by another virtual object within the third preset time threshold, displaying the second image of the overtaken virtual object.

[0054] The following is a further explanation of the overtaking display method in the game with reference to a specific example.

[0055] Example 1:

[0056] like Figure 4 As shown, when the virtual subject 10 of player A is racing with the virtual object 20 of player B, the coordinates (x1, y1) of the virtual subject 10 and the coordinates (x2, y2) of the virtual object 20 are obtained, the instantaneous speeds of the virtual subject 10 and the virtual object 20 are detected and calculated in combination with the coordinates of the two, and it is obtained that the virtual subject 10 will overtake the virtual object 20 in 2 seconds. At this time, a display instruction is triggered in the game interface of player A, and 2 seconds before the overtaking, the driving recorder 100 is moved from top to bottom at the top of the game interface of player A, that is, the first image including the graphic of the virtual object 20, wherein the vehicle of the virtual object 20 is displayed with a circle of prompt color stroke for player A to observe, and when the front and rear distances of the virtual subject 10 and the virtual object 20 are getting closer, the graphic of the virtual object 20 in the driving recorder 100 in the game interface of player A becomes larger and larger.

[0057] like Figure 5 As shown, after the virtual subject 10 overtakes the virtual object 20, the rearview mirror 200 is switched to reflect the shot of the virtual object 20 being overtaken, that is, the first image including the graphic of the virtual object 20, and the driving recorder 100 is retracted in the opposite direction from the appearance direction; if the virtual object 20 is overtaken from the left side, the right rearview mirror 200 will appear from right to left, and vice versa, the left rearview mirror 200 will appear from left to right; after overtaking, the outline of the prompt color disappears, and when the distance between the virtual subject 10 and the virtual object 20 becomes farther and farther, the graphic of the virtual object 20 in the rearview mirror 200 in the game interface of player A becomes smaller and smaller, and the rearview mirror 200 will also be retracted from the opposite direction 2 seconds after overtaking.

[0058] Example 2:

[0059] like Figure 6As shown, when the virtual subject 10 of player A is racing with the virtual object 30 of player C, the coordinates (x1, y1) of the virtual subject 10 and the coordinates (x3, y3) of the virtual object 30 are obtained, the instantaneous speeds of the virtual subject 10 and the virtual object 30 are detected and calculated in combination with the coordinates of the two, and it is obtained that the virtual subject 10 will be overtaken by the virtual object 30 in 2 seconds. At this time, a display instruction is triggered in the game interface of player A. 2 seconds before being overtaken, the top of the game interface of player A displays the rearview mirror 200 from left to right (or from right to left) (if the virtual object 30 is on the right side of the virtual subject 10, the right rearview mirror is displayed, and if the virtual object 30 is on the left side of the virtual subject 1, the left rearview mirror is displayed), that is, the second image including the graphic of the virtual object 30, and the information of the virtual object 30 is displayed at the bottom of the interface. When the distance between the virtual subject 10 and the virtual object 30 is getting closer, the graphic of the virtual object 30 in the rearview mirror 200 in the game interface of player A becomes larger and larger.

[0060] like Figure 7 As shown, after the virtual subject 10 is overtaken by the virtual object 30, the top of the game interface of player A switches to the driving recorder 100 to display a 2-second shot of the virtual object 30 overtaking, that is, a second image including the graphic of the virtual object 30, and the rearview mirror 200 is retracted in the opposite direction from the appearance direction, prompting the player that the information does not disappear; when the front and rear distances between the virtual subject 10 and the virtual object 30 are getting farther and farther, the graphic of the virtual object 30 in the driving recorder in the game interface of player A becomes smaller and smaller, and the driving recorder 100 will also be retracted in the opposite direction from the appearance direction 2 seconds after the overtaking.

[0061] Example 3:

[0062] When the virtual subject 10 of player A is competing with the virtual objects 20 and 30 of players B and C, and the virtual subject 10 overtakes the virtual object 20 and the virtual object 30 overtakes the virtual subject 10 at the same time, the game interface of player A will give priority to triggering the display mechanism of the overtaken vehicle, that is, will give priority to triggering the display instruction of the overtaken virtual object 30.

[0063] Example 4:

[0064] When the virtual subject 10 of player A is racing against the virtual object 20 of player B, the coordinates (x1, y1) of the virtual subject 10 and the coordinates (x2, y2) of the virtual object 20 are obtained, the instantaneous speeds of the virtual subject 10 and the virtual object 20 are detected and calculated based on the coordinates of the two, and it is obtained that the virtual subject 10 will overtake the virtual object 20 in 2 seconds. At this time, a display instruction is triggered in the game interface of player A, and 2 seconds before the overtaking, area a of the game interface of player A displays a first image including the virtual object 20. The first image is an image of the virtual object 20 viewed from the perspective of the virtual subject 10, and the first image is displayed in area a until it disappears 2 seconds after the virtual subject 10 overtakes the virtual object 20.

[0065] Example 5:

[0066] When the virtual subject 10 of player A is racing against the virtual object 30 of player C, the coordinates (x1, y1) of the virtual subject 10 and the coordinates (x3, y3) of the virtual object 30 are obtained, the instantaneous speeds of the virtual subject 10 and the virtual object 30 are detected and calculated based on the coordinates of the two, and it is obtained that the virtual subject 10 will be overtaken by the virtual object 30 in 2 seconds. At this time, a display instruction is triggered in the game interface of player A, and 2 seconds before being overtaken, area b of the game interface of player A displays a second image including the virtual object 30. The second image is an image of the virtual object 30 viewed from the perspective of the virtual subject 10, and the second image moves from area b in the game interface at a certain speed until it disappears 2 seconds after the virtual subject 10 is overtaken by the virtual object 30.

[0067] like Figure 8 As shown, in one embodiment, the overtaking display method in the game includes: detecting the position and speed of the virtual subject and at least one virtual object within a preset range of the virtual subject in real time during the race, judging whether overtaking or being overtaken will occur, and if it is determined that overtaking or being overtaken is about to occur, a pre-prompt is first given 1 to 3 seconds before the occurrence, and then positive feedback of overtaking and being overtaken is given; specifically: if it is determined that overtaking is about to occur, a driving recorder is displayed on the top layer of the interface 1 to 3 seconds before overtaking to remind overtaking, and when overtaking, the top layer of the interface switches to the rearview mirror to reflect the lens of the overtaken vehicle for 1 to 3 seconds; if it is determined that overtaking is about to occur, a rearview mirror is displayed on the top layer of the interface 1 to 3 seconds before overtaking to remind the rear vehicle, and when overtaking, the top layer of the interface switches to the driving recorder to reflect the lens of the overtaking vehicle for 1 to 3 seconds.

[0068] In a specific embodiment of the present application, if the distance between the virtual subject and the virtual object suddenly increases during the process of overtaking or being overtaken, the display instructions for overtaking or being overtaken are interrupted, and the pop-up first image or second image is retracted and disappears.

[0069] Through the above-mentioned overtaking display method in the game, the player's sense of immersion can be enhanced, positive feedback can be given to the player, and the player can be stimulated to complete the game better, thereby improving the player's gaming experience.

[0070] The specific implementation of the present invention also discloses a device for displaying overtaking in a game, comprising:

[0071] A detection program for detecting the position and speed of a virtual subject in a game scene, and the position and speed of at least one virtual object within a preset range of the virtual subject;

[0072] A judgment program, used for judging whether an overtaking event will occur within a preset time according to the position and the speed;

[0073] The control program is used to trigger a display instruction when an overtaking event occurs; wherein the display instruction is used to display an image of the overtaking event in a preset area of ​​the graphical user interface.

[0074] The detection program is also used to detect the relative distance and relative speed between the virtual subject and the virtual object.

[0075] The specific embodiment of the present invention also provides a computer-readable storage medium storing a computer program, and the computer program is executed by a processor to implement the above-mentioned overtaking display method in the game.

[0076] A specific embodiment of the present invention further provides a mobile terminal, including a processor and a memory, wherein the memory stores a computer program, and the processor loads the computer program to execute the above-mentioned overtaking display method in the game.

[0077] The above contents are further detailed descriptions of the present invention in combination with specific preferred embodiments, and it cannot be determined that the specific implementation of the present invention is limited to these descriptions. For those skilled in the art of the present invention, several equivalent substitutions or obvious variations can be made without departing from the concept of the present invention, and the performance or use is the same, which should be regarded as belonging to the protection scope of the present invention.

Claims

1. A method for displaying overtaking in a game, characterized in that: The following steps are involved: S1: Detecting the position and speed of a virtual subject in a game scene, and the position and speed of at least one virtual object within a preset range of the virtual subject; S2: judging whether an overtaking event will occur within a preset time according to the position and the speed; S3: When the overtaking event occurs, triggering a display instruction; The display instruction is used to display the image of the overtaking event in a preset area of ​​the graphical user interface, and the image of the overtaking event is an image of the virtual object of overtaking or being overtaken from the perspective of the virtual subject; Step S2 and step S3 specifically include: determining, according to the position and the speed, whether the virtual subject will overtake the virtual object within a first preset time threshold, and displaying a first image of the virtual object being overtaken when the virtual subject will overtake the virtual object within the first preset time threshold, and hiding the first image after a second preset time threshold after the virtual subject overtakes the virtual object; Based on the position and the speed, determine whether the virtual subject will be overtaken by the virtual object within a third preset time threshold; when the virtual subject is about to be overtaken by the virtual object within the third preset time threshold, display a second image of the overtaking virtual object; and hide the second image after a fourth preset time threshold after the virtual subject is overtaken by the virtual object.

2. The method according to claim 1, characterized in that Hiding the first image comprises: The first image moves from the preset area of ​​the graphical user interface at a preset speed until it disappears.

3. The method according to claim 1, characterized in that The first image showing the virtual object being overtaken comprises: The third sub-image of the virtual object being overtaken is displayed in the first preset area, and the fourth sub-image of the virtual object being overtaken is displayed in the second preset area.

4. The method according to claim 1, characterized in that After step S3, the method further includes: hiding the first image when the distance between the virtual subject and the virtual object being overtaken is greater than a preset threshold within the first preset time threshold after the first image is displayed.

5. The method according to claim 1, characterized in that Hiding the second image, comprising: The second image moves from the preset area of ​​the graphical user interface at a preset speed until it disappears.

6. The method according to claim 1, characterized in that Displaying a second image of the virtual object of overtaking includes: The fifth sub-image of the virtual object of the overtaking vehicle is displayed in the third preset area, and the sixth sub-image of the virtual object of the overtaking vehicle is displayed in the fourth preset area.

7. The method according to claim 1, characterized in that After step S3, the method further includes: hiding the second image when the distance between the virtual subject and the virtual object of overtaking is greater than a preset threshold within the third preset time threshold after displaying the second image.

8. A device for displaying overtaking in a game, characterized in that: include: A detection program, used to detect the position and speed of a virtual subject in a game scene, and the position and speed of at least one virtual object within a preset range of the virtual subject; A judgment program, used for judging whether an overtaking event will occur within a preset time according to the position and the speed; A control program, for triggering a display instruction when the overtaking event occurs; wherein the display instruction is for displaying an image of the overtaking event in a preset area of ​​a graphical user interface, wherein the image of the overtaking event is an image of a virtual object that is overtaking or being overtaken from the perspective of a virtual subject; Wherein, when the judgment program is used to judge whether the virtual subject will overtake the virtual object within a first preset time threshold according to the position and the speed, the control program is used to display a first image of the virtual object being overtaken when the virtual subject will overtake the virtual object within the first preset time threshold, and hide the first image after a second preset time threshold after the virtual subject overtakes the virtual object; When the judgment program is used to judge whether the virtual subject will be overtaken by the virtual object within a third preset time threshold based on the position and the speed, the control program is used to display a second image of the overtaking virtual object when the virtual subject is about to be overtaken by the virtual object within the third preset time threshold, and hide the second image after a fourth preset time threshold after the virtual subject is overtaken by the virtual object.

9. A computer-readable storage medium, characterized in that: The computer program is stored therein, and the computer program is executed by a processor to implement the overtaking display method in a game as claimed in any one of claims 1 to 7.

10. A mobile terminal, comprising a processor and a memory; characterized in that: The memory stores a computer program, and the processor loads the computer program to execute the overtaking display method in a game according to any one of claims 1 to 7.