Game map resource icon display method and device, computing equipment and storage medium

Through intelligent map zoom and icon management, the visual inconvenience and fluency caused by dense icons during game map zoom is solved, and high frame rate operation and user experience are improved.

CN119185940APending Publication Date: 2024-12-27成都帆点创想科技有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411267715.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-11
Publication Date
2024-12-27

AI Technical Summary

Technical Problem

When zooming in the game map, dense resource icons cause inconvenience in visual experience, affecting the smoothness and aesthetics of the game, and the zoomed image resolution is low, the frame count is reduced, and the player experience is affected.

Method used

By obtaining all resource icons in the game map, positioning their coordinate points and calculating the distance from the center point of the map, retaining the closest icon when responding to the zoom command and hiding other icons, restoring all icons when canceling zoom, realizing intelligent zooming and icon management .

Benefits of technology

It improves the simplicity and clarity of the interface, reduces the pressure of GPU rendering, ensures high frame rate of game operation, and improves user experience and game fluency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119185940A_ABST
    Figure CN119185940A_ABST
Patent Text Reader

Abstract

The invention provides a game map resource icon display method and device, computing equipment and a storage medium. The game map resource icon display method comprises the steps that all resource icons in a target game map are obtained; positioning coordinate points of all the resource icons, and determining a distance between a positioning result and a map center point of the target game map; in response to a received zooming instruction, zooming the target game map, retaining a resource icon closest to the center point of the map, and hiding other resource icons; and in response to a received zoom cancelling instruction, recovering the target game map and all the map resource icons. According to the method, the zoomed interface is clean and tidy, the definition is improved, a user can conveniently check the interface, the information amount of the zoomed interface is reduced along with the reduction of the icons, and the rendering work of related hardware equipment is reduced, so that the number of running frames of a game is increased, and the zoomed interface runs more smoothly.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of game technology, and more particularly to a method for displaying game map resource icons. The present application also relates to a device for displaying game map resource icons, a computing device, and a computer-readable storage medium. Background Art

[0002] With the development of Internet technology, various games based on smart devices are becoming more and more common. Take mobile games as an example. With the improvement of mobile phone screen ratio and mobile phone performance, the mobile game map interface can display more and more information. Players can obtain richer information on the same interface, which makes it easier for players to view and understand the distribution of various resources on the map.

[0003] However, although the map interface provides more information for players to read, in actual applications, when the map is zoomed to a certain scale, the icons are often too dense, which brings inconvenience to the user's visual experience. Dense icons may greatly reduce the beauty of the map, and too many icons will also confuse players, because it is difficult for users to quickly identify and understand important map information, and it takes more time to find and identify the target.

[0004] In addition, the resolution of the scaled map will be affected, which will affect the smoothness of the game. The image is reduced by linearly weighting the pixels of the original image to obtain a low-resolution image. The grayscale value of the new pixel obtained by image interpolation is determined by a linear or nonlinear algorithm between the grayscale values ​​of the original pixels. The grayscale values ​​obtained by different algorithms directly affect the display effect of the final reconstructed image, especially because there are many icons in the map, which makes the grayscale value change drastically, the GPU rendering work is aggravated, and the temperature of the mobile phone rises to the temperature wall, thus affecting the normal operation of the game. In order to ensure the normal operation of the game, the mobile phone system will lock the frame or reduce the frame rate to run the game. Although the scaled image can be displayed normally, the scaled image has low resolution, low frame rate, and greatly reduced smoothness, which greatly reduces the player's gaming experience. Summary of the invention

[0005] In view of this, the embodiment of the present application provides a method for displaying game map resource icons to solve the technical defects existing in the prior art. The embodiment of the present application also provides a game map resource icon display device, a computing device, and a computer-readable storage medium.

[0006] According to a first aspect of an embodiment of the present application, a method for displaying a game map resource icon is provided, comprising:

[0007] Get all resource icons in the target game map;

[0008] Locating the coordinate points of all resource icons, and determining the distance between the positioning results and the map center point of the target game map;

[0009] In response to the received zoom instruction, zoom the target game map, retain the resource icon closest to the center point of the map, and hide other resource icons;

