Method, apparatus, electronic device, and storage medium for processing virtual roads

By displaying virtual roads with flat graphics on the minimap of racing games, combining terrain prompt information and labeling, the problems of complexity of three-dimensional models and large data processing volume are solved, information intuitiveness and update efficiency are improved, and player game experience is improved.

CN115671729BActive Publication Date: 2025-07-29NETEASE (HANGZHOU) NETWORK CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211091010.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-07
Publication Date
2025-07-29
Estimated Expiration
2042-09-07

AI Technical Summary

Technical Problem

In existing racing games, the three-dimensional three-dimensional model of the minimap is complex in modeling and the data processing volume is large, which affects the update efficiency, making it difficult for players to obtain information intuitively, and the game experience is poor.

Method used

By displaying virtual roads in the form of flat graphics on the minimap, terrain prompt information is obtained based on the driving operations of the player's virtual vehicle, and virtual roads with terrain prompts are displayed on the minimap, including slope, flatness and width and narrowness prompts, using graphics and text annotations to improve information intuitiveness.

Benefits of technology

It improves the information intuitiveness and richness of the minimap, reduces data processing, improves the gaming experience, and ensures the update efficiency of the minimap.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115671729B_ABST
    Figure CN115671729B_ABST
Patent Text Reader

Abstract

The present application provides a method, device, electronic device, and storage medium for processing virtual roads. A graphical user interface is provided by a terminal device. The graphical user interface includes at least a part of a game scene, a player's virtual vehicle, and a mini-map corresponding to the game scene. The mini-map is a planar graph. The method includes: responding to a driving operation for the player's virtual vehicle, controlling the player's virtual vehicle to perform a moving action corresponding to the driving operation; in response to the movement of the player's virtual vehicle in the game scene, obtaining terrain prompt information of a first virtual road at the position where the player's virtual vehicle is located after moving; and displaying a second virtual road with terrain prompt information on the mini-map. Using the present application can improve the intuitiveness and richness of the information presented on the mini-map in a racing game, and at the same time avoid excessive data processing involved in updating the mini-map, thereby improving the player's gaming experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of games, and in particular, to a method, device, electronic device and storage medium for processing virtual roads. Background Art

[0002] In the related art, for racing games (such as car racing games), players can usually obtain the planar distribution information of virtual roads (such as bend distribution, straight road distribution, etc.) through a mini-map, so as to plan the traveling direction and route of the player's virtual vehicle. In order to enable players to obtain more information about virtual roads (such as terrain undulations, etc.), a three-dimensional model of the mini-map can be established, so that various information of the virtual road is presented in a three-dimensional graphic through the mini-map. However, this method has a complex modeling process, and the data processing volume involved in updating the mini-map is large, which affects the update efficiency of the mini-map. Sometimes, due to the overly complex information presented on the mini-map, it is difficult for players to intuitively obtain the required information, resulting in a poor gaming experience for players. Summary of the Invention

[0003] The purpose of the present application is to provide a method, device, electronic device and storage medium for processing virtual roads, so as to improve the intuitiveness and richness of the information presented on the mini-map in racing games in the form of a two-dimensional planar graph, ensure the update efficiency of the mini-map, and thus improve the gaming experience of players.

[0004] An embodiment of the present application provides a method for processing a virtual road, which provides a graphical user interface through a terminal device; the graphical user interface includes at least a part of the game scene, the player's virtual vehicle and the mini-map corresponding to the game scene, and the mini-map is a planar graph; the method includes: responding to a driving operation for the player's virtual vehicle, and controlling the player's virtual vehicle to execute a moving action corresponding to the driving operation; in response to the movement of the player's virtual vehicle in the game scene, obtaining terrain prompt information of a first virtual road at the position where the player's virtual vehicle is located after the movement; wherein, the terrain prompt information includes at least one of the following: slope prompt information, flatness prompt information, and width prompt information; displaying a second virtual road with the terrain prompt information on the mini-map; wherein, the second virtual road and the first virtual road correspond to the same virtual road in the game scene.

[0005] In combination with the first aspect, an embodiment of the present application provides a first possible implementation manner of the first aspect. Among them, the obtaining of the terrain prompt information of the first virtual road where the player's virtual vehicle is located after moving includes: determining the second virtual road to be displayed in the mini-map according to the first virtual road where the player's virtual vehicle is located after moving and the driving direction of the player's virtual vehicle; determining the terrain prompt information of the first virtual road according to the terrain parameters of the first virtual road; wherein, the terrain parameters include at least one of the following: altitude parameter, slope parameter, flatness parameter, and width parameter.

[0006] In combination with the first aspect, an embodiment of the present application provides a second possible implementation manner of the first aspect. Among them, displaying the second virtual road with the terrain prompt information on the mini-map includes: determining the annotation information of the second virtual road according to the terrain prompt information; displaying the second virtual road with the annotation information on the mini-map.

[0007] In combination with the first aspect, an embodiment of the present application provides a third possible implementation manner of the first aspect. Among them, determining the annotation information of the second virtual road according to the terrain prompt information includes: determining the graphic annotation information and / or text annotation information of the second virtual road according to the terrain prompt information; wherein, the graphic annotation information includes at least one of the following: road width, road color, road transparency, and the icon identification of the player's virtual vehicle in the mini-map; the text annotation information includes at least one of the following: altitude parameter, slope type, and road grade, and the road grade represents the flatness and / or the width of the road.

[0008] In combination with the first aspect, an embodiment of the present application provides a fourth possible implementation manner of the first aspect. Among them, the terrain prompt information includes the slope prompt information; the obtaining of the terrain prompt information of the first virtual road where the player's virtual vehicle is located after moving includes: obtaining the altitude parameter of the first virtual road where the player's virtual vehicle is located after moving from the configuration information of the first virtual road; determining the slope prompt information corresponding to the first virtual road according to the altitude parameter of the first virtual road.

[0009] In combination with the first aspect, an embodiment of the present application provides a fifth possible implementation manner of the first aspect. Among them, determining the slope prompt information corresponding to the first virtual road according to the altitude parameter of the first virtual road includes: determining the slope prompt information corresponding to the altitude parameter of the first virtual road according to the preset corresponding relationship between the altitude parameter and the slope prompt information; wherein, the slope prompt information is represented in at least one of the following ways: road width, road color, road transparency, and the icon identification of the player's virtual vehicle in the mini-map.

[0010] In combination with the first aspect, an embodiment of the present application provides a sixth possible implementation manner of the first aspect, wherein the correspondence between the altitude parameter and the slope prompt information includes at least one of the following: the altitude parameter is positively correlated with the road width, the altitude parameter is positively correlated with the chromaticity of the road color, the altitude parameter is negatively correlated with the road transparency, and the altitude parameter is positively correlated with the size of the icon of the player's virtual vehicle in the mini-map.

[0011] In combination with the first aspect, an embodiment of the present application provides a seventh possible implementation manner of the first aspect, wherein displaying the second virtual road with the terrain prompt information on the mini-map includes: if the slope prompt information includes the road width, displaying the second virtual road on the mini-map with the determined road width of the first virtual road; if the slope prompt information includes the road color, displaying the second virtual road on the mini-map with the determined road color of the first virtual road; if the slope prompt information includes the road transparency, displaying the second virtual road on the mini-map with the determined road transparency of the first virtual road; if the slope prompt information includes the icon of the player's virtual vehicle in the mini-map, displaying the icon on the mini-map according to the determined icon.

[0012] In combination with the first aspect, an embodiment of the present application provides an eighth possible implementation manner of the first aspect, wherein the method further includes: displaying the altitude parameter of the first virtual road on the mini-map.

[0013] In combination with the first aspect, an embodiment of the present application provides a ninth possible implementation manner of the first aspect, wherein the graphical user interface further includes: a terrain prompt control; the method further includes: responding to an opening operation on the terrain prompt control, opening the terrain prompt function corresponding to the terrain prompt control; and when the terrain prompt function is in an open state, performing the steps of obtaining the terrain prompt information of the first virtual road where the moved player's virtual vehicle is located and displaying the second virtual road with the terrain prompt information on the mini-map.

[0014] In combination with the first aspect, an embodiment of the present application provides a tenth possible implementation manner of the first aspect, wherein the game scenario is a racing scenario.

[0015] Second aspect, an embodiment of the present application further provides a processing device for a virtual road, which provides a graphical user interface through a terminal device; the graphical user interface includes at least a part of a game scene, a player virtual vehicle, and a mini-map corresponding to the game scene, and the mini-map is a planar graph; the device includes: a driving control module, configured to control the player virtual vehicle to perform a movement action corresponding to the driving operation in response to a driving operation for the player virtual vehicle; a prompt information acquisition module, configured to acquire terrain prompt information of a first virtual road at a position where the player virtual vehicle is located after movement in response to the movement of the player virtual vehicle in the game scene; wherein, the terrain prompt information includes at least one of the following: slope prompt information, flatness prompt information, and width prompt information; a virtual road display module, configured to display a second virtual road with the terrain prompt information on the mini-map; wherein, the second virtual road and the first virtual road correspond to the same virtual road in the game scene.

