Game interface processing method, device, electronic device and readable medium

By dividing areas according to node position information in the game interface and using mask image processing technology, the problem of single display of the game interface is solved, improving the aesthetics and intuitiveness of the game content.

CN114130014BActive Publication Date: 2025-01-10NETEASE (HANGZHOU) NETWORK CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111314053.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-08
Publication Date
2025-01-10
Estimated Expiration
2041-11-08

AI Technical Summary

Technical Problem

The display of game content in the game interface is too single and not intuitive enough, resulting in insufficient visual experience for players.

Method used

By obtaining the location information of the game nodes in the game interface, determining the node area, and performing image processing on the mask layer to generate the interface mask image, adding it to the game interface, masking the game nodes to be unlocked, so as to gradually move in the game process Display node areas to enrich the display method of game content.

Benefits of technology

It improves the aesthetics and intuitiveness of the game content, allowing players to better distinguish the content in the game interface.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114130014B_ABST
    Figure CN114130014B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention provides a method, device, electronic device and readable medium for processing a game interface. The method includes: for a game interface containing game nodes in a game, the game interface can be divided based on the position information of the game nodes to obtain node areas corresponding to each game node, and the node areas to be unlocked in the game are masked by a mask image. As the game progresses, the node areas are gradually displayed, enriching the way of displaying game content, allowing players to intuitively distinguish the game content in the game interface, and at the same time improving the aesthetics of the game content display.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of game technology, and in particular to a method for processing a game interface, a device for processing a game interface, an electronic device, and a computer-readable medium. Background Art

[0002] At present, games have gradually become an important leisure method for users. With the porting or development of a large number of games on mobile terminals, a large number of user groups have entered these games. Among them, there are some game contents that are gradually unlocked as the game progresses. For such game contents, the display in the game interface is often relatively simple and the display of game contents is not intuitive enough, and the display of the game interface is too monotonous. Summary of the invention

[0003] The embodiments of the present invention provide a method, device, electronic device and computer-readable storage medium for processing a game interface to solve or partially solve the problem that the display of game content in the game interface is too simple and not intuitive enough.

[0004] The embodiment of the present invention discloses a method for processing a game interface, comprising:

[0005] Obtaining a target game interface, wherein the target game interface includes a plurality of game nodes;

[0006] Determine a node area corresponding to the game node according to the position information of the game node on the target game interface;

[0007] Obtain the mask layer corresponding to the node area;

[0008] Performing image processing on the mask layer to generate an interface mask image;

[0009] The interface mask image is added to the target game interface to mask the game node, so as to mask the game node to be unlocked in the game.

[0010] Optionally, it also includes:

[0011] During the game running process, in response to the unlocking of the game node, the unlocked target game node and the target node area corresponding to the target game node are determined, and the interface mask image corresponding to the target node area is removed from the target game interface.

[0012] Optionally, the position information includes at least first position information of a center point of the game node on the target game interface, and determining a node area corresponding to the game node according to the position information of the game node on the target game interface includes:

[0013] Using the first position information corresponding to each of the game nodes, generating a Voronoi diagram corresponding to the target game interface;

[0014] Each of the game nodes is matched with the Voronoi diagram to determine a node area corresponding to each of the game nodes in the Voronoi diagram.

[0015] Optionally, the position information includes at least second position information of each vertex of the game node on the target game interface, and determining the node area corresponding to the game node according to the position information of the game node on the target game interface includes:

[0016] Using the second position information corresponding to each of the game nodes, generating a Voronoi diagram corresponding to the target game interface;

[0017] Each of the game nodes is matched with the Voronoi diagram to determine a node area corresponding to each of the game nodes in the Voronoi diagram.

[0018] Optionally, the performing graphic processing on the mask layer to generate an interface mask image includes:

[0019] Performing image erosion on the mask layer to increase the mask area of ​​the mask layer;

[0020] Performing blur processing on the mask layer after the image corrosion, and obtaining an interface map corresponding to the target game interface;