[0010] In response to the received zoom cancel instruction, the target game map and all the map resource icons are restored.

[0011] Optionally, the obtaining of all resource icons in the target game map includes:

[0012] Collect all resource icons in the target game map;

[0013] Based on a preset icon classification principle, all resource icons are classified to obtain at least one resource icon set.

[0014] Optionally, locating the coordinate points of all resource icons and determining the distance between the locating result and the center point of the target game map includes:

[0015] Locating the coordinate points of all the resource icons, and calculating the distance between any two resource icons included in the same resource icon set according to the positioning result;

[0016] Based on the distance calculation result between any two resource icons in the same resource icon set, merging the resource icons to obtain a target resource icon;

[0017] The distance between the unmerged resource icon and the center point of the map and the distance between the target resource icon and the center point of the map are calculated.

[0018] Optionally, the merging resource icons based on the distance calculation result between any two resource icons in the same resource icon set to obtain the target resource icon includes:

[0019] Determine the distance between any two resource icons in the same resource icon set, and the resource icons whose distance is smaller than a preset merging distance are merged into a resource icon group;

[0020] The resource icon in the merged resource icon group that is closest to the map center point is used as the target resource icon, wherein the number of resources of the target resource icon is the sum of the number of resources of the corresponding resource icons in the merged resource icon group.

[0021] Optionally, in response to the received zoom instruction, zooming the target game map, retaining the resource icon closest to the center point of the map, and hiding other resource icons, comprises:

[0022] In response to the zoom instruction, zooming the target game map;

[0023] The one of the target resource icon and the unmerged resource icons that is closest to the center point of the map is retained, and the other resource icons are hidden.

[0024] Optionally, in response to the received zoom instruction, during the process of zooming the target game map, the position of the target game map is adjusted so that the reserved resource icon is placed at the center of the target game map.

[0025] Optionally, in response to the received zoom instruction, during the process of zooming the target game map, an icon information window is displayed on the target game map, wherein the icon information window records association information of the retained resource icons.

[0026] According to a second aspect of an embodiment of the present application, a game map resource icon display device is provided, comprising:

[0027] An acquisition module, configured to acquire all resource icons in a target game map;

[0028] A positioning module, configured to locate the coordinate points of all resource icons and determine the distance between the positioning result and the map center point of the target game map;

[0029] A first response module is configured to scale the target game map in response to a received scaling instruction, retain the resource icon closest to the center point of the map, and hide other resource icons;

[0030] The second response module is configured to restore the target game map and all the map resource icons in response to the received zoom cancel instruction.

[0031] According to a third aspect of an embodiment of the present application, a computing device is provided, including:

[0032] Memory and processor;

[0033] The memory is used to store computer-executable instructions, and the processor implements the steps of the game map resource icon display method when executing the computer-executable instructions.

[0034] According to a fourth aspect of an embodiment of the present application, a computer-readable storage medium is provided, which stores computer-executable instructions, and when the instructions are executed by a processor, the steps of the game map resource icon display method are implemented.

[0035] According to a fifth aspect of an embodiment of the present application, a chip is provided, which stores a computer program, and when the computer program is executed by the chip, the steps of the game map resource icon display method are implemented.

[0036] The game map resource icon display method provided by the present application obtains all resource icons in the target game map; locates the coordinate points of all resource icons, and determines the distance between the positioning result and the map center point of the target game map; in response to the received zoom instruction, zooms the target game map, retains the resource icon closest to the map center point, and hides other resource icons; in response to the received zoom cancellation instruction, restores the target game map and all map resource icons. The technology of intelligent map zooming and icon saving or deletion when the map is zoomed is realized, which can reduce the display of icons and ensure the simplicity and clarity of the interface. Adjacent icons of the same type can be merged according to certain rules to reduce visual clutter and highlight important information on the map, thereby improving user experience, and not only enhancing the user's gaming experience, but also reducing the user's operation complexity and time cost. At the same time, the icons after zooming are reduced, and the grayscale value of the image pixel point will not change dramatically, which reduces the rendering pressure of the GPU, ensures that the game can run at a high frame rate, and the fluency will not be affected, which can further improve the practicality and attractiveness of the game map interface zoom application. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0038] Figure 1 This is a flow chart of a method for displaying game map resource icons provided by an embodiment of the present application;

