Display control method and device, electronic equipment and storage medium
By providing a graphical user interface on the terminal device, calculating and displaying the minimum number of turns required by a character to move from the current plot to the target plot in a turn-based battle chess game, the problems of low efficiency and high time cost in the existing technology are solved, and the player's decision-making efficiency and victory rate are improved.
Patent Information
- Application Number
- CN202510280689.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-10
- Publication Date
- 2025-04-29
- Estimated Expiration
- 2045-03-10
AI Technical Summary
In the existing turn-based war chess game, players need to determine the number of turns the character moves from the current plot through naked eyes and artificial calculations, which is inefficient and time-consuming.
The terminal device provides a graphical user interface, including controlled virtual characters and multiple virtual plots in the game scene, so as to respond to the trigger operation of the target virtual plot when the controlled virtual character is selected, and calculate and display the minimum number of turns based on the character attributes and plot location.
The minimum number of turns can be quickly determined without human calculations, reducing the time cost of player decisions, and improving decision efficiency and victory rate.
Smart Images

Figure CN119896855A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of game technology, and in particular to a display control method, device, electronic device and storage medium. Background Art
[0002] War chess game is a type of turn-based, role-playing strategy game in which characters are moved on a map to fight. Because this game is like playing chess, it is called a turn-based war chess game.
[0003] In the prior art, if a player wants to know the number of rounds that a character will move from the current block to, the player usually observes with the naked eye and calculates manually, which takes a lot of time.
[0004] It can be seen that the determination of the existing number of rounds mainly relies on manual calculation, and therefore there is a problem of low determination efficiency. Summary of the invention
[0005] The purpose of this application is to provide a display control method, device, electronic device and storage medium to address the deficiencies in the above-mentioned prior art, which can improve the decision-making efficiency and winning rate of players.
[0006] To achieve the above purpose, the technical solution adopted in the embodiment of the present application is as follows:
[0007] In a first aspect, the present invention provides a display control method, which provides a graphical user interface through a terminal device, wherein the graphical user interface includes a controlled virtual character in a game scene, and the game scene includes a plurality of virtual plots, and the method includes:
[0008] When the controlled virtual character is selected, in response to a first triggering operation on a target virtual plot in the game scene, selecting the target virtual plot;
[0009] According to the attributes of the controlled virtual character, the current virtual plot where the controlled virtual character is located, and the target virtual plot, the minimum number of turns required for the controlled virtual character to move from the current virtual plot to the target virtual plot is calculated and displayed.
[0010] In a second aspect, the present invention provides a display control device, which provides a graphical user interface through a terminal device, wherein the graphical user interface includes a controlled virtual character in a game scene, wherein the game scene includes a plurality of virtual plots, including:
[0011] a response module, configured to select the target virtual plot in response to a first triggering operation on the target virtual plot in the game scene when the controlled virtual character is selected;
[0012] The display module is used to calculate and display the minimum number of rounds required for the controlled virtual character to move from the current virtual plot to the target virtual plot according to the attributes of the controlled virtual character, the current virtual plot where the controlled virtual character is located, and the target virtual plot.
[0013] In a third aspect, the present invention provides an electronic device, comprising: a processor, a storage medium and a bus, wherein the storage medium stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor communicates with the storage medium via the bus, and the processor executes the machine-readable instructions to perform the steps of the display control method as described in any of the aforementioned implementations.
[0014] In a fourth aspect, the present invention provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the display control method as described in any of the aforementioned embodiments are executed.
[0015] The beneficial effects of this application are:
[0016] In the display control method, device, electronic device and storage medium provided in the embodiments of the present application, a graphical user interface can be provided through a terminal device, and the graphical user interface includes a controlled virtual character in a game scene, and the game scene includes multiple virtual plots. The method includes: when the controlled virtual character is selected, in response to a first trigger operation on the target virtual plot in the game scene, the target virtual plot is selected; according to the attributes of the controlled virtual character, the current virtual plot where the controlled virtual character is located, and the target virtual plot, the minimum number of rounds required for the controlled virtual character to move from the current virtual plot to the target virtual plot is calculated and displayed, thereby realizing that the minimum number of rounds can be quickly determined without manual calculation, reducing the time cost of the player's decision-making, and thus improving the player's decision-making efficiency and winning rate. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0018] Figure 1 A flow chart of a display control method provided in an embodiment of the present application;
[0019] Figure 2 A schematic diagram of a game interface provided in an embodiment of the present application;
[0020] Figure 3 A schematic diagram of another game interface provided in an embodiment of the present application;
[0021] Figure 4 A schematic diagram of another game interface provided in an embodiment of the present application;
[0022] Figure 5 A schematic diagram of another game interface provided in an embodiment of the present application;
[0023] Figure 6 A schematic diagram of another game interface provided in an embodiment of the present application;
[0024] Figure 7 A schematic diagram of another game interface provided in an embodiment of the present application;
[0025] Figure 8 A flowchart of another display control method provided in an embodiment of the present application;
[0026] Fig. 9 A flowchart of another display control method provided in an embodiment of the present application;
[0027] Fig.10 A flowchart of another display control method provided in an embodiment of the present application;
[0028] Fig.11 A flowchart of another display control method provided in an embodiment of the present application;
[0029] Fig.12 A schematic diagram of another game interface provided in an embodiment of the present application;
[0030] Fig.13 A schematic diagram of functional modules of a display control device provided in an embodiment of the present application;
[0031] Fig.14 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0032] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various different configurations.
[0033] Therefore, the following detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the present application for which protection is sought, but merely represents selected embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.
[0034] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.
[0035] In the prior art, in turn-based chess games, the maps are usually very large. If a player wants to know the number of turns the character will move from the current block to the next block, he usually observes with the naked eye or calculates manually, which takes a lot of time. Therefore, the determination of the number of turns in the prior art often relies on manual calculation, which results in low determination efficiency and high time cost of decision-making.
[0036] In view of this, the present invention provides a display control method, which can select a target virtual plot when a controlled virtual character is selected, and then calculate and display the minimum number of rounds required for the controlled virtual character to move from the current virtual plot to the target virtual plot, thereby realizing rapid determination of the minimum number of rounds without manual calculation, reducing the time cost of player decision-making, and thus improving the player's decision-making efficiency and winning rate.
[0037] The display control method in one embodiment of the present disclosure can be run on a local terminal device or a server. When the display control method is run on a server, the method can be implemented and executed based on a cloud interaction system, wherein the cloud interaction system includes a server and a client device.
[0038] In an optional implementation, various cloud applications, such as cloud games, can be run under the cloud interaction system. Taking cloud games as an example, cloud games refer to a game mode based on cloud computing. In the operation mode of cloud games, the operating body of the game program and the main body of the game screen presentation are separated, the display control method storage and operation are completed on the cloud game server, and the role of the client device is used for data reception, transmission and presentation of the game screen. For example, the client device 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 cloud game server in the cloud is responsible for information processing. When playing the game, the player operates the client device to send an operation instruction to the cloud game server. The cloud game server runs the game according to the operation instruction, encodes and compresses the game screen and other data, and returns it to the client device through the network. Finally, the client device decodes and outputs the game screen.
[0039] In an optional embodiment, taking a game as an example, a local terminal device stores a game program and is used to present a game screen. The local terminal device is used to interact with the player through a graphical user interface, that is, the game program is downloaded and installed by an electronic device and run conventionally. The local terminal device may provide the graphical user interface to the player in a variety of ways, for example, it may be rendered and displayed on a display screen of the terminal, or provided to the player through a holographic projection. For example, the local terminal device may include a display screen and a processor, the display screen is used to present a graphical user interface, the graphical user interface includes a game screen, and 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.
[0040] In a possible implementation, an embodiment of the present application provides a display control method for providing a graphical user interface through a terminal device, wherein the terminal device may be the local terminal device mentioned above, or may be a client device in the cloud interaction system mentioned above.
[0041] The display control method provided by the present application is described in detail below through multiple embodiments.
[0042] Figure 1 A flow chart of a display control method provided in an embodiment of the present application. Optionally, the display control method can be applied to a turn-based chess game, wherein the display control method can provide a graphical user interface through a terminal device, and the graphical user interface includes a controlled virtual character in a game scene, and the game scene includes multiple virtual plots.
[0043] It should be noted that the present application does not limit the number of virtual plots displayed in the current game scene, and multiple virtual plots can be flexibly displayed according to the zoom of the current game scene. And according to the actual application scenario, the game scene can also include other virtual characters, such as enemy virtual characters, teammate virtual characters, etc., which are not limited here.
[0044] like Figure 1 As shown, the method includes:
[0045] Step 101: When a controlled virtual character is selected, in response to a first triggering operation on a target virtual plot in a game scene, a target virtual plot is selected.
[0046] Among them, the controlled virtual character is the virtual character controlled by the target player. Optionally, according to the actual application scenario, the game scene may include multiple controllable virtual characters, and the target player can select any controllable virtual character and further execute the relevant methods of the present application.
[0047] When the controlled virtual character is selected, optionally, the player can act on the target virtual plot in the game scene through a first trigger operation such as long press, heavy press, double click, etc., and in response to the first trigger operation, a special effect of the target virtual plot being selected can be displayed. Among them, the target virtual plot can be any optional virtual plot among multiple virtual plots, and the optional virtual plot is also a virtual plot in an unoccupied state. It is understandable that if other virtual objects (for example, enemy virtual characters) are displayed on a virtual plot, the virtual plot is in an occupied state.
[0048] Optionally, when a target virtual plot is selected, the target virtual plot can be displayed in a first preset style, for example, the area where the target virtual plot is located can be highlighted, or the plot boundary of the target virtual plot can be highlighted; and other virtual plots in the game scene are displayed in a second preset style, for example, they can be displayed in a default style.
[0049] Step 102: Calculate and display the minimum number of turns required for the controlled virtual character to move from the current virtual plot to the target virtual plot based on the attributes of the controlled virtual character, the current virtual plot where the controlled virtual character is located, and the target virtual plot.
[0050] Among them, the attributes of the controlled virtual character can represent the action force (mobility) of the controlled virtual character. Specifically, it can represent the movement range corresponding to each movement of the controlled virtual character. For example, the controlled virtual character can move to any virtual plot within the range of nxn centered on the current position, where the value of n can be any value such as 2, 3, 4, 5, etc., and is not limited here.
[0051] For example, if the character type of the controlled virtual character is a rider, its mobility is higher, and each movement corresponds to a moving range of a 5X5 virtual plot (that is, the controlled virtual character can move to any virtual plot within a 5X5 range centered on the current position); if the character type of the controlled virtual character is a shield soldier, its mobility is lower, and each movement corresponds to a moving range of a 2X2 virtual plot (that is, the controlled virtual character can move to any virtual plot within a 2X2 range centered on the current position).
[0052] The current virtual plot where the controlled virtual character is located is the current virtual plot corresponding to the current position of the controlled virtual character; the target virtual plot is the virtual plot to which the controlled virtual character expects to move.
[0053] Wherein, when the target virtual plot is selected, the minimum number of turns required for the controlled virtual character to move from the current virtual plot to the target virtual plot can be calculated and displayed based on the relative position between the current virtual plot where the controlled virtual character is located and the target virtual plot, and according to the movement range corresponding to each movement represented by the attribute of the controlled virtual character. The minimum number of turns can represent the number of movements required for the controlled virtual character to move from the current virtual plot to the target virtual plot.
[0054] Optionally, when displaying, the value of the minimum number of rounds may be displayed, such as 3 rounds, 5 rounds, etc. If the movement range of each movement of the controlled virtual character is a 2X2 virtual plot, and the minimum number of rounds is 3, it means that the controlled virtual character needs to move 3 times to move from the current virtual plot to the target virtual plot, which helps the player quickly establish a sense of distance between the current virtual plot and the target virtual plot.
[0055] Figure 2 A schematic diagram of a game interface provided in an embodiment of the present application. Figure 2 As shown, the game interface includes a controlled virtual character A in a game scene, and the current virtual plot where the controlled virtual character A is located is S1. Referring to the above description, when the controlled virtual character A is selected, optionally, the player can act on the target virtual plot S2 in the game scene through a first trigger operation such as long press, hard press, double click, etc. In response to the first trigger operation, a special effect of the target virtual plot S2 being selected can be displayed. For example, the edge of the target virtual plot S2 can be highlighted. Of course, the specific display method is not limited to this.
[0056] Continue to refer to Figure 2 As shown, if the controlled virtual character A moves the moving range of the corresponding 2X2 virtual plot each time (that is, the controlled virtual character can move to any virtual plot within the 2X2 range centered on the current position), then based on the relative position between the current virtual plot S1 and the target virtual plot S2 where the controlled virtual character A is located, according to the moving range corresponding to each movement represented by the attributes of the controlled virtual character A, the minimum number of rounds required for the controlled virtual character A to move from the current virtual plot S1 to the target virtual plot S2 (that is, the minimum number of rounds 4 displayed around the target virtual plot S2) can be displayed around the target virtual plot S2 (for example, it can be marked in the display area of the target virtual plot S2, or around it, etc.), so that the target player can quickly determine the corresponding target virtual plot S2 according to the position displayed by the minimum number of rounds. Of course, the display method of the minimum number of rounds is not limited to this, and can be flexibly set according to the actual application scenario. Among them, it should be noted that in order to understand the present application more clearly, the remaining virtual plots included in the game scene are not shown.
[0057] Referring to the above description, it can be understood that during the game, the method of the present application can be applied to calculate and display the minimum number of rounds required for the controlled virtual character to move from the current virtual plot to multiple target virtual plots, and then the target player can select any target virtual plot from the multiple target virtual plots as the first target virtual plot, and control the controlled virtual character to move from the current virtual plot to the first target virtual plot with the minimum number of rounds corresponding to the first target virtual plot. Applying the embodiment of the present application, the user only needs to perform simple operations to quickly know the minimum number of rounds required for the controlled virtual character to move from the current virtual plot to the target virtual plot, reducing the time cost of the player's decision-making, thereby improving the player's decision-making efficiency and game interaction efficiency, avoiding missed opportunities, and improving the winning rate; in addition, it is possible to use clear feedback to allow players to better understand the battlefield situation and reduce the learning cost of novice players.
[0058] In summary, an embodiment of the present application provides a display control method, which can provide a graphical user interface through a terminal device, wherein the graphical user interface includes a controlled virtual character in a game scene, and the game scene includes multiple virtual plots. The method includes: when the controlled virtual character is selected, in response to a first trigger operation on the target virtual plot in the game scene, the target virtual plot is selected; according to the attributes of the controlled virtual character, the current virtual plot where the controlled virtual character is located, and the target virtual plot, the minimum number of rounds required for the controlled virtual character to move from the current virtual plot to the target virtual plot is calculated and displayed, thereby realizing the rapid determination of the minimum number of rounds without manual calculation, reducing the time cost of player decision-making, and thereby improving the player's decision-making efficiency and winning rate.
[0059] Figure 3 A schematic diagram of another game interface provided in an embodiment of the present application. In an optional implementation, the method further includes:
[0060] In response to a first trigger operation on a target virtual plot in a game scene, a shortest path for a controlled virtual character to move from a current virtual plot to a target virtual plot is calculated and displayed.
[0061] Among them, the shortest path is the path with the least number of virtual plots that the controlled virtual character needs to pass through to move from the current virtual plot to the target virtual plot; the minimum number of rounds indicates the number of rounds required for the controlled virtual character to move from the current virtual plot to the target virtual plot along the shortest path.
[0062] In some embodiments, in response to the first trigger operation, while the target virtual plot is selected, the shortest path for the controlled virtual character to move from the current virtual plot to the target virtual plot can be calculated and displayed based on the current virtual plot and the target virtual plot where the controlled virtual character is located; and the number of rounds required for the controlled virtual character to move from the current virtual plot to the target virtual plot along the shortest path can be calculated and displayed based on the virtual plots passed by the shortest path and the attributes of the controlled virtual character.
[0063] It can be understood that since the shortest path is defined as the path with the least number of virtual plots that the controlled virtual character needs to pass through to move from the current virtual plot to the target virtual plot, the fewer virtual plots passed through, the shorter the path; the more virtual plots passed through, the longer the path.
[0064] It should be noted that in some scenarios, there may be multiple paths, and the number of virtual plots corresponding to the multiple paths is the smallest and the same. In this scenario, the multiple paths are multiple shortest paths. Therefore, this application does not limit the number of the multiple shortest paths.
[0065] Reference Figure 3 As shown, in order to better identify each shortest path, L1 and L2 are path alignment identifiers corresponding to the shortest paths with the same and minimum number of virtual plots that the controlled virtual character needs to pass through to move from the current virtual plot to the target virtual plot, and the number of rounds for both is 4.
[0066] In this scenario, when the controlled virtual character A is selected, in response to the first trigger operation, the target virtual plot S2 can also be selected, and according to the relative positions of the current virtual plot S1 and the target virtual plot S2, the shortest path for the controlled virtual character A to move from the current virtual plot S1 to the target virtual plot S2 is calculated to include: the first shortest path corresponding to the first route identifier L1 and the second shortest path corresponding to the second route identifier L2. In order to facilitate the distinction, the first shortest path is marked with the first route identifier L1 and the second shortest path is marked with the second route identifier L2, and L1 and L2 are marked and displayed with different line widths.
[0067] It should be noted that see Figure 2 and Figure 3 As shown, in Figure 3 The special effect of the target virtual plot S2 being selected is different from Figure 2 In the display mode, Figure 3 The entire target virtual plot S2 is highlighted. Of course, the specific display method is not limited to this.
[0068] By applying the method of the present application, for example, in a fighting game, if the controlled virtual character has little health (for example, 30% remaining), the player can control the controlled virtual character to quickly return to the city along the shortest path, avoiding the risk of being attacked due to the long return path, thereby improving the fun of the game and the player's winning rate.
[0069] Figure 4 A schematic diagram of another game interface provided in an embodiment of the present application. In an optional implementation, the method further includes:
[0070] The first virtual plot on the shortest path is identified, wherein the first virtual plot is the virtual plot reached by the controlled virtual character after each round starting from the current virtual plot.
[0071] Optionally, in some embodiments, each first virtual plot on the shortest path may be marked so that the player can clearly and accurately know each virtual plot that the controlled virtual character passes through when moving from the current virtual plot to the target virtual plot. It is understandable that if the shortest path includes multiple paths, marking the first virtual plot will help the player choose the most appropriate shortest path to move from the current virtual plot to the target virtual plot, thereby improving the fun of the game and the chance of winning the game.
[0072] For example, see Figure 3 and Figure 4 As shown, the first shortest path corresponding to the first route identifier L1 and the second shortest path corresponding to the second route identifier L2 are both the shortest paths with the same and minimum number of virtual plots that the controlled virtual character needs to pass through to move from the current virtual plot to the target virtual plot. The first virtual plot on the first shortest path and the second shortest path can be identified respectively.
[0073] Reference Figure 4 As shown, the first virtual plot corresponding to the first shortest path includes: virtual plot L1-2, virtual plot L1-4, virtual plot L2-6 and target virtual plot S2; the first virtual plot corresponding to the second shortest path includes: virtual plot L2-2, virtual plot L2-4, virtual plot L2-6 and target virtual plot S2.
[0074] At this time, the player can determine the final walking path based on the first virtual plot on the first shortest path and the second shortest path. For example, in some embodiments, the first shortest path with fewer enemy virtual characters can be selected, and the controlled virtual character can be controlled to move from the current virtual plot to the target virtual plot along the first shortest path; in some other embodiments, the second shortest path with more virtual equipment that can be picked up can be selected, and the controlled virtual character can be controlled to move from the current virtual plot to the target virtual plot along the second shortest path. This is not limited here, and can be flexibly selected according to the actual application scenario.
[0075] Figure 5 A schematic diagram of another game interface provided in an embodiment of the present application. In an optional implementation, the above-mentioned marking of the first virtual plot on the shortest path includes:
[0076] For each first virtual plot, the corresponding round number N is displayed on the first virtual plot, and the round number N is used to represent that the controlled virtual character reaches the first virtual plot after the Nth round.
[0077] In some embodiments, in order to allow players to know the first virtual plot reached in each round, the corresponding round number N can also be displayed on each first virtual plot, so that players can adjust the movement path or game strategy according to the displayed round number N.
[0078] For example, a player expects that the number of turns required to reach a first virtual plot of land is less than N1, but at this time the number of turns required to reach the first virtual plot of land is shown to be greater than N1. In this case, the number of turns required for the controlled virtual character to reach the first virtual plot of land can be made less than N1 by upgrading equipment, replacing equipment, etc., which meets the player's game expectations, thereby increasing the player's game fun and making the gameplay more diverse.
[0079] Reference Figure 5 As shown, if the minimum number of rounds required for the controlled virtual character A to move from the current virtual plot S1 to the target virtual plot S2 along the first shortest path corresponding to the first route identifier L1 is 4, then on the first shortest path, the virtual plots L1-2, L1-4, L2-6 and the target virtual plot S2 are the first virtual plots. Then, at this time, the corresponding number of rounds can be displayed on each first virtual plot, wherein the virtual plot L1-2 displays the number of rounds 1, the virtual plot L1-4 displays the number of rounds 2, the virtual plot L2-6 displays the number of rounds 3, and the target virtual plot S2 displays the number of rounds 4, thereby improving the applicability and flexibility of the method of the present application.
[0080] In addition, see Figure 5 As shown, it can be understood that since the controlled virtual character A moves within a 2X2 virtual plot range each time (that is, the controlled virtual character can move to any virtual plot within a 2X2 range centered on the current position), when the controlled virtual character A moves to the virtual plot L2-6, only the last target virtual plot S2 is left. In the next round, the controlled virtual character A only needs to move from the virtual plot L2-6 to the target virtual plot S2, that is, only one virtual plot needs to be moved in the last round.
[0081] Figure 6A schematic diagram of another game interface provided by an embodiment of the present application. In an optional embodiment, the minimum number of rounds required for the above-mentioned display controlled virtual character to move from the current virtual plot to the target virtual plot includes:
[0082] The number of rounds is displayed on the first virtual plot, and the number of rounds is used to represent the number of rounds that the controlled virtual character has gone through when moving along the shortest path to reach the first virtual plot.
[0083] Among them, the first virtual plot is the virtual plot that the controlled virtual character reaches after each round starting from the current virtual plot. The first virtual plot includes the target virtual plot. The number of rounds displayed on the target virtual plot corresponds to the minimum number of rounds required for the controlled virtual character to move from the current virtual plot to the target virtual plot.
[0084] Specifically, when displaying, the number of rounds can be displayed on the first virtual plot on the determined shortest path, and the number of rounds displayed on the target virtual plot corresponds to the minimum number of rounds required for the controlled virtual character to move from the current virtual plot to the target virtual plot. It can be understood that for the target virtual plot, the target virtual plot displayed on it is also the last round.
[0085] See also Figure 6 As shown, the first virtual plot includes: virtual plot L1-2, virtual plot L1-4, virtual plot L2-6 and target virtual plot S2, then the virtual plot L1-2 can be set to display the number of rounds 1, the virtual plot L1-4 can display the number of rounds 2, the virtual plot L2-6 can display the number of rounds 3, and the target virtual plot S2 can display the number of rounds 4. It can be seen that the number of rounds 4 displayed on the target virtual plot S2 corresponds to the minimum number of rounds required for the controlled virtual character A to move from the current virtual plot S1 to the target virtual plot S2, so that the player can clearly and quickly know the minimum number of rounds required for the controlled virtual character to move from the current virtual plot to the target virtual plot according to the number of rounds displayed on the target virtual plot, thereby reducing the player's judgment time and improving decision-making efficiency.
[0086] Figure 7 A schematic diagram of another game interface provided by an embodiment of the present application. In an optional embodiment, the above-mentioned display of the shortest path for the controlled virtual character to move from the current virtual plot to the target virtual plot includes:
[0087] The multiple virtual plots included in the shortest path are highlighted, or a target route identifier is displayed, and the target route identifier passes through the multiple virtual plots included in the shortest path.
[0088] Optionally, in some embodiments, multiple virtual plots included in the shortest path may be highlighted respectively, so that players can know the distribution areas of the multiple virtual plots included in the shortest path based on the highlighting, thereby assisting players in adjusting game strategies.
[0089] See also Figure 7 As shown, for the first shortest path corresponding to the first route identifier L1, multiple virtual plots included in the first shortest path can be highlighted: virtual plot L1-1, virtual plot L1-2, virtual plot L1-3, virtual plot L1-4, virtual plot L1-5, virtual plot L2-6 and target virtual plot S2. Of course, the specific display method is not limited to this.
[0090] Continue to see Figure 7 As shown, of course, the target route mark passing through multiple virtual plots included in the shortest path, that is, the first route mark L1, can also be displayed. It can be seen that the first route mark L1 passes through multiple virtual plots included in the first shortest path.
[0091] It should be noted that the present application does not limit the specific display method. According to the actual application scenario, multiple virtual plots included in the shortest path can be highlighted and / or the target route mark can be displayed.
[0092] Figure 8 FIG. 1 is a flow chart of another display control method provided by the present invention. In an optional embodiment, as Figure 8 As shown, the above method also includes:
[0093] Step 201: Obtain the action power of the controlled virtual character.
[0094] The mobility of the controlled virtual character may represent the movement range corresponding to each movement of the controlled virtual character. For example, the controlled virtual character may move to any virtual plot within a range of nxn with the current position as the center. Optionally, the mobility of the controlled virtual character may be determined by reading the basic attribute parameters of the controlled virtual character.
[0095] Step 202: Calculate the minimum number of turns required for the controlled virtual character to move from the current virtual plot to the target virtual plot based on the mobility and the virtual plots included in the shortest path.
[0096] Based on the above description, after determining the virtual plots included in the shortest path for the controlled virtual character to move from the current virtual plot to the target virtual plot, the minimum number of rounds required for the controlled virtual character to move from the current virtual plot to the target virtual plot can be calculated based on the action force of the controlled virtual character and the number of virtual plots included in the shortest path, thereby achieving the ability to quickly calculate the minimum number of rounds and improving the decision-making efficiency of the target player.
[0097] Fig. 9 FIG. 1 is a flow chart of another display control method provided by the present invention. In an optional embodiment, as Fig. 9 As shown, in response to the first trigger operation on the target virtual plot in the game scene, calculating and displaying the shortest path for the controlled virtual character to move from the current virtual plot to the target virtual plot includes:
[0098] Step 301: In response to a first triggering operation on a target virtual plot in a game scene, determining the occupation status of each virtual plot in the game scene.
[0099] In some embodiments, considering that some virtual plots in the game scene may be occupied by other virtual objects and cannot be passed quickly, the occupation status of each virtual plot in the game scene can be determined in response to the first trigger operation. Optionally, the other virtual objects can be non-teammate virtual characters, including but not limited to: enemy virtual characters, obstacles (such as virtual equipment held by enemy virtual characters), etc. that reduce the movement speed of the controlled virtual character, or other virtual objects that have potential harm to the controlled virtual character.
[0100] Step 302: Calculate and display the shortest path for the controlled virtual character to move from the current virtual plot to the target virtual plot based on the occupation status of each virtual plot in the game scene.
[0101] Furthermore, after determining the occupation status of each virtual plot in the game scene, the shortest path for the controlled virtual character to move from the current virtual plot to the target virtual plot can be calculated and displayed accordingly. In the calculation process, the occupation status of each virtual plot can be taken into account so that the shortest path with the shortest moving distance can be calculated.
[0102] For example, by applying the embodiments of the present application, the shortest path for a controlled virtual character to move from a current virtual plot to a target virtual plot can be calculated and displayed, wherein the shortest path does not include: enemy virtual characters, obstacles (such as virtual equipment held by enemy virtual characters), etc. that reduce the movement speed of the controlled virtual character, or other virtual objects that pose potential harm to the controlled virtual character, which can increase the movement speed and safety of the controlled virtual character from the current virtual plot to the target virtual plot.
[0103] Fig.10 FIG. 1 is a flow chart of another display control method provided by the present invention. In an optional embodiment, as Fig.10 As shown, the above method calculates and displays the shortest path for the controlled virtual character to move from the current virtual plot to the target virtual plot according to the occupation status of each virtual plot in the game scene, including:
[0104] Step 401: According to the occupation status of each virtual plot in the game scene, a second virtual plot that is not in an occupied state is screened.
[0105] Step 402: Based on the second virtual plot that is not in an occupied state, calculate and display the shortest path for the controlled virtual character to move from the current virtual plot to the target virtual plot.
[0106] Optionally, when calculating the shortest path, multiple second virtual plots that are not occupied can be screened out according to the occupancy status of each virtual plot in the game scene, and then based on the multiple second virtual plots, the shortest path for the controlled virtual character to move from the current virtual plot to the target virtual plot is calculated and displayed. Through this screening operation, the shortest path can be quickly calculated, planned, and displayed, which can reduce the player's waiting time and improve the gaming experience.
[0107] It should be noted that the second virtual plots that are not in an occupied state should include multiple ones.
[0108] Fig.11 FIG. 1 is a flow chart of another display control method provided by the present invention. In an optional embodiment, as Fig.11 As shown, the above method also includes:
[0109] Step 501: In response to the end of the first trigger operation, cancel the display of the minimum number of rounds required for the controlled virtual character to move from the current virtual plot to the target virtual plot.
[0110] Optionally, in some embodiments, in response to the end of the first trigger operation, the minimum number of rounds required for the controlled virtual character to move from the current virtual plot to the target virtual plot may be canceled to avoid excessive information being displayed and blocking the player's view.
[0111] Of course, in some embodiments, a timing can also be set in response to the end of the first trigger operation. If the timing reaches a preset time threshold, the marked minimum number of rounds will be cancelled, thereby reducing the player's memory pressure and improving the flexibility and applicability of the method of the present application.
[0112] Fig.12 A schematic diagram of another game interface provided by the present invention. In an optional embodiment, in response to the first trigger operation on the target virtual plot in the game scene, selecting the target virtual plot includes:
[0113] In response to a first trigger operation on a target virtual plot in the game scene, if it is determined that the target virtual plot is in an occupied state, a prompt message for reselection is displayed.
[0114] Optionally, of course, in some embodiments, the target virtual plot currently acted upon by the player through the first trigger operation may be occupied (for example, there is an obstacle at the target virtual plot, or the game is set to be non-communication). In this case, in order to improve the player's gaming experience, a reselection prompt message may be displayed to remind the player to reselect a new target virtual plot. For example, at this time, the player can approach the target virtual plot to make a nearby selection, thereby improving the flexibility of the method of the present application.
[0115] Of course, it should be noted that, while displaying the prompt information for reselection, the currently recommended virtual plot can also be highlighted to the player. Optionally, the recommended virtual plot can be the virtual plot closest to the target virtual plot.
[0116] like Fig.12 As shown, for example, in response to the first trigger operation on the target virtual plot S3 in the game scene, if the target virtual plot S3 is in an occupied state, a prompt message "This plot cannot be selected, please reselect!" can be displayed; optionally, in some embodiments, the player can also highlight the currently recommended virtual plot, for example, the recommended virtual plot S4, for the player to make a quick selection, thereby improving the player's selection efficiency, avoiding the player from making multiple selections, and improving the player's interactive experience.
[0117] In an optional embodiment, the above method further includes:
[0118] In response to a second trigger operation on the controlled virtual character, it is determined that the controlled virtual character is selected.
[0119] Optionally, the player may act on the controlled virtual character by triggering methods such as long pressing, re-pressing, and double-clicking, and in response to the second triggering operation, it may be determined that the controlled virtual character is selected.
[0120] In some embodiments, in order to let the player know the currently triggered controlled virtual character, in response to the second trigger operation, a response feedback may be given, such as vibration feedback or sound feedback, so that the player knows that the currently controlled character has been selected. For example, a sound is played: the controlled virtual character A has been currently selected, and the next operation can be performed. Of course, the prompt method is not limited to this.
[0121] In an optional implementation, in response to the second triggering operation on the controlled virtual character, determining that the controlled virtual character is selected includes:
[0122] In response to the second triggering operation on the controlled virtual character, a preset selection special effect is displayed around the controlled virtual character, and it is determined that the controlled virtual character is selected.
[0123] In some embodiments, in order to facilitate the player to quickly know the selected state of the controlled character from the game interface, optionally, in response to the second trigger operation, a preset selection special effect can be displayed around the controlled virtual character, and the controlled virtual character is determined to be selected. Optionally, the preset selection special effect can be: displaying a preset aperture around the controlled virtual character, displaying the nickname of the controlled virtual character in a preset style, displaying the head area of the controlled virtual character as a highlight (such as Figure 2 The head area of the controlled virtual character). Of course, the specific display method is not limited to this.
[0124] Reference Fig.12 As shown, in response to the second trigger operation, an indicator arrow R may be set to be displayed above the head of the controlled virtual character A, and the controlled virtual character A is determined to be selected. It can be understood that at this time, the player can clearly know the currently selected controlled virtual character according to the display of the indicator arrow R, avoiding erroneous operation without knowing it, and improving the applicability and flexibility of the method of the present application.
[0125] In an optional implementation, the first trigger operation is a long press operation or a heavy press operation. Of course, the triggering mode of the first trigger operation is not limited to this, and can be flexibly set according to actual application scenarios, for example, it can also be set to a double-click operation.
[0126] Among them, it should be noted that if the first trigger operation is a long press operation, optionally, a time threshold N can be set. When the long press time T>N of the long press operation, it is determined that the target virtual plot is selected, and the minimum number of rounds required for the controlled virtual character to move from the current virtual plot to the target virtual plot is calculated and displayed; when the long press time T<=N of the long press operation, it is determined that the current long press operation is a false trigger operation, and no change occurs on the interface.
[0127] Optionally, the value of the time threshold N may be any value between 0.2-0.6S, which may be determined based on actual hand feel debugging and is not limited here.
[0128] Fig.13 This is a functional module diagram of a display control device provided in an embodiment of the present application. The device can provide a graphical user interface through a terminal device. The graphical user interface includes a controlled virtual character in a game scene. The game scene includes multiple virtual plots. The basic principle of the device and the technical effects produced are the same as those of the corresponding method embodiment described above. For the sake of brief description, the parts not mentioned in this embodiment can be referred to the corresponding content in the method embodiment. Fig.13 As shown, the display control device 100 includes:
[0129] A response module 110 is used for selecting the target virtual plot in response to a first trigger operation on the target virtual plot in the game scene when the controlled virtual character is selected;
[0130] The display module 120 is used to calculate and display the minimum number of rounds required for the controlled virtual character to move from the current virtual plot to the target virtual plot according to the attributes of the controlled virtual character, the current virtual plot where the controlled virtual character is located, and the target virtual plot.
[0131] In an optional embodiment, the response module 110 is further configured to calculate and display the shortest path for the controlled virtual character to move from the current virtual plot to the target virtual plot in response to a first trigger operation on the target virtual plot in the game scene;
[0132] Among them, the shortest path is the path with the least number of virtual plots that the controlled virtual character needs to pass through to move from the current virtual plot to the target virtual plot; the minimum number of rounds indicates the number of rounds that the controlled virtual character needs to pass through to move from the current virtual plot to the target virtual plot along the shortest path.
[0133] In an optional implementation, the display module 120 is further used to identify the first virtual plot on the shortest path, wherein the first virtual plot is the virtual plot reached by the controlled virtual character after each round starting from the current virtual plot.
[0134] In an optional embodiment, the display module 120 is further used to display the corresponding round number N on each first virtual plot, where the round number N is used to represent that the controlled virtual character reaches the first virtual plot after the Nth round.
[0135] In an optional implementation, the display module 120 is specifically used to display the number of rounds on the first virtual plot, where the number of rounds is used to represent the number of rounds that the controlled virtual character has gone through when moving along the shortest path to reach the first virtual plot;
[0136] Among them, the first virtual plot is the virtual plot that the controlled virtual character reaches after each round starting from the current virtual plot, the first virtual plot includes the target virtual plot, and the number of rounds displayed on the target virtual plot corresponds to the minimum number of rounds required for the controlled virtual character to move from the current virtual plot to the target virtual plot.
[0137] In an optional implementation, the display module 120 is specifically configured to highlight the multiple virtual plots included in the shortest path, or to display a target route identifier, where the target route identifier passes through the multiple virtual plots included in the shortest path.
[0138] In an optional embodiment, the above-mentioned device further comprises: a calculation module, used to obtain the action force of the controlled virtual character;
[0139] Based on the action force and the virtual plots included in the shortest path, the minimum number of turns required for the controlled virtual character to move from the current virtual plot to the target virtual plot is calculated.
[0140] In an optional embodiment, the display module is specifically used to determine the occupation status of each virtual plot in the game scene in response to a first trigger operation on a target virtual plot in the game scene;
[0141] According to the occupation status of each virtual plot in the game scene, the shortest path for the controlled virtual character to move from the current virtual plot to the target virtual plot is calculated and displayed.
[0142] In an optional implementation, the display module 120 is specifically used to filter the second virtual plot that is not in an occupied state according to the occupied state of each virtual plot in the game scene;
[0143] Based on the second virtual plot that is not in an occupied state, a shortest path for the controlled virtual character to move from the current virtual plot to the target virtual plot is calculated and displayed.
[0144] In an optional implementation, the display module 120 is further configured to cancel displaying the minimum number of rounds required for the controlled virtual character to move from the current virtual plot to the target virtual plot in response to the completion of the first trigger operation.
[0145] In an optional embodiment, the response module 110 is specifically configured to respond to a first trigger operation on a target virtual plot in the game scene, and if it is determined that the target virtual plot is occupied, display a prompt message for reselection.
[0146] In an optional implementation, the response module 110 is further configured to determine that the controlled virtual character is selected in response to a second triggering operation on the controlled virtual character.
[0147] In an optional implementation, the response module 110 is specifically configured to display a preset selection effect around the controlled virtual character in response to the second trigger operation on the controlled virtual character, and determine that the controlled virtual character is selected.
[0148] In an optional implementation, the first trigger operation is a long press operation.
[0149] The above-mentioned device is used to execute the method provided by the aforementioned embodiment, and its implementation principle and technical effect are similar, which will not be repeated here.
[0150] The above modules may be one or more integrated circuits configured to implement the above methods, such as one or more application specific integrated circuits (ASICs), or one or more microprocessors, or one or more field programmable gate arrays (FPGAs). For another example, when a module is implemented in the form of a processing element scheduling program code, the processing element may be a general-purpose processor, such as a central processing unit (CPU) or other processor that can call program code. For another example, these modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).
[0151] Fig.14 The following is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. The electronic device can be integrated into a display control device. Fig.14 As shown, the electronic device may include: a processor 210, a storage medium 220 and a bus 230, the storage medium 220 stores machine-readable instructions executable by the processor 210, when the electronic device is running, the processor 210 and the storage medium 220 communicate through the bus 230, the processor 210 executes the machine-readable instructions to perform the steps of the following method embodiment:
[0152] When the controlled virtual character is selected, in response to a first triggering operation on a target virtual plot in the game scene, selecting the target virtual plot;
[0153] According to the attributes of the controlled virtual character, the current virtual plot where the controlled virtual character is located, and the target virtual plot, the minimum number of turns required for the controlled virtual character to move from the current virtual plot to the target virtual plot is calculated and displayed.
[0154] In an optional embodiment, the method further comprises:
[0155] In response to a first trigger operation on a target virtual plot in the game scene, calculating and displaying the shortest path for the controlled virtual character to move from the current virtual plot to the target virtual plot;
[0156] Among them, the shortest path is the path with the least number of virtual plots that the controlled virtual character needs to pass through to move from the current virtual plot to the target virtual plot; the minimum number of rounds indicates the number of rounds that the controlled virtual character needs to pass through to move from the current virtual plot to the target virtual plot along the shortest path.
[0157] In an optional embodiment, the method further comprises:
[0158] The first virtual plot on the shortest path is identified, wherein the first virtual plot is the virtual plot reached by the controlled virtual character after each round starting from the current virtual plot.
[0159] In an optional implementation manner, the marking the first virtual plot on the shortest path includes:
[0160] For each of the first virtual plots, a corresponding round number N is displayed on the first virtual plot, and the round number N is used to represent that the controlled virtual character reaches the first virtual plot after the Nth round.
[0161] In an optional implementation manner, the displaying of the minimum number of rounds required for the controlled virtual character to move from the current virtual plot to the target virtual plot includes:
[0162] Displaying a round number on the first virtual plot, the round number being used to represent the number of rounds that the controlled virtual character has gone through when moving along the shortest path to reach the first virtual plot;
[0163] Among them, the first virtual plot is the virtual plot that the controlled virtual character reaches after each round starting from the current virtual plot, the first virtual plot includes the target virtual plot, and the number of rounds displayed on the target virtual plot corresponds to the minimum number of rounds required for the controlled virtual character to move from the current virtual plot to the target virtual plot.
[0164] In an optional implementation manner, displaying the shortest path for the controlled virtual character to move from the current virtual plot to the target virtual plot includes:
[0165] The multiple virtual plots included in the shortest path are highlighted, or a target route mark is displayed, where the target route mark passes through the multiple virtual plots included in the shortest path.
[0166] In an optional embodiment, the method further comprises:
[0167] Obtaining the action power of the controlled virtual character;
[0168] Based on the action force and the virtual plots included in the shortest path, the minimum number of turns required for the controlled virtual character to move from the current virtual plot to the target virtual plot is calculated.
[0169] In an optional embodiment, in response to a first trigger operation on a target virtual plot in the game scene, calculating and displaying the shortest path for the controlled virtual character to move from the current virtual plot to the target virtual plot includes:
[0170] In response to a first triggering operation on a target virtual plot in the game scene, determining an occupation state of each virtual plot in the game scene;
[0171] According to the occupation status of each virtual plot in the game scene, the shortest path for the controlled virtual character to move from the current virtual plot to the target virtual plot is calculated and displayed.
[0172] In an optional implementation, the calculating and displaying the shortest path for the controlled virtual character to move from the current virtual plot to the target virtual plot according to the occupation status of each virtual plot in the game scene includes:
[0173] According to the occupation status of each virtual plot in the game scene, screening a second virtual plot that is not in an occupied state;
[0174] Based on the second virtual plot that is not in an occupied state, a shortest path for the controlled virtual character to move from the current virtual plot to the target virtual plot is calculated and displayed.
[0175] In an optional embodiment, the method further comprises:
[0176] In response to the end of the first trigger operation, the minimum number of rounds required for the controlled virtual character to move from the current virtual plot to the target virtual plot is canceled.
[0177] In an optional implementation, in response to a first triggering operation on a target virtual plot in the game scene, selecting the target virtual plot includes:
[0178] In response to a first trigger operation on a target virtual plot in the game scene, if it is determined that the target virtual plot is in an occupied state, a prompt message for reselection is displayed.
[0179] In an optional embodiment, the method further comprises:
[0180] In response to a second trigger operation on the controlled virtual character, it is determined that the controlled virtual character is selected.
[0181] In an optional implementation, in response to the second triggering operation on the controlled virtual character, determining that the controlled virtual character is selected includes:
[0182] In response to a second triggering operation on the controlled virtual character, a preset selection special effect is displayed around the controlled virtual character, and it is determined that the controlled virtual character is selected.
[0183] In an optional implementation, the first trigger operation is a long press operation.
[0184] The specific implementation method and technical effects of the above method embodiment are similar to those mentioned above and will not be repeated here.
[0185] Optionally, the present application further provides a storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the following method embodiment are executed:
[0186] When the controlled virtual character is selected, in response to a first triggering operation on a target virtual plot in the game scene, selecting the target virtual plot;
[0187] According to the attributes of the controlled virtual character, the current virtual plot where the controlled virtual character is located, and the target virtual plot, the minimum number of turns required for the controlled virtual character to move from the current virtual plot to the target virtual plot is calculated and displayed.
[0188] In an optional embodiment, the method further comprises:
[0189] In response to a first trigger operation on a target virtual plot in the game scene, calculating and displaying the shortest path for the controlled virtual character to move from the current virtual plot to the target virtual plot;
[0190] Among them, the shortest path is the path with the least number of virtual plots that the controlled virtual character needs to pass through to move from the current virtual plot to the target virtual plot; the minimum number of rounds indicates the number of rounds that the controlled virtual character needs to pass through to move from the current virtual plot to the target virtual plot along the shortest path.
[0191] In an optional embodiment, the method further comprises:
[0192] The first virtual plot on the shortest path is identified, wherein the first virtual plot is the virtual plot reached by the controlled virtual character after each round starting from the current virtual plot.
[0193] In an optional implementation manner, the marking the first virtual plot on the shortest path includes:
[0194] For each of the first virtual plots, a corresponding round number N is displayed on the first virtual plot, and the round number N is used to represent that the controlled virtual character reaches the first virtual plot after the Nth round.
[0195] In an optional implementation manner, the displaying of the minimum number of rounds required for the controlled virtual character to move from the current virtual plot to the target virtual plot includes:
[0196] Displaying a round number on the first virtual plot, the round number being used to represent the number of rounds that the controlled virtual character has gone through when moving along the shortest path to reach the first virtual plot;
[0197] Among them, the first virtual plot is the virtual plot that the controlled virtual character reaches after each round starting from the current virtual plot, the first virtual plot includes the target virtual plot, and the number of rounds displayed on the target virtual plot corresponds to the minimum number of rounds required for the controlled virtual character to move from the current virtual plot to the target virtual plot.
[0198] In an optional implementation manner, displaying the shortest path for the controlled virtual character to move from the current virtual plot to the target virtual plot includes:
[0199] The multiple virtual plots included in the shortest path are highlighted, or a target route mark is displayed, where the target route mark passes through the multiple virtual plots included in the shortest path.
[0200] In an optional embodiment, the method further comprises:
[0201] Obtaining the action power of the controlled virtual character;
[0202] Based on the action force and the virtual plots included in the shortest path, the minimum number of turns required for the controlled virtual character to move from the current virtual plot to the target virtual plot is calculated.
[0203] In an optional embodiment, in response to a first triggering operation on a target virtual plot in the game scene, calculating and displaying the shortest path for the controlled virtual character to move from the current virtual plot to the target virtual plot includes:
[0204] In response to a first triggering operation on a target virtual plot in the game scene, determining an occupation state of each virtual plot in the game scene;
[0205] According to the occupation status of each virtual plot in the game scene, the shortest path for the controlled virtual character to move from the current virtual plot to the target virtual plot is calculated and displayed.
[0206] In an optional implementation, the calculating and displaying the shortest path for the controlled virtual character to move from the current virtual plot to the target virtual plot according to the occupation status of each virtual plot in the game scene includes:
[0207] According to the occupation status of each virtual plot in the game scene, screening a second virtual plot that is not in an occupied state;
[0208] Based on the second virtual plot that is not in an occupied state, a shortest path for the controlled virtual character to move from the current virtual plot to the target virtual plot is calculated and displayed.
[0209] In an optional embodiment, the method further comprises:
[0210] In response to the end of the first trigger operation, the minimum number of rounds required for the controlled virtual character to move from the current virtual plot to the target virtual plot is canceled.
[0211] In an optional implementation, in response to a first triggering operation on a target virtual plot in the game scene, selecting the target virtual plot includes:
[0212] In response to a first trigger operation on a target virtual plot in the game scene, if it is determined that the target virtual plot is in an occupied state, a prompt message for reselection is displayed.
[0213] In an optional embodiment, the method further comprises:
[0214] In response to a second trigger operation on the controlled virtual character, it is determined that the controlled virtual character is selected.
[0215] In an optional implementation, in response to the second triggering operation on the controlled virtual character, determining that the controlled virtual character is selected includes:
[0216] In response to a second triggering operation on the controlled virtual character, a preset selection special effect is displayed around the controlled virtual character, and it is determined that the controlled virtual character is selected.
[0217] In an optional implementation, the first trigger operation is a long press operation.
[0218] The specific implementation method and technical effects of the above method embodiment are similar to those mentioned above and will not be repeated here.
[0219] Optionally, the present application also provides a computer program product, which includes instructions, and when the instructions are executed on an electronic device, the electronic device implements the steps of the above method embodiment.
[0220] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0221] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0222] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0223] The above-mentioned integrated unit implemented in the form of a software functional unit can be stored in a computer-readable storage medium. The above-mentioned software functional unit is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor (English: processor) to perform some steps of the methods of each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (English: Read-Only Memory, abbreviated: ROM), random access memory (English: Random Access Memory, abbreviated: RAM), disk or optical disk and other media that can store program codes.
[0224] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0225] The above are only preferred embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the scope of protection of the present application. It should be noted that similar numbers and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings. The above are only preferred embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the scope of protection of the present application.
Claims
1. A display control method, characterized in that: A graphical user interface is provided by a terminal device, wherein the graphical user interface includes a controlled virtual character in a game scene, wherein the game scene includes a plurality of virtual plots, and the method includes: When the controlled virtual character is selected, in response to a first triggering operation on a target virtual plot in the game scene, selecting the target virtual plot; According to the attributes of the controlled virtual character, the current virtual plot where the controlled virtual character is located, and the target virtual plot, the minimum number of turns required for the controlled virtual character to move from the current virtual plot to the target virtual plot is calculated and displayed.
2. The method according to claim 1, characterized in that: The method further comprises: In response to a first trigger operation on a target virtual plot in the game scene, calculating and displaying the shortest path for the controlled virtual character to move from the current virtual plot to the target virtual plot; Among them, the shortest path is the path with the least number of virtual plots that the controlled virtual character needs to pass through to move from the current virtual plot to the target virtual plot; the minimum number of rounds indicates the number of rounds that the controlled virtual character needs to pass through to move from the current virtual plot to the target virtual plot along the shortest path.
3. The method according to claim 2, characterized in that The method further comprises: The first virtual plot on the shortest path is identified, wherein the first virtual plot is the virtual plot reached by the controlled virtual character after each round starting from the current virtual plot.
4. The method according to claim 3, characterized in that: The marking of the first virtual plot on the shortest path includes: For each of the first virtual plots, a corresponding round number N is displayed on the first virtual plot, and the round number N is used to represent that the controlled virtual character reaches the first virtual plot after the Nth round.
5. The method according to claim 2, characterized in that: The minimum number of rounds required for displaying the controlled virtual character moving from the current virtual plot to the target virtual plot includes: Displaying a round number on the first virtual plot, the round number being used to represent the number of rounds that the controlled virtual character has gone through when moving along the shortest path to reach the first virtual plot; Among them, the first virtual plot is the virtual plot that the controlled virtual character reaches after each round starting from the current virtual plot, the first virtual plot includes the target virtual plot, and the number of rounds displayed on the target virtual plot corresponds to the minimum number of rounds required for the controlled virtual character to move from the current virtual plot to the target virtual plot.
6. The method according to claim 2, characterized in that The displaying the shortest path for the controlled virtual character to move from the current virtual plot to the target virtual plot includes: The multiple virtual plots included in the shortest path are highlighted, or a target route mark is displayed, where the target route mark passes through the multiple virtual plots included in the shortest path.
7. The method according to claim 2, characterized in that: The method further comprises: Obtaining the action power of the controlled virtual character; Based on the action force and the virtual plots included in the shortest path, the minimum number of turns required for the controlled virtual character to move from the current virtual plot to the target virtual plot is calculated.
8. The method according to claim 2, characterized in that: The step of calculating and displaying the shortest path for the controlled virtual character to move from the current virtual plot to the target virtual plot in response to a first triggering operation on the target virtual plot in the game scene comprises: In response to a first triggering operation on a target virtual plot in the game scene, determining an occupation state of each virtual plot in the game scene; According to the occupation status of each virtual plot in the game scene, the shortest path for the controlled virtual character to move from the current virtual plot to the target virtual plot is calculated and displayed.
9. The method according to claim 8, characterized in that The step of calculating and displaying the shortest path for the controlled virtual character to move from the current virtual plot to the target virtual plot according to the occupation status of each virtual plot in the game scene comprises: According to the occupation status of each virtual plot in the game scene, a second virtual plot that is not in an occupied state is selected; Based on the second virtual plot that is not in an occupied state, a shortest path for the controlled virtual character to move from the current virtual plot to the target virtual plot is calculated and displayed.
10. The method according to claim 1, characterized in that The method further comprises: In response to the end of the first trigger operation, the minimum number of rounds required for the controlled virtual character to move from the current virtual plot to the target virtual plot is canceled.
11. The method according to claim 1, characterized in that: In response to a first triggering operation on a target virtual plot in the game scene, selecting the target virtual plot includes: In response to a first trigger operation on a target virtual plot in the game scene, if it is determined that the target virtual plot is in an occupied state, a prompt message for reselection is displayed.
12. The method according to any one of claims 1 to 11, characterized in that: The method further includes: in response to a second trigger operation on the controlled virtual character, determining that the controlled virtual character is selected.
13. The method according to claim 12, characterized in that The step of determining that the controlled virtual character is selected in response to a second triggering operation on the controlled virtual character comprises: In response to a second triggering operation on the controlled virtual character, a preset selection special effect is displayed around the controlled virtual character, and it is determined that the controlled virtual character is selected.
14. The method according to claim 12, characterized in that The first trigger operation is a long press operation.
15. A display control device, providing a graphical user interface through a terminal device, wherein the graphical user interface includes a controlled virtual character in a game scene, wherein the game scene includes a plurality of virtual plots, characterized in that: include: a response module, configured to select the target virtual plot in response to a first triggering operation on the target virtual plot in the game scene when the controlled virtual character is selected; The display module is used to calculate and display the minimum number of rounds required for the controlled virtual character to move from the current virtual plot to the target virtual plot according to the attributes of the controlled virtual character, the current virtual plot where the controlled virtual character is located, and the target virtual plot.
16. An electronic device, characterized in that: include: A processor, a storage medium and a bus, wherein the storage medium stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor communicates with the storage medium via the bus, and the processor executes the machine-readable instructions to perform the steps of the display control method as described in any one of claims 1-14.
17. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the display control method according to any one of claims 1 to 14 are executed.
Citation Information
Patent Citations
Path navigation time calculating method based on gradient and slope
CN104819728A
Game object path finding method and device thereof and computer readable storage medium
CN113877208A
Display control method and device for instant card making game
CN115155065A
Robotics Virtual Rail System and Method
US20080009964A1