[0021] The interface map is added to the blurred mask layer to generate an interface mask image.

[0022] Optionally, removing the interface mask image corresponding to the target node area in the target game interface includes:

[0023] A target map corresponding to the target node area is selected from the interface map, and the target map is removed from the target game interface.

[0024] Optionally, the node areas corresponding to all the game nodes cover the target game interface, and two adjacent node areas do not overlap each other.

[0025] The embodiment of the present invention further discloses a device for processing a game interface, comprising:

[0026] A game interface acquisition module, used to acquire a target game interface, wherein the target game interface includes a plurality of game nodes;

[0027] A node area determination module, used to determine a node area corresponding to the game node according to the position information of the game node on the target game interface;

[0028] A mask layer acquisition module, used to acquire the mask layer corresponding to the node area;

[0029] A mask image generation module, used for performing image processing on the mask layer to generate an interface mask image;

[0030] The game node masking module is used to add the interface masking image to the target game interface and mask the game nodes so as to mask the game nodes to be unlocked in the game.

[0031] Optionally, it also includes:

[0032] The mask image removal module is used to determine the unlocked target game node and the target node area corresponding to the target game node in response to the unlocking of the game node during the game running process, and remove the interface mask image corresponding to the target node area in the target game interface.

[0033] Optionally, the position information includes at least first position information of a center point of the game node on the target game interface, and the node area determination module includes:

[0034] A first Voronoi diagram generating submodule, configured to generate a Voronoi diagram corresponding to the target game interface by using the first position information corresponding to each of the game nodes;

[0035] The first node region generating submodule is used to match each of the game nodes with the Voronoi diagram, and determine the node region corresponding to each of the game nodes in the Voronoi diagram.

[0036] Optionally, the position information includes at least second position information of each vertex of the game node on the target game interface, and the node area determination module includes:

[0037] A second Voronoi diagram generating submodule, for generating a Voronoi diagram corresponding to the target game interface by using the second position information corresponding to each of the game nodes;

[0038] The second node region generating submodule is used to match each of the game nodes with the Voronoi diagram, and determine the node region corresponding to each of the game nodes in the Voronoi diagram.

[0039] Optionally, the mask image generating module is specifically used for:

[0040] Performing image erosion on the mask layer to increase the mask area of ​​the mask layer;

[0041] Performing blur processing on the mask layer after the image corrosion, and obtaining an interface map corresponding to the target game interface;

[0042] The interface map is added to the blurred mask layer to generate an interface mask image.

[0043] Optionally, the mask image removal module is specifically used to:

[0044] A target map corresponding to the target node area is selected from the interface map, and the target map is removed from the target game interface.

[0045] Optionally, the node areas corresponding to all the game nodes cover the target game interface, and two adjacent node areas do not overlap each other.

[0046] The embodiment of the present invention further discloses an electronic device, comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus;

[0047] The memory is used to store computer programs;

[0048] The processor is used to implement the method described in the embodiment of the present invention when executing the program stored in the memory.

[0049] The embodiment of the present invention further discloses one or more computer-readable media on which instructions are stored. When executed by one or more processors, the processors are enabled to execute the method described in the embodiment of the present invention.

[0050] The embodiments of the present invention include the following advantages:

[0051] In an embodiment of the present invention, different game interfaces may be included in the game, and the target game interface may be obtained first, in which a number of game nodes may be included. Then, the node area corresponding to the game node may be determined based on the position information of the game node in the target game interface, and each node area may be used to characterize the area occupied by the game node in the target game interface. Then, the mask layer corresponding to the node area may be obtained, and the mask layer may be image processed to generate an interface mask image, and then the interface mask image may be added to the target game interface to mask the game node so as to mask the game node to be unlocked in the game. Thus, for the game interface containing the game nodes in the game, the game interface may be divided based on the position information of the game nodes to obtain the node areas corresponding to the various game nodes, and the node areas to be unlocked in the game may be masked by the mask image. As the game progresses, the node areas are gradually displayed, thereby enriching the way of displaying the game content, allowing the player to intuitively distinguish the game content in the game interface, and at the same time improving the aesthetics of the game content display. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] Figure 1 is a schematic diagram of a technology tree provided in an embodiment of the present invention;