[0039] Figure 2 It is a processing flow chart of a method for displaying game map resource icons provided by an embodiment of the present application;

[0040] Figure 3 It is a schematic diagram of a method for displaying game map resource icons provided by an embodiment of the present application;

[0041] Figure 4It is a structural schematic diagram of a game map resource icon display device provided by an embodiment of the present application;

[0042] Figure 5 It is a structural block diagram of a computing device provided in one embodiment of the present application. DETAILED DESCRIPTION

[0043] Many specific details are described in the following description to facilitate a full understanding of the present application. However, the present application can be implemented in many other ways than those described herein, and those skilled in the art can make similar generalizations without violating the connotation of the present application, so the present application is not limited by the specific implementation disclosed below.

[0044] The terms used in one or more embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to limit one or more embodiments of the present application. The singular forms of "a", "said" and "the" used in one or more embodiments of the present application and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used in one or more embodiments of the present application refers to and includes any or all possible combinations of one or more associated listed items.

[0045] It should be understood that, although the terms first, second, etc. may be used to describe various information in one or more embodiments of the present application, such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of one or more embodiments of the present application, the first may also be referred to as the second, and similarly, the second may also be referred to as the first.

[0046] In the present application, a method for displaying a game map resource icon is provided. The present application also relates to a game map resource icon display device, a computing device, and a computer-readable storage medium, which are described in detail one by one in the following embodiments.

[0047] Figure 1 A flowchart of a method for displaying game map resource icons according to an embodiment of the present application is shown, which specifically includes the following steps:

[0048] Step S102: Obtain all resource icons in the target game map;

[0049] Step S104: locating the coordinate points of all resource icons, and determining the distance between the positioning result and the map center point of the target game map;

[0050] Step S106: In response to the received zoom instruction, zoom the target game map, retain the resource icon closest to the center point of the map, and hide other resource icons;

[0051] Step S108: In response to the received zoom cancel instruction, restore the target game map and all the map resource icons.

[0052] Among them, the target game map is the map currently displayed on the device screen, and the map contains resource icons, such as stone, mineral materials, wood, etc. The specific resource icon type is determined by the actual usage scenario. The center point of the map can be understood as the mapping of the geometric center of the device screen on the target game map. The zoom instruction is an instruction generated based on the user's trigger operation, which is used to indicate the zoom of the current map interface. Specifically, it can be two-finger sliding, clicking on the corresponding control, etc. The specific trigger operation is determined by the actual usage scenario, and this embodiment does not limit it. The zoom cancel instruction is an instruction corresponding to the zoom instruction, which is also generated based on the user's trigger action, and is used to restore the zoom of the map interface by the zoom instruction.

[0053] Based on this, Figure 2 As shown in the processing flow chart of a method for displaying resource icons on a game map, all icons on the game map interface are collected, that is, corresponding to step S102, all resource icons in the target game map are obtained; then, the position distance between all icons and the center point of the interface is determined, that is, corresponding to step S104, the coordinate points of all resource icons are located, and the distance between the center point of the map of the target game map is calculated based on the determined coordinate points; when the user has a map zooming requirement, the icon closest to the center point is determined based on the distance between the icon and the center point of the interface, and the icon is retained after zooming, while the icons of the remaining icons disappear after zooming, corresponding to step S106, based on the zoom instruction, the target game map is zoomed, the resource icon closest to the center point of the map is retained, and other resource icons are hidden; finally, when the user has a requirement to restore the zoomed map, that is, after canceling the zoom, all icons are displayed and restored to their initial positions, corresponding to step S108, according to the zoom cancellation instruction, the target game map and all map resource icons are restored.

[0054] In addition, the relevant device will record an icon that is closest to the center area of ​​the map interface. During the map zooming process, the icon is passed to the image saving module for saving, so that the icon is retained in the zoomed map interface. If the zoom is canceled, the icon information will be restored to the initial coordinate position; and the relevant device will record other icons that are far away from the center area of ​​the map interface. During the map zooming process, the icon will be deleted, so that the zoomed map interface is clean and tidy, but the icon information has been saved in the database. If the zoom is canceled, the icon information will be restored to display.

