Game map control method and device, electronic equipment and storage medium
By displaying a thumbnail of the game map in the map display area, responding to sliding operations to obtain touch point information and control zooming, the problem of cumbersome map location marking operations in the existing technology is solved, and the gaming experience is improved.
Patent Information
- Application Number
- CN202511114446.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-08-08
- Publication Date
- 2025-09-26
AI Technical Summary
When marking a map location in a game map, the existing technology requires multiple dragging and zooming operations, which causes a strong sense of interruption and reduces the player's gaming experience.
By displaying a thumbnail of the game map in the map display area, responding to the sliding operation to obtain the touch point information, and controlling the map zoom with the touch point as the zoom center, responding to the position marking operation to mark the map location in the game map.
The map location marking process has been simplified, which improves the player's operation convenience and comfort and enhances the gaming experience.
Smart Images

Figure CN120695439A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of game technology, and in particular to a game map control method, device, electronic device and storage medium. Background Art
[0002] During gameplay, it's often necessary to mark certain map locations on the game map for location sharing, location recording, and more. In existing technologies, when players want to mark a specific map location, they need to drag and click the game map multiple times before finally marking that location. This creates a strong sense of interruption and reduces the player's gaming experience. Summary of the Invention
[0003] In view of the above-mentioned deficiencies in the prior art, the present invention provides a game map control method, device, electronic device and storage medium to achieve faster map navigation.
[0004] In a first aspect, the present invention provides a game map control method, wherein a game map is displayed in a map display area, wherein the game map is a thumbnail of at least a portion of a game scene;
[0005] In response to a sliding operation on the game map, acquiring touch point information of a touch point of the sliding operation;
[0006] Taking the current touch point of the sliding operation as the zoom center, controlling the game map to zoom in and out within the map display area according to the touch point information of the current touch point;
[0007] In response to a position marking operation, a map position is marked in the game map based on the last acquired position of the touch point.
[0008] In a second aspect, the present invention provides a game map control device, comprising:
[0009] A display module, configured to display a game map in a map display area, wherein the game map is a thumbnail of at least a portion of a game scene;
[0010] A first response module, configured to obtain, in response to a sliding operation on the game map, touch point information of a touch point of the sliding operation;
[0011] A zoom module, configured to use the current touch point of the sliding operation as a zoom center and control the game map to zoom in and out within the map display area according to the touch point information of the current touch point;
[0012] The second response module is used to respond to the position marking operation and mark the map position in the game map based on the last acquired position of the touch point.
[0013] In a third aspect, the present invention provides an electronic device, comprising:
[0014] at least one processor; and
[0015] a memory communicatively connected to the at least one processor; wherein,
[0016] The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the game map control method described in the first aspect of the present invention.
[0017] In a fourth aspect, the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the game map control method described in the first aspect of the present invention when executed.
[0018] The game map control method, device, electronic device, and storage medium provided by the embodiments of the present invention include: displaying a game map in a map display area; the game map is a thumbnail of at least a portion of a game scene; in response to a sliding operation on the game map, acquiring touch point information of the touch point of the sliding operation; using the current touch point of the sliding operation as the zoom center, controlling the zooming of the game map within the map display area according to the touch point information of the current touch point; and in response to a position marking operation, marking the map position in the game map based on the position of the last acquired touch point. Controlling the zooming of the game map within the map display area by touch point information satisfies the player's need to view game maps with different display ranges, so that the player can select the desired map position; selecting and controlling the zooming of the game map and determining the map position by continuous sliding operations solves the problem of interruption to the player when marking the map position in the game map in the prior art, thereby improving the player's gaming experience.
[0019] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present invention, nor is it intended to limit the scope of the present invention. Other features of the present invention will become readily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0021] Figure 1This is a flow chart of a game map control method provided by an embodiment of the present invention;
[0022] Figure 2 is a schematic diagram of a game interface provided by an embodiment of the present invention when the game map is not displayed;
[0023] Figure 3 This is a schematic diagram of displaying a game map in a game interface provided by an embodiment of the present invention;
[0024] Figure 4 is a schematic diagram of a game interface provided by an embodiment of the present invention when the game map is not displayed;
[0025] Figure 5 This is a schematic diagram of a game map with different zoom ratios controlled at the same touch point, provided by an embodiment of the present invention;
[0026] Figure 6 This is a structural diagram of a game map control device provided by an embodiment of the present invention;
[0027] Figure 7 It is a structural diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0028] In order to enable those skilled in the art to better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the embodiments described are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts should fall within the scope of protection of the present invention.
[0029] Currently, when players need to mark a map location on a game map, they usually change the map display range by dragging, and control the zoom ratio of the game map by at least zooming in and out with two fingers. For example, moving two fingers away from each other can zoom in on the game map, and moving two fingers closer together can zoom out on the game map. Usually, a combination of multiple dragging and zooming operations is required to locate the map location the player wants. There are many operation steps and there are intervals between the operation steps. For players, there is a strong sense of interruption, which reduces the player's gaming experience.
[0030] Based on this, the present invention provides a game map control method, device and electronic device, which can effectively alleviate the above technical problems.
[0031] In order to understand the embodiments of the present invention, the game map control method involved in the present invention is introduced in detail below.
[0032] The present invention provides a game map control method in an embodiment. The method can be executed by a game map control device. The game map control device can be implemented in the form of hardware and / or software. The game map control device can be configured in an electronic device. For example, the game program is downloaded and installed through a local terminal device, and the local terminal device displays the game interface through a user graphical interface and interacts with the player, which is the conventional downloading and running of the game program through an electronic device.
[0033] The game map control method can be run on a local terminal device or a server. When the game map control method is run on a server, the method can be implemented and executed based on a cloud interaction system, wherein the cloud interaction system includes a server and a terminal device.
[0034] Figure 1 A flowchart of a game map control method provided by an embodiment of the present invention is shown in FIG. Figure 1 As shown, the game map control method includes:
[0035] S101: Display a game map in a map display area. The game map is a thumbnail of at least a portion of a game scene.
[0036] In some games, players control virtual objects to move and explore the game scene. When players want to mark a specific map location, they need to trigger the display of the game map in the display area through the corresponding map display operation and mark the map location on the game map. The map location can be the location of a treasure chest, a dangerous location, a safe location, or a desired location.
[0037] The game map is usually in a closed state. When the player needs to view the game map or operate the game map, the corresponding touch operation will be triggered to display the game map in the map display area.
[0038] In an optional embodiment, the game map control method further includes: providing a map marker control; displaying the game map in a map display area, including: responding to a first touch operation on the map marker control, providing a map display area, and displaying the game map in the map display area.
[0039] Please refer to Figure 2 , Figure 2 This is a schematic diagram of a game interface provided by the present invention when the game map is not displayed. Figure 2As shown, the game interface 20 includes a game scene 21, a virtual object 22, and a map marker control 23. The game scene 21 is the environment surrounding the virtual object 22. When the player first touches the map marker control 23, the terminal device displays the game map on the game interface 20 in response to the triggering operation. Figure 3 A schematic diagram of displaying a game map in a game interface provided by the present invention, such as Figure 3 As shown, the game interface 20 includes a map display area 24. The map display area 24 can be located near the map mark control 23 or at other locations on the game interface 20. The present invention is not limited to this.
[0040] In this embodiment, the player's first triggering operation on the map marker control can be a click operation or a slide operation, specifically a single click, double click, long press, slide, and drag, etc. In the present invention, the player can perform input operations on the terminal device using a finger, and can also perform input operations on the terminal device using an external device such as a capacitive stylus.
[0041] It should also be noted that, in the first-person perspective, the virtual object is not displayed in the game interface or part of the virtual object (such as the hand) is displayed in the game interface; in the third-person perspective, the virtual object is displayed in the game interface. In other words, whether the virtual object controlled by the game user is displayed in the game interface needs to be set according to actual conditions, and the embodiments of the present application do not limit this.
[0042] In an optional embodiment, the game interface also includes a small map display area, which provides a map display area in response to a first touch operation on a map marker control, and displays the game map in the map display area, including: in response to a first touch operation on a map marker control, expanding the small map display area into a map display area, and displaying the game map in the map display area.
[0043] The mini-map is a thumbnail of the game map, and the mini-map usually includes the location of virtual objects.
[0044] Please refer to Figure 4 , Figure 4 This is a schematic diagram of a game interface when the game map is not displayed, such as Figure 4 As shown, the game interface 20 includes a map mark control 23 and a small map display area 25. Figure 3 As shown in the game interface when the game map is displayed, the terminal device responds to the first touch operation on the map mark control 23, expands the small map display area 25 in the game interface 20 into the map display area 24 and displays the game map in the map display area 24. Figure 3As shown, after expanding the map display area 24, the map display area 24 covers the mini-map display area 25, that is, the game map covers the mini-map. Since the content of the game map usually includes the content of the mini-map, using the display method of the game map covering the mini-map can improve the simplicity of the game interface. In another optional embodiment, the game map and the mini-map can also be displayed side by side, which is not limited by the present invention. In addition, the shape of the mini-map display area and the map display area can be the same or different. For example, the shape of the mini-map display area is circular, and the shape of the map display area is square.
[0045] In an optional embodiment, the sliding operation and the first touch operation have continuous operation trajectories. For example, when a player operates a graphical user interface with a finger, after performing a first touch operation on a map marker control, the map display area displays the game map, and the player does not remove the finger from the graphical user interface and slides to the map display area to continue the sliding operation.
[0046] In another optional embodiment, the operation traces of the sliding operation and the first touch operation are discontinuous. For example, when a player operates a graphical user interface with a finger, after performing a first touch operation on a map marker control, the map display area displays the game map. The player's finger leaves the graphical user interface and moves to the map display area to perform a sliding operation. In this process, it can also be configured to close the game map if no sliding operation is detected within a preset waiting time.
[0047] In an optional embodiment, the game interface also includes a mini-map display area, in which the game map is displayed, and further includes: in response to a second touch operation on the mini-map display area, the mini-map display area is expanded into a map display area, and the game map is displayed in the map display area.
[0048] Compared with the aforementioned embodiment of triggering the display of the game map by controlling the map mark control, this embodiment triggers the display of the game map by using the small map display area. The second touch operation may be the same as or different from the first touch operation, and the sliding operation may be continuous or discontinuous with the operation trajectory of the second touch operation. The specific settings may be based on actual needs, and the present invention is not limited to this.
[0049] S102: In response to a sliding operation on the game map, acquire touch point information of a touch point of the sliding operation.
[0050] The terminal device obtains touch point information of the touch point of the sliding operation in response to the player's sliding operation on the game map through the user graphical interface.
[0051] The player's sliding operations on the game map include press and slide sub-operations. Pressing sub-operations zoom in and out of the map around the touch point, while sliding sub-operations move from one touch point to another, changing the zoomed-in area of the map. When players perform press and slide sub-operations, the trajectory of these operations is continuous.
[0052] In this embodiment, when the player performs a pressing sub-operation on the user graphical interface of the terminal device, the terminal device can detect the capacitance change data or resistance change data corresponding to the pressing operation through the sensor, and then convert this data into zoom control information of the game map, so as to realize the zooming of the map around the current touch point through the pressing sub-operation.
[0053] The relationship between the above-mentioned sliding operation and the touch point position and touch point information is, for example, when the player performs a pressing sub-operation in the game map, the terminal device can obtain the touch point information of the touch point at the pressing position at different times, but the position of the touch point in the game map remains unchanged; then the sliding sub-operation is performed in the game map to change the touch point position, and the position of the touch point in the game map changes, then the terminal device can obtain touch points at multiple different positions and the touch point information of the touch point at each position at different times.
[0054] In this embodiment, there can be multiple touch points, and the terminal device can collect touch point information of the touch points in real time and associate the touch point information with the touch point positions. For example, touch point 1 corresponds to touch point information 11, touch point information 12, touch point information 13, etc.; touch point 2 corresponds to touch point information 21, touch point information 22, touch point information 23, etc. Specifically, the terminal device collects touch point information at a preset period.
[0055] S103: Taking the current touch point of the sliding operation as the zoom center, the game map is controlled to zoom in and out within the map display area according to the touch point information of the current touch point.
[0056] On the one hand, since the map display area is fixed, the game map displayed for the first time is usually a map within a certain range from the location of the virtual object. When the map location to be marked by the virtual object is too far relative to the location of the virtual object, the game map displayed for the first time may not include the area where the map location is located. Therefore, the game map can be zoomed out to display more areas so that the player can select the area where the target map location is located. On the other hand, the larger the zoom ratio of the game map, the fewer map details are presented. When the map details presented by the game map do not meet the needs, the game map can be zoomed in to present more map details. For example, the map location that the player wants to mark is Town A, but the current game map only shows the various urban areas of the city. In this case, the player can move the touch point to the urban area where Town A is located and zoom in on the game map at the touch point to display the various towns contained in the urban area, and then select Town A from the game map.
[0057] Figure 5 A schematic diagram of a game map with different zoom ratios at the same touch point. Figure 5 In the figure, Figure (a) shows that the zoom ratio of the map display area 24 is the first zoom ratio, and Figure (b) shows that the zoom ratio of the map display area 24 is the second zoom ratio, and the second zoom ratio is greater than the first zoom ratio. Since the map display area is fixed, the area of the game map displayed in Figure (a) is larger than that in Figure (b), which can facilitate players to preliminarily select the area where the target map location is located in the larger game map. For example, the target map location can be the location to which the virtual object is going. Compared with the game map in Figure (a), part of the game map in Figure (b) is enlarged and has more map symbols. For example, the map symbols can be roads, mountains, forests, rivers, etc., that is, the enlarged game map can provide players with a smaller area but more detailed map information, which is beneficial for players to accurately select the target map location and understand the information of the surrounding maps of the target map location.
[0058] For each touch point, the game map is zoomed in and out within the map display area based on the touch point information of the current touch point. The zoom ratio of the current game map is determined based on the degree of change in the current touch point information relative to the reference touch point information, and then the game map is zoomed in and out based on the zoom ratio. The reference touch point information can be preset touch point information or previous touch point information.
[0059] In an optional embodiment, the previous touch point information is the touch point information of the same touch point at the previous moment, then the current touch point of the sliding operation is used as the zoom center, and the game map is controlled to zoom in and out within the map display area according to the touch point information of the current touch point, including: using the current touch point of the sliding operation as the zoom center, controlling the zoom ratio of the current game map according to the degree of change of the touch point information of the current touch point at the previous moment relative to the touch point information at the current moment, and controlling the game map to zoom in and out within the map display area according to the zoom ratio.
[0060] In another optional embodiment, the previous touch point information is the touch point information of the touch point detected for the first time after the game map is displayed during this map position marking process, and the current touch point of the sliding operation is used as the zoom center, and the game map is controlled to zoom in and out within the map display area according to the touch point information of the current touch point, including: using the current touch point of the sliding operation as the zoom center, and controlling the zoom ratio of the current game map according to the degree of change of the touch point information of the current touch point at the current moment relative to the touch point information detected for the first time after the game map is opened, and controlling the zoom of the game map within the map display area according to the zoom ratio.
[0061] For example, the previous touch point information is set as the baseline touch point information. For the current touch point 1, when the terminal device detects that the touch point information of touch point 1 at the current moment and the baseline touch point information remain unchanged, the zoom ratio of the current game map remains unchanged; then the touch point is moved from touch point 1 to the new touch point 2 through the sliding sub-operation, and pressed at touch point 2. The touch point information of touch point 2 will change when pressed. When the touch point information of touch point 2 at the current moment changes relative to the baseline touch point information, the zoom ratio of the current game map can be controlled according to the degree of change between the touch point information of touch point 2 at the current moment and the baseline touch point information.
[0062] Specifically, when the terminal device detects that the degree of change of the touch point information and the benchmark touch point information at the current moment is less than or equal to the preset degree threshold, it can be determined that the current moment and the benchmark touch point information remain unchanged. When the terminal device detects that the degree of change of the touch point information at the current moment and the benchmark touch point information is greater than the preset degree threshold, it can be determined that the current moment and the benchmark touch point information have changed.
[0063] It should also be noted that in the prior art, for horizontal screen games, players are usually required to support the terminal device with the palms of both hands and operate the user graphical interface with two thumbs. The game map is usually zoomed in and out by moving two fingers closer or farther. When zooming the game map, the thumbs of both hands are required to perform zooming operations in the user graphical interface, or one hand supports the terminal device and two fingers of the other hand perform zooming operations in the user graphical interface. It can be seen that the game map zooming method in the prior art brings inconvenience to the player's operation. In the embodiment of the present invention, when the player controls the zooming of the game map with his fingers, the zooming operation (i.e., the sliding operation) can be completed with a single finger, which greatly improves the player's operating convenience and comfort. Especially for survival games, virtual objects may be in danger at any time in the game scene, for example, aggressive wild beasts. In the survival game to which the game map control method of the embodiment of the present invention is applied, when the player adjusts the zoom ratio of the game map with one finger used for operation (such as the right thumb), if the virtual object is found to be in danger, the player can control the virtual object to avoid danger with another finger used for operation (such as the left thumb). For example, the wild beast will only attack virtual objects within a certain range of it, then the player can control the virtual object to run forward to leave the attack range of the wild beast. The player can perform risk avoidance operations while adjusting the zoom ratio of the game map, thereby providing the player with a larger operating space on the basis of improving the player's operating comfort.
[0064] S104 : In response to the position marking operation, mark the map position in the game map based on the last acquired position of the touch point.
[0065] The position marking operation may be a slide-end operation, where the touch point on the game map disappears, indicating that the player has ended the slide operation on the game map. Furthermore, the game interface may also provide a mark confirmation control, and the position marking operation may be a triggering operation for the mark confirmation control, which is not limited in the present invention.
[0066] In the game map control method provided in an embodiment of the present invention, a game map is displayed in a map display area, and the game map is a thumbnail of at least a portion of the game scene; in response to a sliding operation on the game map, touch point information of the touch point of the sliding operation is obtained; with the current touch point of the sliding operation as the zoom center, the game map is controlled to zoom in and out within the map display area according to the touch point information of the current touch point; in response to a position marking operation, the map position is marked in the game map based on the position of the last acquired touch point. By controlling the zooming of the game map within the map display area through touch point information, the player's needs for viewing game maps with different display ranges are met, so that the player can select the desired map position; by selecting and controlling the zooming of the game map and determining the map position through continuous sliding operations, the problem of the prior art of causing a sense of interruption to the player when marking the map position in the game map is solved, thereby improving the player's gaming experience.
[0067] In an optional embodiment, in response to a sliding operation on a game map, touch point information of the touch point of the sliding operation is obtained, including: in response to a sliding operation on the game map, obtaining the duration of the current touch point of the sliding operation; when the duration is greater than a preset duration threshold, obtaining touch point information of the current touch point. The sliding operation includes a pressing sub-operation and a sliding sub-operation. The sliding sub-operation is used to replace the touch point in the game map, but is not used to control the zoom of the game map. In addition, the touch point information of the touch point during the sliding sub-operation has a small change amplitude and a high change frequency. If the game map is zoomed in and out based on the touch point information of the touch point during the sliding sub-operation, the game map may be continuously enlarged and reduced by small amplitudes, causing the player to feel uncomfortable with the game map shaking. Therefore, during the implementation of the sliding sub-operation, the touch point information is not collected and the zoom ratio of the game map is not adjusted. Considering that the implementation time of the sliding sub-operation is short, this embodiment presets a sliding time threshold to identify the sliding sub-operation, which can greatly reduce the touch point information of the touch point during the sliding sub-operation. It should be noted that the setting of the sliding time threshold should avoid affecting the terminal device's real-time collection and processing of the touch point information generated during the pressing sub-operation, so the sliding time threshold is usually set to a small value.
[0068] It should be noted that in embodiments of the present invention, during the sliding sub-operation, the zoom ratio of the game map remains unchanged. For example, when touch point 1 slides to touch point 2, the zoom ratio of the game map remains unchanged, and the final zoom ratio of the game map corresponding to touch point 1 is the initial zoom ratio of touch point 2. In one example, if the touch point information is touch pressure, assuming that the player performs a press sub-operation on the game map at touch point 1 to adjust the zoom ratio of the game map, the last detected touch pressure at touch point 1 is A1. Subsequently, if the player slides from touch point 1 to touch point 2, even if the touch pressure during the sliding process and when the player first reaches touch point 2 is less than A1, the game map will not be reduced. Conversely, even if the touch pressure during the sliding process and when the player first reaches touch point 2 is greater than A1, the game map will not be enlarged. If the player performs the sliding operation with a finger, the player can independently reduce or increase the touch pressure required to maintain the finger as the finger slides to the new touch point, thereby improving the player's operating comfort and increasing the adjustment space for the finger's touch pressure. When the touch point information is the touch area, the method of controlling the zoom ratio of the game map during the sliding sub-operation is similar to this example and will not be repeated here.
[0069] In an optional embodiment, the game map displayed for the first time is centered on the location of the virtual object. By setting the game map displayed for the first time to be centered on the location of the virtual object, the map of the area surrounding the virtual object can be evenly distributed in the map display area, making it easier to select any area near the virtual object.
[0070] In an optional embodiment, the zoom ratio of the game map when it is first displayed is the zoom ratio when the game map was last closed, so the player can perform the current location marking operation based on the zoom ratio of the last game map. In one example, the game map displayed for the first time is centered on the location of the virtual object, and the map locations that the player wants to mark are all in the area surrounding the virtual object. Each time the game map is opened, the zoom ratio of the game map is the zoom ratio when it was last closed, which can facilitate the player to perform multiple location marking operations. For example, when the virtual object finds multiple treasure chests in the current game scene and wants to mark the locations of the treasure chests, the zoom ratio of the game map can be adjusted when performing the location marking operation on the location of the first treasure chest. When the treasure chest is found during the subsequent exploration process, the location marking operation can be performed by opening the game map, thereby improving the efficiency of controlling the map display.
[0071] In an optional embodiment, the zoom ratio of the game map displayed for the first time is a preset minimum ratio, and the minimum-scale game map corresponds to the largest display range, so that the player can preliminarily determine the area where the map location to be marked is located, and then preliminarily zoom in on the area, and then zoom in or out.
[0072] In an optional embodiment, the touch point information is touch pressure; the current touch point of the sliding operation is used as the zoom center, and the game map is controlled to zoom in and out within the map display area according to the touch point information of the current touch point, including: obtaining the initial touch pressure and the current touch pressure of the current touch point, the initial touch pressure being the touch pressure of the current touch point obtained for the first time; obtaining the first initial zoom ratio of the game map corresponding to the initial touch pressure; determining the first zoom coefficient according to the current touch pressure and the initial touch pressure; the first zoom coefficient is positively correlated with the current touch pressure; determining the current zoom ratio of the game map according to the first zoom coefficient and the first initial zoom ratio; using the current touch point as the zoom center, controlling the game map to zoom in and out according to the current zoom ratio within the map display area.
[0073] In this embodiment, the zoom ratio of the game map is adjusted based on the change in touch pressure at the touch point. For each touch point, a first zoom factor is determined based on the current touch pressure and the initial touch pressure, taking the initial touch pressure of the touch point as a reference. The initial touch pressure is the first touch pressure detected at the touch point. Specifically, the first zoom factor is determined based on the difference between the current touch pressure and the initial touch pressure. The first zoom factor is positively correlated with the current touch pressure. The greater the current touch pressure, the greater the first zoom factor. Conversely, the smaller the current touch pressure, the smaller the first zoom factor. If the touch pressure is less than the initial touch pressure, the first zoom factor is less than 1 (and greater than 0); if the current touch pressure is greater than the initial touch pressure, the first zoom factor is greater than 1. The first initial zoom ratio of the game map corresponds to the initial touch pressure. When the game map is zoomed and adjusted at the current touch point, the zoom ratio of the game map when the current touch point is generated is used as a benchmark. The current zoom ratio of the game map is determined according to the first zoom coefficient and the first initial zoom ratio. Specifically, the current zoom ratio of the game map is determined according to the product of the first zoom coefficient and the first initial zoom ratio. When the first zoom coefficient is less than 1, the current game map is reduced relative to the game map displayed for the first time. When the first zoom coefficient is greater than 1, the current game map is enlarged relative to the game map displayed for the first time.
[0074] In an optional embodiment, the touch point information is the touch area, and the current touch point of the sliding operation is used as the zoom center. The game map is controlled to zoom in and out within the map display area according to the touch point information of the current touch point, including: obtaining the initial touch area and the current touch area of the current touch point, the initial touch area being the touch area of the current touch point obtained for the first time; obtaining the second initial zoom ratio of the game map corresponding to the initial touch area; determining the second zoom coefficient according to the current touch area and the initial touch area of the current touch point; the second zoom coefficient is positively correlated with the current touch area; determining the current zoom ratio according to the second zoom coefficient and the second initial zoom ratio; and controlling the game map to zoom in and out according to the current zoom ratio within the map display area with the current touch point as the zoom center.
[0075] In this embodiment, the zoom ratio of the game map is adjusted based on the change in the touch area of the touch point. For each touch point, the initial touch area of the touch point is used as a reference. The initial touch area is the first touch area detected at the touch point. A second zoom factor is determined based on the current touch area and the initial touch area. Specifically, the second zoom factor is determined based on the difference between the current touch area and the initial touch area. The second zoom factor is positively correlated with the current touch area. The larger the current touch area, the larger the second zoom factor. Conversely, the smaller the current touch area, the smaller the second zoom factor. If the touch pressure is less than the initial touch pressure, the zoom factor is less than 1 (and greater than 0); if the current touch area is greater than the initial touch area, the zoom factor is greater than 1. The second initial zoom ratio of the game map corresponds to the initial touch area. When the game map is zoomed in and out at the current touch point, the zoom ratio of the game map when the current touch point is generated is used as a benchmark. The current zoom ratio of the game map is determined according to the second zoom coefficient and the second initial zoom ratio. Specifically, the current zoom ratio of the game map is determined according to the product of the second zoom coefficient and the second initial zoom ratio. When the second zoom coefficient is less than 1, the current game map is reduced relative to the game map displayed for the first time. When the second zoom coefficient is greater than 1, the current game map is enlarged relative to the game map displayed for the first time.
[0076] In an optional embodiment, the method further includes: generating a game path with the map location as the end point based on the marked map location.
[0077] In some games, virtual objects need to complete game tasks or explore. When the map location that the virtual object wants to reach is far away from the current location, due to the large game map, it is difficult for the player to know the route to the map location. Therefore, it is usually difficult for the player to control the virtual object to reach the map location through autonomous operation. There may be multiple routes to the map location, and it is difficult for the player to know which route is the best. Therefore, it is necessary to select the map location through the game map, and the game server calculates the optimal route to the map location. For example, in some games, the game interface includes a task bar, and the tasks in the task bar include the task execution location of the virtual object. When the task execution location is far away from the current location of the virtual object or the player does not know the route to the task execution location, the game map can be called out in the game interface and the corresponding task execution location can be marked as a map location on the game map to automatically generate a game path.
[0078] The server can plan a feasible route from the virtual object to the map location. There are usually multiple feasible routes, and each feasible route usually includes multiple sections. The section information of different sections is different. The section information includes the length of the section, the movement skills allowed, the cost consumption, etc. The movement skills include walking, riding, riding, flying, teleporting, etc. The cost consumption may include physical energy consumption and money consumption, etc. Therefore, the server can obtain the movement skills of the virtual object and the section information of each section in the feasible route, and combine the movement skills of the virtual object and the section information of each section in the feasible route to perform route planning to determine the optimal route, and use the optimal route as the game path.
[0079] In an optional embodiment, the process further includes: searching for the regional attributes of the area where the current touch point is located, where the regional attributes include passable areas and impassable areas; and displaying an identifier corresponding to the regional attributes at the touch point on the game map. Impassable areas may be rivers, mountains, or other pre-set areas with non-navigable attributes. By generating an identifier corresponding to the regional attributes to prompt the player, the player can select the touch point based on the identifier or change the touch point to a map location, thereby increasing the player's success rate in selecting a passable area and enhancing the player experience.
[0080] In an optional embodiment, after finding the area attributes of the area where the current touch point is located, the process further includes: obtaining the current position of the virtual object when the area attribute is a passable area; and generating a game path starting from the current position of the virtual object and ending at the current touch point. When the area where the current touch point is located is confirmed to be a passable area, route planning can be performed, and the game path corresponding to the last touch point can be immediately obtained when a position mark operation is received.
[0081] In an optional embodiment, the game map control method further includes: in response to a navigation operation on the game map, when the area attribute corresponding to the map location is a passable area, navigation is started according to the game path corresponding to the map location. The touch point finally obtained is the navigation destination selected by the player. When it is determined that the navigation operation is received, navigation can be started according to the game path corresponding to the map location. Since the game path has been planned in advance, the player's waiting time is reduced. In addition, when navigation is turned on, prompt information and navigation route information of successful navigation can also be displayed on the game interface. The navigation route information includes the time required for navigation. In an optional example, the navigation operation is the same as the position mark operation. When the position mark operation / navigation operation is received, navigation can be immediately started according to the game path corresponding to the last touch point, further reducing the player's waiting time. In another optional example, the game interface provides a navigation control, and the player can trigger automatic navigation through the navigation control.
[0082] In an optional embodiment, the game map control method further includes: in response to a navigation operation, when the area attribute corresponding to the map location is an inaccessible area, displaying a prompt message on the game interface to reselect the map location. In this case, the player is required to re-mark the map location on the game map. In order to reduce the number of steps required to open the game map, the current game map remains displayed and the zoom ratio remains unchanged. The player can re-mark the map location by touching the map mark button or the mini-map display area. Of course, if the player does not want to continue marking the map location, he or she can click on other game interfaces outside the game map to close the game map.
[0083] In an optional embodiment, the game map control method further includes: in response to a navigation operation, when the area attribute corresponding to the map location is an inaccessible area, obtaining a location with an area attribute of a accessible area and closest to the map location as the navigation end point, generating a game path from the location of the virtual object to the navigation end point, and automatically navigating the virtual object based on the game path.
[0084] In an optional embodiment, after enabling navigation based on the game path corresponding to the map location, the game map is also closed. The game map typically occupies a large area of the game interface. After enabling navigation, the game map can be closed to present a more complete game scene, allowing players to understand the environment of the virtual object as it automatically travels. This, on the one hand, enhances the player's sense of involvement with the virtual object and their immersion in the game content. On the other hand, the virtual object may also encounter danger while traveling, and a more complete game scene makes it easier for players to detect danger in a timely manner and take evasive actions. In addition, when closing the game map, a scene thumbnail can be displayed to provide players with map information within a certain range around the virtual object.
[0085] In an optional embodiment, the game map and the mini-map also include a direction indicator, which is used to indicate the direction and position of the virtual object. During the navigation process, the direction indicator always points to the navigation end point.
[0086] Corresponding to the above-mentioned game map control method, the present invention also provides a game map control device, which displays a game interface through a user graphical interface, wherein the game interface includes a game scene and a map mark control. Figure 6 This is a schematic diagram of the structure of a game map control device provided by an embodiment of the present invention. Figure 6 As shown, the game map control device includes:
[0087] The display module 100 is used to display a game map in the map display area, wherein the game map is a thumbnail of at least a portion of the game scene;
[0088] A first response module 200 is configured to obtain touch point information of a touch point of a sliding operation in response to a sliding operation on the game map;
[0089] A zoom module 300 is configured to control the zooming of the game map within the map display area based on the touch point currently touched by the sliding operation as the zoom center and the touch point information of the current touch point;
[0090] The second response module 400 is configured to respond to a position marking operation and mark a map position in the game map based on the last acquired position of the touch point.
[0091] Optionally, the game map control device further includes:
[0092] The map marker control provides a module for providing a map marker control;
[0093] The display module 100 includes:
[0094] The first display submodule is configured to respond to a first touch operation on the map mark control, provide a map display area, and display the game map in the map display area.
[0095] Optionally, the game interface further includes a small map display area, and the first display submodule includes:
[0096] A response unit is used to expand the small map display area into the map display area in response to a first touch operation on the map mark control, and display the game map in the map display area.
[0097] Optionally, the operation tracks of the sliding operation and the first touch operation are continuous.
[0098] Optionally, the game interface further includes a small map display area, and the display module 100 further includes:
[0099] The second display submodule expands the small map display area into the map display area in response to a second touch operation on the small map display area, and displays the game map in the map display area.
[0100] Optionally, the game map displayed for the first time is centered on the location of the virtual object.
[0101] Optionally, the first response module 200 is configured to:
[0102] In response to a sliding operation on the game map, obtaining a duration of a current touch point of the sliding operation;
[0103] When the duration is greater than a preset duration threshold, the touch point information of the current touch point is acquired.
[0104] Optionally, the zoom ratio of the game map displayed for the first time is a preset minimum ratio.
[0105] Optionally, the touch point information is touch pressure; the zoom module 300 is used to:
[0106] Acquire an initial touch pressure and a current touch pressure of the current touch point, wherein the initial touch pressure is the touch pressure of the current touch point obtained for the first time;
[0107] Obtaining a first initial zoom ratio of the game map corresponding to the initial touch pressure;
[0108] determining a first scaling factor according to the current touch pressure and the initial touch pressure, wherein the first scaling factor is positively correlated with the current touch pressure;
[0109] Determining a current zoom ratio of the game map according to the first zoom factor and the first initial zoom ratio;
[0110] With the current touch point as the zoom center, the game map is controlled to be zoomed in and out according to the current zoom ratio within the map display area.
[0111] Optionally, the touch point information is a touch area, and the scaling module 300 is configured to:
[0112] Acquire an initial touch area and a current touch area of the current touch point, wherein the initial touch area is the touch area of the current touch point obtained for the first time;
[0113] Obtaining a second initial zoom ratio of the game map corresponding to the initial touch area;
[0114] determining a second scaling factor according to the current touch area and the initial touch area of the current touch point; wherein the second scaling factor is positively correlated with the current touch area;
[0115] determining a current zoom ratio according to the second zoom factor and the second initial zoom ratio;
[0116] With the current touch point as the zoom center, the game map is controlled to be zoomed in and out according to the current zoom ratio within the map display area.
[0117] Optionally, the game map control device further includes:
[0118] The first game path generating module is used to generate a game path with the marked map position as the end point according to the marked map position.
[0119] Optionally, the game map control device further includes:
[0120] An area attribute search module is used to search for area attributes of the area where the current touch point is located, wherein the area attributes include passable areas and impassable areas;
[0121] An identification module is used to display an identification corresponding to the area attribute at the touch point in the game map.
[0122] Optionally, the game map control device further includes:
[0123] The second game path generation module is used to generate a game path with the current position of the virtual object as the starting point and the current touch point as the end point when the area attribute is a pass area.
[0124] Optionally, the game map control device further includes:
[0125] The first navigation module is configured to respond to a navigation operation and, when the area attribute corresponding to the map location is a passable area, start navigation according to the game path corresponding to the map location.
[0126] Optionally, the game map control device further includes:
[0127] The second navigation module is used to respond to the navigation operation and display a prompt message for reselecting the map location on the game interface when the area attribute corresponding to the map location is an inaccessible area.
[0128] Optionally, the game map control device further includes:
[0129] The closing module is used to close the game map after the navigation is started according to the game path corresponding to the map position.
[0130] The game map control device provided in the embodiment of the present invention can execute the game map control method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0131] Figure 7 The components, their connections and relationships, and their functions shown herein are merely examples and are not intended to limit implementation of the invention described and / or claimed herein.
[0132] like Figure 7 As shown, the electronic device 70 includes at least one processor 71 and a memory connected to the at least one processor 71, such as a read-only memory (ROM) 72, a random access memory (RAM) 73, etc., wherein the memory stores a computer program that can be executed by the at least one processor, and the processor 71 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 72 or the computer program loaded from the storage unit 78 to the random access memory (RAM) 73. Various programs and data required for the operation of the electronic device 70 can also be stored in the RAM 73. The processor 71, ROM 72 and RAM 73 are connected to each other via a bus 74. An input / output (I / O) interface 75 is also connected to the bus 74.
[0133] A number of components in the electronic device 70 are connected to the I / O interface 75 , including: an input unit 76 ; an output unit 77 , such as various types of displays, speakers, etc.; a storage unit 78 ; and a communication unit 79 .
[0134] The processor 71 can be any general-purpose and / or specialized processing component with processing and computing capabilities. Some examples of the processor 71 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various specialized artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 71 executes the various methods and processes described above, such as the game map control method.
[0135] In some embodiments, the game map control method can be implemented as a computer program that is tangibly contained in a computer-readable storage medium, such as a storage unit 78. In some embodiments, part or all of the computer program can be loaded and / or installed on the electronic device 70 via the ROM 72 and / or the communication unit 79. When the computer program is loaded into the RAM 73 and executed by the processor 71, one or more steps of the game map control method described above can be performed. Alternatively, in other embodiments, the processor 71 can be configured to perform the game map control method by any other suitable means (e.g., by means of firmware).
[0136] Various embodiments of the systems and techniques described above can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), system-on-chip systems (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments can include being implemented in one or more computer programs that are executable and / or interpreted on a programmable system that includes at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0137] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when the computer program is executed by the processor, the functions / operations specified in the flowcharts and / or block diagrams are implemented. The computer program may be executed entirely on the machine, partially on the machine, as a stand-alone software package, partially on the machine and partially on a remote machine, or entirely on a remote machine or server.
[0138] In the context of the present invention, computer-readable storage media can be tangible media that can contain or store a computer program for use with an instruction execution system, device or equipment or used in combination with an instruction execution system, device or equipment. Computer-readable storage media can include but are not limited to electronic, magnetic, optical, electromagnetic, infrared or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, computer-readable storage media can be machine-readable signal media. More specific examples of machine-readable storage media can include electrical connections based on one or more lines, portable computer disks, hard disks, random access memories (RAM), read-only memories (ROM), erasable programmable read-only memories (EPROM or flash memory), optical fibers, portable compact disk read-only memories (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
[0139] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device for displaying information to the user; and a keyboard and a pointing device through which the user can provide input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0140] The systems and techniques described herein can be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication.
[0141] A computing system may include clients and servers. The clients and servers are generally remote from each other and typically interact via a communication network. The client-server relationship arises through computer programs running on the respective computers and having a client-server relationship with each other. The server may be a cloud server.
[0142] It should be understood that the various forms of the processes shown above can be used to reorder, add, or delete steps. For example, the steps described in the present invention can be performed in parallel, sequentially, or in a different order, as long as the desired results of the technical solution of the present invention can be achieved. This is not limited herein.
[0143] The above specific embodiments do not limit the scope of protection of the present invention. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions may be made based on design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the present invention are intended to be included within the scope of protection of the present invention.
Claims
1. A game map control method, characterized in that: The method comprises: Displaying a game map in a map display area, wherein the game map is a thumbnail of at least a portion of a game scene; In response to a sliding operation on the game map, acquiring touch point information of a touch point of the sliding operation; Taking the current touch point of the sliding operation as the zoom center, controlling the game map to zoom in and out within the map display area according to the touch point information of the current touch point; In response to a position marking operation, a map position is marked in the game map based on the last acquired position of the touch point.
2. The method according to claim 1, wherein The method further comprises: Provides map marker controls; Displaying the game map in the map display area includes: In response to a first touch operation on the map mark control, a map display area is provided, and the game map is displayed in the map display area.
3. The method according to claim 2, wherein The game interface further includes a small map display area. In response to the first touch operation on the map marker control, providing a map display area and displaying the game map in the map display area includes: In response to a first touch operation on the map marker control, the small map display area is expanded into the map display area, and the game map is displayed in the map display area.
4. The method according to claim 2, wherein The operation tracks of the sliding operation and the first touch operation are continuous.
5. The method according to claim 1, wherein The game interface also includes a small map display area, and the game map is displayed in the map display area, further comprising: In response to a second touch operation on the small map display area, the small map display area is expanded into the map display area, and the game map is displayed in the map display area.
6. The method according to claim 1, wherein The game map displayed for the first time is centered on the location of the virtual object.
7. The method according to claim 1, wherein The step of obtaining touch point information of a touch point of the sliding operation in response to the sliding operation on the game map includes: In response to a sliding operation on the game map, obtaining a duration of a current touch point of the sliding operation; When the duration is greater than a preset duration threshold, the touch point information of the current touch point is acquired.
8. The method according to claim 1, wherein The zoom ratio of the game map displayed for the first time is the preset minimum ratio.
9. The method according to claim 1, wherein The touch point information is touch pressure; The controlling the game map to be zoomed in and out within the map display area based on the touch point information of the current touch point by taking the current touch point of the sliding operation as the zoom center includes: Acquire an initial touch pressure and a current touch pressure of the current touch point, wherein the initial touch pressure is the touch pressure of the current touch point obtained for the first time; Obtaining a first initial zoom ratio of the game map corresponding to the initial touch pressure; determining a first scaling factor according to the current touch pressure and the initial touch pressure, wherein the first scaling factor is positively correlated with the current touch pressure; Determining a current zoom ratio of the game map according to the first zoom factor and the first initial zoom ratio; With the current touch point as the zoom center, the game map is controlled to be zoomed in and out according to the current zoom ratio within the map display area.
10. The method according to claim 1, wherein The touch point information is the touch area, The controlling the game map to be zoomed in and out within the map display area based on the touch point information of the current touch point by taking the current touch point of the sliding operation as the zoom center includes: Acquire an initial touch area and a current touch area of the current touch point, wherein the initial touch area is the touch area of the current touch point obtained for the first time; Obtaining a second initial zoom ratio of the game map corresponding to the initial touch area; determining a second scaling factor according to the current touch area and the initial touch area of the current touch point; wherein the second scaling factor is positively correlated with the current touch area; determining a current zoom ratio according to the second zoom factor and the second initial zoom ratio; With the current touch point as the zoom center, the game map is controlled to be zoomed in and out according to the current zoom ratio within the map display area.
11. The method according to claim 1, wherein The method further comprises: A game path with the marked map position as the end point is generated according to the marked map position.
12. The method according to claim 1, wherein Also includes: Finding the area attributes of the area where the current touch point is located, where the area attributes include passable areas and impassable areas; An identifier corresponding to the area attribute is displayed at the touch point in the game map.
13. The method according to claim 12, wherein: After searching for the area attribute of the area where the current touch point is located, the method further includes: When the area attribute is a passable area, a game path is generated with the current position of the virtual object as the starting point and the current touch point as the end point.
14. The method according to claim 13, wherein Also includes: In response to a navigation operation, when the area attribute corresponding to the map location is a passable area, navigation is started according to the game path corresponding to the map location.
15. The method according to claim 13, wherein Also includes: In response to a navigation operation, when the area attribute corresponding to the map location is an inaccessible area, a prompt message for reselecting the map location is displayed on the game interface.
16. The method according to claim 14, wherein After starting navigation according to the game path corresponding to the map position, the method further includes: Closes said game map.
17. A game map control device, characterized in that: A display module, configured to display a game map in a map display area, wherein the game map is a thumbnail of at least a portion of a game scene; A first response module, configured to obtain, in response to a sliding operation on the game map, touch point information of a touch point of the sliding operation; A zoom module, configured to use the current touch point of the sliding operation as a zoom center and control the game map to zoom in and out within the map display area according to the touch point information of the current touch point; The second response module is used to respond to the position marking operation and mark the map position in the game map based on the last acquired position of the touch point.
18. An electronic device, characterized in that: The electronic device comprises: at least one processor and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the processor, and the computer program is executed by the at least one processor to enable the at least one processor to execute the game map control method according to any one of claims 1 to 16.
19. A computer-readable storage medium, characterized in that The computer-readable storage medium stores computer instructions, and when the computer instructions are executed by a processor, the game map control method according to any one of claims 1 to 16 is implemented.