Game resource processing pipeline generation method and device, and computer device
By dynamically generating virtual production lines in response to player gestures within the game interface, the problem of players having difficulty identifying the production relationships between processing points is solved, resulting in a more intuitive game interface and greater flexibility.
Patent Information
- Application Number
- CN202211152452.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-21
- Publication Date
- 2025-12-19
- Estimated Expiration
- 2042-09-21
AI Technical Summary
The virtual production line generated in the current game interface is represented by a simple single arrowhead, making it difficult for players to identify the production relationships between processing points and increasing cognitive costs.
By responding to players' real-time gestures in the graphical user interface, the system uses animation to display the movement path and determines the virtual pipeline between upstream and downstream resource processing nodes based on the gestures, dynamically rendering the virtual pipeline.
It improves the intuitiveness of the game interface, enabling players to quickly identify the virtual pipeline, reducing cognitive costs, and enhances the game's flexibility, allowing players to customize the construction of the pipeline.
Smart Images

Figure CN115543173B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of computer, in particular to a pipeline generation method and device for game resource processing, a computer device and a storage medium. BACKGROUND
[0002] In recent years, network games have gradually become the interest and hobby of people in their spare time and rapidly developed in the global scope. Among them, the simulation management game is one of the network game types. A player plays the role of a manager to manage the virtual world in the game.
[0003] In the management game, the virtual pipeline generated between different processing points can make the player more intuitively understand the production relationship between the processing points. However, the virtual pipeline generated in the current game interface is represented by a simple single-arrow head line to abstractly represent the production relationship between different processing points. This way is not intuitive, and the player is not easy to identify the virtual pipeline in the game process, which increases the cognitive cost of the game player. SUMMARY
[0004] Therefore, it is necessary to provide a pipeline generation method and device for game resource processing, a computer device and a storage medium to enhance the intuitive visual effect of the graphical user interface, so that the player can quickly identify the virtual pipeline to be generated in the graphical user interface and reduce the cognitive cost of the player.
[0005] A pipeline generation method for game resource processing is applied to a graphical user interface of a game, the graphical user interface displays a plurality of resource processing nodes, each resource processing node is used to receive input resources and produce output resources, and the method comprises the following steps: in response to a selection operation acting on any resource processing node, taking any resource processing node as an upstream resource processing node; in response to a real-time gesture operation acting on the graphical user interface, displaying a travel path corresponding to the real-time gesture operation in an animation manner; when the real-time gesture operation ends, determining a downstream resource processing node according to the ended real-time gesture operation, and determining a virtual pipeline between the upstream resource processing node and the downstream resource node according to the gesture operation at each time; and rendering the virtual pipeline in the graphical user interface.
[0006] In one embodiment, the pipeline generation method for game resource processing further comprises: when the real-time gesture operation is a real-time operation of two gestures and the directions of the real-time operation of the two gestures are opposite, determining that the real-time gesture operation ends in response to the contact action of the real-time operation of the two gestures.
[0007] In one embodiment, the virtual pipeline between the upstream resource processing node and the downstream resource node is determined according to the gesture operation at each time, comprising: if the gesture operation at any time is identified to trigger the obstacle icon in the graphical user interface, the virtual pipeline is determined according to the gesture operation at each time and the obstacle icon, so that the virtual pipeline does not overlap with the obstacle icon.
[0008] In one embodiment, the virtual pipeline is determined according to the gesture operation at each time and the obstacle icon, comprising: identifying the number of pipelines on the first side of the obstacle icon and the number of pipelines on the second side of the obstacle icon, wherein the first side and the second side of the obstacle icon are divided by the connection line between the upstream resource processing node and the downstream resource node as the central axis; the side with the smaller number of pipelines on the first side and the second side is taken as the target side; and the virtual pipeline is determined according to the gesture operation at each time and the interface area of the target side in the graphical user interface.
[0009] In one embodiment, the virtual pipeline is determined according to the gesture operation at each time and the obstacle icon, comprising: identifying the direction of the pipeline closest to the obstacle icon on the first side of the obstacle icon and the direction of the pipeline closest to the obstacle icon on the second side of the obstacle icon, wherein the first side and the second side of the obstacle icon are divided by the connection line between the upstream resource processing node and the downstream resource node as the central axis; the side with the same or similar direction as the direction of the virtual pipeline is taken as the target side from the direction of the pipeline closest to the obstacle icon on the first side and the direction of the pipeline closest to the obstacle icon on the second side; and the virtual pipeline is determined according to the gesture operation at each time and the interface area of the target side in the graphical user interface.
[0010] In one embodiment, the virtual pipeline is determined according to the gesture operation at each time and the obstacle icon, comprising: identifying the number of resource processing nodes on the first side of the obstacle icon and the number of resource processing nodes on the second side of the obstacle icon, wherein the first side and the second side of the obstacle icon are divided by the connection line between the upstream resource processing node and the downstream resource node as the central axis; the side with the smaller number of resource processing nodes on the first side and the second side is taken as the target side; and the virtual pipeline is determined according to the gesture operation at each time and the interface area of the target side in the graphical user interface.
[0011] In one embodiment, the virtual pipeline is determined according to the gesture operation at each time and the obstacle icon, comprising: identifying a target gesture operation triggering the obstacle icon; if the target gesture operation triggers an interface region corresponding to a first edge of the obstacle icon, taking the first edge as a target edge; if the target gesture operation triggers an interface region corresponding to a second edge of the obstacle icon, taking the second edge as the target edge, wherein the first edge and the second edge of the obstacle icon are divided by a central axis of the obstacle icon; and determining the virtual pipeline according to the gesture operation at each time and the interface region of the target edge in the graphical user interface.
[0012] In one embodiment, after the step of displaying the travel path corresponding to the real-time gesture operation in an animated manner, the method further comprises: displaying the output resource of the upstream resource processing node on the travel path in an animated manner.
[0013] In one embodiment, after the step of displaying the travel path corresponding to the real-time gesture operation in an animated manner, the method further comprises: displaying the path building action in an animated manner at the real-time gesture operation in the graphical user interface.
[0014] In one embodiment, the pipeline generation method of game resource processing further comprises: if it is identified that the real-time gesture operation triggers the obstacle icon in the graphical user interface, highlighting or dimming the obstacle icon; and / or, if it is identified that the real-time gesture operation triggers the obstacle icon in the graphical user interface, changing the curvature or color of the travel path segment corresponding to the real-time gesture operation in the travel path.
[0015] In one embodiment, the pipeline generation method of game resource processing further comprises: in response to a selection operation acting on the upstream resource processing node, displaying one or more resource production type options of the upstream resource processing node in the graphical user interface; in response to any resource production type option acting on the upstream resource processing node, determining the output resource produced by the upstream resource processing node according to the any resource production type option of the upstream resource processing node; and / or, in response to a selection operation acting on the downstream resource processing node, displaying one or more resource production type options of the downstream resource processing node in the graphical user interface; in response to any resource production type option acting on the downstream resource processing node, determining the output resource produced by the downstream resource processing node according to the any resource production type option of the downstream resource processing node.
[0016] The application discloses a pipeline generation device for game resource processing, which is applied to a graphical user interface of a game, and a plurality of resource processing nodes are displayed in the graphical user interface, each resource processing node is used for receiving input resources and producing output resources, and the pipeline generation device comprises a first response module, a second response module, a determination module and a rendering module.
[0017] The application further provides a computer device, which comprises a memory, a processor and a computer program stored in the memory and executable on the processor, and the processor implements the steps of the method according to any one of the embodiments when executing the computer program.
[0018] The application further provides a computer readable storage medium, which stores a computer program, and the computer program implements the steps of the method according to any one of the embodiments when executed by a processor.
[0019] The application further provides a pipeline generation method, device, computer device and storage medium for game resource processing, wherein any resource processing node in a plurality of resource processing nodes is taken as an upstream resource processing node in response to a selection operation acting on the resource processing node; a travel path corresponding to a real-time gesture operation is displayed in an animated manner in response to the real-time gesture operation acting on the graphical user interface; a downstream resource processing node is determined according to the ended real-time gesture operation when the real-time gesture operation ends, and a virtual pipeline between the upstream resource processing node and the downstream resource processing node is determined according to the gesture operation at each time; and the virtual pipeline is rendered in the graphical user interface.
[0020] Therefore, in the graphical user interface of the game, when the player performs real-time gesture operation on the upstream resource processing node and the downstream resource processing node to construct a virtual pipeline between the two, the corresponding travel path of the real-time gesture operation is displayed in an animated manner to enhance the intuitive visual effect of the graphical user interface, so that the player can quickly identify the virtual pipeline to be generated in the graphical user interface, and reduce the cognitive cost of the player. In addition, according to the gesture operation of the player to determine the upstream resource processing node and the downstream resource processing node, and according to the gesture operation at each moment to determine the virtual pipeline between the upstream resource processing node and the downstream resource node, and rendering the virtual pipeline in the graphical user interface, the player can customize the upstream resource processing node and the downstream resource processing node in the graphical user interface, and the virtual pipeline between the two, so that the rendered virtual pipeline is more in line with the needs of the player, and the flexibility of the game is improved. BRIEF DESCRIPTION OF DRAWINGS
[0021] Figure 1 An application environment diagram of a game resource processing pipeline generation method in an embodiment;
[0022] Figure 2 A flowchart of a game resource processing pipeline generation method in an embodiment;
[0023] Figure 3 A schematic diagram of a graphical user interface for animated display of a travel path and a virtual pipeline in an embodiment;
[0024] Figure 4 A schematic diagram of a graphical user interface for real-time gesture operation in an embodiment;
[0025] Figure 5 A schematic diagram of a graphical user interface for real-time gesture operation in another embodiment;
[0026] Figure 6 A schematic diagram of a graphical user interface for a game scene containing an obstacle icon in an embodiment;
[0027] Figure 7 A schematic diagram of a graphical user interface for determining a virtual pipeline based on an obstacle icon in an embodiment;
[0028] Figure 8 A schematic diagram of a graphical user interface for determining a virtual pipeline based on an obstacle icon in another embodiment;
[0029] Figure 9 A schematic diagram of a graphical user interface for determining a virtual pipeline based on an obstacle icon in another embodiment;
[0030] Figure 10a schematic diagram of a graphical user interface for displaying the output resources of the upstream resource processing node on the travel path in an animated manner in an embodiment;
[0031] Figure 11 a schematic diagram of a graphical user interface for displaying the travel path of the build action in an animated manner in an embodiment;
[0032] Figure 12 a schematic diagram of a graphical user interface for displaying the gesture operation across the obstacle icon in real time in an embodiment;
[0033] Figure 13 a schematic diagram of a graphical user interface for setting the resource production type of the resource processing node in an embodiment;
[0034] Figure 14 a structural block diagram of a pipeline generation device for game resource processing in an embodiment;
[0035] Figure 15 an internal structure diagram of a computer device in an embodiment. DETAILED DESCRIPTION
[0036] In order to make the purposes, technical solutions and advantages of the present application clearer, the present application will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and not intended to limit the present application.
[0037] The present application provides a pipeline generation method for game resource processing. The pipeline generation method for game resource processing is executed by a server as an example. As shown in Figure 1 , the server cluster 102 is configured to provide data services for game running for the terminal 106. Specifically, the server cluster 102 configures program codes of data services such as multiple resource processing nodes of the game, responses to selected operations acting on any resource processing node, responses to real-time gesture operations acting on the graphical user interface, displaying a travel path corresponding to the real-time gesture operation in an animated manner, and determining a virtual pipeline according to the gesture operation at each time, and uploads each program code to the cloud 104. As shown in Figure 1 , when the terminal 106 requests to start the game to the cloud 104, the cloud 104 issues the graphical user interface of the game and the multiple resource processing nodes to the terminal 106, the terminal 106 displays the graphical user interface 1062, and renders the multiple resource processing nodes on the graphical user interface 1062. As shown in Figure 1As shown, when the player selects any resource processing node 10622 in the graphical user interface 1062, the cloud 104 responds to the selection operation on any resource processing node 10622, and takes any resource processing node 10622 as an upstream resource processing node. When the player performs a real-time gesture operation in the graphical user interface, the cloud 104 responds to the real-time gesture operation, and displays the corresponding travel path of the real-time gesture operation in an animated manner. For example, as shown in Figure 1 As shown, the corresponding travel path 10626 of the real-time gesture operation is displayed in an animated manner. When the real-time gesture operation ends, the cloud 104 determines the corresponding downstream resource processing node 10624 of the upstream resource processing node 10622 according to the real-time gesture operation at the end. At the same time, the virtual pipeline between the upstream resource processing node and the downstream resource node is determined according to the gesture operation at each time, and the virtual pipeline is pushed to the terminal 106, and the virtual pipeline 10628 is rendered in the graphical user interface 1062. In this embodiment, the game resource processing pipeline generation method of the application is realized by the interaction between the cloud and the terminal.
[0038] In other embodiments of the application, a game resource processing pipeline generation method can also be executed by a terminal. That is, the server cluster configures a plurality of resource processing nodes of a game, responds to the selection operation on any resource processing node, responds to the real-time gesture operation in the graphical user interface, displays the corresponding travel path of the real-time gesture operation in an animated manner, determines the program code of the data service according to the gesture operation at each time, and pushes each program code to the terminal. When the terminal runs the game, it responds to the selection operation on any resource processing node in the plurality of resource processing nodes, takes any resource processing node as an upstream resource processing node, responds to the real-time gesture operation in the graphical user interface, displays the corresponding travel path of the real-time gesture operation in an animated manner, determines the downstream resource processing node according to the end of the real-time gesture operation, and determines the virtual pipeline between the upstream resource processing node and the downstream resource node according to the gesture operation at each time, and renders the virtual pipeline in the graphical user interface.
[0039] In one embodiment, as shown in Figure 2 A game resource processing pipeline generation method is provided, which is applied to the server cluster 102 or the terminal 106 in Figure 1 for example, including the following steps:
[0040] S202, responding to the selection operation on any resource processing node, taking any resource processing node as an upstream resource processing node.
[0041] In this embodiment, as shown in Figure 3As shown in the game, the graphical user interface displays a plurality of resource processing nodes. Each resource processing node is configured to receive an input resource and produce an output resource. The resource processing node is a virtual node configured to process various types of input resources in the game. The processing type of the processing node is configured, i.e. the implementation function of the processing node. For example, the game is a management game, and the resource processing node is a processing node in the game. The processing node can produce and output processed products based on the input materials. The resource processing node is configured to receive an input resource and produce an output resource, which means that when a certain resource is input into the resource processing node, the resource processing node processes the resource and produces an output resource. For example, any resource processing node is configured as a meatball processing node, and the input resource is meat such as pork or beef. The resource processing node processes and produces meatballs.
[0042] As shown in Figure 3 When the player (also referred to as the user) selects any resource processing node, any resource processing node is selected as an upstream resource processing node. The upstream resource processing node receives an input resource, processes the input resource, and produces an output resource.
[0043] S204, in response to the real-time gesture operation in the graphical user interface, the real-time gesture operation corresponding to the travel path is displayed in an animated manner.
[0044] In this embodiment, the player generates and displays the travel path corresponding to the real-time gesture operation in the graphical user interface based on the real-time gesture operation of the player in the graphical user interface. Specifically, as shown in Figure 3 The travel path corresponding to the real-time gesture operation is displayed in an animated manner to realize pre-display before the virtual pipeline is generated, so that the player can intuitively understand the path trajectory before the virtual pipeline is generated.
[0045] S206, when the real-time gesture operation ends, the downstream resource processing node is determined according to the ended real-time gesture operation, and the virtual pipeline between the upstream resource processing node and the downstream resource node is determined according to the gesture operation at each time.
[0046] In the embodiment, when the real-time gesture operation is detected to be ended, the downstream resource processing node is determined according to the ended real-time gesture operation. Therefore, compared with the traditional processing mode of predefining the upstream and downstream resource processing nodes, the embodiment can customize the upstream and downstream resource processing nodes based on the gesture operation of the player, and the flexibility of the game is improved. In an example, the downstream resource processing node is determined according to the ended real-time gesture operation, including: identifying the resource processing node triggered by the ended real-time gesture operation, and taking the triggered resource processing node as the downstream resource processing node. Alternatively, the downstream resource processing node is determined according to the ended real-time gesture operation, including: when it is identified that the ended real-time gesture operation does not trigger any resource processing node, identifying the resource processing node closest to the ended real-time gesture operation, and taking the resource processing node closest to the ended real-time gesture operation as the downstream resource processing node.
[0047] Further, the virtual pipeline between the upstream resource processing node and the downstream resource node is determined based on the gesture operation detected at each time point before the end. The determination of the end of the real-time gesture operation can be that the real-time gesture operation is determined to be ended when the gesture operation on the graphical user interface is not detected. Alternatively, the real-time gesture operation is determined to be ended when the gesture operation end button in the graphical user interface is detected.
[0048] The virtual pipeline between the upstream resource processing node and the downstream resource node can be determined according to the path of the gesture operation on the graphical user interface at each time point.
[0049] S208, rendering the virtual pipeline in the graphical user interface.
[0050] In the embodiment, the terminal can control the rendering of the virtual pipeline in the graphical user interface, or the server can interact with the terminal to control the rendering of the virtual pipeline in the graphical user interface. For example, as shown in Figure 3 After the real-time gesture operation is ended, the virtual pipeline is rendered between the upstream resource processing node and the downstream resource node.
[0051] The aforementioned method for generating a game resource processing pipeline, within the game's graphical user interface (GUI), uses animation to display the corresponding movement path of real-time gestures at upstream and downstream resource processing nodes to construct a virtual pipeline between them. This enhances the intuitive visual effect of the GUI, allowing players to quickly identify the virtual pipeline to be generated and reducing cognitive load. Furthermore, by determining upstream and downstream resource processing nodes based on player gestures, and defining the virtual pipeline between them at various moments, and rendering the virtual pipeline in the GUI, players can customize the virtual pipeline between upstream and downstream resource processing nodes. This results in a more player-centric virtual pipeline that better meets their needs, increasing the game's flexibility.
[0052] In one embodiment, before the step of determining the virtual pipeline between the upstream resource processing node and the downstream resource node based on the gesture operation at each moment when the real-time gesture operation ends, the method further includes: when the real-time gesture operation is a single gesture operation and the direction of the real-time gesture operation is from the upstream resource node to the downstream resource node, in response to the selection operation applied to the downstream resource node, determining that the real-time gesture operation has ended; or, when the real-time gesture operation is a single gesture operation and the direction of the real-time gesture operation is from the upstream resource node to the downstream resource node, in response to the selection operation applied to the downstream resource node, displaying a virtual button representing the end of the gesture operation on the graphical user interface, and in response to the trigger operation applied to the virtual button, determining that the real-time gesture operation has ended.
[0053] In this embodiment, one scenario for real-time gesture operation is where the player uses a single gesture in the graphical user interface, and the gesture direction is from the upstream resource node to the downstream resource node. For example, ... Figure 4 As shown, in this scenario, determining the end of a real-time gesture operation can be achieved by: selecting a downstream resource node during the real-time gesture operation. This allows for quick identification of the player's completed real-time gesture, reducing player actions and improving the overall gaming experience. Alternatively, after selecting a downstream resource node, the graphical user interface displays a virtual button indicating the end of the gesture operation; the player triggers this button to confirm the end of the real-time gesture. Therefore, adding a virtual button to indicate the end of the gesture operation, and having the player trigger it to confirm the end, while requiring manual confirmation, improves the accuracy of recognizing the end of the real-time gesture and avoids false triggers caused by automated confirmation.
[0054] In one embodiment, before the step of determining the virtual pipeline between the upstream resource processing node and the downstream resource node according to the gesture operation at each time point when the real-time gesture operation ends, the method further comprises: when the real-time gesture operation is a real-time operation of two gestures and the directions of the real-time operation of the two gestures are opposite, determining that the real-time gesture operation ends in response to the contact action of the real-time operation of the two gestures.
[0055] In this embodiment, another case of the real-time gesture operation is that the player uses a real-time operation of two gestures in the graphical user interface and the directions of the real-time operation of the two gestures are opposite. For example, as shown in FIG. 6, one gesture is adjacent to the upstream resource processing node and the other gesture is adjacent to the downstream resource processing node, and the two gestures move towards each other. In this case, the determination that the real-time gesture operation ends can be that when the real-time operation of the two gestures contacts, it is determined that the real-time gesture operation of the player in the graphical user interface ends. Figure 5
[0056] In this game scenario, the player is provided with a way of building a virtual pipeline by using two hands. For example, the player can use the thumb and the index finger to point to the upstream resource processing node and the downstream resource processing node respectively, and swipe towards each other. Therefore, this embodiment can improve multiple use scenarios of the game, provide the player with multiple operation modes, improve the flexibility of the game, and using two gestures can improve the efficiency of building a virtual pipeline.
[0057] In one embodiment, the step of determining the virtual pipeline according to the gesture operation at each time point comprises: if it is identified that the gesture operation at any time point triggers an obstacle icon in the graphical user interface, determining the virtual pipeline according to the gesture operation at each time point and the obstacle icon, so that the virtual pipeline does not overlap the obstacle icon.
[0058] In this embodiment, based on different game scenarios, in addition to displaying multiple resource processing nodes in the graphical user interface of the game, icons of other objects in the scenario are also displayed. For example, the game scenario is set as a farm and the resource processing node is a milk production processing point, and at this time, the graphical user interface of the game also displays icons of mountains, rivers, plants and animals. The obstacle icon in the graphical user interface can be any icon in the graphical user interface except the resource processing node.
[0059] For example, as shown in FIG. 7, in addition to the resource processing nodes, icons of mountains, rivers, plants and animals are also displayed in the graphical user interface of the game. Figure 6 As shown, at the end of the real-time gesture operation, if it is identified that the gesture operation at any time triggers the obstacle icon in the graphical user interface, the influence of the obstacle icon on the virtual pipeline needs to be considered when determining the virtual pipeline. The virtual pipeline determined according to the gesture operation at each time and the obstacle icon does not overlap with the obstacle icon. For example, the upstream resource processing node is processing point A, the downstream resource processing node is processing point B, and the player can guide the virtual pipeline from processing point A to directly cross the obstacle to processing point B, and a virtual pipeline bypassing the obstacle is automatically generated between processing point A and processing point B.
[0060] On the contrary, if the gesture operation at each time does not trigger the obstacle icon, the virtual pipeline can be directly determined based on the gesture operation at each time. Therefore, the determined virtual pipeline can be more suitable for virtual reality, and the authenticity of the simulated reality of the game is improved.
[0061] In one embodiment, the above-mentioned determination of the virtual pipeline according to the gesture operation at each time and the obstacle icon includes: identifying the number of pipelines on a first side of the obstacle icon and the number of pipelines on a second side of the obstacle icon, wherein the first side and the second side of the obstacle icon are divided by the connection line between the upstream resource processing node and the downstream resource node as the central axis; taking the side with the smaller number of pipelines as the target side; and determining the virtual pipeline according to the gesture operation at each time and the interface area of the target side in the graphical user interface.
[0062] In this embodiment, when the gesture operation at any time triggers the obstacle icon, the determined virtual pipeline needs to bypass the obstacle icon, so that the virtual pipeline does not overlap with the obstacle icon. One way is: Figure 7 As shown, the first side and the second side of the obstacle icon are divided by the connection line between the upstream resource processing node and the downstream resource node as the central axis. The number of pipelines on the first side is calculated and the number of pipelines on the second side is calculated. The side with the smaller number of pipelines is taken as the target side, and the virtual pipeline is determined according to the gesture operation at each time and the interface area of the target side in the graphical user interface. Therefore, the number of virtual pipelines on the two sides can be automatically identified, and the virtual pipeline is determined based on the side with the smaller number of pipelines, rather than the side with the larger number of pipelines, so that the graphical user interface can be avoided from being too crowded, the layout of the pipelines in the graphical user interface can be reasonable, the visual perception of the graphical user interface can be improved, and the cognitive cost of the player can be reduced.
[0063] In one embodiment, the determining the virtual pipeline according to the gesture operation at each time and the obstacle icon includes: identifying the number of resource processing nodes on a first side of the obstacle icon and the number of resource processing nodes on a second side of the obstacle icon, where the first side and the second side of the obstacle icon are divided by the connection line between the upstream resource processing node and the downstream resource node as the central axis; taking the side with the smaller number of resource processing nodes as the target side; and determining the virtual pipeline according to the gesture operation at each time and the interface area of the target side in the graphical user interface.
[0064] Reference is made to Figure 7 In this embodiment, the target side is determined by referring to the number of resource processing nodes on the first side and the number of resource processing nodes on the second side, and taking the side with the smaller number of resource processing nodes as the target side, and then determining the virtual pipeline according to the gesture operation at each time and the interface area of the target side in the graphical user interface. Therefore, the number of resource processing nodes on the two sides can be automatically identified, and the virtual pipeline is determined based on the side with the smaller number of resource processing nodes, instead of the side with the larger number of resource processing nodes, so that the blank site and the feasible path for the future pipeline can be determined as much as possible.
[0065] In one embodiment, the determining the virtual pipeline according to the gesture operation at each time and the obstacle icon includes: identifying the number of resource processing nodes on a first side of the obstacle icon and the number of resource processing nodes on a second side of the obstacle icon, where the first side and the second side of the obstacle icon are divided by the connection line between the upstream resource processing node and the downstream resource node as the central axis; taking the side with the smaller number of resource processing nodes as the target side; and determining the virtual pipeline according to the gesture operation at each time and the interface area of the target side in the graphical user interface.
[0066] In this embodiment, the target side is determined by referring to the number of resource processing nodes on the first side and the number of resource processing nodes on the second side, and taking the side with the smaller number of resource processing nodes as the target side, and then determining the virtual pipeline according to the gesture operation at each time and the interface area of the target side in the graphical user interface. Therefore, the number of resource processing nodes on the two sides can be automatically identified, and the virtual pipeline is determined based on the side with the smaller number of resource processing nodes, instead of the side with the larger number of resource processing nodes, so that the blank site and the feasible path for the future pipeline can be determined as much as possible. Figure 8As shown, the target side is determined by referencing the directions of the pipeline closest to the obstacle icon on the first side and the pipeline closest to the obstacle icon on the second side. The side whose pipeline direction closest to the obstacle icon is the same as or similar to the direction of the virtual pipeline is taken as the target side. The virtual pipeline is determined based on the gesture operation at each moment and the interface area of the target side in the graphical user interface. Therefore, by taking the side whose pipeline direction closest to the obstacle icon is the same as or similar to the direction of the virtual pipeline as the target side, when a virtual pipeline is generated in the interface area of the target side, the generated virtual pipeline and the pipeline closest to the obstacle icon will have the same or similar directions, making it easier for players to quickly visually identify the directions of the two pipelines. It should be noted that if the generated virtual pipeline and the pipeline closest to the obstacle icon are not the same or similar in direction, players will need to spend more time and effort to identify the directions of the two pipelines during gameplay, thus increasing the cognitive load on the player.
[0067] This embodiment aims to distribute the pipelines in the graphical user interface as much as possible, and to keep the flow order of adjacent pipelines consistent, thereby improving the efficiency of players' visual recognition of different pipelines.
[0068] In one embodiment, the step of determining the virtual pipeline based on the gesture operation and the obstacle icon at each moment includes: identifying the target gesture operation that triggers the obstacle icon; if the target gesture operation triggers the interface area corresponding to the first side of the obstacle icon, then the first side is taken as the target side; if the target gesture operation triggers the interface area corresponding to the second side of the obstacle icon, then the second side is taken as the target side, wherein the first side and the second side of the obstacle icon are divided by the central axis of the obstacle icon; and determining the virtual pipeline based on the gesture operation at each moment and the interface area of the target side in the graphical user interface.
[0069] In this embodiment, the first and second sides of the obstacle icon are set in the same way as... Figure 7 The obstacle icons shown have different setting standards for their first and second sides. For example... Figure 9 As shown, the obstacle icon is divided into a first side and a second side along its central axis. The target side is determined as follows: taking the target gesture that triggers the obstacle icon as a reference, when the target gesture triggers the interface area corresponding to the first side of the obstacle icon, the first side is taken as the target side; when the target gesture triggers the interface area corresponding to the second side of the obstacle icon, the second side is taken as the target side. For example... Figure 9 As shown, the target gesture operation triggers the interface area corresponding to the second side of the obstacle icon, and the second side is taken as the target side. Therefore, it can accurately identify the player's intention to generate a virtual pipeline in the graphical user interface, making the generated virtual pipeline more in line with the player's needs.
[0070] For example, when the player's finger guides the pipeline to pass from the left inside of the obstacle icon, the automatically generated virtual pipeline will bypass the obstacle icon from the left outside of the obstacle icon, from the upstream resource processing node to the downstream resource node, shortening the guiding path of the player's finger from the upstream resource processing node to the downstream resource node, and enabling the player to choose which direction to bypass the obstacle icon.
[0071] In an embodiment, after the step of animating the travel path corresponding to the real-time gesture operation, the method further comprises: animating the output resource of the upstream resource processing node on the travel path.
[0072] In this embodiment, as shown in Figure 10 the output resource of the upstream resource processing node can be displayed on the pre-displayed travel path in a loop animation. For example, the upstream resource processing node is any production point in the game, and the output resource of the upstream resource processing node is the production of the production point. Animating the production of the production point on the travel path can provide more intuitive visual aids and further reduce the cognitive cost of the player.
[0073] In an embodiment, after the step of animating the travel path corresponding to the real-time gesture operation, the method further comprises: animating the path building action at the real-time gesture operation of the graphical user interface.
[0074] In this embodiment, as shown in Figure 11 the path building action is animated at the real-time gesture operation of the graphical user interface to indicate that the travel path is being built in the game, thereby providing the player with more intuitive cognition of building the travel path. Specifically, in addition to the loop animation of the player's finger moving at the head of the guiding travel path, the head of the travel path has another animation that exhibits a path building action, which can also provide the player with more intuitive visual aids.
[0075] In an embodiment, after the step of animating the travel path corresponding to the real-time gesture operation, the method further comprises: if it is identified that the real-time gesture operation triggers an obstacle icon in the graphical user interface, highlighting or dimming the obstacle icon; and / or, if it is identified that the real-time gesture operation triggers an obstacle icon in the graphical user interface, changing the curvature or color of the travel segment of the travel path corresponding to the real-time gesture operation.
[0076] In this embodiment, as shown in Figure 12As shown, when a player uses a real-time gesture to cross an obstacle icon, the corresponding movement path is still displayed using animation. However, the obstacle icon is highlighted or dimmed, thus emphasizing it in the graphical user interface through brightness differences, indicating to the player that an obstacle is being crossed. Alternatively, when a player uses a real-time gesture to cross an obstacle icon, the curvature or color of that section of the movement path can be changed to highlight the presence of an obstacle, further indicating to the player that an obstacle is being crossed.
[0077] In one embodiment, before or after the step of designating any resource processing node as an upstream resource processing node, the method further includes: in response to a selection operation applied to an upstream resource processing node, displaying options for one or more resource production types of the upstream resource processing node in a graphical user interface; in response to an option applied to any resource production type of the upstream resource processing node, determining the output resource produced by the upstream resource processing node based on the option for any resource production type of the upstream resource processing node; and / or, in response to a selection operation applied to a downstream resource processing node, displaying options for one or more resource production types of the downstream resource processing node in a graphical user interface; in response to an option applied to any resource production type of the downstream resource processing node, determining the output resource produced by the downstream resource processing node based on the option for any resource production type of the downstream resource processing node.
[0078] In this embodiment, when any resource processing node is selected, the graphical user interface displays one or more resource production type options for the selected node, and determines the output resource produced by that resource processing node based on the selected resource production type options. The resource production type refers to the type of output resource produced by the resource processing node based on the input resources. For example, if the resource processing node is a processing point in a management game, selecting any processing point will display its production type in the graphical user interface. Examples include the production type for beef ball processing and the production type for milk processing.
[0079] For example, such as Figure 13 As shown, when an upstream resource processing node is selected, the graphical user interface displays options for a first resource production type and a second resource production type. When the player selects the second resource production type option, the output resource produced by the upstream resource processing node is confirmed to be of the second resource production type. Similarly, when a downstream resource processing node is selected, the graphical user interface displays options for a third resource production type and a fourth resource production type. When the player selects the fourth resource production type option, the output resource produced by the downstream resource processing node is confirmed to be of the fourth resource production type.
[0080] Therefore, players can set the production type of one or more resource processing nodes in the game, increasing the game's flexibility.
[0081] It should be understood that although the steps in the flowchart are shown in a sequential order, the steps need not be performed in the order shown. Unless explicitly stated, the steps can be performed in any order. Moreover, at least some of the steps can include multiple sub-steps or multiple stages, which need not be performed in a same time instant, but can be performed in different time instants, and the order of the sub-steps or stages need not be sequential, but can be interleaved or alternated with at least some of the steps or sub-steps or stages of other steps.
[0082] The application further provides a pipeline generation apparatus for game resource processing, applied to a graphical user interface of a game, the graphical user interface displaying a plurality of resource processing nodes, each resource processing node being configured to receive an input resource and produce an output resource, as shown in Figure 14 The pipeline generation apparatus for game resource processing includes a first response module 1402, a second response module 1404, a determination module 1406, and a rendering module 1408. The first response module 1402 is configured to, in response to a selection operation acting on any resource processing node, determine the resource processing node as an upstream resource processing node. The second response module 1404 is configured to, in response to a real-time gesture operation acting on the graphical user interface, display a travel path corresponding to the real-time gesture operation in an animated manner. The determination module 1406 is configured to, when the real-time gesture operation ends, determine a downstream resource processing node according to the ended real-time gesture operation, and determine a virtual pipeline between the upstream resource processing node and the downstream resource processing node according to the gesture operation at each time instant. The rendering module 1408 is configured to render the virtual pipeline in the graphical user interface.
[0083] In one embodiment, the pipeline generation apparatus for game resource processing further includes a third response module configured to, when the real-time gesture operation is a single gesture operation and a direction of the real-time gesture operation points from the upstream resource processing node to the downstream resource processing node, determine that the real-time gesture operation ends in response to a selection operation acting on the downstream resource processing node; or, when the real-time gesture operation is a single gesture operation and a direction of the real-time gesture operation points from the upstream resource processing node to the downstream resource processing node, display a virtual button representing that the gesture operation ends in the graphical user interface in response to a selection operation acting on the downstream resource processing node, and determine that the real-time gesture operation ends in response to a trigger operation acting on the virtual button.
[0084] In one embodiment, the pipeline generation apparatus for game resource processing further includes a fourth response module configured to, when the real-time gesture operation is a real-time operation of two gestures and directions of the real-time operation of the two gestures are opposite, determine that the real-time gesture operation ends in response to a contact action of the real-time operation of the two gestures.
[0085] In one embodiment, the virtual pipeline between the upstream resource processing node and the downstream resource node is determined according to the gesture operation at each time, comprising: if the gesture operation at any time is identified to trigger the obstacle icon in the graphical user interface, the virtual pipeline is determined according to the gesture operation at each time and the obstacle icon, so that the virtual pipeline does not overlap with the obstacle icon.
[0086] In one embodiment, the virtual pipeline is determined according to the gesture operation at each time and the obstacle icon, comprising: identifying the number of pipelines on the first side of the obstacle icon and the number of pipelines on the second side of the obstacle icon, wherein the first side and the second side of the obstacle icon are divided by the connection line between the upstream resource processing node and the downstream resource node as the central axis; the side with the smaller number of pipelines on the first side and the second side is taken as the target side; and the virtual pipeline is determined according to the gesture operation at each time and the interface area of the target side in the graphical user interface.
[0087] In one embodiment, the virtual pipeline is determined according to the gesture operation at each time and the obstacle icon, comprising: identifying the direction of the pipeline closest to the obstacle icon on the first side of the obstacle icon and the direction of the pipeline closest to the obstacle icon on the second side of the obstacle icon, wherein the first side and the second side of the obstacle icon are divided by the connection line between the upstream resource processing node and the downstream resource node as the central axis; the side with the same or similar direction of the virtual pipeline is taken as the target side from the direction of the pipeline closest to the obstacle icon on the first side and the direction of the pipeline closest to the obstacle icon on the second side; and the virtual pipeline is determined according to the gesture operation at each time and the interface area of the target side in the graphical user interface.
[0088] In one embodiment, the virtual pipeline is determined according to the gesture operation at each time and the obstacle icon, comprising: identifying the number of resource processing nodes on the first side of the obstacle icon and the number of resource processing nodes on the second side of the obstacle icon, wherein the first side and the second side of the obstacle icon are divided by the connection line between the upstream resource processing node and the downstream resource node as the central axis; the side with the smaller number of resource processing nodes on the first side and the second side is taken as the target side; and the virtual pipeline is determined according to the gesture operation at each time and the interface area of the target side in the graphical user interface.
[0089] In one embodiment, the virtual pipeline is determined according to the gesture operation at each time and the obstacle icon, comprising: identifying a target gesture operation triggering the obstacle icon; if the target gesture operation triggers an interface region corresponding to a first edge of the obstacle icon, taking the first edge as a target edge; if the target gesture operation triggers an interface region corresponding to a second edge of the obstacle icon, taking the second edge as the target edge, wherein the first edge and the second edge of the obstacle icon are divided by a central axis of the obstacle icon; and determining the virtual pipeline according to the gesture operation at each time and the interface region of the target edge in the graphical user interface.
[0090] In one embodiment, after the travel path corresponding to the real-time gesture operation is displayed in the form of animation, the method further comprises: displaying the output resource of the upstream resource processing node on the travel path in the form of animation.
[0091] In one embodiment, after the travel path corresponding to the real-time gesture operation is displayed in the form of animation, the method further comprises: displaying the path building action in the form of animation at the real-time gesture operation in the graphical user interface.
[0092] In one embodiment, the pipeline generation device for game resource processing further comprises a control module, configured to: if it is identified that the real-time gesture operation triggers the obstacle icon in the graphical user interface, highlight or dim the obstacle icon; and / or, if it is identified that the real-time gesture operation triggers the obstacle icon in the graphical user interface, change the curvature or color of the travel path segment corresponding to the real-time gesture operation in the travel path.
[0093] In one embodiment, the pipeline generation device for game resource processing further comprises a fifth response module, configured to: in response to a selection operation acting on the upstream resource processing node, display one or more resource production types of the upstream resource processing node in the graphical user interface; in response to any resource production type of the upstream resource processing node, determine the output resource produced by the upstream resource processing node according to the any resource production type of the upstream resource processing node; and / or, in response to a selection operation acting on the downstream resource processing node, display one or more resource production types of the downstream resource processing node in the graphical user interface; in response to any resource production type of the downstream resource processing node, determine the output resource produced by the downstream resource processing node according to the any resource production type of the downstream resource processing node.
[0094] The specific limitation of the pipeline generation device for game resource processing can refer to the limitation of the pipeline generation method for game resource processing, which will not be repeated here. Each module in the pipeline generation device for game resource processing can be realized by software, hardware and their combination. The above-mentioned modules can be embedded in or independent of the processor in the computer device in hardware form, or can be stored in the memory in the computer device in software form, so that the processor calls and executes the operation corresponding to each module.
[0095] In one embodiment, a computer device, which can be a server, has an internal structure diagram as shown in Figure 15 The computer device includes a processor, a memory and a network interface connected by a system bus. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with external terminals through network connection. The computer program is executed by the processor to implement a pipeline generation method for game resource processing.
[0096] Those skilled in the art can understand that Figure 15 The structure shown in the figure is only a block diagram of part of the structure related to the scheme of the present application, and does not constitute a limitation on the computer device to which the scheme of the present application is applied. The specific computer device can include more or fewer components than those shown in the figure, or combine certain components, or have a different component arrangement.
[0097] In one embodiment, a computer device includes a memory, a processor and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the following steps are implemented: in response to a selection operation acting on any resource processing node, any resource processing node is selected as an upstream resource processing node; in response to a real-time gesture operation acting on the graphical user interface, the real-time gesture operation corresponding to the travel path is displayed in an animated manner; when the real-time gesture operation ends, the downstream resource processing node is determined according to the ended real-time gesture operation, and the virtual pipeline between the upstream resource processing node and the downstream resource node is determined according to the gesture operation at each time; and the virtual pipeline is rendered in the graphical user interface.
[0098] In one of the embodiments, the processor, when executing the computer program, further implements the following steps: when the real-time gesture operation is a single gesture operation and the direction of the real-time gesture operation is from the upstream resource node to the downstream resource node, determining that the real-time gesture operation ends in response to a selection operation acting on the downstream resource node; or, when the real-time gesture operation is a single gesture operation and the direction of the real-time gesture operation is from the upstream resource node to the downstream resource node, displaying a virtual button representing the end of the gesture operation on the graphical user interface in response to a selection operation acting on the downstream resource node, and determining that the real-time gesture operation ends in response to a triggering operation acting on the virtual button.
[0099] In one of the embodiments, the processor, when executing the computer program, further implements the following steps: when the real-time gesture operation is a real-time operation of two gestures and the directions of the real-time operation of the two gestures are opposite, determining that the real-time gesture operation ends in response to a contact action of the real-time operation of the two gestures.
[0100] In one of the embodiments, the processor, when executing the computer program, further implements the following steps: if it is identified that the gesture operation at any time triggers an obstacle icon in the graphical user interface, determining the virtual pipeline according to the gesture operation at each time and the obstacle icon, so that the virtual pipeline does not overlap with the obstacle icon.
[0101] In one of the embodiments, the processor, when executing the computer program, further implements the following steps: identifying the number of pipelines on a first side of the obstacle icon and the number of pipelines on a second side of the obstacle icon, wherein the first side and the second side of the obstacle icon are divided by taking the connection line between the upstream resource processing node and the downstream resource node as the central axis; taking the side with the smaller number of pipelines as the target side; and determining the virtual pipeline according to the gesture operation at each time and the interface area of the target side in the graphical user interface.
[0102] In one of the embodiments, when the processor executes the computer program to implement the step of determining the virtual pipeline according to the gesture operation at each time and the obstacle icon, the following step is implemented: identifying the direction of the pipeline closest to the obstacle icon on the first side of the obstacle icon and the direction of the pipeline closest to the obstacle icon on the second side of the obstacle icon, wherein the first side and the second side of the obstacle icon are divided by the connection line between the upstream resource processing node and the downstream resource node as the central axis; taking the side on which the direction of the pipeline closest to the obstacle icon on the first side and the direction of the pipeline closest to the obstacle icon on the second side are the same or similar to the direction of the virtual pipeline as the target side; and determining the virtual pipeline according to the gesture operation at each time and the interface area of the target side in the graphical user interface.
[0103] In one of the embodiments, when the processor executes the computer program to implement the step of determining the virtual pipeline according to the gesture operation at each time and the obstacle icon, the following step is implemented: identifying the number of resource processing nodes on the first side of the obstacle icon and the number of resource processing nodes on the second side of the obstacle icon, wherein the first side and the second side of the obstacle icon are divided by the connection line between the upstream resource processing node and the downstream resource node as the central axis; taking the side on which the number of resource processing nodes on the first side and the number of resource processing nodes on the second side are smaller as the target side; and determining the virtual pipeline according to the gesture operation at each time and the interface area of the target side in the graphical user interface.
[0104] In one of the embodiments, when the processor executes the computer program to implement the step of determining the virtual pipeline according to the gesture operation at each time and the obstacle icon, the following step is implemented: identifying the target gesture operation triggered to the obstacle icon; taking the first side of the obstacle icon as the target side if the target gesture operation is triggered to the interface area corresponding to the first side of the obstacle icon; and taking the second side of the obstacle icon as the target side if the target gesture operation is triggered to the interface area corresponding to the second side of the obstacle icon, wherein the first side and the second side of the obstacle icon are divided by the central axis of the obstacle icon; and determining the virtual pipeline according to the gesture operation at each time and the interface area of the target side in the graphical user interface.
[0105] In one of the embodiments, when the processor executes the computer program, the following step is further implemented: displaying the output resource of the upstream resource processing node on the travel path in an animated manner.
[0106] In one of the embodiments, when the processor executes the computer program, the following step is further implemented: displaying the path building action in an animated manner at the real-time gesture operation of the graphical user interface.
[0107] In one of the embodiments, the processor, when executing the computer program, further implements the following steps: if the real-time gesture operation triggers the obstacle icon in the graphical user interface, highlighting or dimming the obstacle icon; and / or, if the real-time gesture operation triggers the obstacle icon in the graphical user interface, changing the curvature or color of the travel path corresponding to the travel path segment of the real-time gesture operation.
[0108] In one of the embodiments, the processor, when executing the computer program, further implements the following steps: in response to the selection operation on the upstream resource processing node, displaying one or more resource production types of the upstream resource processing node in the graphical user interface; in response to the selection operation on the downstream resource processing node, displaying one or more resource production types of the downstream resource processing node in the graphical user interface; in response to the selection operation on the upstream resource processing node, determining the output resource of the upstream resource processing node according to the selection operation on the upstream resource processing node; and / or, in response to the selection operation on the downstream resource processing node, determining the output resource of the downstream resource processing node according to the selection operation on the downstream resource processing node.
[0109] In one of the embodiments, the processor, when executing the computer program, further implements the following steps: in response to the selection operation on the upstream resource processing node, displaying one or more resource production types of the upstream resource processing node in the graphical user interface; in response to the selection operation on the downstream resource processing node, displaying one or more resource production types of the downstream resource processing node in the graphical user interface; in response to the selection operation on the upstream resource processing node, determining the output resource of the upstream resource processing node according to the selection operation on the upstream resource processing node; and / or, in response to the selection operation on the downstream resource processing node, determining the output resource of the downstream resource processing node according to the selection operation on the downstream resource processing node.
[0110] In one of the embodiments, the processor, when executing the computer program, further implements the following steps: when the real-time gesture operation is a single gesture operation and the direction of the real-time gesture operation is from the upstream resource node to the downstream resource node, determining the end of the real-time gesture operation in response to the selection operation on the downstream resource node; or, when the real-time gesture operation is a single gesture operation and the direction of the real-time gesture operation is from the upstream resource node to the downstream resource node, displaying a virtual button representing the end of the gesture operation in the graphical user interface in response to the selection operation on the downstream resource node, and determining the end of the real-time gesture operation in response to the triggering operation on the virtual button.
[0111] In one of the embodiments, the computer program, when executed by the processor, further implements the following step: determining that the real-time gesture operation ends in response to the contact action of the two real-time gestures when the real-time gesture operation is the two real-time gestures and the directions of the two real-time gestures are opposite.
[0112] In one of the embodiments, when the computer program, when executed by the processor, implements the above step of determining the virtual pipeline between the upstream resource processing node and the downstream resource node according to the gesture operation at each time, the following step is implemented: if it is identified that the gesture operation at any time triggers an obstacle icon in the graphical user interface, determining the virtual pipeline according to the gesture operation at each time and the obstacle icon, so that the virtual pipeline does not overlap with the obstacle icon.
[0113] In one of the embodiments, when the computer program, when executed by the processor, implements the above step of determining the virtual pipeline according to the gesture operation at each time and the obstacle icon, the following step is implemented: identifying the number of pipelines on a first side of the obstacle icon and the number of pipelines on a second side of the obstacle icon, wherein the first side and the second side of the obstacle icon are divided by the connection line between the upstream resource processing node and the downstream resource node as the central axis; taking the side with the smaller number of pipelines as the target side; and determining the virtual pipeline according to the gesture operation at each time and the interface area of the target side in the graphical user interface.
[0114] In one of the embodiments, when the computer program, when executed by the processor, implements the above step of determining the virtual pipeline according to the gesture operation at each time and the obstacle icon, the following step is implemented: identifying the direction of the pipeline closest to the obstacle icon on a first side of the obstacle icon and the direction of the pipeline closest to the obstacle icon on a second side of the obstacle icon, wherein the first side and the second side of the obstacle icon are divided by the connection line between the upstream resource processing node and the downstream resource node as the central axis; taking the side with the same or similar direction as the direction of the virtual pipeline as the target side; and determining the virtual pipeline according to the gesture operation at each time and the interface area of the target side in the graphical user interface.
[0115] In one of the embodiments, when the computer program is executed by the processor to implement the above-mentioned step of determining the virtual pipeline according to the gesture operation at each time and the obstacle icon, the following step is implemented: identifying the number of resource processing nodes on a first side of the obstacle icon and the number of resource processing nodes on a second side of the obstacle icon, wherein the first side and the second side of the obstacle icon are divided by the connection line between the upstream resource processing node and the downstream resource node as the central axis; taking the side with the smaller number of resource processing nodes as the target side; and determining the virtual pipeline according to the gesture operation at each time and the interface area of the target side in the graphical user interface.
[0116] In one of the embodiments, when the computer program is executed by the processor to implement the above-mentioned step of determining the virtual pipeline according to the gesture operation at each time and the obstacle icon, the following step is implemented: identifying the target gesture operation triggered to the obstacle icon; taking the first side as the target side if the target gesture operation is triggered to the interface area corresponding to the first side of the obstacle icon; and taking the second side as the target side if the target gesture operation is triggered to the interface area corresponding to the second side of the obstacle icon, wherein the first side and the second side of the obstacle icon are divided by the central axis of the obstacle icon; and determining the virtual pipeline according to the gesture operation at each time and the interface area of the target side in the graphical user interface.
[0117] In one of the embodiments, when the computer program is executed by the processor, the following step is further implemented: displaying the output resource of the upstream resource processing node on the travel path in an animated manner.
[0118] In one of the embodiments, when the computer program is executed by the processor, the following step is further implemented: displaying the path building action in an animated manner at the real-time gesture operation in the graphical user interface.
[0119] In one of the embodiments, when the computer program is executed by the processor, the following step is further implemented: highlighting or dimming the obstacle icon if the real-time gesture operation triggered to the obstacle icon in the graphical user interface is identified; and / or changing the curvature or color of the travel path segment corresponding to the real-time gesture operation in the travel path if the real-time gesture operation triggered to the obstacle icon in the graphical user interface is identified.
[0120] In one of the embodiments, the computer program, when executed by the processor, further implements the following steps: in response to the selection operation acting on the upstream resource processing node, displaying options of one or more resource production types of the upstream resource processing node on the graphical user interface; in response to the option of any resource production type of the upstream resource processing node, determining the output resource produced by the upstream resource processing node according to the option of any resource production type of the upstream resource processing node; and / or, in response to the selection operation acting on the downstream resource processing node, displaying options of one or more resource production types of the downstream resource processing node on the graphical user interface; in response to the option of any resource production type of the downstream resource processing node, determining the output resource produced by the downstream resource processing node according to the option of any resource production type of the downstream resource processing node.
[0121] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be completed by a computer program instructing related hardware, and the computer program can be stored in a non-volatile computer readable storage medium. When the computer program is executed, it can include the processes of the above-mentioned embodiments. Any reference to memory, storage, database or other medium used in the embodiments provided in the present application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration but not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
[0122] The technical features of the above embodiments can be combined in any manner. In order to make the description concise, not all possible combinations of the technical features in the above embodiments are described, but as long as the combinations of the technical features do not exist contradictions, they should be considered as the scope of the present disclosure.
[0123] The above-described embodiments are merely illustrative of several embodiments of the present application, which are described in more detail and in a specific and detailed manner, but should not be construed as limiting the scope of the patent. It should be noted that for those skilled in the art, several modifications and improvements can be made without departing from the concept of the present application, and these are all within the scope of the present application. Therefore, the scope of protection of the patent of the present application should be subject to the appended claims.
Claims
1. A method for generating a pipeline for game resource processing, applied to a game's graphical user interface, wherein the graphical user interface displays multiple resource processing nodes, each resource processing node being used to receive input resources and produce output resources, characterized in that... The method includes: In response to a selection operation applied to any resource processing node, the selected resource processing node is designated as an upstream resource processing node. In response to real-time gesture operations in the graphical user interface, the corresponding travel path is displayed in an animated manner, the output resources of the upstream resource processing node are displayed in the travel path in an animated manner, and the path building action is animated at the location of the real-time gesture operation in the graphical user interface. When the real-time gesture operation ends, a downstream resource processing node is determined based on the ended real-time gesture operation, and a virtual pipeline between the upstream resource processing node and the downstream resource processing node is determined based on the gesture operations at each time point. The determination of the virtual pipeline between the upstream resource processing node and the downstream resource processing node based on the gesture operations at each time point includes: if a gesture operation at any time point triggers an obstacle icon in the graphical user interface, the virtual pipeline is determined based on the gesture operations at each time point and the obstacle icon, so that the virtual pipeline does not overlap with the obstacle icon, and the obstacle icon is highlighted or dimmed, and / or the curvature or color of the travel segment corresponding to the real-time gesture operation in the travel path is changed. The virtual pipeline is rendered in the graphical user interface.
2. The method according to claim 1, characterized in that, The method further includes: When the real-time gesture operation is a real-time operation of two gestures and the directions of the two real-time gesture operations are opposite, the real-time gesture operation is determined to end in response to the contact action of the two real-time gesture operations.
3. The method according to claim 1, characterized in that, Determining the virtual pipeline based on gesture operations at each moment and the obstacle icons includes: The number of pipelines on the first side of the obstacle icon and the number of pipelines on the second side of the obstacle icon are identified, wherein the first side and the second side of the obstacle icon are divided with the connection line between the upstream resource processing node and the downstream resource processing node as the central axis. The side with the smaller number of pipelines between the first side and the second side is selected as the target side. The virtual pipeline is determined based on the gesture operations at each moment and the interface area on the side of the target in the graphical user interface.
4. The method according to claim 1, characterized in that, Determining the virtual pipeline based on gesture operations at each moment and the obstacle icons includes: Identify the direction of the pipeline closest to the obstacle icon on the first side of the obstacle icon and the direction of the pipeline closest to the obstacle icon on the second side of the obstacle icon, wherein the first side and the second side of the obstacle icon are divided with the connection line between the upstream resource processing node and the downstream resource processing node as the central axis. The side whose direction is the same as or similar to the direction of the virtual pipeline is selected from the direction of the pipeline closest to the obstacle icon on the first side and the direction of the pipeline closest to the obstacle icon on the second side. The virtual pipeline is determined based on the gesture operations at each moment and the interface area on the side of the target in the graphical user interface.
5. The method according to claim 1, characterized in that, Determining the virtual pipeline based on gesture operations at each moment and the obstacle icons includes: The number of resource processing nodes on the first side of the obstacle icon and the number of resource processing nodes on the second side of the obstacle icon are identified, wherein the first side and the second side of the obstacle icon are divided with the connection line between the upstream resource processing node and the downstream resource processing node as the central axis. The side with the smaller number of resource processing nodes between the first side and the second side is selected as the target side. The virtual pipeline is determined based on the gesture operations at each moment and the interface area on the side of the target in the graphical user interface.
6. The method according to claim 1, characterized in that, Determining the virtual pipeline based on gesture operations at each moment and the obstacle icons includes: Identify the target gesture operation that triggers the obstacle icon; If the target gesture operation triggers the interface area corresponding to the first side of the obstacle icon, then the first side is taken as the target side; If the target gesture operation triggers the interface area corresponding to the second side of the obstacle icon, the second side is taken as the target side, wherein the first side and the second side of the obstacle icon are divided by the central axis of the obstacle icon; The virtual pipeline is determined based on the gesture operations at each moment and the interface area of the target edge in the graphical user interface.
7. The method according to any one of claims 1-2, characterized in that, The method further includes: In response to a selection operation applied to the upstream resource processing node, the graphical user interface displays one or more resource production type options for the upstream resource processing node; In response to any resource production type option applied to the upstream resource processing node, determine the output resource produced by the upstream resource processing node based on the option of any resource production type of the upstream resource processing node; And / or, In response to a selection operation applied to the downstream resource processing node, the graphical user interface displays one or more resource production type options for the downstream resource processing node. In response to any resource production type option applied to the downstream resource processing node, the output resource produced by the downstream resource processing node is determined based on the option of any resource production type of the downstream resource processing node.
8. A pipeline generation apparatus for game resource processing, applied to a game's graphical user interface, wherein the graphical user interface displays multiple resource processing nodes, each resource processing node being used to receive input resources and produce output resources, characterized in that... The device includes: The first response module is used to respond to the selection operation applied to any resource processing node and to designate the any resource processing node as an upstream resource processing node. The second response module is used to respond to real-time gesture operations performed on the graphical user interface, display the corresponding travel path of the real-time gesture operation in an animated manner, display the output resources of the upstream resource processing node in the travel path in an animated manner, and display the path building action in an animated manner at the location of the real-time gesture operation in the graphical user interface. The determination module is used to determine a downstream resource processing node based on the ended real-time gesture operation when the real-time gesture operation ends, and to determine a virtual pipeline between the upstream resource processing node and the downstream resource processing node based on the gesture operations at each time point; the step of determining the virtual pipeline between the upstream resource processing node and the downstream resource processing node based on the gesture operations at each time point includes: if a gesture operation at any time point is detected to trigger an obstacle icon in the graphical user interface, then the virtual pipeline is determined based on the gesture operations at each time point and the obstacle icon, so that the virtual pipeline does not overlap with the obstacle icon, and the obstacle icon is highlighted or dimmed, and / or the curvature or color of the travel segment corresponding to the real-time gesture operation in the travel path is changed; A rendering module for rendering the virtual pipeline in the graphical user interface.
9. A computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 7.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Game resource processing method and device, equipment and storage medium
CN114570022A