[0055] In summary, the system can automatically retain and delete corresponding icons when zooming the map, thereby improving the simplicity and clarity of the interface and making it easier for users to view and operate. At the same time, because the number of icons is reduced after zooming, the working pressure of the GPU of related devices is reduced, and the operating temperature of the equipment does not change much, ensuring that the game can run at a high frame rate and the fluency will not be affected.

[0056] Furthermore, in step S102, the process of obtaining all resource icons in the target game map is specifically implemented as follows in this embodiment:

[0057] Collect all the resource icons in the target game map; classify all the resource icons based on a preset icon classification principle to obtain at least one resource icon set.

[0058] Among them, since in the target game map, the types of resource icons are divided into stone, mineral material, wood, granary, barracks, etc., and there may be more than one resource icon of the same type, in this case, it is necessary to identify the types of resource icons, and resource icons of the same type are divided into the same resource coordinate set.

[0059] Furthermore, in step S104, the coordinate points of all resource icons are located, and the distance between the location result and the center point of the target game map is determined. In this embodiment, the specific implementation method is as follows:

[0060] Locate the coordinate points of all the resource icons, and calculate the distance between any two resource icons included in the same resource icon set based on the positioning results; merge the resource icons based on the distance calculation results between any two resource icons in the same resource icon set to obtain the target resource icon; calculate the distance between the unmerged resource icons and the center point of the map, as well as the distance between the target resource icon and the center point of the map.

[0061] Among them, the process of locating the coordinate points of all resource icons can be determined for any resource icon by querying the attribute data corresponding to the resource icon, or by locating the resource icon through an image recognition algorithm and determining its corresponding coordinate points based on a preset coordinate system.

[0062] Based on this, for any two resource icons of the same type, the distance between them is calculated, and they are merged according to the calculation result to obtain the target resource icon. Then, based on the merged resource icon, i.e. the target resource icon, and the unmerged resource icon, the distance between each of them and the center point of the map is calculated.

[0063] Furthermore, based on the distance calculation result between any two resource icons in the same resource icon set, the resource icons are merged to obtain the target resource icon. In this embodiment, the specific implementation method is as follows:

[0064] Determine the distance between any two resource icons in the same resource icon set, and the resource icons that are less than the preset merge distance are the merged resource icon group; take the resource icon in the merged resource icon group that is closest to the center point of the map as the target resource icon, wherein the number of resources of the target resource icon is the sum of the number of resources of the corresponding resource icons in the merged resource icon group.

[0065] Among them, for any two resource icons of the same type, determine the distance between them. If the distance between them is less than the preset merge distance, then the two resource icons can be merged. The target resource icon obtained after the merge has the position of the resource icon closer to the center point of the map among the two resource icons before the merge, and the corresponding resource quantity is the sum of the resource quantities of the two resource icons before the merge.

[0066] It should be noted that the preset merging distance can be selected as a fixed value, or it can be determined according to the current target game map scale, size, etc. For example, if the original preset merging distance is 10 mm, when the target game map is reduced by 2 times, the preset merging distance is 5 mm, and when the target game map is reduced by 5 times, the preset merging distance is 2 mm. The specific preset merging distance is determined by the actual usage scenario and is not limited in this embodiment.

[0067] In addition to using the resource icon closest to the center point of the map as the target resource icon, you can also compare the resource quantities corresponding to the two resource icons and use the resource icon with the larger quantity as the target resource icon. The resource type of the target resource icon is consistent with that of the resource icon before merging. After merging to obtain the target resource icon, use the target resource icon as the new resource icon and repeat the merging of resource icons until there are no resource icons that can be merged in the target game map.

[0068] Furthermore, in step S106, in response to the received zoom instruction, the target game map is zoomed, the resource icon closest to the center point of the map is retained, and other resource icons are hidden. In this embodiment, the specific implementation method is as follows:

[0069] In response to the zoom instruction, the target game map is zoomed; the one of the target resource icon and the unmerged resource icons that is closest to the center point of the map is retained, and other resource icons are hidden.

[0070] Among them, Figure 3As shown in the schematic diagram of a method for displaying game map resource icons, if there are five icons A, B, C, D, and E on the map interface, the coordinate information corresponding to each icon is recorded, and then the distance between the five icons and the center point of the map interface is calculated to determine that the distance corresponding to C is the shortest. Then, when the map is zoomed, only icon C is retained, and icons A, B, D, and E are ignored. In addition, if the zoom is canceled, the five icons A, B, C, D, and E are restored to their original coordinate positions.

[0071] Furthermore, in step S106, when scaling the target game map, the position of the target game map may be adjusted so that the reserved resource icon is placed at the center of the target game map.

[0072] Furthermore, in step S106, when the target game map is zoomed, an icon information window may be displayed on the target game map, wherein the icon information window records the associated information of the reserved resource icons.

[0073] The icon retained after scaling is moved and adjusted during the scaling process so that it is located at the center of the reduced interface. The associated information of the retained resource icon can also be displayed in the icon information window. The associated information may include resource type, resource quantity, and resource quantity before merging. The specific associated information is determined by the actual usage scenario and is not limited in this embodiment.

[0074] In addition, the associated information of the retained resource icon can be displayed by triggering the resource icon, such as long pressing the icon to display the corresponding associated information; and the icon information window can display the associated information of the hidden resource icon.

[0075] Corresponding to the above method embodiment, the present application also provides a game map resource icon display device embodiment, Figure 4 FIG. 1 is a schematic diagram showing the structure of a game map resource icon display device provided by an embodiment of the present application. Figure 4 As shown, the device comprises:

[0076] The acquisition module 402 is configured to acquire all resource icons in the target game map;

[0077] A positioning module 404 is configured to locate the coordinate points of all resource icons and determine the distance between the positioning result and the map center point of the target game map;

[0078] The first response module 406 is configured to, in response to the received zoom instruction, zoom the target game map, retain the resource icon closest to the center point of the map, and hide other resource icons;

[0079] The second response module 408 is configured to restore the target game map and all the map resource icons in response to the received zoom cancel instruction.

[0080] In an optional embodiment, the acquisition module 402 is further configured to:

[0081] Collect all the resource icons in the target game map; classify all the resource icons based on a preset icon classification principle to obtain at least one resource icon set.

[0082] In an optional embodiment, the positioning module 404 is further configured to:

[0083] Locate the coordinate points of all the resource icons, and calculate the distance between any two resource icons included in the same resource icon set based on the positioning results; merge the resource icons based on the distance calculation results between any two resource icons in the same resource icon set to obtain the target resource icon; calculate the distance between the unmerged resource icons and the center point of the map, as well as the distance between the target resource icon and the center point of the map.

[0084] In an optional embodiment, the positioning module 404 is further configured to:

[0085] Determine the distance between any two resource icons in the same resource icon set, and the resource icons that are less than the preset merge distance are the merged resource icon group; take the resource icon in the merged resource icon group that is closest to the center point of the map as the target resource icon, wherein the number of resources of the target resource icon is the sum of the number of resources of the corresponding resource icons in the merged resource icon group.

[0086] In an optional embodiment, the first response module 406 is further configured to:

[0087] In response to the zoom instruction, the target game map is zoomed; the one of the target resource icon and the unmerged resource icons that is closest to the center point of the map is retained, and other resource icons are hidden.

[0088] In an optional embodiment, the first response module 406 is further configured to:

[0089] The position of the target game map is adjusted so that the reserved resource icon is placed at the center of the target game map.

[0090] In an optional embodiment, the first response module 406 is further configured to:

[0091] An icon information window is displayed on the target game map, wherein the icon information window records the associated information of the reserved resource icons.