[0053] Figure 2 is a flowchart of a method for processing a game interface provided in an embodiment of the present invention;

[0054] Figure 3 is a schematic diagram of a node area provided in an embodiment of the present invention;

[0055] Figure 4 is a schematic diagram of a node area provided in an embodiment of the present invention;

[0056] Figure 5 is a schematic diagram of a node area provided in an embodiment of the present invention;

[0057] Figure 6 is a schematic diagram of a game interface provided in an embodiment of the present invention;

[0058] Figure 7 is a structural block diagram of a game interface processing device provided in an embodiment of the present invention;

[0059] Figure 8 is a block diagram of an electronic device provided in an embodiment of the present invention;

[0060] Fig. 9 is a schematic diagram of a computer-readable medium provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0061] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.

[0062] As an example, in addition to the main game interface, the game may also include various types of game interfaces, which can provide players with corresponding game functions, such as skill interface, achievement interface, map interface, technology tree interface, etc. In these game interfaces, players are often required to continuously advance the game process to unlock the corresponding game content, so that players can continuously advance the game process to obtain more and richer game content through the "cultivation" method. For example, refer to Figure 1 , showing a schematic diagram of the technology tree provided in an embodiment of the present invention, the technology tree interface 10 includes several technology nodes, among which technology nodes 1, 2, and 3 have been unlocked, and other technology nodes have not been unlocked. Visually, whether each technology node has been unlocked can only be judged from the display status of the node. The display method is too single and not intuitive enough, and this monotonous display method is not beautiful enough to bring a good visual experience to the players.

[0063] In this regard, one of the core invention points in the embodiment of the present invention is to obtain the target game interface and determine each game node in the target game interface, then obtain the position information of each game node in the game interface, and determine the corresponding node area according to the position information of each game node. The node areas corresponding to all game nodes can completely cover the entire game interface, and the two adjacent node areas do not overlap with each other. Then, the mask layer corresponding to the node area can be obtained, and the mask layer can be image processed to generate an interface mask image, and then the interface mask image can be added to the target game interface to mask the game nodes to be unlocked in the game. Therefore, for the game interface containing game nodes in the game, the game interface can be divided based on the position information of the game nodes to obtain the node areas corresponding to each game node, and the node areas to be unlocked in the game can be masked by the mask image. As the game progresses, the node areas are gradually displayed, which enriches the way of displaying game content, enables players to intuitively distinguish the game content in the game interface, and improves the aesthetics of the game content display.

[0064] Specifically, refer to Figure 1 , shows a flowchart of a method for processing a game interface provided in an embodiment of the present invention, which may specifically include the following steps:

[0065] Step 201, obtaining a target game interface, wherein the target game interface includes a plurality of game nodes;

[0066] In an embodiment of the present invention, the target game interface may be a skill interface, an achievement interface, a map interface, a technology tree interface, etc. Among them, the skill interface may include different skill nodes, and the corresponding skill nodes may be unlocked as the player character level in the game is improved, or the player may unlock the corresponding skills through the skill points in the game, etc.; the achievement interface may include different achievement nodes, and as the game progresses, the player may unlock the corresponding achievement node when the conditions corresponding to a certain achievement node are met in the game, such as the improvement of the game level, the unlocking of the game scene, the collection of props, etc.; the map interface may include different map nodes, and as the player explores the game map, the corresponding map node may be unlocked every time a new location is reached; the technology tree interface may include a technology tree, and the technology tree may be composed of different technology nodes, and as the player advances the technology progress in the game, the corresponding technology nodes may be unlocked, etc., so that the game interface containing the game nodes may be processed so as to improve the visual effect of the game content display of these game interfaces in the game.

