Path processing method and device, electronic equipment, storage medium and program product
By providing a graphical user interface and risk identification in electronic games, the problem of players needing to frequently switch lenses to observe the moving path is solved, reducing operational costs and time costs, and improving the efficiency of path control.
Patent Information
- Application Number
- CN202510148343.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-10
- Publication Date
- 2025-04-11
AI Technical Summary
In electronic games, especially in strategy games, players need to frequently switch shots to observe the movement path of virtual characters in the game scene, resulting in high operational and time costs.
The terminal device provides a graphical user interface to display game scenes and virtual characters, determine the movement path in response to the movement instructions, and determine whether the path passes through the risk area, and provide risk identification.
It reduces the user's operational costs and time costs, and visualizes the risk areas on the mobile path, helping users to control virtual roles more effectively.
Smart Images

Figure CN119792937A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of electronic computers and Internet technology, and in particular to a path processing method, device, electronic device, storage medium and program product. Background Art
[0002] This section is intended to provide a background or context to the embodiments of the disclosure that are recited in the claims. No description herein is admitted to be prior art by inclusion in this section.
[0003] In electronic games, especially strategy games (Simulation Game, SLG), players control virtual characters to play games in game scenes, such as collecting resources, attacking enemies or strongholds, etc., all of which need to be achieved through movement.
[0004] However, especially when the virtual character moves a long distance in the game scene, the player needs to frequently switch the camera to observe the situation on the moving path during the movement of the virtual character, which results in high operation and time costs. Summary of the invention
[0005] In view of this, the purpose of the present disclosure is to propose a path processing method, device, electronic device, storage medium and program product, which at least to a certain extent solve one of the technical problems in the related art.
[0006] Based on the above purpose, the first aspect of the exemplary embodiment of the present disclosure provides a path processing method, wherein a graphical user interface is provided through a terminal device, and the content displayed by the graphical user interface includes at least part of a game scene, and the game scene includes a virtual character controlled by the terminal device, and the method includes:
[0007] In response to a movement instruction for the virtual character to move from a first position to a second position, controlling a movement operation of the virtual character from the first position to the second position, and determining a movement path based on the first position and the second position;
[0008] Determine whether the moving path passes through a risk area, and in response to determining that the moving path passes through the risk area, provide a risk indicator on the graphical user interface based on the risk area.
[0009] Based on the same inventive concept, a second aspect of the exemplary embodiment of the present disclosure provides a path processing device, which provides a graphical user interface through a terminal device, wherein the content displayed by the graphical user interface includes at least part of a game scene, and the game scene includes a virtual character controlled by the terminal device, and the device includes:
[0010] a movement path determination module, configured to control a movement operation of the virtual character from the first position to the second position in response to a movement instruction for the virtual character to move from the first position to the second position, and determine a movement path based on the first position and the second position;
[0011] The risk indicator display module is configured to determine whether the moving path passes through a risk area, and in response to determining that the moving path passes through the risk area, provide a risk indicator on the graphical user interface based on the risk area.
[0012] Based on the same inventive concept, a third aspect of the exemplary embodiment of the present disclosure provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the method described in the first aspect is implemented.
[0013] Based on the same inventive concept, a fourth aspect of the exemplary embodiments of the present disclosure provides a non-transitory computer-readable storage medium, wherein the non-transitory computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the method described in the first aspect.
[0014] Based on the same inventive concept, a fifth aspect of the exemplary embodiments of the present disclosure provides a computer program product, including computer program instructions. When the computer program instructions are executed on a computer, the computer executes the method described in the first aspect.
[0015] As can be seen from the above, the path processing method, device, electronic device, storage medium and program product provided by the embodiments of the present disclosure provide a graphical user interface through a terminal device, and the content displayed by the graphical user interface includes at least part of the game scene, and the game scene includes a virtual character controlled by the terminal device. The method includes: in response to a movement instruction for the virtual character to move from a first position to a second position, controlling the movement operation of the virtual character from the first position to the second position, and determining the movement path based on the first position and the second position; judging whether the movement path passes through a risk area, and in response to determining that the movement path passes through the risk area, providing a risk mark on the graphical user interface based on the risk area. The present disclosure determines the risk area through which the movement path passes and displays it visually, reducing the user's operation cost and time cost. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] In order to more clearly illustrate the technical solutions in the present disclosure or related technologies, the drawings required for use in the embodiments or related technical descriptions are briefly introduced below. Obviously, the drawings described below are only embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0017] Figure 1 A schematic diagram of an application scenario of the path processing method provided by the exemplary embodiment of the present disclosure;
[0018] Figure 2 A schematic diagram of a flow chart of a path processing method provided for an exemplary embodiment of the present disclosure;
[0019] Figure 3 A schematic diagram of a moving path including a warning section provided for an exemplary embodiment of the present disclosure;
[0020] Figure 4 A schematic diagram of a mobile progress indicator provided for an exemplary embodiment of the present disclosure;
[0021] Figure 5 A schematic diagram of an early warning interaction control provided for an exemplary embodiment of the present disclosure;
[0022] Figure 6 A schematic diagram of a road segment adjustment control provided for an exemplary embodiment of the present disclosure;
[0023] Figure 7 A schematic diagram of a structure of a path processing device provided by an exemplary embodiment of the present disclosure;
[0024] Figure 8 A schematic structural diagram of an electronic device provided by an exemplary embodiment of the present disclosure. DETAILED DESCRIPTION
[0025] It is understandable that before using the technical solutions disclosed in the embodiments of this application, the type, scope of use, usage scenarios, etc. of the personal information involved in this application should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.
[0026] For example, in response to receiving an active request from a user, a prompt message is sent to the user to clearly prompt the user that the operation requested to be performed will require obtaining and using the user's personal information. Thus, the user can autonomously choose whether to provide personal information to software or hardware such as an electronic device, application, server, or storage medium that performs the operation of the technical solution of the present application according to the prompt message.
[0027] As an optional but non-limiting implementation, in response to receiving an active request from the user, the prompt information may be sent to the user in the form of a pop-up window, in which the prompt information may be presented in text form. In addition, the pop-up window may also carry a selection control for the user to choose "agree" or "disagree" to provide personal information to the electronic device.
[0028] It is understandable that the above notification and the process of obtaining user authorization are merely illustrative and do not constitute a limitation on the implementation method of the present application. Other methods that meet the relevant laws and regulations may also be applied to the implementation method of the present application.
[0029] It is understandable that the data involved in this technical solution (including but not limited to the data itself, the acquisition or use of the data) shall comply with the requirements of relevant laws, regulations and relevant provisions.
[0030] In order to make the purpose, technical solutions and advantages of the present disclosure more clear, the principles and spirit of the present disclosure will be described with reference to several exemplary embodiments. It should be understood that these embodiments are provided only to enable those skilled in the art to better understand and implement the present disclosure, and are not intended to limit the scope of the present disclosure in any way. On the contrary, these embodiments are provided to make the present disclosure more thorough and complete, and to fully convey the scope of the present disclosure to those skilled in the art.
[0031] It should be understood herein that any number of elements in the drawings is for illustration rather than limitation, and any naming is only for distinction rather than having any limiting meaning.
[0032] It should be noted that, unless otherwise defined, the technical terms or scientific terms used in the embodiments of the present disclosure should be understood by people with ordinary skills in the field to which the present disclosure belongs. The "first", "second" and similar words used in the embodiments of the present disclosure do not represent any order, quantity or importance, but are only used to distinguish different components. "Including" or "comprising" and similar words mean that the elements or objects appearing in front of the word cover the elements or objects listed after the word and their equivalents, without excluding other elements or objects. "Connecting" or "connected" and similar words are not limited to physical or mechanical connections, but can include electrical connections, whether direct or indirect. "Up", "down", "left", "right" and the like are only used to indicate relative positional relationships. When the absolute position of the described object changes, the relative positional relationship may also change accordingly. The article "one" or "a" before an element does not exclude the existence of multiple such elements.
[0033] The principle and spirit of the present disclosure are explained in detail below with reference to several representative embodiments of the present disclosure.
[0034] As described in the background art, in electronic games, especially strategy games (Simulation Game, SLG), players control virtual characters to play games in game scenes, such as collecting resources, attacking enemies or strongholds, etc., and these behaviors need to be achieved through movement.
[0035] However, the inventors of the present disclosure have found that, especially when the virtual character moves a long distance in the game scene, the player needs to frequently switch lenses to observe the situation on the moving path during the movement of the virtual character, which results in high operation and time costs.
[0036] In order to solve the above problem, the present disclosure provides a path processing solution, which provides a graphical user interface through a terminal device, wherein the content displayed by the graphical user interface includes at least part of a game scene, and the game scene includes a virtual character controlled by the terminal device, specifically including:
[0037] In response to a movement instruction for the virtual character to move from a first position to a second position, the movement operation of the virtual character from the first position to the second position is controlled, and a movement path is determined based on the first position and the second position; it is determined whether the movement path passes through a risk area, and in response to determining that the movement path passes through the risk area, a risk indicator is provided on the graphical user interface based on the risk area.
[0038] The present invention determines the risk area passed by the moving path and displays it visually, thereby reducing the user's operation cost and time cost.
[0039] After introducing the basic principles of the present disclosure, various non-limiting embodiments of the present disclosure are described in detail below.
[0040] refer to Figure 1 , which is a schematic diagram of an application scenario of the path processing method provided by the exemplary embodiment of the present disclosure.
[0041] This application scenario includes a terminal device 101, a server 102, and a data storage system 103. The terminal device 101, the server 102, and the data storage system 103 may be connected via a wired or wireless communication network to achieve data interaction.
[0042] The terminal device 101 may be an electronic device with data transmission and multimedia input / output functions close to the user side, including but not limited to a desktop computer, a mobile phone, a mobile computer, a tablet computer, a media player, a smart wearable device, a personal digital assistant (PDA) or other electronic devices capable of realizing the above functions. The electronic device may include a processor and a display screen with a touch input function, the display screen is used to present a graphical user interface, the graphical user interface can display an application interface, and the processor is used to process application data, generate a graphical user interface, and control the display of the graphical user interface on the display screen.
[0043] Server 102 and data storage system 103 can both be independent physical servers, or a server cluster or distributed system composed of multiple physical servers. They can also be cloud servers that provide basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), as well as big data and artificial intelligence platforms.
[0044] In some exemplary embodiments, the path processing method may be executed on the terminal device 101 .
[0045] When the path processing method is run on the terminal device 101, the terminal device 101 stores the game program and is used to present the game screen. The terminal device 101 is used to interact with the player through a graphical user interface, that is, the game program is downloaded and installed by the conventional electronic device and run. The terminal device 101 can provide the graphical user interface to the player in a variety of ways, for example, it can be rendered and displayed on the display screen of the terminal device 101, or provided to the player through a holographic projection. For example, the terminal device 101 may include a display screen and a processor, the processor is used to run the game, generate a graphical user interface, and control the display of the graphical user interface on the display screen, the display screen is used to present the graphical user interface, and the graphical user interface may include: a game scene with a virtual character. The graphical user interface can present the entire game scene, or only a part of the game scene. When the game scene is relatively large, only the local content of the game scene is displayed on the graphical user interface of the terminal device during the game.
[0046] The game scene is a virtual scene displayed (or provided) when the application is running on a terminal or server. Optionally, the virtual scene is a simulation environment of the real world, or a semi-simulation and semi-fictitious virtual environment, or a purely fictitious virtual environment. The virtual scene is any one of a two-dimensional virtual scene and a three-dimensional virtual scene, and the virtual environment can be the sky, land, ocean, etc., wherein the land includes environmental elements such as deserts and cities. Among them, the virtual scene is a scene with complete game logic of virtual objects such as user control. For example, for sandbox 3D shooting games, the virtual scene is a 3D game world for players to control virtual objects to fight. Example virtual scenes may include: at least one element of mountains, plains, rivers, lakes, oceans, deserts, skies, plants, buildings, and vehicles; for example, for 2D card games, the virtual scene is a scene for displaying released cards or displaying virtual objects corresponding to cards. Example virtual scenes may include: an arena, a decisive battlefield, or other "field" elements or other elements that can display the status of card battles; for 2D or 3D multiplayer online tactical competitive games, the virtual scene is a 2D or 3D terrain scene for virtual objects to fight. Example virtual scenes may include: canyon-style mountains, lines, rivers, classrooms, tables and chairs, podiums and other elements.
[0047] The game scene contains virtual characters, which can be player characters controlled by players or NPCs (nonplayer characters). Virtual characters are controlled virtual objects, which refer to dynamic objects that can be controlled in virtual scenes. Optionally, the dynamic objects can be virtual characters, virtual objects, etc. The controlled virtual objects are objects controlled by users through input devices, or artificial intelligence (AI) set in a virtual environment through training. In one possible implementation, the user can control the controlled virtual objects to move in the virtual scene, for example, control the controlled virtual objects to navigate or collect virtual resources, etc., and can also control the controlled virtual objects to upgrade and develop on the building objects created by themselves, and can also control the controlled virtual objects to fight with virtual objects of other camps. Optionally, the controlled virtual objects can have multiple functions, such as not only the function of collecting virtual resources, but also the function of fighting. Optionally, when the virtual environment is a three-dimensional virtual environment, the controlled virtual objects can be three-dimensional virtual models, each of which has its own shape and volume in the three-dimensional virtual environment and occupies a part of the space in the three-dimensional virtual environment. Optionally, the 3D virtual object is a 3D character built based on 3D skeleton technology, and the controlled virtual object realizes different external images through wearable technology. In some implementations, the controlled virtual object can also be realized by using a 2.5D or 2D model, which is not limited in the embodiments of the present application.
[0048] Resource points are map points used to provide virtual resources. For example, resource points can be map points such as virtual metal mines, virtual crystal mines, virtual heavy hydrogen mines, virtual special mines, etc. Optionally, several resource points are distributed in the virtual scene, and correspondingly, several identifiers corresponding to the several resource points distributed in the virtual scene are also provided in the virtual map (since the identifiers in the virtual map are reduced versions of the resource points, the whole text is uniformly described as resource points in the virtual map), so that users can collect virtual resources at the resource points to upgrade and develop the building objects they created. The resource points in the virtual scene can be refreshed, usually by refreshing each resource point in the virtual scene at predetermined time intervals, so that users can collect virtual resources at the resource points at regular intervals by dispatching controlled virtual objects on the building objects. Optionally, the building object is a map point used to manufacture, station and / or train controlled virtual objects, for example, the building object is a "base".
[0049] The virtual resources of each resource base may include, but are not limited to: metals, crystals, heavy hydrogen, special ore bodies, wood, stone, food, land, etc. For each virtual resource, it may include multiple resource levels. For example, taking metal as an example, the metal level may include: primary metal, secondary metal, and tertiary metal, among which the primary metal has the highest level and its corresponding resistance is weaker, and the tertiary metal has the highest level and its corresponding resistance is stronger. In the actual game scene, a ship built with tertiary metal will have better stability and stronger resistance than a ship built with primary metal. Optionally, the virtual resources on each resource base correspond to one or more resource levels, and the resource levels of virtual resources on different resource bases may be the same or different, and the embodiment of the present application does not specifically limit this. Among them, the resource parameters of the virtual resources include at least one of the following: the category of virtual resources, the number of resources, and the resource level.
[0050] In this exemplary embodiment, when the path processing method is run on the terminal device 101, a client is installed in the terminal device 101, and the user can input a movement instruction for the virtual character to move from the first position to the second position through the client. The terminal device 101 responds to the movement instruction for the virtual character to move from the first position to the second position, controls the movement operation of the virtual character from the first position to the second position, and determines the movement path based on the first position and the second position; determines whether the movement path passes through a risk area, and in response to determining that the movement path passes through the risk area, provides a risk mark on the graphical user interface based on the risk area. The client displays the movement path including the risk mark to the user to help the user understand the risk situation of the movement path.
[0051] In the above embodiment, the path processing method is described by taking the path processing method running on the terminal device 101 as an example, but the present disclosure is not limited thereto. In some exemplary embodiments, the path processing method may also be run on the terminal device 101 and the server 102 .
[0052] In some exemplary embodiments, the path processing method may be executed on the terminal device 101 and the server 102 .
[0053] In this operation mode, the running subject of the game program and the subject of the game screen presentation are separated, the storage and operation of the control method of the moving state in the game are completed on the server 102, and the terminal device 101 is used for receiving and sending data and presenting the game screen. For example, the terminal device 101 can be a display device with data transmission function close to the user side, such as a mobile terminal, a TV, a computer, a handheld computer, etc.; but the server 102 is responsible for information processing. When playing the game, the player operates the terminal device 101 to send an operation instruction to the server 102. The server 102 runs the game according to the operation instruction, encodes and compresses the data such as the game screen, and returns it to the terminal device 101 through the network. Finally, the terminal device 101 decodes and outputs the game screen.
[0054] In this exemplary embodiment, when the path processing method is run on the terminal device 101 and the server 102, the terminal device 101 is installed with a client that communicates with the server 102, and the user can input a movement instruction for the virtual character to move from the first position to the second position through the client. The terminal device 101 sends the movement instruction for the virtual character to move from the first position to the second position to the server 102. The server 102 controls the movement operation of the virtual character from the first position to the second position in response to the movement instruction for the virtual character to move from the first position to the second position, and determines the movement path based on the first position and the second position; determines whether the movement path passes through the risk area, and in response to determining that the movement path passes through the risk area, provides a risk mark on the graphical user interface based on the risk area. The server 102 sends the game screen of the movement path containing the warning section to the terminal device 101, and the client displays the movement path containing the risk mark to the user to help the user understand the risk situation of the movement path.
[0055] The data storage system 103 can be used to assist the terminal device 101 and the server 102 in storing data to reduce the storage capacity requirements of the terminal device 101 and the server 102. It is understandable that if the terminal device 101 and the server 102 themselves have strong data storage capabilities, the data storage system 103 may not be set up.
[0056] Combine the following Figure 1 The path processing method according to the exemplary embodiment of the present disclosure is described by using the application scenario. It should be noted that the above application scenario is only shown to facilitate understanding of the spirit and principle of the present disclosure, and the embodiments of the present disclosure are not limited in this respect. On the contrary, the embodiments of the present disclosure can be applied to any applicable scenario.
[0057] refer to Figure 2 , which is a flow chart of a path processing method provided by an exemplary embodiment of the present disclosure.
[0058] The path processing method comprises the following steps:
[0059] Step S210: In response to a movement instruction for the virtual character to move from a first position to a second position, controlling a movement operation of the virtual character from the first position to the second position, and determining a movement path based on the first position and the second position.
[0060] In specific implementation, the first position can be the current position of the virtual character, or the starting position specified by the player; the second position can be the location of the virtual character's game objective, such as the location of resources to be collected, the location of enemies to be attacked, or the location of strongholds to be occupied, or it can be the end position specified by the player.
[0061] In some exemplary embodiments, the operation of controlling the virtual character to move from a first position to a second position, and determining a movement path based on the first position and the second position, comprises:
[0062] The shortest path between the first position and the second position is determined as the moving path.
[0063] In a specific implementation, the shortest path between the first position and the second position refers to a path that takes the least time for the virtual character to move from the first position to the second position.
[0064] In specific implementation, the shortest path between the first position and the second position is usually not a straight line segment between the first position and the second position. In the game scene, there is usually terrain information such as obstacles, terrain heights, and water bodies between the first position and the second position. Therefore, when determining the shortest path, it is necessary to consider the terrain information and perform collision detection to ensure that the shortest path is feasible.
[0065] In a specific implementation, a method of determining the shortest path between the first position and the second position includes:
[0066] Use a path finding algorithm to calculate the shortest path.
[0067] As an example, path finding algorithms include at least the following:
[0068] A(A star) algorithm: A heuristic search algorithm for finding the shortest path in a graph.
[0069] Dijkstra's algorithm: A graph search algorithm for computing single-source shortest paths.
[0070] Breadth-First Search (BFS): An algorithm for traversing or searching a graph to find the shortest path.
[0071] Greedy Best-First Search: A heuristic search algorithm that always expands the current best node.
[0072] It should be noted that the present disclosure does not limit the path finding algorithm, and all path finding algorithms in related technologies should be included.
[0073] Step S220: determine whether the moving path passes through a risk area, and in response to determining that the moving path passes through the risk area, provide a risk indicator on the graphical user interface based on the risk area.
[0074] In specific implementation, the risk area in the game scene refers to the enemy-controlled area, specific terrain or other areas that pose a threat to the virtual character.
[0075] During specific implementation, risk areas on the moving path are monitored in real time and risks are assessed dynamically.
[0076] In some exemplary embodiments, providing a risk indicator on the graphical user interface based on the risk area includes:
[0077] Determining a warning section on the moving path based on the risk area;
[0078] A moving path identifier is displayed on the graphical user interface based on the moving path, and a warning section identifier is displayed on the moving path identifier based on the warning section.
[0079] In a specific implementation, the moving path identifier is a curve representing the moving path displayed on a graphical user interface based on the shape of the moving path, and the warning section identifier is an identifier on the moving path identifier representing the warning section on the moving path.
[0080] In some exemplary embodiments, determining the warning section on the moving path based on the risk area includes:
[0081] determining an intersection point between the risk area and the movement path;
[0082] The intersection is used as the two ends of the warning section.
[0083] In specific implementation, the moving path is compared with the boundary of the risk area to find the intersection point.
[0084] As an example, if the moving path is a line segment and the risk area is a polygon, it is achieved by calculating the intersection of the line segment and the polygon boundary; if the moving path is a combination of a series of line segments and the risk area is a polygon, then it is necessary to calculate the intersection of each line segment and the polygon boundary.
[0085] In some exemplary embodiments, displaying the warning road section mark on the moving path mark includes:
[0086] Use different colors, markers, or highlights to highlight warning sections so that players can clearly distinguish them.
[0087] As an example, see Figure 3 , the content displayed by the graphical user interface 300 includes at least part of the game scene, and the game scene includes a virtual character 301 controlled by the terminal device;
[0088] In response to a movement instruction for the virtual character 301 to move from the first position 302 to the second position 303, determining a movement path identifier 304 based on the first position 302 and the second position 303;
[0089] Determine whether the moving path identifier 304 passes through the risk area 305 , and in response to determining that the moving path identifier 304 passes through the risk area 305 , determine a warning road section identifier 306 on the moving path identifier 304 based on the risk area 305 ;
[0090] The graphical user interface 300 is controlled to display a moving path mark 304 , and a warning road section mark 306 is displayed on the moving path mark 304 .
[0091] In a specific implementation, the first position is usually the current position of the virtual character, and the second position is the target position to which the virtual character will move. If the distance between the first position and the second position is far, when the user selects the second position in the virtual scene, the first position may exceed the current display range of the graphical user interface. In view of this situation, the present disclosure also provides the following exemplary embodiments, specifically:
[0092] In some exemplary embodiments, the method further comprises:
[0093] In response to determining that at least one of the virtual character, the first position, and the second position is not displayed on the current screen of the graphical user interface, displaying a movement progress indicator on the graphical user interface;
[0094] The moving progress mark includes a warning section position sub-marker and a virtual character position sub-marker.
[0095] In a specific implementation, the warning section position sub-identifier is used to represent the position of the warning section on the moving path, and the virtual character position sub-identifier is used to represent the moving progress of the virtual character on the moving path.
[0096] In some exemplary embodiments, the method further comprises:
[0097] Determining total length information of the moving path;
[0098] Determine the section length information of the warning section and the section position information of the warning section on the moving path, and determine the position and length of the warning section position sub-identifier on the moving progress identifier based on the total length information, the section length information and the section position information;
[0099] Determine the movement length information of the virtual character on the movement path, and determine the position of the virtual character position sub-identifier on the movement progress identifier based on the total length information and the movement length information.
[0100] As an example, see Figure 4 , the content displayed by the graphical user interface 300 includes at least part of the game scene, and the game scene includes a virtual character controlled by the terminal device (not shown in the figure because it exceeds the current display range of the graphical user interface 300);
[0101] In response to a movement instruction for the virtual character to move from a first position (not shown in the figure because it exceeds the current display range of the graphical user interface 300) to a second position 303, a movement path identifier 304 is determined based on the first position 302 and the second position 303;
[0102] Determine whether the moving path identifier 304 passes through the risk area 305 , and in response to determining that the moving path identifier 304 passes through the risk area 305 , determine a warning road section identifier 306 on the moving path identifier 304 based on the risk area 305 ;
[0103] Controlling the graphical user interface 300 to display a moving path mark 304 , and displaying a warning road section mark 306 on the moving path mark 304 ;
[0104] Since the virtual character and the first position are beyond the current display range of the graphical user interface 300, the graphical user interface 300 is controlled to display a moving progress indicator 307;
[0105] The moving progress mark 307 includes a warning section position sub-mark 3071 and a virtual character position sub-mark 3072. The warning section position sub-mark 3071 is used to represent the position of the warning section mark 306 on the moving path mark 304, and the virtual character position sub-mark 3072 is used to represent the moving progress of the virtual character on the moving path mark 304.
[0106] In specific implementation, when determining that the moving path passes through the risk area, the present disclosure also provides the following exemplary embodiments:
[0107] In some exemplary embodiments, after providing a risk indicator on the graphical user interface based on the risk area, the method further includes:
[0108] Controlling the graphical user interface to display a risk avoidance area control;
[0109] In response to a triggering operation on the risk avoidance area control, the movement path is updated until the risk identification stops being displayed.
[0110] In specific implementation, if the player chooses to avoid the warning section, the moving path will be automatically optimized to avoid the risk area, reducing the possibility of the virtual character controlled by the user facing risks during the movement and causing the game to fail.
[0111] In specific implementation, the method of updating the moving path includes:
[0112] When planning a path, risk areas are treated as obstacles to avoid paths passing through them.
[0113] In specific implementation, the method of updating the moving path also includes:
[0114] In the path planning algorithm, risk areas are cost-weighted, and paths through risk areas will have higher costs, and the algorithm will try to find paths with lower costs.
[0115] In some exemplary embodiments, after controlling the graphical user interface to display a risk avoidance area control, the method further includes:
[0116] Determine the change in movement duration of the updated movement path compared to the movement path before the update after the risk area avoidance control is triggered;
[0117] The graphical user interface is controlled to display the change in the movement duration.
[0118] In a specific implementation, determining the change in the moving time of the updated moving path compared to the moving path before the update after the risk avoidance area control is triggered includes:
[0119] Calculate the moving time of the original moving path before avoiding the warning section:
[0120] Traverse each node on the original moving path and accumulate the time cost between nodes.
[0121] Calculate the moving time of the updated moving path after avoiding the warning section:
[0122] Traverse and update each node on the moving path, and accumulate the time cost between nodes.
[0123] Compare the total moving time of the original moving path and the updated moving path, and calculate the time difference.
[0124] In some exemplary embodiments, after providing a risk indicator on the graphical user interface based on the risk area, the method further includes:
[0125] Controlling the graphical user interface to display a control for viewing a warning road section;
[0126] In response to a trigger operation on the view warning road section control, the warning road section is controlled to be displayed in a preset area on the graphical user interface.
[0127] In specific implementation, if the player needs to quickly view the warning section, the camera is positioned at the warning section. Optionally, the camera can be positioned at the warning section and enlarged for display.
[0128] As an example, see Figure 5 , the content displayed by the graphical user interface 300 includes at least part of the game scene, and the game scene includes a virtual character 301 controlled by the terminal device;
[0129] In response to a movement instruction for the virtual character 301 to move from the first position 302 to the second position 303, determining a movement path identifier 304 based on the first position 302 and the second position 303;
[0130] Determine whether the moving path identifier 304 passes through the risk area 305 , and in response to determining that the moving path identifier 304 passes through the risk area 305 , determine a warning road section identifier 306 on the moving path identifier 304 based on the risk area 305 ;
[0131] Controlling the graphical user interface 300 to display a moving path mark 304 , and displaying a warning road section mark 306 on the moving path mark 304 ;
[0132] When it is determined that the moving path identifier 304 passes through the risk area 305, the control graphical user interface 300 displays the risk-related interactive control 308, which includes a risk warning text 3081 (as an example, such as "There is a risk area in the moving path, do you want to avoid it?"), an avoid risk area control 3082, a view warning section control 3084 and an ignore risk area control 3085.
[0133] Determine the change in movement duration of the updated movement path compared to the movement path before the update after triggering the risk zone avoidance control 3082; control the graphical user interface 300 to display the change in movement duration 3083 (as an example, such as "movement + 4 minutes").
[0134] In specific implementation, in addition to the automatic optimization of the moving path to avoid the risk area in the above exemplary embodiment, the player can also avoid the risk area by fine-tuning the moving path, specifically:
[0135] In some exemplary embodiments, the method further comprises:
[0136] In response to determining that the virtual character moves to the warning section, displaying section adjustment controls at both ends of the warning section;
[0137] In response to a trigger operation on the road segment adjustment control, updating a position of the road segment adjustment control based on the trigger operation;
[0138] The position of the control is adjusted based on the updated road segment, and the moving path is updated.
[0139] In specific implementation, when the virtual character moves to the warning section, that is, enters the risk area, section adjustment controls are displayed at both ends of the warning section, and the moving route can be manually adjusted by dragging the section adjustment controls to avoid the risk area.
[0140] When entering the danger zone segment, drag points are added to the danger zone entry point and danger zone exit point. You can drag the points to manually adjust the line, and quickly avoid the risk area without changing the destination.
[0141] As an example, see Figure 6 , the content displayed by the graphical user interface 300 includes at least part of the game scene, and the game scene includes a virtual character 301 controlled by the terminal device;
[0142] In response to a movement instruction for the virtual character 301 to move from the first position 302 to the second position 303, determining a movement path identifier 304 based on the first position 302 and the second position 303;
[0143] Determine whether the moving path identifier 304 passes through the risk area 305 , and in response to determining that the moving path identifier 304 passes through the risk area 305 , determine a warning road section identifier 306 on the moving path identifier 304 based on the risk area 305 ;
[0144] Controlling the graphical user interface 300 to display a moving path mark 304 , and displaying a warning road section mark 306 on the moving path mark 304 ;
[0145] When the virtual character 301 moves to the warning road segment mark 306 , a first road segment adjustment control 3091 and a second road segment adjustment control 3092 are displayed at both ends of the warning road segment mark 306 ;
[0146] In response to a drag operation on at least one of the first route segment adjustment control 3091 and the second route segment adjustment control 3092 , updating positions of the first route segment adjustment control 3091 and the second route segment adjustment control 3092 based on the drag operation;
[0147] Based on the updated positions of the first section adjustment control 3091 and the second section adjustment control 3092 , the moving path is updated to obtain an updated moving path 310 .
[0148] In some exemplary embodiments, in response to determining that the moving path passes through the risk area, the method further includes:
[0149] The risk area is shared with other virtual characters.
[0150] In specific implementation, other virtual characters, including virtual characters belonging to the same camp as the current virtual character, share the determined risk areas with other virtual characters, which can avoid repeated judgment of risk areas by other virtual characters and assist players in playing the game.
[0151] From the above, it can be seen that the path processing method provided by the embodiment of the present disclosure provides a graphical user interface through a terminal device, and the content displayed by the graphical user interface includes at least part of the game scene, and the game scene includes a virtual character controlled by the terminal device. The method includes: in response to a movement instruction for the virtual character to move from a first position to a second position, controlling the movement operation of the virtual character from the first position to the second position, and determining a movement path based on the first position and the second position; judging whether the movement path passes through a risk area, and in response to determining that the movement path passes through the risk area, determining a warning section on the movement path based on the risk area; controlling the graphical user interface to display the movement path, and displaying the warning section logo on the movement path logo.
[0152] The present invention determines the risk area that the moving path passes through and displays it visually, which greatly reduces the need to frequently switch lenses to observe the situation on the moving path, and reduces the user's operating cost and time cost;
[0153] Furthermore, the movement path can be automatically optimized to avoid risky areas, reducing the possibility of the user's virtual character encountering danger during movement, leading to the failure of the game;
[0154] Furthermore, players can avoid risky areas by fine-tuning their movement paths, thus quickly avoiding risky areas without changing their destinations.
[0155] It should be noted that the method of the embodiment of the present disclosure can be performed by a single device, such as a computer or a server. The method of the present embodiment can also be applied in a distributed scenario and completed by multiple devices cooperating with each other. In the case of such a distributed scenario, one of the multiple devices can only perform one or more steps in the method of the embodiment of the present disclosure, and the multiple devices will interact with each other to complete the described method.
[0156] It should be noted that the above describes some embodiments of the present disclosure. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the above embodiments and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0157] Based on the same inventive concept, corresponding to any of the above-mentioned embodiment methods, the present disclosure also provides a path processing device.
[0158] refer to Figure 7 , which is a structural schematic diagram of a path processing device provided by an exemplary embodiment of the present disclosure.
[0159] A path processing device provides a graphical user interface through a terminal device, wherein the content displayed by the graphical user interface includes at least part of a game scene, wherein the game scene includes a virtual character controlled by the terminal device, and the device includes the following modules:
[0160] A movement path determination module 910 is configured to control a movement operation of the virtual character from the first position to the second position in response to a movement instruction for the virtual character to move from the first position to the second position, and determine a movement path based on the first position and the second position;
[0161] The risk indicator display module 920 is configured to determine whether the moving path passes through a risk area, and in response to determining that the moving path passes through the risk area, provide a risk indicator on the graphical user interface based on the risk area.
[0162] In some exemplary embodiments, the risk indicator display module 920 is configured to:
[0163] Determining a warning section on the moving path based on the risk area;
[0164] A moving path identifier is displayed on the graphical user interface based on the moving path, and a warning section identifier is displayed on the moving path identifier based on the warning section.
[0165] In some exemplary embodiments, the risk indicator display module 920 is configured to:
[0166] In response to determining that at least one of the virtual character, the first position, and the second position is not displayed on the current screen of the graphical user interface, displaying a movement progress indicator on the graphical user interface;
[0167] The moving progress mark includes a warning section position sub-marker and a virtual character position sub-marker.
[0168] In some exemplary embodiments, the risk indicator display module 920 is configured to:
[0169] Determining total length information of the moving path;
[0170] Determine the section length information of the warning section and the section position information of the warning section on the moving path, and determine the position and length of the warning section position sub-identifier on the moving progress identifier based on the total length information, the section length information and the section position information;
[0171] Determine the movement length information of the virtual character on the movement path, and determine the position of the virtual character position sub-identifier on the movement progress identifier based on the total length information and the movement length information.
[0172] In some exemplary embodiments, the risk indicator display module 920 is configured to:
[0173] Controlling the graphical user interface to display a risk avoidance area control;
[0174] In response to a triggering operation on the risk avoidance area control, the movement path is updated until the risk identification stops being displayed.
[0175] In some exemplary embodiments, the risk indicator display module 920 is configured to:
[0176] Determine the change in movement duration of the updated movement path compared to the movement path before the update after the risk area avoidance control is triggered;
[0177] The graphical user interface is controlled to display the change in the movement duration.
[0178] In some exemplary embodiments, the risk indicator display module 920 is configured to:
[0179] Controlling the graphical user interface to display a control for viewing a warning road section;
[0180] In response to a trigger operation on the view warning road section control, the warning road section is controlled to be displayed in a preset area on the graphical user interface.
[0181] In some exemplary embodiments, the risk indicator display module 920 is configured to:
[0182] In response to determining that the virtual character moves to the warning section, displaying section adjustment controls at both ends of the warning section;
[0183] In response to a trigger operation on the road segment adjustment control, updating a position of the road segment adjustment control based on the trigger operation;
[0184] The position of the control is adjusted based on the updated road segment, and the moving path is updated.
[0185] In some exemplary embodiments, the risk indicator display module 920 is further configured to:
[0186] The risk area is shared with other virtual characters.
[0187] In some exemplary embodiments, the risk indicator display module 920 is configured to:
[0188] determining an intersection point between the risk area and the movement path;
[0189] The intersection is used as the two ends of the warning section.
[0190] In some exemplary embodiments, the moving path determination module 910 is configured to:
[0191] The shortest path between the first position and the second position is determined as the moving path.
[0192] For the convenience of description, the above device is described by dividing it into various modules according to its functions. Of course, when implementing the present disclosure, the functions of each module can be implemented in the same or multiple software and / or hardware.
[0193] The device of the above embodiment is used to implement the corresponding path processing method in any of the above embodiments, and has the beneficial effects of the corresponding method embodiment, which will not be described in detail here.
[0194] Based on the same inventive concept, corresponding to any of the above-mentioned embodiments and methods, the present disclosure also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the path processing method described in any of the above embodiments is implemented.
[0195] Figure 8 A more specific schematic diagram of the hardware structure of an electronic device provided in this embodiment is shown, and the device may include: a processor 1010, a memory 1020, an input / output interface 1030, a communication interface 1040, and a bus 1050. The processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040 are connected to each other through the bus 1050 in the device.
[0196] The processor 1010 can be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of this specification.
[0197] The memory 1020 may be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory), static storage device, dynamic storage device, etc. The memory 1020 may store an operating system and other application programs. When the technical solutions provided in the embodiments of this specification are implemented by software or firmware, the relevant program codes are stored in the memory 1020 and are called and executed by the processor 1010.
[0198] The input / output interface 1030 is used to connect the input / output module to realize information input and output. The input / output module can be configured in the device as a component (not shown in the figure), or it can be externally connected to the device to provide corresponding functions. The input device may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output device may include a display, a speaker, a vibrator, an indicator light, etc.
[0199] The communication interface 1040 is used to connect a communication module (not shown) to realize communication interaction between the device and other devices. The communication module can realize communication through a wired mode (such as USB, network cable, etc.) or a wireless mode (such as mobile network, WIFI, Bluetooth, etc.).
[0200] The bus 1050 includes a path that transmits information between the various components of the device (eg, the processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040).
[0201] It should be noted that, although the above device only shows the processor 1010, the memory 1020, the input / output interface 1030, the communication interface 1040 and the bus 1050, in the specific implementation process, the device may also include other components necessary for normal operation. In addition, it can be understood by those skilled in the art that the above device may also only include the components necessary for implementing the embodiments of the present specification, and does not necessarily include all the components shown in the figure.
[0202] The electronic device of the above embodiment is used to implement the corresponding path processing method in any of the above embodiments, and has the beneficial effects of the corresponding method embodiment, which will not be described in detail here.
[0203] The memory 1020 stores machine-readable instructions executable by the processor 1010. When the electronic device is running, the processor 1010 communicates with the memory 1020 via the bus 1030, so that the processor 1010 executes the following instructions when running:
[0204] In response to a movement instruction for the virtual character to move from a first position to a second position, controlling a movement operation of the virtual character from the first position to the second position, and determining a movement path based on the first position and the second position;
[0205] Determine whether the moving path passes through a risk area, and in response to determining that the moving path passes through the risk area, provide a risk indicator on the graphical user interface based on the risk area.
[0206] In a possible implementation manner, in the instructions executed by the processor 1010, providing a risk indicator on the graphical user interface based on the risk area includes:
[0207] Determining a warning section on the moving path based on the risk area;
[0208] A moving path identifier is displayed on the graphical user interface based on the moving path, and a warning section identifier is displayed on the moving path identifier based on the warning section.
[0209] In a possible implementation manner, in the instruction executed by the processor 1010, the method further includes:
[0210] In response to determining that at least one of the virtual character, the first position, and the second position is not displayed on the current screen of the graphical user interface, displaying a movement progress indicator on the graphical user interface;
[0211] The moving progress mark includes a warning section position sub-marker and a virtual character position sub-marker.
[0212] In a possible implementation manner, in the instruction executed by the processor 1010, the method further includes:
[0213] Determining total length information of the moving path;
[0214] Determine the section length information of the warning section and the section position information of the warning section on the moving path, and determine the position and length of the warning section position sub-identifier on the moving progress identifier based on the total length information, the section length information and the section position information;
[0215] Determine the movement length information of the virtual character on the movement path, and determine the position of the virtual character position sub-identifier on the movement progress identifier based on the total length information and the movement length information.
[0216] In a possible implementation manner, in the instructions executed by the processor 1010, after providing a risk indicator on the graphical user interface based on the risk area, the method further includes:
[0217] Controlling the graphical user interface to display a risk avoidance area control;
[0218] In response to a triggering operation on the risk avoidance area control, the movement path is updated until the risk identification stops being displayed.
[0219] In a possible implementation manner, in the instructions executed by the processor 1010, after controlling the graphical user interface to display a risk avoidance area control, the method further includes:
[0220] Determine the change in movement duration of the updated movement path compared to the movement path before the update after the risk area avoidance control is triggered;
[0221] The graphical user interface is controlled to display the change in the movement duration.
[0222] In a possible implementation manner, in the instructions executed by the processor 1010, after providing a risk indicator on the graphical user interface based on the risk area, the method further includes:
[0223] Controlling the graphical user interface to display a control for viewing a warning road section;
[0224] In response to a trigger operation on the view warning road section control, the warning road section is controlled to be displayed in a preset area on the graphical user interface.
[0225] In a possible implementation manner, in the instruction executed by the processor 1010, the method further includes:
[0226] In response to determining that the virtual character moves to the warning section, displaying section adjustment controls at both ends of the warning section;
[0227] In response to a trigger operation on the road segment adjustment control, updating a position of the road segment adjustment control based on the trigger operation;
[0228] The position of the control is adjusted based on the updated road segment, and the moving path is updated.
[0229] In a possible implementation manner, in the instructions executed by the processor 1010, in response to determining that the moving path passes through the risk area, the method further includes:
[0230] The risk area is shared with other virtual characters.
[0231] In a possible implementation manner, in the instructions executed by the processor 1010, determining the warning section on the moving path based on the risk area includes:
[0232] determining an intersection point between the risk area and the movement path;
[0233] The intersection is used as the two ends of the warning section.
[0234] In a possible implementation, in the instructions executed by the processor 1010, the operation of controlling the movement of the virtual character from a first position to a second position, and determining a movement path based on the first position and the second position, includes:
[0235] The shortest path between the first position and the second position is determined as the moving path.
[0236] Based on the same inventive concept, corresponding to any of the above-mentioned embodiment methods, the present disclosure also provides a non-transitory computer-readable storage medium, wherein the non-transitory computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute the path processing method described in any of the above embodiments.
[0237] The computer-readable medium of this embodiment includes permanent and non-permanent, removable and non-removable media, and information storage can be implemented by any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device.
[0238] The above-mentioned non-transitory computer-readable storage medium can be any available medium or data storage device that can be accessed by a computer, including but not limited to magnetic storage (such as floppy disks, hard disks, magnetic tapes, magneto-optical disks (MO), etc.), optical storage (such as CD, DVD, BD, HVD, etc.), and semiconductor storage (such as ROM, EPROM, EEPROM, non-volatile memory (NAND FLASH), solid-state drive (SSD)), etc.
[0239] The computer instructions stored in the storage medium of the above embodiment are used to enable the computer to execute the path processing method described in any embodiment in the above exemplary method part, and have the beneficial effects of the corresponding method embodiment, which will not be repeated here.
[0240] Based on the same inventive concept, corresponding to the path processing method described in any of the above embodiments, the present disclosure also provides a computer program product, which includes computer program instructions. In some embodiments, the computer program instructions can be executed by one or more processors of a computer so that the computer and / or the processor execute the path processing method. Corresponding to the execution subject corresponding to each step in each embodiment of the path processing method, the processor that executes the corresponding step can belong to the corresponding execution subject.
[0241] The computer program product of the above embodiment is used to enable the computer and / or the processor to execute the path processing method described in any of the above embodiments, and has the beneficial effects of the corresponding method embodiments, which will not be repeated here.
[0242] Those skilled in the art will appreciate that the embodiments of the present disclosure may be implemented as a system, method, or computer program product. Therefore, the present disclosure may be specifically implemented in the following forms, namely: complete hardware, complete software (including firmware, resident software, microcode, etc.), or a combination of hardware and software, generally referred to herein as a "circuit," "module," or "system." In addition, in some embodiments, the present disclosure may also be implemented in the form of a computer program product in one or more computer-readable media, which contains computer-readable program code.
[0243] Any combination of one or more computer-readable media may be used. A computer-readable medium may be a computer-readable signal medium or a computer-readable storage medium. A computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples (non-exhaustive examples) of computer-readable storage media may include, for example: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this document, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device.
[0244] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, which carry computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0245] The program code embodied on the computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
[0246] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0247] It should be understood that each box in the flowchart and / or block diagram and the combination of boxes in the flowchart and / or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer or other programmable data processing device to produce a machine, and these computer program instructions are executed by a computer or other programmable data processing device to produce a device that implements the functions / operations specified in the boxes in the flowchart and / or block diagram.
[0248] These computer program instructions may also be stored in a computer-readable medium that enables a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable medium produce a product that includes an instruction device that implements the functions / operations specified in the blocks in the flowchart and / or block diagram.
[0249] Computer program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operational steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby enabling the instructions executed on the computer or other programmable device to provide a process for implementing the functions / operations specified in the blocks in the flowchart and / or block diagram.
[0250] In addition, although the operations of the disclosed method are described in a particular order in the accompanying drawings, this does not require or imply that the operations must be performed in this particular order, or that all the operations shown must be performed to achieve the desired results. On the contrary, the steps depicted in the flow chart can be performed in a different order. Additionally or alternatively, some steps can be omitted, multiple steps can be combined into one step, and / or one step can be decomposed into multiple steps.
[0251] The flowchart and block diagram in the accompanying drawings illustrate the possible architecture, functions and operations of the system, method and computer program product according to various embodiments of the present application. Wherein, each box in the flowchart or block diagram can represent a module, a program segment, or a part of the code, and the above-mentioned module, program segment, or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0252] It should be noted that, although several modules or units of the equipment for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present application, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into being embodied by multiple modules or units.
[0253] Those skilled in the art should understand that the discussion of any of the above embodiments is merely illustrative and is not intended to imply that the scope of the present application (including the claims) is limited to these examples. In line with the concept of the present application, the technical features in the above embodiments or different embodiments may be combined, the steps may be implemented in any order, and there are many other variations of the different aspects of the embodiments of the present application as described above, which are not provided in detail for the sake of simplicity.
[0254] In addition, to simplify the description and discussion, and in order not to make the embodiments of the present application difficult to understand, the known power supply / ground connection with the integrated circuit (IC) chip and other components may or may not be shown in the provided drawings. In addition, the device can be shown in the form of a block diagram to avoid making the embodiments of the present application difficult to understand, and this also takes into account the fact that the details of the implementation of these block diagram devices are highly dependent on the platform to be implemented in the embodiments of the present application (that is, these details should be fully within the scope of understanding of those skilled in the art). In the case of elaborating specific details (e.g., circuits) to describe exemplary embodiments of the present application, it is obvious to those skilled in the art that the embodiments of the present application can be implemented without these specific details or when these specific details are changed. Therefore, these descriptions should be considered to be illustrative rather than restrictive.
[0255] Although the present application has been described in conjunction with specific embodiments of the present application, many replacements, modifications and variations of these embodiments will be apparent to those skilled in the art from the foregoing description. For example, other memory architectures (e.g., dynamic RAM (DRAM)) may use the embodiments discussed.
[0256] The embodiments of the present application are intended to cover all such substitutions, modifications and variations that fall within the broad scope of the appended claims. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the embodiments of the present application should be included in the scope of protection of the present application.
[0257] Although the spirit and principle of the present disclosure have been described with reference to several specific embodiments, it should be understood that the present disclosure is not limited to the disclosed specific embodiments, and the division of various aspects does not mean that the features in these aspects cannot be combined to benefit, and such division is only for the convenience of expression. The present disclosure is intended to cover various modifications and equivalent arrangements included in the spirit and scope of the attached claims. The scope of the attached claims conforms to the broadest interpretation, thereby including all such modifications and equivalent structures and functions.
Claims
1. A path processing method, characterized in that: Providing a graphical user interface through a terminal device, wherein the content displayed by the graphical user interface includes at least part of a game scene, and the game scene includes a virtual character controlled by the terminal device, and the method includes: In response to a movement instruction for the virtual character to move from a first position to a second position, controlling a movement operation of the virtual character from the first position to the second position, and controlling a movement operation of the virtual character from the first position to the second position, and determining a movement path based on the first position and the second position; Determine whether the moving path passes through a risk area, and in response to determining that the moving path passes through the risk area, provide a risk indicator on the graphical user interface based on the risk area.
2. The method according to claim 1, characterized in that The providing a risk indicator on the graphical user interface based on the risk area includes: Determining a warning section on the moving path based on the risk area; A moving path identifier is displayed on the graphical user interface based on the moving path, and a warning section identifier is displayed on the moving path identifier based on the warning section.
3. The method according to claim 2, characterized in that The method further comprises: In response to determining that at least one of the virtual character, the first position, and the second position is not displayed on the current screen of the graphical user interface, displaying a movement progress indicator on the graphical user interface; The moving progress mark includes a warning section position sub-marker and a virtual character position sub-marker.
4. The method according to claim 3, characterized in that The method further comprises: Determining total length information of the moving path; Determine the section length information of the warning section and the section position information of the warning section on the moving path, and determine the position and length of the warning section position sub-identifier on the moving progress identifier based on the total length information, the section length information and the section position information; Determine the movement length information of the virtual character on the movement path, and determine the position of the virtual character position sub-identifier on the movement progress identifier based on the total length information and the movement length information.
5. The method according to claim 1, characterized in that After providing a risk indicator on the graphical user interface based on the risk area, the method further includes: Controlling the graphical user interface to display a risk avoidance area control; In response to a triggering operation on the risk avoidance area control, the movement path is updated until the risk identification stops being displayed.
6. The method according to claim 5, characterized in that After controlling the graphical user interface to display the risk avoidance area control, the method further includes: Determine the change in movement duration of the updated movement path compared to the movement path before the update after the risk area avoidance control is triggered; The graphical user interface is controlled to display the change in the movement duration.
7. The method according to claim 2, characterized in that After providing a risk indicator on the graphical user interface based on the risk area, the method further includes: Controlling the graphical user interface to display a control for viewing a warning road section; In response to a trigger operation on the view warning road section control, the warning road section is controlled to be displayed in a preset area on the graphical user interface.
8. The method according to claim 2, characterized in that: The method further comprises: In response to determining that the virtual character moves to the warning section, displaying section adjustment controls at both ends of the warning section; In response to a trigger operation on the road segment adjustment control, updating a position of the road segment adjustment control based on the trigger operation; The position of the control is adjusted based on the updated road segment, and the moving path is updated.
9. The method according to claim 1, characterized in that: In response to determining that the moving path passes through the risk area, the method further includes: The risk area is shared with other virtual characters.
10. The method according to claim 2, characterized in that The determining the warning section on the moving path based on the risk area includes: determining an intersection point between the risk area and the movement path; The intersection is used as the two ends of the warning section.
11. The method according to claim 1, characterized in that: The controlling the movement operation of the virtual character from the first position to the second position, and determining the movement path based on the first position and the second position, comprises: The shortest path between the first position and the second position is determined as the moving path.
12. A path processing device, characterized in that: A graphical user interface is provided through a terminal device, wherein the content displayed by the graphical user interface includes at least part of a game scene, and the game scene includes a virtual character controlled by the terminal device, and the apparatus includes: a movement path determination module, configured to control a movement operation of the virtual character from the first position to the second position in response to a movement instruction for the virtual character to move from the first position to the second position, and determine a movement path based on the first position and the second position; The risk indicator display module is configured to determine whether the moving path passes through a risk area, and in response to determining that the moving path passes through the risk area, provide a risk indicator on the graphical user interface based on the risk area.
13. An electronic device, characterized in that: The method comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the method according to any one of claims 1 to 11 is implemented.
14. A non-transitory computer-readable storage medium, characterized in that: The non-transitory computer-readable storage medium stores computer instructions, and the computer instructions are used to cause a computer to execute the method according to any one of claims 1 to 11.
15. A computer program product, characterized in that The method comprises computer program instructions, and when the computer program instructions are executed on a computer, the computer is caused to execute the method according to any one of claims 1 to 11.