[0016] Third aspect, an embodiment of the present application further provides an electronic device, including a processor and a memory, where the memory stores computer-executable instructions that can be executed by the processor, and the processor executes the computer-executable instructions to implement the above-mentioned virtual road processing method.

[0017] Fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, where the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are called and executed by a processor, the computer-executable instructions cause the processor to implement the above-mentioned virtual road processing method.

[0018] An embodiment of the present application provides a virtual road processing method, device, electronic device, and storage medium. The mini-map in this technology is in the form of a planar graph. When the player virtual vehicle moves in the game scene, terrain prompt information of the first virtual road at the position where the player virtual vehicle is located after movement will be acquired, and a second virtual road with the terrain prompt information will be displayed on the mini-map corresponding to the game scene in a planar graph. By adopting the above technology, it is convenient for players to intuitively obtain relatively rich prompt information about the terrain of the virtual road through the mini-map. Moreover, since the mini-map is a planar graph, the data processing amount involved in updating the mini-map is small, and the data burden on the game device is light. Therefore, while improving the intuitiveness and richness of the information presented by the mini-map, the update efficiency of the mini-map is ensured, effectively alleviating the problem of excessive data processing amount involved in updating the three-dimensional mini-map, thereby improving the game experience of players. Description of the Drawings

[0019] In order to more clearly illustrate the specific implementation methods of the present application or the technical solutions in the prior art, the following is a brief introduction to the drawings required for use in the specific implementation methods or the description of the prior art. Obviously, the drawings described below are some implementation methods of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0020] Figure 1 A schematic diagram of a graphical user interface provided in an embodiment of the present application;

[0021] Figure 2 A schematic diagram of an implementation environment provided for an embodiment of the present application;

[0022] Figure 3 A flowchart of a method for processing a virtual road provided in an embodiment of the present application;

[0023] Figure 4 A schematic diagram of a small map provided in an embodiment of the present application;

[0024] Figure 5 A schematic diagram of another mini-map provided in an embodiment of the present application;

[0025] Figure 6 A schematic diagram of another mini-map provided in an embodiment of the present application;

[0026] Figure 7 Graph showing the relationship between altitude parameters, road width, and road color in the embodiments of this application;

[0027] Figure 8 A schematic diagram of another mini-map provided in an embodiment of the present application;

[0028] Figure 9 A schematic diagram of another graphical user interface provided in an embodiment of the present application;

[0029] Figure 10 A schematic diagram of the structure of a virtual road processing device provided in an embodiment of the present application;

[0030] Figure 11 A schematic diagram of the structure of another virtual road processing device provided in an embodiment of the present application;

[0031] Figure 12 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0032] The technical solution of the present application will be clearly and completely described below in conjunction with the embodiments. Obviously, the described embodiments are part of the embodiments of the present application, rather than all of the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments in the present application without creative efforts shall fall within the protection scope of the present application.

[0033] First, the nouns involved in the present application are introduced:

[0034] (1) Virtual scene (game scene)

[0035] The virtual scene is a virtual scene displayed (or provided) when the application runs on the terminal or server. Optionally, the virtual scene is a simulation environment of the real world, or a semi-simulated and semi-fictional virtual environment, or a purely fictional virtual environment. The virtual scene is any one of a two-dimensional virtual scene, a 2.5D virtual scene, and a three-dimensional virtual scene. The virtual environment can be sky, land, ocean, etc. Among them, the land includes environmental elements such as deserts and cities. Among them, the virtual scene is a scene for the complete game logic of virtual objects such as user control. For example, in a sandbox 3D shooting game, the virtual scene is a 3D game world for players to control virtual objects to fight. Exemplary virtual scenes may include at least one of the elements of mountains, plains, rivers, lakes, oceans, deserts, sky, plants, buildings, and vehicles. For example, in a 2D or 2.5D card game, the virtual scene is a scene for displaying and releasing cards or displaying virtual objects corresponding to the cards. Exemplary virtual scenes may include elements such as a ring arena, a decisive battle arena, or other "field" elements or other elements that can display the card battle status. For a 2D or 2.5D multiplayer online tactical competitive game, the virtual scene is a 2D or 2.5D terrain scene for virtual objects to fight. Exemplary virtual scenes may include elements such as canyon-style mountains, lines, rivers, classrooms, desks and chairs, and podiums.

[0036] (2) Game interface

[0037] The game interface refers to the interface corresponding to the application provided or displayed through the graphical user interface. This interface includes a UI interface and a game screen for players to interact. In an optional implementation manner, the UI interface may include game controls (such as skill controls, movement controls, function controls, etc.), indication identifiers (such as direction indication identifiers, character indication identifiers, etc.), information display areas (such as the number of kills, game time, etc.), or game setting controls (such as system settings, stores, gold coins, etc.). In an optional implementation manner, the game screen is the display screen corresponding to the terminal device displaying the virtual scene. The game screen may include virtual objects such as game characters, NPC characters, and AI characters that execute game logic in the virtual scene.

[0038] (3) Virtual object

[0039] A virtual object refers to a dynamic object that can be controlled in a virtual scene. Optionally, the dynamic object can be a virtual character, a virtual animal, an anime character, a virtual vehicle, etc. The virtual object is a character controlled by a player through an input device, or an artificial intelligence (AI) set in a virtual environment battle through training, or a non-player character (NPC) set in a virtual scene battle. Optionally, the virtual object is a virtual character competing in a virtual scene. Optionally, the number of virtual objects in the virtual scene battle is preset or dynamically determined according to the number of clients joining the battle. The embodiments of the present application do not limit this. In a possible implementation manner, a user can control the virtual object to move in the virtual scene. For example, control the virtual object to run, jump, crawl, etc., and can also control the virtual object to use skills, virtual props, etc. provided by the application program to fight with other virtual objects.

[0040] (4) Player character

[0041] A player character refers to a virtual object that can be controlled by a player to move in a game environment, and can also be called a shikigami character or a hero character in some video games. The player character can be at least one of different forms such as a virtual character, a virtual animal, an anime character, a virtual vehicle, etc.