[0067] In one example, in order to enrich the display of game content in the game interface, each game node can be bound to a node area, and then a corresponding mask image can be added to the node area. In this way, in the game, for the unlocked game nodes, the game content corresponding to the game nodes can be displayed; for the game nodes to be unlocked, the game content corresponding to the game nodes can be hidden by the mask image, thereby enriching the way of displaying game content, allowing players to intuitively distinguish the game content in the game interface, and at the same time improving the aesthetics of the game content display.

[0068] Step 202, determining a node area corresponding to the game node according to the position information of the game node on the target game interface;

[0069] In an embodiment of the present invention, a game node can be displayed as a certain icon, and the icon corresponding to each game node can occupy a certain area in the game interface. Then, the position information of each game node in the game interface can be obtained, and then the node area corresponding to each game node in the game interface can be determined according to the position information.

[0070] In a specific implementation, the position information may include first position information of the center point of the game node in the target game interface and second position information of each vertex of the game node in the target game interface. In one example, the first position information corresponding to each game node can be used to generate a Voronoi diagram corresponding to the target game interface, and then each game node can be matched with the Voronoi diagram to determine the node area corresponding to each game node in the Voronoi diagram.

[0071] In another example, the second position information corresponding to each game node may be used to generate a Voronoi diagram corresponding to the target game interface, and then each game node may be matched with the Voronoi diagram to determine the node area corresponding to each game node in the Voronoi diagram.

[0072] The first position information may include the position coordinates of the center point of the game node in the game interface, and the second position information may include the position coordinates of each vertex (or corner point) of the game node in the game interface. Figure 3 , shows a schematic diagram of the node area provided in an embodiment of the present invention. When the Voronoi diagram is generated using the coordinate information corresponding to the center point of the game node, the coordinates of the center point of each game node can be used as the input of the Delaunay triangulation to obtain the Voronoi diagram. Then, each game node is matched with the generated Voronoi diagram, and the polygons corresponding to each game node in the Voronoi diagram are extracted. The polygons are associated with the game nodes to determine the node area corresponding to each game node, such as Figure 3 In the diagram, game nodes 1, 2, 3, 4, 5, 6, 7, 8, and 9 can correspond to corresponding node areas in the Voronoi diagram respectively.

[0073] Optionally, the Voronoi diagram is generated using the coordinates of the center point of the game node, which can easily lead to a problem. If the icon of the game node (square area, circular area, etc.) is too large, it may exceed the node area. Figure 4 , showing a schematic diagram of the node area provided in an embodiment of the present invention. If the icon of the game node 3 (as shown by the dotted line) is too large, the icon will exceed the corresponding node area. In this regard, in order to solve the problem that the game node icon is too large and exceeds the node area, the vertices of the icon corresponding to the game node can be obtained. For example, if the icon of the game node is a square, the coordinates of its four vertices in the game interface can be obtained, and then the vertex coordinates of each game node are used as the input of the Delaunay triangulation to obtain the Voronoi diagram. Then, each game node is matched with the generated Voronoi diagram, and the polygons corresponding to each game node in the Voronoi diagram are extracted. The polygons are associated with the game nodes to determine the node area corresponding to each game node. Refer to Figure 5 , shows a schematic diagram of the node area provided in an embodiment of the present invention. By obtaining the vertex coordinates corresponding to the game nodes and then determining the node area according to the vertex coordinates of each game node, the problem of the game node icon exceeding the node area is effectively avoided, thereby ensuring the stability and aesthetics of the game interface content display.

[0074] It should be noted that, in the above process, determining the node area through the location information of the game node can effectively avoid the problem of relevant personnel having to re-set the node area when the game node changes. That is, in an embodiment of the present invention, when a game node changes, it is only necessary to obtain the location information of the changed game node, and then determine the node area corresponding to the game node based on the location information, thereby reducing the workload of relevant personnel and improving the flexibility of game interface processing.