[0092] The game map resource icon display device provided by the present application obtains all resource icons in the target game map; locates the coordinate points of all resource icons, and determines the distance between the positioning result and the map center point of the target game map; in response to the received zoom instruction, zooms the target game map, retains the resource icon closest to the map center point, and hides other resource icons; in response to the received zoom cancellation instruction, restores the target game map and all map resource icons. It is realized that the technology of intelligent map zooming and icon saving or deletion when the map is zoomed can reduce the display of icons, ensure the simplicity and clarity of the interface, and merge adjacent similar icons according to certain rules to save or delete them to reduce the visual clutter and highlight the important information on the map, thereby improving the user experience, which can not only enhance the user's gaming experience, but also reduce the user's operation complexity and time cost. At the same time, the icons after zooming are reduced, and the grayscale value of the image pixel point will not change dramatically, which reduces the rendering pressure of the GPU, ensures that the game can run at a high frame rate, and the fluency will not be affected, which can further improve the practicality and attractiveness of the game map interface zoom application.

[0093] The above is a schematic scheme of a game map resource icon display device of the present embodiment. It should be noted that the technical scheme of the game map resource icon display device and the technical scheme of the game map resource icon display method mentioned above belong to the same concept. For details not described in detail in the technical scheme of the game map resource icon display device, please refer to the description of the technical scheme of the game map resource icon display method mentioned above. In addition, each component in the device embodiment should be understood as a functional module that must be established to implement each step of the program flow or each step of the method, and each functional module is not an actual functional division or separation definition. The device claim defined by such a group of functional modules should be understood as a functional module architecture that mainly implements the solution through the computer program recorded in the specification, and should not be understood as a physical device that mainly implements the solution through hardware.

[0094] Figure 5 The block diagram of a computing device 500 provided according to an embodiment of the present application is shown. The components of the computing device 500 include but are not limited to a memory 510 and a processor 520. The processor 520 is connected to the memory 510 via a bus 530, and the database 550 is used to store data.

[0095] The computing device 500 also includes an access device 540 that enables the computing device 500 to communicate via one or more networks 560. Examples of these networks include a public switched telephone network (PSTN), a local area network (LAN), a wide area network (WAN), a personal area network (PAN), or a combination of communication networks such as the Internet. The access device 540 may include one or more of any type of network interface (e.g., a network interface card (NIC)) whether wired or wireless, such as an IEEE 802.11 wireless local area network (WLAN) wireless interface, a World Wide Interoperability for Microwave Access (Wi-MAX) interface, an Ethernet interface, a universal serial bus (USB) interface, a cellular network interface, a Bluetooth interface, a near field communication (NFC) interface, and the like.

[0096] In one embodiment of the present application, the above components of the computing device 500 and Figure 5 Other components not shown in the figure may also be connected to each other, for example, via a bus. It should be understood that Figure 5 The computing device structure block diagram shown is only for the purpose of illustration, and is not intended to limit the scope of the present application. Those skilled in the art may add or replace other components as needed.

[0097] The computing device 500 may be any type of stationary or mobile computing device, including a mobile computer or mobile computing device (e.g., a tablet computer, a personal digital assistant, a laptop computer, a notebook computer, a netbook, etc.), a mobile phone (e.g., a smart phone), a wearable computing device (e.g., a smart watch, smart glasses, etc.), or other types of mobile devices, or a stationary computing device such as a desktop computer or PC. The computing device 500 may also be a mobile or stationary server.

[0098] The processor 520 is used to execute computer executable instructions for each step of the game map resource icon display method.

[0099] The above is a schematic scheme of a computing device of this embodiment. It should be noted that the technical scheme of the computing device and the technical scheme of the above-mentioned game map resource icon display method belong to the same concept, and the details not described in detail in the technical scheme of the computing device can be referred to the description of the technical scheme of the above-mentioned game map resource icon display method.

[0100] An embodiment of the present application also provides a computer-readable storage medium storing computer instructions, which, when executed by a processor, are used to complete the steps of the game map resource icon display method.

[0101] The above is a schematic scheme of a computer-readable storage medium of this embodiment. It should be noted that the technical scheme of the storage medium and the technical scheme of the above-mentioned game map resource icon display method belong to the same concept, and the details not described in detail in the technical scheme of the storage medium can be referred to the description of the technical scheme of the above-mentioned game map resource icon display method.