[0042] For ease of understanding, the game scene applicable to this embodiment is first described. Taking the game scene as a racing scene as an example, a graphical user interface of the game is provided through a terminal device. Refer to Figure 1 As shown, the graphical user interface includes at least a part of the game scene, a player's virtual vehicle 101 (usually a player's virtual character is carried on the virtual vehicle), a virtual road 102 where the player's virtual vehicle 101 is located, a road center line 103 of the virtual road 102, and a mini-map 104 corresponding to the game scene. The mini-map 104 includes an icon identifier 1041 of the player's virtual vehicle 101 in the mini-map 104 ( Figure 1 In the figure, it is a triangular icon, and the upward corner of the triangular icon points to the driving direction of the player's virtual vehicle 101), a scaled-down road 1042 corresponding to the virtual road 102 in the mini-map 104, and a road center line 1043 of the scaled-down road 1042.

[0043] In the above game scenes, if the mini-map is a plane graphic, players can intuitively know the distribution of curves and straight roads in the virtual road of the game scene through the plane distribution of the miniature roads on the mini-map, so as to plan the direction and route of the player's virtual vehicle. However, for some game scenes with undulating terrain, it is impossible to directly know more information such as the undulations of the virtual road in the game scene through the plane distribution of the mini-roads on the mini-map. Figure 3 The method of using a three-dimensional model, that is, the mini-map uses three-dimensional graphics. Although players can obtain various information about the virtual road through the mini-map, the modeling process of this method is complicated, and the amount of data processing involved in updating the mini-map is large; in addition, since players usually only need to obtain a few key information about the virtual road, this method will require players to accurately identify the required information from the complex three-dimensional graphic information with the naked eye, which will occupy too much of the player's attention in the game, resulting in a poor gaming experience for the player.

[0044] Based on the above, the embodiments of the present application provide a method, device, electronic device and storage medium for processing a virtual road. This technology can be applied to the above-mentioned game scenarios, or game scenarios of other racing games.

[0045] In one embodiment of the present application, the virtual road processing method can be executed on a terminal device or a server. The terminal device can be a local terminal device. When the virtual road processing method is executed on a server, the method can be implemented and executed based on a cloud interaction system, which includes a server and a client device.

[0046] In an optional embodiment, various cloud applications, such as cloud gaming, can be run under the cloud interaction system. Taking cloud gaming as an example, cloud gaming refers to a gaming method based on cloud computing. In the cloud gaming operating mode, the operating body of the game program and the main body presenting the game screen are separated. The storage and operation of the virtual road processing method are completed on the cloud gaming server. The client device is used to receive and send data and present the game screen. For example, the client device can be a display device with data transmission capabilities close to the user, such as a mobile terminal, television, computer, PDA, etc.; however, the terminal device performing information processing is the cloud gaming server in the cloud. When playing the game, the player operates the client device to send operation instructions to the cloud gaming server. The cloud gaming server runs the game according to the operation instructions, encodes and compresses the game screen and other data, and returns it to the client device via the network. Finally, the client device decodes and outputs the game screen.

[0047] In an optional embodiment, the terminal device can be a local terminal device. Taking a game as an example, the local terminal device stores the game program and is used to present the game screen. The local terminal device is used to interact with the player through a graphical user interface, that is, conventionally downloading and installing the game program through an electronic device and running it. The local terminal device can provide the graphical user interface to the player in various ways, for example, it can be rendered and displayed on the terminal display, or provided to the player through holographic projection. For example, the local terminal device may include a display screen and a processor, the display screen is used to present the graphical user interface, the graphical user interface including the game screen, and the processor is used to run the game, generate the graphical user interface, and control the display of the graphical user interface on the display screen.

[0048] In one possible implementation, an embodiment of the present invention provides a method for processing a virtual road, wherein a graphical user interface is provided via a terminal device, which may be the aforementioned local terminal device or a client device in the aforementioned cloud interaction system. The graphical user interface provided via the terminal device includes at least a portion of a game scene, a player's virtual vehicle, and a mini-map corresponding to the game scene.

[0049] The present application provides Figure 2 A schematic diagram of an implementation environment is shown. This implementation environment may include: a first terminal device, a game server, and a second terminal device. The first and second terminal devices each communicate with the server to implement data communication. In this embodiment, the first and second terminal devices are each installed with a client that executes the game progress display method provided in this application, and the game server is the server-side that executes the virtual road processing method provided in this application. Through the client, the first and second terminal devices can each communicate with the game server.

[0050] Taking the first terminal device as an example, the first terminal device establishes communication with the game server by running a client. In an optional implementation, the server establishes a game session according to the game request of the client. Among them, the parameters of the game session can be determined according to the parameters in the received game request. For example, the parameters of the game session can include the number of people participating in the game session, the character levels of the people participating in the game session, etc. When the first terminal device receives the response from the server, it displays the virtual scene corresponding to the game session through the graphical user interface of the first terminal device. In an optional implementation, the server determines a target game session for the client from multiple established game sessions according to the game request of the client. When the first terminal device receives the response from the server, it displays the virtual scene corresponding to the game session through the graphical user interface of the first terminal device. The first terminal device is a device controlled by the first user, and the virtual object displayed in the graphical user interface of the first terminal device is the player virtual vehicle controlled by this first user. The first user inputs operation instructions through the graphical user interface to control the player character to perform corresponding operations in the virtual scene.

[0051] Taking the second terminal device as an example, the second terminal device establishes communication with the game server by running a client. In an optional implementation, the server establishes a game session according to the game request of the client. Among them, the parameters of the game session can be determined according to the parameters in the received game request. For example, the parameters of the game session can include the number of people participating in the game session, the character levels of the people participating in the game session, etc. When the second terminal device receives the response from the server, it displays the virtual scene corresponding to the game session through the graphical user interface of the second terminal device. In an optional implementation, the server determines a target game session for the client from multiple established game sessions according to the game request of the client. When the second terminal device receives the response from the server, it displays the virtual scene corresponding to the game session through the graphical user interface of the second terminal device. The second terminal device is a device controlled by the second user, and the virtual object displayed in the graphical user interface of the second terminal device is the player virtual vehicle controlled by this second user. The second user inputs operation instructions through the graphical user interface to control the player virtual vehicle to perform corresponding operations in the virtual scene.

[0052] The server performs data calculations based on the game data reported by receiving the first terminal device and the second terminal device, and synchronizes the calculated game data to the first terminal device and the second terminal device, so that the first terminal device and the second terminal device control the rendering of the corresponding virtual scene and / or virtual object in the graphical user interface according to the synchronized data sent by the server.

[0053] In this embodiment, the virtual object controlled by the first terminal device and the virtual object controlled by the second terminal device are virtual objects in the same game match. The virtual object controlled by the first terminal device and the virtual object controlled by the second terminal device can have the same vehicle attributes or different vehicle attributes. The vehicle attributes can include configuration parameters that affect vehicle performance, or information such as the vehicle's brand and model.

[0054] It should be noted that the virtual objects in the current game match may include two or more virtual objects, and different virtual objects may correspond to different terminal devices. That is to say, in the current game match, there are more than two terminal devices that send and synchronize game data with the game server respectively.

[0055] To facilitate understanding of this embodiment, a method for controlling a virtual character disclosed in an embodiment of the present application is first introduced in detail.

[0056] The embodiment of the present application provides a method for processing a virtual road, which is applied to a terminal device (such as a mobile phone, computer, pad, etc.), and provides a graphical user interface of a game through the terminal device. The graphical user interface includes at least a part of the game scene, the player's virtual vehicle and a small map corresponding to the game scene. The small map is a plane graphic. Figure 3 The flowchart of a method for processing a virtual road is shown in FIG. 1 . The execution subject of the method is described using the above-mentioned terminal device as an example. The method includes the following steps:

[0057] Step S302 , in response to a driving operation on the player's virtual vehicle, controlling the player's virtual vehicle to execute a movement action corresponding to the driving operation.

[0058] The aforementioned driving operations can be touch operations (such as sliding a finger on a mobile control, pressing a finger on a designated area, etc.), or non-touch operations (such as pressing a designated key on a keyboard, clicking a designated area with a mouse, etc.), and there is no limitation on this. The aforementioned movement actions can be forward, backward, turning, accelerating, braking, drifting, etc., and can be defined according to the actual situation of the game and there is no limitation on this.

[0059] Step S304, in response to the movement of the player's virtual vehicle in the game scene, obtaining terrain prompt information of the first virtual road where the player's virtual vehicle is located after the movement; wherein the terrain prompt information includes at least one of the following: slope prompt information, flatness prompt information, and width prompt information.

[0060] The slope prompt information is used to indicate the slope of the first virtual road (such as the road slope angle, whether the road is uphill or downhill, etc.); the flatness prompt information is used to indicate the flatness of the first virtual road (such as whether the road is flat, the distribution of road depressions, the distribution of road protrusions, or the road type, such as mountain road or highway, etc.); and the width prompt information is used to indicate the width of the first virtual road (such as whether the road width has changed, whether the road width has changed from large to small, or from small to large, etc.). In addition, the form of the terrain prompt information may include text, graphics, etc., which can be determined according to actual circumstances and is not limited to this.

[0061] Step S306: Displaying a second virtual road with terrain prompt information on the mini-map; wherein the second virtual road and the first virtual road correspond to the same virtual road in the game scene.

[0062] For the convenience of description, Figure 1 and Figure 4 The above steps 302 to 306 are described using as an example. Figure 4 The minimap shown is the same as Figure 1 The display position of the small map in the graphical user interface can correspond to the game scene shown in Figure 1 The location of the small and medium maps 104 is the same, and can also be Figure 1 The locations of the small and medium maps 104 are different and are not limited to this; the player performs a driving operation on the player's virtual vehicle 101 (such as pressing a specified key on the keyboard), and the terminal device responds to the driving operation and controls the player's virtual vehicle 101 to move in the game scene according to the movement action corresponding to the driving operation, and obtains the terrain prompt information of the virtual road 102 (i.e., the first virtual road) where the player's virtual vehicle 101 is located after the movement, and then Figure 4 The mini-map shown displays a virtual road 2042 (i.e., a second virtual road) with the terrain prompt information. The virtual road 2042 and the virtual road 102 correspond to the same virtual road in the game scene. The terrain prompt information is slope prompt information. The slope prompt information uses the road width of the virtual road 2042 to gradually decrease, indicating that the first virtual road 102 is downhill. To further improve the recognition of the slope prompt information, the slope prompt information may also include auxiliary prompt indicators, such as Figure 4 The slope prompt information further uses the word “downhill” 2044 as an auxiliary prompt mark to further indicate that the first virtual road 102 is downhill.

[0063] also, Figure 4 The mini-map shown may also include an icon 2041 ( Figure 4In the middle is a triangular icon, and the upward corner of the triangular icon points to the driving direction of the player's virtual vehicle 101) and the road center line 2043 of the virtual road 2042; among them, the shape of the road center line 2043 can be the same as Figure 1 the shape of the road center line 1043 in Figure 1 completely the same; the icon identifier 2041 can be the same as Figure 1 the icon identifier 1041 in

[0064] or different from the icon identifier 1041 in

[0065] Moreover, the shape, size, color, transparency, position, etc. of the icon identifier 2041 and the icon identifier 1041 can all be customized according to the actual situation of the game, and no limitations are imposed on this.

[0066] Take Figure 1 and Figure 4 as an example. Figure 1 In Figure 4 Figure 1 , the player's virtual vehicle 101 is controlled to drive along the virtual road 102 (i.e., the first virtual road), that is, the driving direction of the player's virtual vehicle 101 is the extension direction of the virtual road 102. The player's virtual vehicle 101 reaches a position every time it travels a certain distance. The terminal device can determine a specified section in front of the position reached by the player's virtual vehicle 101 as Figure 4The virtual road 2042 (i.e., the second virtual road) in the mini-map shown corresponds to a road section in the game scene. In addition to the road section on the virtual road 102, the road section can also include sections on other virtual roads in front of the virtual road 102. It can be customized according to the actual situation of the game and is not limited to this. Afterwards, the terminal device will obtain the preset slope parameter of the road section as downhill, and determine the slope prompt information used to prompt that the road section is downhill as the terrain prompt information of the first virtual road.

[0067] By adopting this implementation, the display content of the mini-map can be updated according to the real-time position information of the player's virtual vehicle, further ensuring the accuracy of the terrain prompt information, so that the player can accurately know the real-time terrain conditions of the virtual road in the game scene according to the terrain prompt, and then adjust the game operation in a targeted manner, thereby improving the player's gaming experience.

[0068] As another possible implementation, the terrain parameters may also include road types (such as mountain roads, highways, etc.). Accordingly, the operation method for determining the terrain prompt information of the first virtual road based on the terrain parameters of the first virtual road may be adaptively adjusted, thereby indicating the road type of the virtual road in the game scene through the terrain prompt information.

[0069] As a possible implementation, the above-mentioned step S306 (i.e., displaying the second virtual road with terrain prompt information on the minimap) may include the following operation methods: determining the labeling information of the second virtual road according to the terrain prompt information; and displaying the second virtual road with the labeling information on the minimap.

[0070] The above-mentioned annotation information can be in the form of graphic annotation information, text annotation information, etc., and can be defined according to the actual situation of the game, and there is no limitation on this.

[0071] Specifically, the above-mentioned step of determining the annotation information of the second virtual road based on the terrain prompt information may include the following operation method: determining the graphic annotation information and / or text annotation information of the second virtual road based on the terrain prompt information; wherein the graphic annotation information includes at least one of the following: road width, road color, road transparency and the icon identification of the player's virtual vehicle in the minimap; the text annotation information includes at least one of the following: altitude parameter, slope type and road grade, and the road grade represents the flatness of the road and / or the width of the road.

[0072] For example, Figure 1 and Figure 4 , Figure 1 The terrain prompt information of the virtual road 102 (ie, the first virtual road) is the slope prompt information. After the terminal device obtains the slope prompt information, it can determine Figure 4The graphic annotation information of the virtual road 2042 (i.e., the second virtual road) in the mini-map shown includes the road width (i.e., the road width of the virtual road 2042 gradually decreases from large to small) and the icon mark 2041 ( Figure 4 The triangle icon is in the middle, and the upward corner of the triangle icon points to the direction of travel of the player's virtual vehicle 101), and determines Figure 4 The textual annotation information of the virtual road 2042 in the mini-map shown includes the slope type (i.e., the word "downhill" 2044, indicating that the slope type of the virtual road 2042 is downhill), and the virtual road 2042 with the graphic annotation information and the textual annotation information is displayed on the mini-map.

[0073] For example, Figure 1 and Figure 5 ,and Figure 4 similar, Figure 5 The mini-map shown also matches Figure 1 The game scene shown corresponds to, for the sake of simplicity, Figure 5 Zhongyu Figure 4 The repeated description of related content will not be repeated here. Figure 1 The terrain prompt information of the virtual road 102 (ie, the first virtual road) is the flatness prompt information. After obtaining the flatness prompt information, the terminal device can determine Figure 5 The graphic annotation information of the virtual road 2042 (i.e., the second virtual road) in the mini-map shown includes the road width (i.e., the road width of the virtual road 2042 gradually decreases from large to small) and the icon mark 2045 ( Figure 5 The triangle icon is in the middle, and the upward corner of the triangle icon points to the direction of travel of the player's virtual vehicle 101. The width of the triangle icon is Figure 4 The width of the triangle icon is equal to that of the Figure 4 The height of the triangle icon in the middle) and confirm Figure 5 The textual annotation information of the virtual road 2042 in the mini-map shown includes the road level (i.e., the words "second level" 2046 and "first level" 2047, respectively indicating the flatness of two different sections of the virtual road 2042, and the flatness corresponding to the words "second level" 2046 is greater than the flatness corresponding to the words "first level" 2047), and the virtual road 2042 with the graphic annotation information and the textual annotation information is displayed on the mini-map.

[0074] For example, Figure 1 and Figure 6 ,and Figure 4 similar, Figure 6 The mini-map shown also matches Figure 1Corresponding to the game scene shown, for the sake of concise description, Figure 6 in Figure 4 The relevant content that is repeated is not described here again. Figure 1 In Figure 1 , the terrain hint information of the virtual road 102 (i.e., the first virtual road) is the width hint information. After the terminal device obtains this width hint information, it can determine Figure 6 In the small map shown in Figure 6 , the graphic annotation information of the virtual road 2042 (i.e., the second virtual road) includes the road width (i.e., the road width of the virtual road 2042 gradually decreases from large to small) and the icon identification 2045 of the player's virtual vehicle 101 in this small map ( Figure 6 is a triangle icon in Figure 6 , and the upward corner of this triangle icon points to the driving direction of the player's virtual vehicle 101, and the width of this triangle icon is less than Figure 1 the width of the triangle icon in Figure 1 is equal, but the height of this triangle icon is the same as Figure 1 the height of the triangle icon in Figure 1 ), and determine Figure 6 In the small map shown in Figure 6 , the text annotation information of the virtual road 2042 includes the road level (i.e., the word "second level" 2049 and the word "first level" 2050, which respectively represent the width of two different sections of the virtual road 2042, and the width corresponding to the word "second level" 2049 is greater than the width corresponding to the word "first level" 2050), and display the virtual road 2042 with this graphic annotation information and this text annotation information on this small map.

[0075] Adopting this implementation manner, the virtual road shown in the small map can be annotated with graphics and / or text, which further improves the intuitiveness of the small map for hinting the terrain of the virtual road, so that the player can directly know the terrain of the virtual road in the game scene according to the annotation information, and then adjust the game operation accordingly, thereby improving the player's game experience.

[0076] As a possible implementation manner, the above terrain hint information includes slope hint information; the operation of obtaining the terrain hint information of the first virtual road at the position where the player's virtual vehicle is located after moving in step S304 may include the following: obtaining the altitude parameter of the first virtual road at the position where the player's virtual vehicle is located after moving from the configuration information of the first virtual road; determining the slope hint information corresponding to the first virtual road according to the altitude parameter of the first virtual road.

[0077] The above configuration information is the information configured for all virtual roads in the game scene when designing the game scene, and this configuration information at least includes altitude parameters. Exemplarily, for example Figure 1 , Figure 1In the embodiment, when the player's virtual vehicle 101 is traveling along the virtual road 102 (i.e., the first virtual road), the terminal device will obtain the altitude parameter of the virtual road 102. If the altitude parameter value of the road section where the player's virtual vehicle 101 is located after the movement is less than the altitude parameter value of the road section where the player's virtual vehicle 101 is located before the movement, the slope prompt information corresponding to the virtual road 102 is determined to be prompt information for downhill driving; if the altitude parameter value of the road section where the player's virtual vehicle 101 is located after the movement is greater than the altitude parameter value of the road section where the player's virtual vehicle 101 is located before the movement, the slope prompt information corresponding to the virtual road 102 is determined to be prompt information for uphill driving.

[0078] By adopting this implementation, the altitude parameters of the virtual road where the player's virtual vehicle is located can be obtained in real time from the preset configuration information of the game, and the slope prompt information corresponding to the virtual road can be determined based on the altitude parameters, further improving the efficiency of obtaining the slope prompt information, thereby ensuring the real-time display of the slope prompt information on the mini-map.

[0079] As a possible implementation manner, the above-mentioned determination of the slope prompt information corresponding to the first virtual road based on the altitude parameters of the first virtual road may include the following operation method: determining the slope prompt information corresponding to the altitude parameters of the first virtual road based on a preset correspondence between the altitude parameters and the slope prompt information; wherein the slope prompt information is represented in at least one of the following ways: road width, road color, road transparency, and an icon mark of the player's virtual vehicle in the minimap.

[0080] Specifically, the correspondence between the altitude parameter and the slope prompt information may include at least one of the following: a positive correlation between the altitude parameter and road width, a positive correlation between the altitude parameter and the chromaticity of the road color, a negative correlation between the altitude parameter and the road transparency, or a positive correlation between the altitude parameter and the size of the icon of the player's virtual vehicle on the minimap. Furthermore, the correspondence between the altitude parameter and the slope prompt information may include other correlations, which can be customized based on the actual gameplay situation and are not limited to these.

[0081] Based on this, displaying the second virtual road with terrain prompt information on the minimap in the above step S306 may include the following operation methods: if the slope prompt information includes road width, the second virtual road is displayed on the minimap according to the determined road width of the first virtual road; if the slope prompt information includes road color, the second virtual road is displayed on the minimap according to the determined road color of the first virtual road; if the slope prompt information includes road transparency, the second virtual road is displayed on the minimap according to the determined road transparency of the first virtual road; if the slope prompt information includes an icon mark of the player's virtual vehicle in the minimap, the icon mark is displayed on the minimap according to the determined icon mark.

[0082] For example, Figure 7 a shows a positive correlation diagram between altitude parameters and road width, where the horizontal axis is road width and the vertical axis is altitude parameters; Figure 7 b shows a positive correlation diagram between the altitude parameter and the chromaticity of the road color, where the horizontal axis is the chromaticity of the road color and the vertical axis is the altitude parameter. Figure 7 a and Figure 7 b shows the relationship diagram, for example Figure 1 and Figure 8 ,and Figure 4 similar, Figure 8 The mini-map shown also matches Figure 1 The game scene shown corresponds to, for the sake of simplicity, Figure 8 Zhongyu Figure 4 The repeated description of related content will not be repeated here. Figure 1 In the game, the player's virtual vehicle 101 travels along the virtual road 102 (i.e., the first virtual road). After the terminal device obtains the altitude parameter of the virtual road 102 from the configuration information of the virtual road 102, it will Figure 7 a and Figure 7 b) determines the road width of the virtual road 102 and the road color of the virtual road 102, and Figure 8 The minimap displays a virtual road 2042 having the specified road width and color. The slope indication is represented by the road width and color. The decreasing width and chromaticity of virtual road 2042 indicate the decreasing altitude parameter value of virtual road 102. This operation allows the virtual road displayed on the minimap to intuitively reflect the altitude parameter of the corresponding virtual road in the game scene, making the minimap slope indication more intuitive.

[0083] In addition, as a feasible operation method, the altitude parameter can be defined as being positively correlated with the size of the icon of the player's virtual vehicle in the minimap, that is, the larger the altitude parameter value, the larger the icon of the player's virtual vehicle in the minimap. For example, the change in the altitude parameter value is defined as the difference between the altitude parameter value of the road section where the player's virtual vehicle is located after the movement and the altitude parameter value of the road section where the player's virtual vehicle is located before the movement, and the change in the altitude parameter value is defined as being positively correlated with the height of the icon, that is, the larger the change in the altitude parameter value, the larger the height of the icon. For example, continuing from the previous example Figure 8 , Figure 8In the mini - map shown, the slope prompt information is also represented by the icon identifier 2051 of the player's virtual vehicle 101 in this mini - map. Among them, the icon identifier 2051 is a triangle icon, and the upward corner of the triangle icon points to the driving direction of the player's virtual vehicle 101; if as the player's virtual vehicle travels, the altitude parameter value of the real - time position of the player's virtual vehicle becomes smaller and smaller, the icon identifier 2051 in the mini - map will correspondingly become smaller and smaller, and vice versa; if as the player's virtual vehicle travels, the change amount of the altitude parameter value of the real - time position of the player's virtual vehicle becomes larger and larger, the height of the icon identifier 2051 in the mini - map will correspondingly become smaller and smaller, and vice versa. By adopting this operation method, the altitude parameters of the corresponding virtual roads in the game scene can be intuitively reflected through the icon identifier of the player's virtual vehicle in the mini - map, enhancing the display effect of the mini - map while improving the intuitiveness of the slope prompt in the mini - map.

[0084] As another feasible operation method, a corresponding relationship can also be established between the road color and the uphill and downhill of the first virtual road. For example, when the road color is red, it corresponds to the first virtual road being uphill, and when the road color is green, it corresponds to the first virtual road being downhill. Correspondingly, on the mini - map, the road color of the second virtual road is used to indicate whether the first virtual road is uphill or downhill.

[0085] As a possible implementation manner, the above - mentioned method for processing virtual roads may further include: displaying the altitude parameter of the first virtual road on the mini - map. Exemplarily, for example Figure 8 , Figure 8 In the mini - map shown, there are also words "Altitude 118", "Altitude 110", and "Altitude 102" marked beside the virtual road 2042, representing the magnitudes of the altitude parameter values of the virtual road 2042 at three different road sections. In addition, in order to further improve the recognition of the altitude parameter value on the mini - map, the altitude parameter value can also be marked beside the corresponding road section of the virtual road 2042 by means of auxiliary leads.

[0086] As a possible implementation manner, the above - mentioned graphical user interface may further include: a terrain prompt control; based on this, the above - mentioned method for processing virtual roads may further include: responding to the opening operation for the terrain prompt control, enabling the terrain prompt function corresponding to the terrain prompt control; when the terrain prompt function is in the enabled state, performing the steps of obtaining the terrain prompt information of the first virtual road where the moved virtual vehicle is located and displaying the second virtual road with terrain prompt information on the mini - map.

[0087] The above - mentioned opening operation may specifically be a touch operation (such as a finger - pressing operation on the terrain prompt control, etc.), or a non - touch operation (such as a mouse - clicking operation on the terrain prompt control, etc.), and no limitation is imposed on this. Exemplarily, based on Figure 1, taking Figure 8 and Figure 9 as an example, Figure 9 a terrain hint control 105 is set at the lower left corner of the mini - map 104 on the graphical user interface shown ([ Figure 9 in is a circular icon with the words "terrain hint"), and the player can click on the terrain hint control 105 with the mouse to trigger the terminal device to turn on or off the terrain hint function corresponding to the terrain hint control 105; when the terrain hint function of the terminal device is in the off state, the mini - map will be displayed in the style of the Figure 1 mini - map 104 in; when the terrain hint function of the terminal device is in the on state, it will obtain the terrain hint information of the section in front of the position of the player's virtual vehicle 101 on the virtual road 102 (i.e., the first virtual road) and display the virtual road 2042 (i.e., the second virtual road with terrain hint information) on the mini - map, that is, change the mini - map from the Figure 1 style shown by the mini - map 104 in to the Figure 8 style shown. At this time, the terrain hint is slope hint information, and in the slope hint information, the road width of the virtual road 2042 becomes smaller from large and the chroma of the road color of the virtual road 2042 becomes smaller from large to indicate that the first virtual road 102 is going downhill.

[0088] Adopting this implementation method, the player can decide whether to turn on or off the terrain hint function according to the actual needs of the game, improving the flexibility of the terrain hint on the mini - map, and enabling the above - mentioned processing method of the virtual road to be compatible with the mini - map display method of existing games.

[0089] Based on the above - mentioned processing method of the virtual road, an embodiment of the present application further provides a processing device for the virtual road. Refer to Figure 10 shown, this device includes the following modules:

[0090] A driving control module 1002, configured to respond to a driving operation for the player's virtual vehicle and control the player's virtual vehicle to perform a moving action corresponding to the driving operation.

[0091] A hint information acquisition module 1004, configured to respond to the movement of the player's virtual vehicle in the game scene and acquire the terrain hint information of the first virtual road at the position of the player's virtual vehicle after movement; wherein, the terrain hint information includes at least one of the following: slope hint information, flatness hint information, and width hint information.

[0092] A virtual road display module 1006, configured to display a second virtual road with the terrain hint information on the mini - map; wherein, the second virtual road corresponds to the same virtual road in the game scene as the first virtual road.

[0093] A processing device for virtual roads provided by an embodiment of the present application. The above small map is in the form of a planar graph. When the player's virtual vehicle moves in the game scene, the prompt information acquisition module acquires the terrain prompt information of the first virtual road at the position where the moved player's virtual vehicle is located, and the virtual road display module displays the second virtual road with the terrain prompt information on the small map corresponding to the game scene in the form of a planar graph. By adopting the above technology, it is convenient for players to intuitively obtain relatively rich prompt information about the terrain of virtual roads through the small map. Moreover, since the small map is a planar graph, the data processing volume involved in updating the small map is small, and the data burden on the game device is light. Therefore, while improving the intuitiveness and richness of the information presented on the small map, the update efficiency of the small map is ensured, effectively alleviating the problem of excessive data processing volume involved in updating the small map in three-dimensional form, thereby improving the player's gaming experience.

[0094] The above prompt information acquisition module 1004 is further configured to: determine the second virtual road to be displayed in the small map according to the first virtual road at the position where the moved player's virtual vehicle is located and the driving direction of the player's virtual vehicle; determine the terrain prompt information of the first virtual road according to the terrain parameters of the first virtual road; wherein, the terrain parameters include at least one of the following: altitude parameter, slope parameter, flatness parameter, and width parameter.

[0095] The above virtual road display module 1006 is further configured to: determine the annotation information of the second virtual road according to the terrain prompt information; display the second virtual road with the annotation information on the small map.

[0096] The above virtual road display module 1006 is further configured to: determine the graphic annotation information and / or text annotation information of the second virtual road according to the terrain prompt information; wherein, the graphic annotation information includes at least one of the following: road width, road color, road transparency, and the icon identification of the player's virtual vehicle in the small map; the text annotation information includes at least one of the following: altitude parameter, slope type, and road grade, and the road grade represents the flatness and / or the width of the road.

[0097] The above terrain prompt information includes the above slope prompt information. Based on this, the above prompt information acquisition module 1004 is further configured to: obtain the altitude parameter of the first virtual road at the position where the moved player's virtual vehicle is located from the configuration information of the first virtual road; determine the slope prompt information corresponding to the first virtual road according to the altitude parameter of the first virtual road.

[0098] The above-mentioned prompt information acquisition module 1004 is further configured to: determine the slope prompt information corresponding to the altitude parameter of the first virtual road according to the preset correspondence between the altitude parameter and the slope prompt information; wherein, the slope prompt information is represented by at least one of the following manners: road width, road color, road transparency, and the icon identification of the player's virtual vehicle in the mini-map.

[0099] The above-mentioned correspondence between the altitude parameter and the slope prompt information includes at least one of the following: the altitude parameter is positively correlated with the road width, the altitude parameter is positively correlated with the chromaticity of the road color, the altitude parameter is negatively correlated with the road transparency, and the altitude parameter is positively correlated with the size of the icon identification of the player's virtual vehicle in the mini-map.

[0100] The above-mentioned virtual road display module 1006 is further configured to: if the slope prompt information includes the road width, display the second virtual road on the mini-map with the determined road width of the first virtual road; if the slope prompt information includes the road color, display the second virtual road on the mini-map with the determined road color of the first virtual road; if the slope prompt information includes the road transparency, display the second virtual road on the mini-map with the determined road transparency of the first virtual road; if the slope prompt information includes the icon identification of the player's virtual vehicle in the mini-map, display the icon identification on the mini-map according to the determined icon identification.

[0101] Based on the above Figure 10 shown virtual road processing device, an embodiment of the present application further provides another virtual road processing device, see Figure 11 shown, the device further includes the following modules:

[0102] An altitude parameter display module 1008, configured to display the altitude parameter of the first virtual road on the mini-map.

[0103] A terrain prompt function module 1010, configured to respond to an opening operation of a terrain prompt control on the graphical user interface, and turn on the terrain prompt function corresponding to the terrain prompt control;

[0104] A trigger module 1012, configured to, when the terrain prompt function is in an on state, trigger the above-mentioned prompt information acquisition module 1004 to execute the above-mentioned step of acquiring the terrain prompt information of the first virtual road at the position where the player's virtual vehicle is located after moving, and trigger the above-mentioned virtual road display module 1006 to execute the above-mentioned step of displaying the second virtual road with the terrain prompt information on the mini-map.

[0105] For the sake of brief description, for matters not mentioned in the embodiment of the virtual road processing device, reference may be made to the corresponding contents in the aforementioned embodiment of the virtual road processing method.

[0106] The above-mentioned virtual road processing device obtains terrain prompt information of the first virtual road at the location of the player's virtual vehicle after the movement through the prompt information acquisition module when the player's virtual vehicle moves in the game scene; displays the second virtual road with the terrain prompt information in a plane graphic on the small map corresponding to the game scene through the virtual road display module; displays the altitude parameters of the first virtual road on the small map through the altitude parameter display module; turns on the terrain prompt function corresponding to the terrain prompt control on the graphical user interface through the terrain prompt function module when the player turns on the terrain prompt control; triggers the prompt information acquisition module to obtain the terrain prompt information of the first virtual road at the location of the player's virtual vehicle after the movement through the trigger module when the terrain prompt function is in the turned-on state, and triggers the virtual road display module to display the second virtual road with the terrain prompt information on the small map. The aforementioned virtual road processing device allows players to intuitively access a wealth of virtual road terrain information through a minimap. Since the minimap is a two-dimensional graphic, updating it requires minimal data processing, placing a light data burden on gaming devices. This improves the intuitiveness and richness of the information presented on the minimap while ensuring efficient updates. This effectively alleviates the excessive data processing required to update a three-dimensional minimap, thereby enhancing the player's gaming experience. Furthermore, players can enable or disable terrain prompts based on their gaming needs, increasing the flexibility of minimap terrain prompts and making the device compatible with existing minimap display methods.

[0107] The present application also provides an electronic device, such as Figure 12As shown, it is a schematic structural diagram of the electronic device. Among them, the electronic device includes a processor 121 and a memory 120. The memory 120 stores computer-executable instructions that can be executed by the processor 121. The processor 121 executes the computer-executable instructions to implement the above-mentioned processing method of the virtual road. The specific content executed by the processor 121 includes: providing a graphical user interface through the electronic device, where the graphical user interface includes at least a part of the game scene, the player's virtual vehicle, and a mini-map corresponding to the game scene, and the mini-map is a planar graph; responding to the driving operation for the player's virtual vehicle, and controlling the player's virtual vehicle to perform the movement action corresponding to the driving operation; responding to the movement of the player's virtual vehicle in the game scene, and obtaining the terrain prompt information of the first virtual road at the position where the player's virtual vehicle is located after the movement; where the terrain prompt information includes at least one of the following: slope prompt information, flatness prompt information, and width prompt information; displaying a second virtual road with the terrain prompt information on the mini-map; where the second virtual road and the first virtual road correspond to the same virtual road in the game scene.

[0108] In Figure 12 In the illustrated embodiment, the electronic device 100 further includes a bus 122 and a communication interface 123. Among them, the processor 121, the communication interface 123, and the memory 120 are connected through the bus 122.

[0109] Among them, the memory 120 may include a high-speed random access memory (RAM, Random Access Memory), and may also include a non-volatile memory, such as at least one disk memory. Through at least one communication interface 123 (which can be wired or wireless), a communication connection is realized between the system network element and at least one other network element, and the Internet, wide area network, local area network, metropolitan area network, etc. can be used. The bus 122 can be an ISA (Industry Standard Architecture, industrial standard architecture) bus, a PCI (Peripheral Component Interconnect, peripheral component interconnect standard) bus, or an EISA (Extended Industry Standard Architecture, extended industrial standard structure) bus, etc. The bus 122 can be divided into an address bus, a data bus, a control bus, etc. For the sake of representation, Figure 12 only a two-way arrow is used in the figure, but it does not mean that there is only one bus or one type of bus.

[0110] The processor 121 may be an integrated circuit chip with the ability to process signals. In the implementation process, each step of the above method can be completed by the integrated logic circuit of the hardware in the processor 121 or the instructions in the form of software. The above-mentioned processor 121 may be a general-purpose processor, including a central processing unit (CPU for short), a network processor (NP for short), etc.; it may also be a digital signal processor (DSP for short), an application specific integrated circuit (ASIC for short), a field-programmable gate array (FPGA for short), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc. The steps of the virtual road processing method disclosed in combination with the embodiments of the present application can be directly embodied as being executed and completed by the hardware decoding processor, or executed and completed by a combination of the hardware and software modules in the decoding processor. The software module may be located in a mature storage medium in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. This storage medium is located in the memory, and the processor 121 reads the information in the memory and combines its hardware to complete the steps of the virtual road processing method in the foregoing embodiments.

[0111] The process by which the above-mentioned processor 121 obtains the terrain prompt information of the first virtual road at the position where the virtual vehicle of the player is located after moving includes: determining the second virtual road to be displayed in the mini-map according to the first virtual road at the position where the virtual vehicle of the player is located after moving and the driving direction of the virtual vehicle of the player; determining the terrain prompt information of the first virtual road according to the terrain parameters of the first virtual road; wherein, the terrain parameters include at least one of the following: altitude parameter, slope parameter, flatness parameter, and width parameter.

[0112] The process by which the above-mentioned processor 121 displays the second virtual road with the terrain prompt information on the mini-map includes: determining the annotation information of the second virtual road according to the terrain prompt information; displaying the second virtual road with the annotation information on the mini-map.

[0113] The process by which the processor 121 determines the annotation information of the second virtual road based on the terrain prompt information includes: determining the graphic annotation information and / or text annotation information of the second virtual road based on the terrain prompt information; wherein the graphic annotation information includes at least one of the following: road width, road color, road transparency and the icon identification of the player's virtual vehicle in the minimap; the text annotation information includes at least one of the following: altitude parameter, slope type and road grade, and the road grade characterizes the flatness of the road and / or the width of the road.

[0114] The above-mentioned terrain prompt information includes the slope prompt information; the process in which the above-mentioned processor 121 obtains the terrain prompt information of the first virtual road where the player's virtual vehicle is located after moving includes: obtaining the altitude parameters of the first virtual road where the player's virtual vehicle is located after moving from the configuration information of the first virtual road; and determining the slope prompt information corresponding to the first virtual road according to the altitude parameters of the first virtual road.

[0115] The process by which the processor 121 determines the slope prompt information corresponding to the first virtual road based on the altitude parameters of the first virtual road includes: determining the slope prompt information corresponding to the altitude parameters of the first virtual road based on a preset correspondence between the altitude parameters and the slope prompt information; wherein the slope prompt information is represented in at least one of the following ways: road width, road color, road transparency, and the icon identification of the player's virtual vehicle in the minimap.

[0116] The correspondence between the above-mentioned altitude parameter and slope prompt information includes at least one of the following: the altitude parameter is positively correlated with the road width, the altitude parameter is positively correlated with the chromaticity of the road color, the altitude parameter is negatively correlated with the road transparency, and the altitude parameter is positively correlated with the size of the icon of the player's virtual vehicle in the minimap.

[0117] The process of the processor 121 displaying the second virtual road with the terrain prompt information on the minimap includes: if the slope prompt information includes the road width, the second virtual road is displayed on the minimap according to the determined road width of the first virtual road; if the slope prompt information includes the road color, the second virtual road is displayed on the minimap according to the determined road color of the first virtual road; if the slope prompt information includes the road transparency, the second virtual road is displayed on the minimap according to the determined road transparency of the first virtual road; if the slope prompt information includes the icon identifier of the player's virtual vehicle in the minimap, the icon identifier is displayed on the minimap according to the determined icon identifier.

[0118] Based on the above method for processing virtual roads, the specific operations performed by the above-mentioned processor 111 may further include: displaying the altitude parameter of the first virtual road on the mini-map.

[0119] Based on the above method for processing virtual roads, the specific operations performed by the above-mentioned processor 111 may further include: providing a terrain hint control on the graphical user interface; in response to an activation operation for the terrain hint control, activating the terrain hint function corresponding to the terrain hint control; and when the terrain hint function is in an activated state, performing the steps of obtaining the terrain hint information of the first virtual road where the moved player virtual vehicle is located and displaying the second virtual road with the terrain hint information on the mini-map.

[0120] The above game scenario is a racing scenario.

[0121] The electronic device provided in the embodiment of the present application, when the player virtual vehicle moves in the game scenario, obtains the terrain hint information of the first virtual road where the moved player virtual vehicle is located, and displays the second virtual road with the terrain hint information in a planar graph on the mini-map corresponding to the game scenario. By using the above electronic device, it is convenient for the player to intuitively obtain relatively rich hint information about the virtual road terrain through the mini-map, and since the mini-map is a planar graph, the data processing amount involved in updating the mini-map is small, and the data burden on the game device is light. Therefore, while improving the intuitiveness and richness of the information presented on the mini-map, the update efficiency of the mini-map is ensured, effectively alleviating the problem of excessive data processing amount involved in updating the mini-map in a three-dimensional form, thereby improving the player's game experience.

[0122] In addition, the above electronic device may further provide a terrain hint control on the graphical user interface, activate the terrain hint function corresponding to the terrain hint control when the player performs an activation operation on the terrain hint control on the graphical user interface, and perform the steps of obtaining the terrain hint information of the first virtual road where the moved player virtual vehicle is located and displaying the second virtual road with the terrain hint information in a planar graph on the mini-map corresponding to the game scenario when the terrain hint function is in an activated state. By this way of providing terrain hints based on the activation of the terrain hint function, the player can decide whether to activate or deactivate the terrain hint function according to the actual needs of the game, improving the flexibility of the terrain hint on the mini-map and enabling the above electronic device to be compatible with the existing mini-map display method of the game.

[0123] An embodiment of the present application further provides a computer-readable storage medium storing computer-executable instructions. When the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to implement the above-mentioned virtual road processing method. For specific implementation, please refer to the aforementioned method embodiment and will not be repeated here.

[0124] The computer program product of the virtual road processing method, device and electronic device provided in the embodiments of the present application includes a computer-readable storage medium storing program code, and the instructions included in the program code can be used to execute the method described in the previous method embodiment, for example: the instructions included in the program code can be used to provide a graphical user interface through an electronic device, the graphical user interface including at least a portion of a game scene, a player virtual vehicle and a small map corresponding to the game scene, the small map being a plane graphic; in response to a driving operation for the player virtual vehicle, controlling the player virtual vehicle to perform a moving action corresponding to the driving operation; in response to the movement of the player virtual vehicle in the game scene, obtaining terrain prompt information of a first virtual road at the location of the player virtual vehicle after the movement; wherein the terrain prompt information includes at least one of the following: slope prompt information, flatness prompt information and width prompt information; displaying a second virtual road with the terrain prompt information on the small map; wherein the second virtual road and the first virtual road correspond to the same virtual road of the game scene.

[0125] The program code includes instructions for obtaining terrain prompt information of the first virtual road at the location of the player's virtual vehicle after movement, including: determining the second virtual road to be displayed in the mini-map based on the first virtual road at the location of the player's virtual vehicle after movement and the driving direction of the player's virtual vehicle; determining the terrain prompt information of the first virtual road based on the terrain parameters of the first virtual road; wherein the terrain parameters include at least one of the following: an altitude parameter, a slope parameter, a flatness parameter, and a width parameter.

[0126] The program code includes instructions for displaying a second virtual road with the terrain prompt information on the mini-map, including: determining the labeling information of the second virtual road according to the terrain prompt information; and displaying the second virtual road with the labeling information on the mini-map.

[0127] The program code includes instructions for determining the labeling information of the second virtual road based on the terrain prompt information, including: determining graphic labeling information and / or text labeling information of the second virtual road based on the terrain prompt information; wherein the graphic labeling information includes at least one of the following: road width, road color, road transparency and the icon identification of the player's virtual vehicle in the minimap; the text labeling information includes at least one of the following: altitude parameter, slope type and road grade, and the road grade represents the flatness and / or width of the road.

[0128] The above-mentioned terrain prompt information includes the slope prompt information; the program code includes instructions for obtaining the terrain prompt information of the first virtual road where the player's virtual vehicle is located after moving, including: obtaining the altitude parameters of the first virtual road where the player's virtual vehicle is located after moving from the configuration information of the first virtual road; and determining the slope prompt information corresponding to the first virtual road based on the altitude parameters of the first virtual road.

[0129] The program code includes instructions for determining slope prompt information corresponding to the first virtual road based on the altitude parameters of the first virtual road, including: determining the slope prompt information corresponding to the altitude parameters of the first virtual road based on a preset correspondence between the altitude parameters and the slope prompt information; wherein the slope prompt information is represented in at least one of the following ways: road width, road color, road transparency, and an icon identification of the player's virtual vehicle on the minimap.

[0130] The correspondence between the above-mentioned altitude parameter and slope prompt information includes at least one of the following: the altitude parameter is positively correlated with the road width, the altitude parameter is positively correlated with the chromaticity of the road color, the altitude parameter is negatively correlated with the road transparency, and the altitude parameter is positively correlated with the size of the icon of the player's virtual vehicle in the minimap.

[0131] The program code includes instructions for displaying a second virtual road with the terrain prompt information on the minimap, including: if the slope prompt information includes the road width, displaying the second virtual road on the minimap according to the determined road width of the first virtual road; if the slope prompt information includes the road color, displaying the second virtual road on the minimap according to the determined road color of the first virtual road; if the slope prompt information includes the road transparency, displaying the second virtual road on the minimap according to the determined road transparency of the first virtual road; if the slope prompt information includes the icon identifier of the player's virtual vehicle on the minimap, displaying the icon identifier on the minimap according to the determined icon identifier.

[0132] Based on the above-mentioned method for processing a virtual road, the specific execution content of the instructions included in the program code may further include: displaying the altitude parameter of the first virtual road on the small map.

[0133] Based on the above-mentioned virtual road processing method, the specific execution content of the instructions included in the program code may also include: providing a terrain prompt control in the graphical user interface; in response to an opening operation for the terrain prompt control, opening a terrain prompt function corresponding to the terrain prompt control; when the terrain prompt function is in the turned-on state, executing the steps of obtaining terrain prompt information of the first virtual road at the position of the player's virtual vehicle after moving and displaying the second virtual road with the terrain prompt information on the minimap.

[0134] The above game scene is a racing scene.

[0135] The use of the above-mentioned computer program product can facilitate players to intuitively obtain relatively rich prompt information about virtual road terrain through the mini-map. The mini-map is a two-dimensional graphic, and the data processing involved in updating the mini-map is relatively small, and the data burden on the gaming device is relatively light. Therefore, while improving the intuitiveness and richness of the information presented by the mini-map, the updating efficiency of the mini-map is guaranteed, effectively alleviating the problem of excessive data processing involved in updating the three-dimensional mini-map, thereby improving the player's gaming experience.

[0136] In addition, the computer program product may also provide a terrain prompt control in the graphical user interface. When the player activates the terrain prompt control on the graphical user interface, the terrain prompt function corresponding to the terrain prompt control is activated. When the terrain prompt function is activated, the computer program product executes the steps of obtaining terrain prompt information of a first virtual road at the position of the player's virtual vehicle after movement and displaying a second virtual road with the terrain prompt information as a flat graphic on a mini-map corresponding to the game scene. This method of providing terrain prompts based on the activation of the terrain prompt function allows players to decide whether to activate or deactivate the terrain prompt function based on actual game needs, thereby increasing the flexibility of mini-map terrain prompts and making the computer program product compatible with existing mini-map display methods in games.

[0137] Unless otherwise specifically stated, the relative steps, numerical expressions and values of the components and steps set forth in these embodiments do not limit the scope of the present application.

[0138] When the above-mentioned functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium executable by a processor. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a part of this technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in various embodiments of this application. The foregoing storage medium includes: various media such as USB flash drives, mobile hard disks, read-only memories (ROM, Read-Only Memory), random access memories (RAM, Random Access Memory), magnetic disks, or optical discs that can store program codes.

[0139] In the description of this application, it should be noted that the orientation or positional relationship indicated by the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc. is based on the orientation or positional relationship shown in the drawings. It is only for the convenience of describing this application and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation. Therefore, it should not be construed as a limitation to this application. In addition, the terms "first", "second", "third" are only used for descriptive purposes and cannot be construed as indicating or implying relative importance.

[0140] Finally, it should be noted that the above-mentioned embodiments are only specific implementation manners of this application, used to illustrate the technical solutions of this application, rather than limiting it. The protection scope of this application is not limited thereto. Although this application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: any person skilled in the art within the technical scope disclosed in this application can still modify the technical solutions recorded in the foregoing embodiments, or can easily think of changes, or make equivalent replacements for some of the technical features; and these modifications, changes, or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of this application, and should all be covered within the protection scope of this application. Therefore, the protection scope of this application should be subject to the protection scope of the claims.

Claims

1. A method for processing a virtual road, characterized in that: Provide a graphical user interface through a terminal device; the graphical user interface includes at least a part of the game scene, the player's virtual vehicle, and a mini-map corresponding to the game scene, and the mini-map is a planar graph; the method includes: In response to a driving operation on the player's virtual vehicle, control the player's virtual vehicle to perform a moving action corresponding to the driving operation; In response to the movement of the player's virtual vehicle in the game scene, obtain terrain prompt information of a first virtual road at the position where the player's virtual vehicle is located after moving; wherein, the terrain prompt information includes at least one of the following: slope prompt information, flatness prompt information, and width prompt information; Display a second virtual road with the terrain prompt information on the mini-map; wherein, the second virtual road and the first virtual road correspond to the same virtual road in the game scene; Displaying the second virtual road with the terrain prompt information on the mini-map includes: determining annotation information of the second virtual road according to the terrain prompt information; displaying the second virtual road with the annotation information on the mini-map; wherein, the annotation information includes graphical annotation information and / or text annotation information; the graphical annotation information includes at least one of the following: road width, road color, road transparency, and the icon identification of the player's virtual vehicle in the mini-map; the text annotation information includes at least one of the following: elevation parameter, slope type, and road grade, and the road grade characterizes the flatness and / or the width of the road.

2. The method according to claim 1, wherein The obtaining the terrain prompt information of the first virtual road at the position where the player's virtual vehicle is located after moving includes: Determine the second virtual road to be displayed in the mini-map according to the first virtual road at the position where the player's virtual vehicle is located after moving and the driving direction of the player's virtual vehicle; Determine the terrain prompt information of the first virtual road according to the terrain parameters of the first virtual road; wherein, the terrain parameters include at least one of the following: elevation parameter, slope parameter, flatness parameter, and width parameter.

3. The method according to claim 1, wherein The terrain prompt information includes the slope prompt information; the obtaining the terrain prompt information of the first virtual road at the position where the player's virtual vehicle is located after moving includes: Obtain the elevation parameter of the first virtual road at the position where the player's virtual vehicle is located after moving from the configuration information of the first virtual road; Determine the slope prompt information corresponding to the first virtual road according to the elevation parameter of the first virtual road.

4. The method according to claim 3, characterized in that, Determining the slope prompt information corresponding to the first virtual road according to the elevation parameter of the first virtual road includes: Determine the slope prompt information corresponding to the elevation parameter of the first virtual road according to the preset corresponding relationship between the elevation parameter and the slope prompt information; wherein, the slope prompt information is represented in at least one of the following ways: road width, road color, road transparency, and the icon identification of the player's virtual vehicle in the mini-map.

5. The method according to claim 4, wherein The corresponding relationship between the elevation parameter and the slope prompt information includes at least one of the following: The altitude parameter is positively correlated with the road width, the altitude parameter is positively correlated with the chromaticity of the road color, the altitude parameter is negatively correlated with the road transparency, and the altitude parameter is positively correlated with the size of the icon identification of the player's virtual vehicle in the mini - map.

6. The method according to claim 4, wherein Displaying a second virtual road with the terrain prompt information on the mini - map includes: If the slope prompt information includes the road width, displaying the second virtual road on the mini - map with the determined road width of the first virtual road; If the slope prompt information includes the road color, displaying the second virtual road on the mini - map with the determined road color of the first virtual road; If the slope prompt information includes the road transparency, displaying the second virtual road on the mini - map with the determined road transparency of the first virtual road; If the slope prompt information includes the icon identification of the player's virtual vehicle in the mini - map, displaying the icon identification on the mini - map according to the determined icon identification.

7. The method according to claim 3, characterized in that The method further includes: displaying the altitude parameter of the first virtual road on the mini - map.

8. The method according to claim 1, wherein The graphical user interface further includes: a terrain prompt control; the method further includes: Responding to an opening operation for the terrain prompt control, enabling the terrain prompt function corresponding to the terrain prompt control; When the terrain prompt function is in an enabled state, performing the steps of obtaining the terrain prompt information of the first virtual road where the moved player's virtual vehicle is located and displaying a second virtual road with the terrain prompt information on the mini - map.

9. The method according to any one of claims 1 to 8, characterized in that, The game scenario is a racing scenario.

10. A processing device for a virtual road, characterized in that, Providing a graphical user interface through a terminal device; the graphical user interface includes at least a part of the game scenario, the player's virtual vehicle, and a mini - map corresponding to the game scenario, and the mini - map is a planar graph; the device includes: A driving control module, configured to respond to a driving operation for the player's virtual vehicle and control the player's virtual vehicle to perform a moving action corresponding to the driving operation; A prompt information acquisition module, configured to respond to the movement of the player's virtual vehicle in the game scenario and acquire the terrain prompt information of the first virtual road where the moved player's virtual vehicle is located; wherein, the terrain prompt information includes at least one of the following: slope prompt information, flatness prompt information, and width prompt information; A virtual road display module for displaying a second virtual road with the terrain prompt information on the mini - map; wherein, the second virtual road and the first virtual road correspond to the same virtual road in the game scene; displaying the second virtual road with the terrain prompt information on the mini - map includes: determining the annotation information of the second virtual road according to the terrain prompt information; displaying the second virtual road with the annotation information on the mini - map; wherein, the annotation information includes graphic annotation information and / or text annotation information; the graphic annotation information includes at least one of the following: road width, road color, road transparency, and the icon identification of the player's virtual vehicle on the mini - map; the text annotation information includes at least one of the following: altitude parameter, slope type, and road grade, and the road grade characterizes the flatness of the road and / or the width of the road.

11. An electronic device, characterized in that: It includes a processor and a memory, the memory stores computer - executable instructions that can be executed by the processor, and the processor executes the computer - executable instructions to implement the method according to any one of claims 1 to 9.

12. A computer-readable storage medium, characterized in that, The computer - readable storage medium stores computer - executable instructions, and when the computer - executable instructions are called and executed by the processor, the computer - executable instructions cause the processor to implement the method according to any one of claims 1 to 9.

Citation Information

Patent Citations

  • Racing game information control method and device and electronic equipment

    CN111729294A

  • Game image processing system and program

    US20180345146A1