[0075] In addition to generating the Voronoi diagram, the node area of ​​the game node may also be determined by a point set segmentation method, such as a KD number, a quadtree, etc., which is not limited in the present invention.

[0076] Step 203, obtaining a mask layer corresponding to the node area;

[0077] In a specific implementation, in order to improve the display effect of the game content in the game interface, a mask layer corresponding to the node area can be obtained so as to perform image processing on the mask layer and generate a corresponding interface mask image. The mask layer can be used to set the display effect of the mask image on the game node in the game. After performing image processing on the mask layer, the display effect of the subsequent superimposed texture can be effectively improved. Therefore, after the game interface is divided according to the position information of the game node, the display of the game interface is beautified through the mask layer to bring better display effects to the players.

[0078] Step 204, performing image processing on the mask layer to generate an interface mask image;

[0079] In a specific implementation, the mask layer can be eroded to increase the mask area of ​​the mask layer. The eroded mask layer can then be blurred, and an interface map corresponding to the target game interface can be obtained. The interface map can then be added to the blurred mask layer to generate an interface mask image.

[0080] Optionally, the mask area of ​​the mask layer can be appropriately increased through image erosion so that the area to be masked maintains the same display style. The mask layer is then Gaussian blurred to reduce the sharpness of the edge of the mask layer so that it has a gradient effect. The corresponding texture is then obtained and added to the mask layer to complete the processing of the interface mask image, so that the interface mask image can be added to the game interface to hide the unlocked game nodes.

[0081] It should be noted that, for different node areas, the interface maps corresponding to each node area can be obtained respectively, or the same interface map for all node areas can be obtained. For the former, in order to ensure the consistency of the game content corresponding to the game node, the interface map corresponding to the game node can be obtained; for the latter, in order to ensure the consistency of the display style of the game content in the game interface, the interface map corresponding to the game interface can be obtained, so that by obtaining a map matching the game content as an image for masking the game node in the game interface, the display effect of the game content can be effectively improved, and the present invention is not limited to this.

[0082] Step 205: Add the interface mask image to the target game interface to mask the game node, so as to mask the game node to be unlocked in the game.

[0083] After the interface mask image is generated, it can be added to the target game interface to mask the game nodes. Therefore, in the game interface corresponding to the game, if the player has not unlocked the corresponding game node, the game content corresponding to the game node will be blocked by the interface mask image; if the player has unlocked the corresponding game node, the corresponding mask image can be removed to display the game content corresponding to the game node, and then the node area to be unlocked in the game can be masked by the mask image, and as the game progresses, the node area can be gradually displayed, enriching the way of displaying game content, allowing players to intuitively distinguish the game content in the game interface, while improving the aesthetics of the game content display.

[0084] During the game operation, in response to the unlocking of the game node, the unlocked target game node and the target node area corresponding to the target game node are determined, and the interface mask image corresponding to the target node area is removed in the target game interface. Specifically, when the player completes a certain game condition in the game, such as level commission, achievement, map exploration, etc., and unlocks the corresponding game node, the unlocked target game node can be determined, and the target node area of ​​the target game node in the corresponding game interface can be selected, and then the target map corresponding to the target node area is selected from the interface map, and the target map is removed in the target game interface, so that the game content of the game interface is masked by image masking, and as the game progresses, the corresponding mask image is gradually removed, so that the player can intuitively distinguish the game content in the game interface, while improving the aesthetics of the game content display.