[0102] An embodiment of the present application further provides a chip storing a computer program, which implements the steps of the game map resource icon display method when executed by the chip.

[0103] The above describes specific embodiments of the present application. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0104] The computer instructions include computer program codes, which may be in source code form, object code form, executable files or some intermediate forms, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium, etc. It should be noted that the content contained in the computer-readable medium may be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.

[0105] It should be noted that, for the above-mentioned method embodiments, for the sake of simplicity of description, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described action sequence, because according to the present application, certain steps can be performed in other sequences 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 and modules involved are not necessarily required by the present application.

[0106] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0107] The preferred embodiments of the present application disclosed above are only used to help explain the present application. The optional embodiments do not describe all the details in detail, nor do they limit the invention to the specific implementation methods described. Obviously, many modifications and changes can be made according to the content of the present application. The present application selects and specifically describes these embodiments in order to better explain the principles and practical applications of the present application, so that those skilled in the art can understand and use the present application well. The present application is only limited by the claims and their full scope and equivalents.

Claims

1. A method for displaying game map resource icons, characterized in that: include: Get all resource icons in the target game map; Locating the coordinate points of all resource icons, and determining the distance between the positioning results and the map center point of the target game map; In response to the received zoom instruction, zoom the target game map, retain the resource icon closest to the center point of the map, and hide other resource icons; In response to the received zoom cancel instruction, the target game map and all the map resource icons are restored.

2. The method according to claim 1, characterized in that The step of obtaining all resource icons in the target game map includes: Collect all resource icons in the target game map; Based on a preset icon classification principle, all resource icons are classified to obtain at least one resource icon set.

3. The method according to claim 2, characterized in that The locating the coordinate points of all resource icons and determining the distance between the locating result and the center point of the target game map includes: Locating the coordinate points of all the resource icons, and calculating the distance between any two resource icons included in the same resource icon set according to the positioning result; Based on the distance calculation result between any two resource icons in the same resource icon set, merging the resource icons to obtain a target resource icon; The distance between the unmerged resource icon and the center point of the map and the distance between the target resource icon and the center point of the map are calculated.

4. The method according to claim 3, characterized in that The step of merging resource icons based on the distance calculation result between any two resource icons in the same resource icon set to obtain a target resource icon includes: Determine the distance between any two resource icons in the same resource icon set, and the resource icons whose distance is smaller than a preset merging distance are merged into a resource icon group; The resource icon in the merged resource icon group that is closest to the map center point is used as the target resource icon, wherein the number of resources of the target resource icon is the sum of the number of resources of the corresponding resource icons in the merged resource icon group.

5. The method according to claim 3, characterized in that: In response to the received zoom instruction, zooming the target game map, retaining the resource icon closest to the center point of the map, and hiding other resource icons, includes: In response to the zoom instruction, zooming the target game map; The one of the target resource icon and the unmerged resource icons that is closest to the center point of the map is retained, and the other resource icons are hidden.

6. The method according to claim 1, characterized in that In response to the received zoom instruction, during the process of zooming the target game map, the position of the target game map is adjusted so that the reserved resource icon is placed at the center of the target game map.

7. The method according to claim 1, characterized in that In the process of scaling the target game map in response to the received scaling instruction, an icon information window is displayed on the target game map, wherein the icon information window records the associated information of the retained resource icons.

8. A game map resource icon display device, characterized in that: include: An acquisition module, configured to acquire all resource icons in a target game map; A positioning module, configured to locate the coordinate points of all resource icons and determine the distance between the positioning result and the map center point of the target game map; A first response module is configured to scale the target game map in response to a received scaling instruction, retain the resource icon closest to the center point of the map, and hide other resource icons; The second response module is configured to restore the target game map and all the map resource icons in response to the received zoom cancel instruction.

9. A computing device, characterized in that include: Memory and processor; The memory is used to store computer-executable instructions, and the processor is used to execute the computer-executable instructions to implement the steps of the game map resource icon display method described in any one of claims 1 to 7.

10. A computer-readable storage medium storing computer instructions, characterized in that: When the instruction is executed by the processor, the steps of the game map resource icon display method described in any one of claims 1 to 7 are implemented.