[0085] In one example, assuming that the target game interface includes 9 game nodes, the location information of each game node can be obtained first, and then the node area can be determined in the game interface according to the location information, and then the mask layer corresponding to the node area is obtained, and then the mask layer is eroded, Gaussian blurred, and the corresponding mask image is added in turn to generate an interface mask image, and then the interface mask image is added to the target game interface to mask the game nodes so as to mask the game nodes to be unlocked in the game. Optionally, assuming that the target game interface is a skill interface, the unlocked game skills are hidden by a "fog" mask image. If the skill interface includes 9 game skills, the unlocking condition is that the player character reaches the corresponding game level, including the player character unlocking skill one at level 0, unlocking skill two at level 10, unlocking skill three at level 20, unlocking skill four at level 30, unlocking skill five at level 40, unlocking skill six at level 50, unlocking skill seven at level 60, unlocking skill eight at level 70, unlocking skill nine at level 80, and unlocking skill ten at level 90. At the initial node of the game, except for skill one in the skill interface, all other game skills are covered by the "fog". Refer to Figure 6 , showing a schematic diagram of a game interface provided in an embodiment of the present invention. As the player character level increases, the “fog” blocked by other game skills can be gradually removed. Therefore, for a game interface containing game skills in the game, the game interface can be divided based on the position information of the game skills to obtain skill areas corresponding to each game skill, and the skill areas to be unlocked in the game are masked by a “fog” image. As the game progresses, the skill areas are gradually displayed, enriching the way of displaying game content, allowing players to intuitively distinguish the game content in the game interface, while improving the aesthetics of the game content display.

[0086] It should be noted that the embodiments of the present invention include but are not limited to the above examples. It is understandable that under the guidance of the ideas of the embodiments of the present invention, those skilled in the art can also make settings according to actual needs, and the present invention is not limited to this.

[0087] In an embodiment of the present invention, different game interfaces may be included in the game, and the target game interface may be obtained first, in which a number of game nodes may be included. Then, the node area corresponding to the game node may be determined based on the position information of the game node in the target game interface, and each node area may be used to characterize the area occupied by the game node in the target game interface. Then, the mask layer corresponding to the node area may be obtained, and the mask layer may be image processed to generate an interface mask image, and then the interface mask image may be added to the target game interface to mask the game node so as to mask the game node to be unlocked in the game. Thus, for the game interface containing the game nodes in the game, the game interface may be divided based on the position information of the game nodes to obtain the node areas corresponding to the various game nodes, and the node areas to be unlocked in the game may be masked by the mask image. As the game progresses, the node areas are gradually displayed, thereby enriching the way of displaying the game content, allowing the player to intuitively distinguish the game content in the game interface, and at the same time improving the aesthetics of the game content display.

[0088] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.

[0089] Reference Figure 7 , shows a structural block diagram of a game interface processing device provided in an embodiment of the present invention, which may specifically include the following modules:

[0090] A game interface acquisition module 701 is used to acquire a target game interface, where the target game interface includes a number of game nodes;

[0091] A node area determination module 702, configured to determine a node area corresponding to the game node according to the position information of the game node on the target game interface;

[0092] A mask layer acquisition module 703 is used to acquire a mask layer corresponding to the node area;

[0093] The mask image generation module 704 is used to perform image processing on the mask layer to generate an interface mask image;

[0094] The game node masking module 705 is used to add the interface masking image to the target game interface and mask the game nodes so as to mask the game nodes to be unlocked in the game.

[0095] In an optional embodiment, it also includes:

[0096] The mask image removal module is used to determine the unlocked target game node and the target node area corresponding to the target game node in response to the unlocking of the game node during the game running process, and remove the interface mask image corresponding to the target node area in the target game interface.

[0097] In an optional embodiment, the position information at least includes first position information of the center point of the game node in the target game interface, and the node area determination module 702 includes:

[0098] A first Voronoi diagram generating submodule, configured to generate a Voronoi diagram corresponding to the target game interface by using the first position information corresponding to each of the game nodes;

[0099] The first node region generating submodule is used to match each of the game nodes with the Voronoi diagram, and determine the node region corresponding to each of the game nodes in the Voronoi diagram.

[0100] In an optional embodiment, the position information includes at least second position information of each vertex of the game node in the target game interface, and the node area determination module 702 includes:

[0101] A second Voronoi diagram generating submodule, for generating a Voronoi diagram corresponding to the target game interface by using the second position information corresponding to each of the game nodes;

[0102] The second node region generating submodule is used to match each of the game nodes with the Voronoi diagram, and determine the node region corresponding to each of the game nodes in the Voronoi diagram.

[0103] In an optional embodiment, the mask image generating module 704 is specifically used for:

[0104] Performing image erosion on the mask layer to increase the mask area of ​​the mask layer;

[0105] Performing blur processing on the mask layer after the image corrosion, and obtaining an interface map corresponding to the target game interface;

[0106] The interface map is added to the blurred mask layer to generate an interface mask image.

[0107] In an optional embodiment, the mask image removal module is specifically used to:

[0108] A target map corresponding to the target node area is selected from the interface map, and the target map is removed from the target game interface.

[0109] In an optional embodiment, the node areas corresponding to all the game nodes cover the target game interface, and no two adjacent node areas overlap each other.

[0110] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0111] In addition, an embodiment of the present invention further provides an electronic device, such as Figure 8 As shown, it includes a processor 801, a communication interface 802, a memory 803 and a communication bus 804, wherein the processor 801, the communication interface 802, and the memory 803 communicate with each other through the communication bus 804.

[0112] Memory 803, used for storing computer programs;

[0113] The processor 801 is used to execute the program stored in the memory 803, and implements the following steps:

[0114] Obtaining a target game interface, wherein the target game interface includes a plurality of game nodes;

[0115] Determine a node area corresponding to the game node according to the position information of the game node on the target game interface;

[0116] Obtain the mask layer corresponding to the node area;

[0117] Performing image processing on the mask layer to generate an interface mask image;

[0118] The interface mask image is added to the target game interface to mask the game node, so as to mask the game node to be unlocked in the game.

[0119] In an optional embodiment, it also includes:

[0120] During the game running process, in response to the unlocking of the game node, the unlocked target game node and the target node area corresponding to the target game node are determined, and the interface mask image corresponding to the target node area is removed from the target game interface.

[0121] In an optional embodiment, the position information includes at least first position information of a center point of the game node on the target game interface, and determining a node area corresponding to the game node according to the position information of the game node on the target game interface includes:

[0122] Using the first position information corresponding to each of the game nodes, generating a Voronoi diagram corresponding to the target game interface;

[0123] Each of the game nodes is matched with the Voronoi diagram to determine a node area corresponding to each of the game nodes in the Voronoi diagram.

[0124] In an optional embodiment, the position information includes at least second position information of each vertex of the game node on the target game interface, and determining the node area corresponding to the game node according to the position information of the game node on the target game interface includes:

[0125] Using the second position information corresponding to each of the game nodes, generating a Voronoi diagram corresponding to the target game interface;

[0126] Each of the game nodes is matched with the Voronoi diagram to determine a node area corresponding to each of the game nodes in the Voronoi diagram.

[0127] In an optional embodiment, the step of performing graphic processing on the mask layer to generate an interface mask image includes:

[0128] Performing image erosion on the mask layer to increase the mask area of ​​the mask layer;

[0129] Performing blur processing on the mask layer after the image corrosion, and obtaining an interface map corresponding to the target game interface;

[0130] The interface map is added to the blurred mask layer to generate an interface mask image.

[0131] In an optional embodiment, removing the interface mask image corresponding to the target node area in the target game interface includes:

[0132] A target map corresponding to the target node area is selected from the interface map, and the target map is removed from the target game interface.

[0133] In an optional embodiment, the node areas corresponding to all the game nodes cover the target game interface, and no two adjacent node areas overlap each other.

[0134] The communication bus mentioned in the above terminal can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.

[0135] The communication interface is used for communication between the above terminal and other devices.

[0136] The memory may include a random access memory (RAM) or a non-volatile memory, such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.

[0137] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0138] like Fig. 9 As shown, in another embodiment provided by the present invention, a computer-readable storage medium 901 is also provided, in which instructions are stored. When the computer-readable storage medium 901 is run on a computer, the computer executes the method for processing the game interface described in the above embodiment.

[0139] In another embodiment of the present invention, a computer program product including instructions is provided, which, when executed on a computer, enables the computer to execute the method for processing the game interface described in the above embodiment.

[0140] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk Solid State Disk (SSD)), etc.

[0141] It should be noted that, in this article, relational terms such as first and second, etc. 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.

[0142] Each embodiment in this specification is described in a related manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0143] The above description is only a preferred embodiment of the present invention and is not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.

Claims

1. A method for processing a game interface, characterized in that: include: Obtaining a target game interface, wherein the target game interface includes a plurality of game nodes; Determine a node area corresponding to the game node according to the position information of the game node on the target game interface; Obtain the mask layer corresponding to the node area; Performing image processing on the mask layer to generate an interface mask image; Adding the interface mask image to the target game interface to mask the game node, so as to mask the game node to be unlocked in the game; Wherein, the method further comprises: During the game running process, in response to unlocking of a game node, determining the unlocked target game node and the target node area corresponding to the target game node, and removing the interface mask image corresponding to the target node area in the target game interface; Among them, the node areas corresponding to all the game nodes cover the target game interface, and no two adjacent node areas overlap each other.

2. The method according to claim 1, characterized in that The position information at least includes first position information of a center point of the game node on the target game interface, and determining a node area corresponding to the game node according to the position information of the game node on the target game interface includes: Using the first position information corresponding to each of the game nodes, generating a Voronoi diagram corresponding to the target game interface; Each of the game nodes is matched with the Voronoi diagram to determine a node area corresponding to each of the game nodes in the Voronoi diagram.

3. The method according to claim 1, characterized in that The position information at least includes second position information of each vertex of the game node on the target game interface, and determining the node area corresponding to the game node according to the position information of the game node on the target game interface includes: Using the second position information corresponding to each of the game nodes, generating a Voronoi diagram corresponding to the target game interface; Each of the game nodes is matched with the Voronoi diagram to determine a node area corresponding to each of the game nodes in the Voronoi diagram.

4. The method according to claim 1, characterized in that: The step of performing graphic processing on the mask layer to generate an interface mask image includes: Performing image erosion on the mask layer to increase the mask area of ​​the mask layer; Performing blur processing on the mask layer after the image corrosion, and obtaining an interface map corresponding to the target game interface; The interface map is added to the blurred mask layer to generate an interface mask image.

5. The method according to claim 4, characterized in that The removing the interface mask image corresponding to the target node area in the target game interface includes: A target map corresponding to the target node area is selected from the interface map, and the target map is removed from the target game interface.

6. A device for processing a game interface, characterized in that: include: A game interface acquisition module, used to acquire a target game interface, wherein the target game interface includes a plurality of game nodes; A node area determination module, used to determine a node area corresponding to the game node according to the position information of the game node on the target game interface; A mask layer acquisition module, used to acquire the mask layer corresponding to the node area; A mask image generation module, used for performing image processing on the mask layer to generate an interface mask image; A game node masking module, used for adding the interface masking image to the target game interface, masking the game nodes, so as to mask the game nodes to be unlocked in the game; Wherein, the device further comprises: A mask image removal module is used to, in response to unlocking of a game node during game operation, determine an unlocked target game node and a target node area corresponding to the target game node, and remove an interface mask image corresponding to the target node area in the target game interface; Among them, the node areas corresponding to all the game nodes cover the target game interface, and no two adjacent node areas overlap each other.

7. An electronic device, characterized in that: It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; The memory is used to store computer programs; The processor is used to implement the method according to any one of claims 1 to 5 when executing the program stored in the memory.

8. A computer-readable medium having instructions stored thereon, which, when executed by one or more processors, cause the processors to perform the method according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Calculation method and device for occlusion rate, storage medium and electronic device

    CN109568961A

  • Task execution method and apparatus, device and medium

    CN111773715A