CN112791398B - Method and device for controlling virtual magnifier in game, electronic equipment and storage medium - Google Patents

Method and device for controlling virtual magnifier in game, electronic equipment and storage medium Download PDF

Info

Publication number
CN112791398B
CN112791398B CN202110153399.7A CN202110153399A CN112791398B CN 112791398 B CN112791398 B CN 112791398B CN 202110153399 A CN202110153399 A CN 202110153399A CN 112791398 B CN112791398 B CN 112791398B
Authority
CN
China
Prior art keywords
magnification
magnifier
virtual
multiplying power
region
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110153399.7A
Other languages
Chinese (zh)
Other versions
CN112791398A (en
Inventor
王泽�
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Netease Hangzhou Network Co Ltd
Original Assignee
Netease Hangzhou Network Co Ltd
Filing date
Publication date
Application filed by Netease Hangzhou Network Co Ltd filed Critical Netease Hangzhou Network Co Ltd
Priority to CN202110153399.7A priority Critical patent/CN112791398B/en
Publication of CN112791398A publication Critical patent/CN112791398A/en
Application granted granted Critical
Publication of CN112791398B publication Critical patent/CN112791398B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The application provides a control method and device of virtual magnifier in game, electronic equipment and storage medium, the method includes: responding to touch operation acted on the multiple lens control area, and displaying a first game scene corresponding to the opened virtual multiple lens under a first multiplying power on a graphical user interface; displaying a plurality of multiplying power areas corresponding to the virtual multiple mirrors in a graphical user interface; responding to a first sliding operation which acts on the magnifier control region and is continuous to the touch operation, and determining first displacement of a first touch point of the first sliding operation according to the acting position of a target touch point of the touch operation; and selecting a second magnification region from the multiple magnification regions according to the first displacement of the first touch point, and adjusting the first magnification of the virtual magnifier to a second magnification corresponding to the second magnification region. According to the application, a fixed magnifier trigger control is not needed, so that the occupation of an interface space is avoided; the continuity of player operation is guaranteed, the operation difficulty of a user is reduced, and the man-machine interaction efficiency is improved.

Description

Method and device for controlling virtual magnifier in game, electronic equipment and storage medium
Technical Field
The present application relates to the field of game technologies, and in particular, to a method and apparatus for controlling a virtual magnifier in a game, an electronic device, and a storage medium.
Background
Currently, in shooting-type games, players play a game using a firearm and view a game field of view at a normal magnification; after the player picks up the magnifier, the field of view of the game at magnification can be viewed through the magnifier mounted in the firearm. In the prior art, a multiple lens trigger control corresponding to a multiple lens is provided in a graphical user interface, and a player opens a sliding magnification control by operating the multiple lens trigger control and adjusts the magnification of the multiple lens in a firearm based on the sliding magnification control.
However, in the above manner, the magnifier trigger control is fixed in the interface, so that the interface space is occupied; in addition, the multiplying power adjustment operation of the double mirror is incoherent, so that the operation difficulty of a user is increased, and the man-machine interaction efficiency is low.
Disclosure of Invention
In view of the above, the present application aims to provide a method, an apparatus, an electronic device, and a storage medium for controlling a virtual magnifier in a game, which do not need a fixed magnifier trigger control, and avoid occupying an interface space; and the continuity of player operation is ensured, the operation difficulty of a user is reduced, and the man-machine interaction efficiency is improved.
In a first aspect, an embodiment of the present application provides a method for controlling a virtual magnifier in a game, where a graphical user interface is provided through a terminal device, and a magnifier control area is provided in the graphical user interface, where the control method includes:
Responding to the touch operation acted on the multiple mirror control area, and displaying a first game scene corresponding to the opened virtual multiple mirror under a first multiplying power on the graphical user interface; and displaying a plurality of magnification areas corresponding to the virtual magnifier in the graphical user interface, wherein the plurality of magnification areas at least comprise a first magnification area and a second magnification area, the first magnification area corresponds to a first magnification, and the second magnification area corresponds to a second magnification;
responding to a first sliding operation which acts on the magnifier control region and is continuous to the touch operation, and determining a first displacement of a first touch point of the first sliding operation according to the acting position of a target touch point of the touch operation; the initial position of the first touch point is the same as the action position of the target touch point;
And selecting a second magnification region from the multiple magnification regions according to the first displacement of the first touch point, and adjusting the first magnification of the virtual magnifier to a second magnification corresponding to the second magnification region.
In one possible implementation manner, while displaying the multiple magnification areas corresponding to the virtual magnification in the graphical user interface, the control method further includes:
displaying a magnification closing region in the graphical user interface, the magnification closing region being disposed adjacent to the plurality of magnification regions;
Determining a second displacement of a second touch point of the second sliding operation in response to the second sliding operation acting on the magnifier control region; wherein the second sliding operation is opposite to the sliding direction of the first sliding operation; the second sliding operation is a continuous operation of the touch operation or the first sliding operation;
and selecting the closing area of the double mirror according to the second displacement of the second touch point, and closing the virtual double mirror.
In a possible implementation manner, the determining the second displacement of the second touch point of the second sliding operation includes:
When the second sliding operation is a continuous operation of the touch operation, determining a second displacement of a second touch point of the second sliding operation according to an action position of a target touch point of the touch operation;
And when the second sliding operation is a continuous operation of the first sliding operation, determining a second displacement of a second touch point of the second sliding operation according to the stay position of the first touch point of the first sliding operation.
In one possible embodiment, the control method further includes:
Providing a selection mark in the first multiplying power area according to the action position of the target touch point of the touch operation; wherein the first display position of the selection mark in the first rate region corresponds to the action position of the target touch point; wherein the selection flag slides synchronously following the first sliding operation or the second sliding operation; the selection flag is used for indicating a magnification region selected by the first sliding operation or is used for indicating a magnification region or a magnification closing region selected by the second sliding operation.
In one possible implementation manner, the selecting a second magnification region from the multiple magnification regions according to the first displacement of the first touch point includes:
determining a third displacement of the selection mark according to the first displacement of the first touch point and the synchronous sliding proportion of the first sliding operation and the selection mark; the synchronous sliding proportion is the ratio of the unit sliding distance of the first sliding operation to the sliding distance of the selection mark;
And selecting a second multiplying power area from the multiplying power areas according to the first display position of the selection mark and the third displacement of the selection mark.
In a possible implementation manner, in the process that the selection identifier slides synchronously along with the first sliding operation, the control method further includes:
When the selection mark exceeds the multiple multiplying power areas, determining a third multiplying power corresponding to the virtual multiplying power; the third multiplying power is the multiplying power corresponding to the third multiplying power area closest to the selection mark in the multiple multiplying power areas;
Controlling the virtual magnifier to be kept on at the third rate.
In a possible implementation manner, the selecting the magnifier closing region according to the second displacement of the second touch point includes:
Determining a fourth displacement of the selection mark according to the second displacement of the second touch point and the synchronous sliding proportion of the second sliding operation and the selection mark; wherein the synchronous sliding proportion is the ratio of the unit sliding distance of the second sliding operation to the sliding distance of the selection mark;
and selecting the closing area of the magnifier according to the second display position of the selection mark and the fourth displacement of the selection mark.
In one possible implementation manner, each magnification area comprises a magnification mark, and the magnification mark is determined according to the magnification corresponding to the magnification area; and the corresponding multiplying powers of different multiplying power areas in the multiplying power areas are different.
In one possible implementation manner, the multiple multiplying power areas are arranged continuously from small multiplying power to large multiplying power; or the multiple multiplying power areas are continuously arranged from large multiplying power to small multiplying power.
In one possible implementation manner, the multiple magnification areas are sequentially arranged from the inner side to the outer side of the graphical user interface in a manner of corresponding magnification from small to large.
In one possible implementation manner, the first magnification is a preset magnification, and the first magnification is a minimum magnification corresponding to the virtual magnifier or a maximum magnification corresponding to the virtual magnifier;
Or the first multiplying power is the multiplying power of the virtual magnifier after the previous adjustment.
In one possible implementation, the touch operation includes:
and simultaneously, a first touch operation and a second touch operation which are applied to the magnifier control region.
In one possible implementation manner, the displaying, in the graphical user interface, a plurality of magnification areas corresponding to the virtual magnification lens includes:
Based on the first touch operation, displaying a first group of magnification areas corresponding to the virtual magnification in the graphical user interface, wherein the first group of magnification areas comprises the plurality of magnification areas;
And based on the second touch operation, displaying a second group of magnification areas corresponding to the virtual magnifier and comprising the multiple magnification areas in the graphical user interface.
In one possible embodiment, the magnifier closing region includes: a first magnifier closing region and a second magnifier closing region; the first magnifier closing region is arranged adjacent to a first multiplying power region in the first group of multiplying power regions; the second magnification region is disposed adjacent to the first magnification region of the second set of magnification regions.
In one possible implementation manner, the adjusting the first magnification of the virtual magnifier to the second magnification corresponding to the second magnification region includes:
And when the second magnification region selected by the first touch operation in the first group of magnification regions is consistent with the second magnification region selected by the second touch operation in the second group of magnification regions, adjusting the first magnification of the virtual magnifier to a second magnification corresponding to the second magnification region.
In one possible embodiment, the control method further includes:
and controlling the virtual magnifier to be kept on at the second magnification and to close the displayed multiple magnification areas and the magnifier closing area in response to the end of the first sliding operation.
In one possible embodiment, in response to a touch operation acting on the magnifier control region, the control method further includes:
Judging whether the virtual magnifier controlled by the magnifier control region is started or not; and if not, starting the virtual magnifier.
In a second aspect, an embodiment of the present application further provides a control device for a virtual magnifier in a game, where a graphical user interface is provided through a terminal device, and a magnifier control area is provided in the graphical user interface, where the control device includes:
The first display module is used for responding to the touch operation acted on the double-mirror control area and displaying a first game scene corresponding to the opened virtual double-mirror under a first multiplying power on the graphical user interface; and displaying a plurality of magnification areas corresponding to the virtual magnifier in the graphical user interface, wherein the plurality of magnification areas at least comprise a first magnification area and a second magnification area, the first magnification area corresponds to a first magnification, and the second magnification area corresponds to a second magnification;
A first determining module, configured to determine a first displacement of a first touch point of the first sliding operation according to an action position of a target touch point of the touch operation in response to a first sliding operation that acts on the scope control area and is continuous to the touch operation; the initial position of the first touch point is the same as the action position of the target touch point;
the first selection module is used for selecting a second multiplying power area from the multiplying power areas according to the first displacement of the first touch point;
And the adjusting module is used for adjusting the first multiplying power of the virtual multiplying power mirror to a second multiplying power corresponding to the second multiplying power area.
In a third aspect, an embodiment of the present application further provides an electronic device, including: a processor, a storage medium and a bus, the storage medium storing machine-readable instructions executable by the processor, the processor and the storage medium communicating over the bus when the electronic device is running, the processor executing the machine-readable instructions to perform the steps of the method of controlling a virtual fold in a game as described in any one of the first aspects.
In a fourth aspect, an embodiment of the present application further provides a computer readable storage medium, on which a computer program is stored, which when executed by a processor performs the steps of the method for controlling a virtual magnifier in a game according to any one of the first aspects.
According to the method, the device, the electronic equipment and the storage medium for controlling the virtual magnifier in the game, a player starts a magnification adjustment control (namely, displays a plurality of magnification areas) on a graphical user interface through touch operation on a magnifier control area, at the moment, the opened virtual magnifier is started at a first magnification, then the player determines first displacement of a first touch point of the first sliding operation according to an action position of a target touch point of the touch operation through first sliding operation which is continuous with the touch operation on the magnifier control area, selects a second magnification area in the plurality of magnification areas according to the first displacement of the first touch point, adjusts the first magnification of the virtual magnifier to a second magnification corresponding to the second magnification area, and after the magnification adjustment control is started, the adjusted magnification is determined through movement displacement of the first sliding operation which is continuous with the touch operation and the virtual magnifier is switched, so that the occupation of an interface space is avoided; the continuity of player operation is guaranteed, the operation difficulty of a user is reduced, and the man-machine interaction efficiency is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments will be briefly described below, it being understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and other related drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1a shows a flowchart of a method for controlling a virtual magnifier in a game according to an embodiment of the present application;
FIG. 1b is a schematic diagram of the content of a graphical user interface display provided by an embodiment of the present application, and a touch operation triggered by a player on the graphical user interface;
FIG. 1c shows a schematic diagram of displaying multiple magnification areas and a power-off area enabled by a player through a touch operation in a graphical user interface;
Fig. 1d shows a schematic diagram of determining a second magnification region (i.e., a 4-magnification region) by a first sliding operation continuous with a touch operation;
FIG. 1e shows a schematic diagram of a fourth game scene with a virtual magnifier at an adjusted second magnification (i.e., 4 magnification);
FIG. 1f shows a schematic view of a selected power mirror closing region by a second sliding operation that is continuous with a touch operation;
FIG. 1g shows a schematic diagram of a third game scenario displayed on a graphical user interface matching a current game progress;
FIG. 2 is a flowchart of another method for controlling a virtual magnifier in a game according to an embodiment of the present application;
FIG. 3 is a flowchart of another method for controlling a virtual magnifier in a game according to an embodiment of the present application;
FIG. 4 is a flowchart of another method for controlling a virtual magnifier in a game according to an embodiment of the present application;
FIG. 5 is a flowchart of another method for controlling a virtual magnifier in a game according to an embodiment of the present application;
FIG. 6 is a flowchart of another method for controlling a virtual magnifier in a game according to an embodiment of the present application;
Fig. 7 is a schematic structural diagram of a control device for virtual magnifier in game according to an embodiment of the present application;
Fig. 8 shows a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present application more apparent, the technical solutions of the embodiments of the present application will be clearly and completely described with reference to the accompanying drawings in the embodiments of the present application, and it should be understood that the drawings in the present application are for the purpose of illustration and description only and are not intended to limit the scope of the present application. In addition, it should be understood that the schematic drawings are not drawn to scale. A flowchart, as used in this disclosure, illustrates operations implemented according to some embodiments of the present application. It should be understood that the operations of the flow diagrams may be implemented out of order and that steps without logical context may be performed in reverse order or concurrently. Moreover, one or more other operations may be added to or removed from the flow diagrams by those skilled in the art under the direction of the present disclosure.
In addition, the described embodiments are only some, but not all, embodiments of the application. The components of the embodiments of the present application generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the application, as presented in the figures, is not intended to limit the scope of the application, as claimed, but is merely representative of selected embodiments of the application. All other embodiments, which can be made by a person skilled in the art without making any inventive effort, are intended to be within the scope of the present application.
It should be noted that the term "comprising" will be used in embodiments of the application to indicate the presence of the features stated hereafter, but not to exclude the addition of other features.
In shooting games, when a player adjusts a magnifier in a firearm, the player needs to trigger a magnification adjustment control at another position by clicking a fixed magnifier trigger control, and adjusts the magnification of the magnifier by clicking the magnification adjustment control at another position, but in this way, the magnifier trigger control needs to be fixedly displayed in an interface, so that the interface space is occupied; in addition, the multiplying power adjustment operation of the multiplying power mirror is incoherent in operation, so that the operation difficulty of a user is increased, and the man-machine interaction efficiency is low. Based on the above, the embodiment of the application provides a method, a device, electronic equipment and a storage medium for controlling a virtual magnifier in a game, which do not need fixed magnifier triggering control, and avoid occupying interface space; and the continuity of player operation is ensured, the operation difficulty of a user is reduced, and the man-machine interaction efficiency is improved.
In one embodiment of the present application, a method for controlling a virtual magnifier in a game may be executed on a terminal device or a server. The terminal device may be a local terminal device. When the method for processing the grooming prop runs on the server, the method can be realized and executed based on a cloud interaction system, wherein the cloud interaction system comprises the server and client equipment (namely terminal equipment).
In an alternative embodiment, various cloud applications may be run under the cloud interaction system, for example: and (5) cloud game. Taking cloud game as an example, cloud game refers to a game mode based on cloud computing. In the cloud game operation mode, the game program operation main body and the game picture presentation main body are separated, the storage and operation of the processing method of the decorating prop are completed on the cloud game server, and the client device is used for receiving and sending data and presenting the game picture, for example, the client device can be a display device with a data transmission function close to a user side, such as a mobile terminal, a television, a computer, a palm computer and the like; but the terminal device for information processing is cloud game server of cloud. When playing the game, the player operates the client device to send an operation instruction to the cloud game server, the cloud game server runs the game according to the operation instruction, codes and compresses data such as game pictures and the like, returns the data to the client device through a network, and finally decodes the data through the client device and outputs the game pictures.
In an alternative embodiment, the terminal device may be a local terminal device. Taking a game as an example, the local terminal device stores a game program and is used to present a game screen. The local terminal device is used for interacting with the player through the graphical user interface, namely, conventionally downloading and installing the game program through the electronic device and running. The manner in which the local terminal device provides the graphical user interface to the player may include a variety of ways, for example, may be rendered for display on a display screen of the terminal, or provided to the player by holographic projection. For example, the local terminal device may include a display screen for presenting a graphical user interface including game visuals, and a processor for running the game, generating the graphical user interface, and controlling the display of the graphical user interface on the display screen.
In order to facilitate understanding of the embodiments of the present application, a method, an apparatus, an electronic device, and a storage medium for controlling a virtual magnifier in a game provided by the embodiments of the present application are described in detail below.
As shown in fig. 1a, in the method for controlling a virtual magnifier in a game according to the embodiment of the present application, a graphical user interface is provided through a terminal device, and a magnifier control area is provided in the graphical user interface, where the control method includes:
S101, responding to touch operation acted on the magnifier control region, and displaying a first game scene corresponding to the opened virtual magnifier under a first multiplying power on the graphical user interface; and displaying a plurality of magnification areas corresponding to the virtual magnifier in the graphical user interface, wherein the plurality of magnification areas at least comprise a first magnification area and a second magnification area, the first magnification area corresponds to a first magnification, and the second magnification area corresponds to a second magnification.
S102, responding to a first sliding operation which acts on the magnifier control region and is continuous to the touch operation, and determining first displacement of a first touch point of the first sliding operation according to the acting position of a target touch point of the touch operation; the initial position of the first touch point is the same as the action position of the target touch point.
S103, selecting a second magnification region from the multiple magnification regions according to the first displacement of the first touch point, and adjusting the first magnification of the virtual magnifier to a second magnification corresponding to the second magnification region.
According to the method for controlling the virtual magnifier in the game, a player starts a magnification adjustment control (namely, displays a plurality of magnification areas) on a graphical user interface through touch operation on a magnifier control area, at the moment, the started virtual magnifier starts with a first magnification, then the player determines the first displacement of a first touch point of the first sliding operation according to the action position of a target touch point of the touch operation through the first sliding operation which acts on the magnifier control area and is continuous with the touch operation, a second magnification area is selected from a plurality of magnification areas according to the first displacement of the first touch point, the first magnification of the virtual magnifier is adjusted to the second magnification corresponding to the second magnification area, after the magnification adjustment control is started, the adjusted magnification is determined through the movement displacement of the first sliding operation which triggers the magnifier control area and is continuous with the touch operation, and the magnifier of the virtual magnifier is switched, and the mode does not need to trigger the control by the fixed magnifier, so that the occupied interface space is avoided; the continuity of player operation is guaranteed, the operation difficulty of a user is reduced, and the man-machine interaction efficiency is improved.
The steps of the above-described examples of the embodiment of the present application will be described below by taking the application of the above-described method to a terminal device as an example.
S101, responding to touch operation acted on the magnifier control region, and displaying a first game scene corresponding to the opened virtual magnifier under a first multiplying power on the graphical user interface; and displaying a plurality of magnification areas corresponding to the virtual magnifier in the graphical user interface, wherein the plurality of magnification areas at least comprise a first magnification area and a second magnification area, the first magnification area corresponds to a first magnification, and the second magnification area corresponds to a second magnification.
In the embodiment of the application, the virtual magnifier can be a magnifier pre-assembled on the virtual firearm, or can be a camera. For example, in shooting-type games, a player needs to use a virtual firearm in the game, and when the player picks up the virtual magnifier, the player can assemble the virtual magnifier on the virtual firearm to better play the game.
In the embodiment of the present application shown in fig. 1b, a graphical user interface 100 is provided through a terminal device, and a game scene 200 of a current game, an operation control 101 and an item control 102 are displayed on the graphical user interface 100. Among them, a target game character 201 is included in the game scene 200, and the target game character 201 is a game character controlled by a player. In shooting-type games, a player can control a target game character 201 to pick up a desired item, such as a firearm, a cartridge, a bullet, a sighting telescope (including red dots and holograms), a virtual magnifier (including 2-fold mirror, 3-fold mirror, 4-fold mirror, 6-fold mirror, 8-fold mirror), and the like, by operating a control 101. After the target game character 201 picks up the firearm and the magnifier, the currently used target firearm 103 is configured for the target game character 201, and the virtual magnifier is selected by triggering the item control 102 to assemble the virtual magnifier for the target firearm 103, and correspondingly, the target firearm 103 assembled with the virtual magnifier is displayed in the graphical user interface 100.
For example, the target firearm currently used by the target game character 1 is a 98K sniping gun, and an 8-fold mirror is assembled on the 98K sniping gun; accordingly, the target game character 1 is displayed in the graphical user interface 100 with a 98K sniping gun equipped with an 8-fold mirror.
The touch operation may include one touch operation or two touch operations (for example, a first touch operation and a second touch operation); responding to the touch operation acted on the multiple lens control area, firstly judging whether the virtual multiple lens controlled by the multiple lens control area is started or not; if not, starting the virtual multiple mirror (namely starting the virtual multiple mirror assembled on the target firearm), and displaying a first game scene of the virtual multiple mirror under a first multiplying power on a graphical user interface; if the virtual magnifier is opened, the first game scene of the virtual magnifier under the first multiplying power is directly displayed on the graphic user interface. In addition, a plurality of magnification areas corresponding to the virtual magnification can be displayed in the graphical user interface through the touch operation. Optionally, a plurality of magnification areas corresponding to the virtual magnifier are displayed in the virtual magnifier.
The above-mentioned multiple lens control area corresponds to a set range in the graphic user interface, that is, the multiple lens control area is a partial area corresponding to the graphic user interface. Optionally, the power mirror control area is located at a center of the graphical user interface.
Wherein the plurality of multiplying power areas at least comprise a first multiplying power area and a second multiplying power area; each of the multiple magnification areas corresponds to one magnification, and the magnifications corresponding to different magnification areas are different. For example, the first magnification region corresponds to a first magnification, and the second magnification regions each correspond to a second magnification.
In the embodiment of the application, each multiplying power area comprises a multiplying power mark, and the multiplying power mark is determined according to the multiplying power corresponding to the multiplying power area; the magnification corresponding to different magnification regions in the multiple magnification regions is different. As shown in fig. 1c and 1d, for example, the 2-magnification region corresponds to 2 magnifications and includes a magnification mark of "2 times"; the 4-multiplying power area corresponds to 4 multiplying power and comprises a multiplying power mark of 4 multiplying power; the 8-multiplying power region corresponds to 8 multiplying power and comprises an 8-multiplying power mark; and, the corresponding multiplying power of different multiplying power regions is different. In addition, the 2-magnification region, the 4-magnification region, and the 8-magnification region are arranged in order from the inside to the outside of the graphical user interface 100. In fig. 1c, the virtual magnifier 104 is opened, the lowest magnification (i.e. 2 magnifications) corresponding to the virtual magnifier 104 is started, and correspondingly, other magnification areas are displayed outside the 2-magnification area, and the other magnification areas comprise a 4-magnification area and a 6-magnification area; wherein the player's finger is located within the magnifier control region.
In the embodiment of the present application, the touch operation is located in a multiple-magnification control area, and the relationship between the multiple-magnification control area and the multiple-magnification areas is not limited, that is, the multiple-magnification control area may include the multiple-magnification areas, may partially overlap the multiple-magnification areas, or may be different from the multiple-magnification areas.
Optionally, any of the above touch operations includes one of: touch click operation, long press operation, heavy press operation, continuous multiple touch click operation, and the like.
In addition, in the embodiment of the present application, at least one magnification (a plurality of virtual magnification is taken as an example in the embodiment of the present application) corresponds to the virtual magnification, and the magnifications corresponding to different virtual magnification are different. For example, when the virtual magnifier is a 4-fold magnifier, the corresponding magnification is 4-fold magnification, 3-fold magnification, 2-fold magnification; when the virtual magnifier is 8 times, the corresponding magnification is 8 times, 4 times, 2 times, etc.
Optionally, the first magnification may be a preset magnification, and corresponds to an initial state of the virtual magnifier, that is, in a state in which the magnification of the virtual magnifier is not adjusted, the first magnification is a minimum magnification corresponding to the virtual magnifier, or is a maximum magnification corresponding to the virtual magnifier. Or the first magnification is the magnification of the virtual magnifier after the previous adjustment, and the magnification can be any magnification.
As shown in fig. 1b, a game scene 200 of the game is displayed on the graphical user interface 100, after a player triggers a touch operation on the graphical user interface 100, the virtual magnifier 104 is turned on, as shown in fig. 1c, the virtual magnifier 104 is displayed on the graphical user interface 100, and the first game scene 202 at the first magnification can be viewed through the virtual magnifier 104; meanwhile, a plurality of magnification areas 105 corresponding to the virtual magnifier 104 are displayed in the graphical user interface 100, and the plurality of magnification areas 105 specifically include a first magnification area (2 magnification area in fig. 1 c) and other magnification areas (4 magnification area and 8 magnification area in fig. 1c, wherein the second magnification area is 4 magnification area), and the like.
S102, responding to a first sliding operation which acts on the magnifier control region and is continuous to the touch operation, and determining first displacement of a first touch point of the first sliding operation according to the acting position of a target touch point of the touch operation; the initial position of the first touch point is the same as the action position of the target touch point.
In the embodiment of the application, the player selects the second magnification region from the plurality of magnification regions by the first sliding operation continuous with the touch operation, which acts on the magnification control region. Specifically, the terminal device first determines an action position of a target touch point of the touch operation, and then determines a first displacement of a first touch point of the first sliding operation according to the action position, so as to select a second magnification region among the multiple magnification regions based on the first displacement. The first sliding operation is a first sliding operation which acts on the magnifier control region and is continuous with the touch operation, so that the initial position of the first touch point of the first sliding operation is the same as the action position of the target touch point, and accordingly, the action position of the target touch point is taken as the initial position, and the first displacement of the first touch point is calculated along with the first sliding operation of the player.
S103, selecting a second magnification region from the multiple magnification regions according to the first displacement of the first touch point, and adjusting the first magnification of the virtual magnifier to a second magnification corresponding to the second magnification region.
In the embodiment of the application, different displacements of the first touch point of the first sliding operation correspond to different selected multiplying power areas. Therefore, here, the second magnification region is selected among the plurality of magnification regions according to the first displacement of the first touch point of the first sliding operation, and the first magnification of the virtual magnification mirror is adjusted to the second magnification corresponding to the second magnification region.
As shown in fig. 1c to 1d, the first sliding operation of the player moves by a first displacement, and accordingly, the second magnification region is determined to be a 4-magnification region according to the first displacement, and the first magnification (i.e., 2 magnification) corresponding to the virtual magnifier 104 is adjusted based on the second magnification (i.e., 4 magnification) corresponding to the second magnification region (4-magnification region), that is, the 2 magnification currently used by the virtual magnifier 104 is adjusted to be 4 magnification. Wherein fig. 1e shows a fourth game scene 203 with the virtual magnifier 104 at an adjusted magnification of 4.
Further, an embodiment of the present application provides a method for controlling a virtual magnifier in a game, where, while a plurality of magnification areas corresponding to the virtual magnifier are displayed in the graphical user interface, the method further includes:
S201, displaying a power mirror closing area in the graphical user interface, wherein the power mirror closing area is arranged adjacent to the plurality of power areas.
Optionally, the multiple magnification areas are arranged in a continuous manner, and the multiple magnification closing area is arranged adjacent to the multiple magnification areas, that is, is arranged in a continuous manner with the multiple magnification areas. The above-mentioned power mirror closing area includes an indication mark, as shown in fig. 1c, specifically includes a "closing" indication mark; in fig. 1c, the above-described power mirror-off region is disposed adjacent to a first power region including a power flag of "2".
S202, responding to a second sliding operation acting on the magnifier control region, and determining a second displacement of a second touch point of the second sliding operation; wherein the second sliding operation is opposite to the sliding direction of the first sliding operation; the second sliding operation is a continuous operation of the touch operation or the first sliding operation.
Alternatively, the player turns off the virtual magnifier by triggering a second sliding operation, which is continuous with the touch operation, acting on the magnifier control region. Specifically, by determining the displacement of the second sliding operation, it is determined whether the player has selected the power mirror closing area, and when the second displacement of the second sliding operation determines that the player has selected the power mirror closing area, the opened virtual power mirror is closed.
Alternatively, the second sliding operation may be a continuous operation of the touch operation, or may be a continuous operation of the first sliding operation; when the second sliding operation is continuous operation of the touch operation, determining second displacement of a second touch point of the second sliding operation according to an action position of a target touch point of the touch operation; and when the second sliding operation is a continuous operation of the first sliding operation, determining a second displacement of a second touch point of the second sliding operation according to the stay position of the first touch point of the first sliding operation.
S203, selecting the closing area of the double mirror according to the second displacement of the second touch point, and closing the virtual double mirror.
In the embodiment of the application, when the player selects the magnifier closing area based on the second displacement of the second sliding operation, the virtual magnifier is closed (namely, the virtual magnifier assembled on the target firearm is closed), and meanwhile, a third game scene matched with the current game progress is displayed on the graphical user interface. Wherein the sliding direction of the second sliding operation is opposite to the first sliding operation; when the second sliding operation of the player stays at the position corresponding to the second displacement, or stays at the position corresponding to the second displacement and is released, the terminal equipment determines that the player selects the power mirror closing area;
That is, the player may close the virtual magnifier directly through a second sliding operation continuous with the touch operation after opening the virtual magnifier; or the player may adjust the magnification of the virtual magnifier by a first sliding operation with the touch operation after opening the virtual magnifier, and then close the virtual magnifier by a second sliding operation successive to the first sliding operation.
As shown in fig. 1c and 1f, after the player selects the power-mirror closing area 106 through the second sliding operation starting from the 2-magnification area, the virtual power mirror 104 mounted on the target firearm 103 is closed, and the displayed multiple magnification areas 105 and power-mirror closing area 106 are closed, and a third game scene matching the current game progress is displayed on the graphical user interface 100. Wherein fig. 1g shows a third game scenario 204 of the current game progress displayed on the graphical user interface 100 after closing the virtual multiplier 104 assembled on the target firearm 103.
In the embodiment of the application, the plurality of multiplying power areas are continuously arranged from small multiplying power to large multiplying power; or the multiple multiplying power areas are arranged continuously from large multiplying power to small multiplying power. Optionally, when the first magnification may be a preset magnification, the first magnification corresponds to an initial state of the virtual magnifier, that is, in a state in which the magnification of the virtual magnifier is not adjusted, the first magnification is a minimum magnification corresponding to the virtual magnifier or a maximum magnification corresponding to the virtual magnifier.
In a specific embodiment, the multiple magnification areas are sequentially arranged from the inner side to the outer side of the graphical user interface in a manner of corresponding magnification from small to large.
The following description will be given by taking, as an example, a plurality of magnification areas arranged in order from the inside to the outside of the graphical user interface in such a manner that the corresponding magnification is from small to large: when the first multiplying power is the minimum multiplying power corresponding to the virtual multiplying power, the closing area of the multiplying power is positioned at the inner side of the first multiplying power area. As shown in fig. 1c, the 2-magnification region, the 4-magnification region, and the 8-magnification region are arranged in order from the inside to the outside of the graphical user interface 100. The touch operation triggered by the finger of the player selects a 2-magnification region corresponding to 2-magnification, other magnification regions (including a 4-magnification region and a 6-magnification region) are displayed outside the 2-magnification region, and a magnification-closing region 106 is displayed inside the 2-magnification region.
Correspondingly, the first multiplying power may be a preset multiplying power, for example, in an initial state of the virtual multiplying power, the first multiplying power may be a minimum multiplying power corresponding to the virtual multiplying power or a maximum multiplying power corresponding to the virtual multiplying power; the first magnification may be a magnification of the virtual magnifier after the virtual magnifier is adjusted, and the first magnification may be a magnification of the virtual magnifier after the virtual magnifier is adjusted (for example, 4 magnifications).
Further, the method for controlling the virtual magnifier in the game provided by the embodiment of the application further comprises the following steps:
Providing a selection mark in the first multiplying power area according to the action position of the target touch point of the touch operation; wherein the first display position of the selection mark in the first rate region corresponds to the action position of the target touch point; wherein the selection flag slides synchronously following the first sliding operation or the second sliding operation; the selection flag is used for indicating a magnification region selected by the first sliding operation or is used for indicating a magnification region or a magnification closing region selected by the second sliding operation.
In the embodiment of the present application, as shown in fig. 1c, when the player triggers the touch operation on the magnifier control region, a selection flag 107 is provided in the first magnification region (i.e. the 2 magnification region), where the selection flag 107 is used to indicate that the player currently selects the first magnification region (i.e. the 2 magnification region). The position of the selection mark 107 corresponds to the action position of the target touch point, and based on this, the first display position of the selection mark 107 in the first magnification area (i.e., the 2-magnification area) determined according to the action position of the target touch point of the touch operation, that is, the first display position corresponds to the action position of the target touch point.
In an alternative embodiment, the first display position is spaced apart from the active position of the target touch point by a preset distance (for example, in fig. 1c, the positions of the two hands in the center position of the virtual magnifier 104 represent the active position of the target touch point, the positions of the two hands in the 2-magnification region represent the first display position of the selection mark 107, and the first display position is located at the left side of the active position and is spaced apart from the active position by a preset distance, or in an alternative embodiment, the first display position is identical to the active position of the target touch point, for example, taking fig. 1c (but this is not shown in fig. 1 c), and the positions of the two hands in the 2-magnification region of the virtual magnifier 104 represent both the active position of the target touch point and the first display position of the selection mark 107, where the first display position is identical to the active position.
In practice, the selection indicator 107 slides synchronously following the first sliding operation or the second sliding operation, wherein the sliding direction of the selection indicator 107 following the first sliding operation is opposite to the sliding direction of the selection indicator 107 following the second sliding operation; when the selection flag 107 slides synchronously following the first sliding operation, the selection flag 107 is used to indicate a magnification region selected by the first sliding operation; when the selection flag 107 slides in synchronization with the second sliding operation, the selection flag 107 is used to indicate the magnification region or the power mirror closing region selected by the second sliding operation.
Further, as shown in fig. 3, in the method for controlling a virtual magnifier in a game according to the embodiment of the present application, selecting a second magnification region from the multiple magnification regions according to the first displacement of the first touch point includes:
S301, determining a third displacement of the selection mark according to the first displacement of the first touch point and the synchronous sliding proportion of the first sliding operation and the selection mark; the synchronous sliding proportion is the ratio of the unit sliding distance of the first sliding operation to the sliding distance of the selection mark.
In the embodiment of the application, the selected multiplying power region of the first sliding operation is indicated by the selection mark, wherein the first sliding operation and the selection mark have a preset synchronous sliding proportion, and the synchronous sliding proportion is the ratio of the unit sliding distance of the first sliding operation to the sliding distance of the selection mark. After the player triggers the first sliding operation, calculating a third displacement of the selection mark according to the first displacement of the first touch point of the first sliding operation and the synchronous sliding proportion.
S302, selecting a second multiplying power area from the multiplying power areas according to the first display position of the selection mark and the third displacement of the selection mark.
Here, the selection flag is determined to select the second magnification region (4 magnification region as shown in fig. 1 d) among the plurality of magnification regions, based on the current position of the selection flag (i.e., the first display position in the first magnification region) and the third displacement of the selection flag.
In addition, the method for controlling the virtual magnifier in the game provided by the embodiment of the application further comprises the following steps: and controlling the virtual magnifier to be kept on at the second magnification and to close the displayed multiple magnification areas and the magnifier closing area in response to the end of the first sliding operation.
Here, the end of the first sliding operation means that the player releases his hand for the triggered first sliding operation, and at this time, the virtual magnifier is kept open at the adjusted second magnification, and the adjustment state of the virtual magnifier is exited; here, exiting the adjustment state of the virtual magnifier means: and closing the displayed multiple magnification areas and the magnification closing area.
Further, as shown in fig. 4, in the method for controlling a virtual magnifier in a game according to the embodiment of the present application, in a process that the selection mark slides synchronously along with the first sliding operation, the method further includes:
S401, when the selection mark exceeds the multiple multiplying power areas, determining a third multiplying power corresponding to the virtual multiplying power; and the third multiplying power is the multiplying power corresponding to the third multiplying power area closest to the selection mark in the multiplying power areas.
In the embodiment of the present application, when the player triggers the first sliding operation that is continuous with the touch operation, if the first sliding operation exceeds a plurality of magnification areas (for example, after leaving the plurality of magnification areas 105 as shown in fig. 1 c) during the process of selecting the mark to slide synchronously with the first sliding operation, it is determined that the third magnification selected last time before leaving the plurality of magnification areas is selected, where the third magnification is the magnification corresponding to the third magnification area closest to the position of the first sliding operation in the plurality of magnification areas. Here, the third magnification area may be an outermost magnification area in the graphical user interface or an innermost magnification area in the graphical user interface. As shown in fig. 1c, for example, a plurality of magnification areas are sequentially arranged from the inner side to the outer side of the graphical user interface in a manner of increasing the corresponding magnification, and when the selection mark sequentially slides from the inner side to the outer side of the graphical user interface and exceeds the 8-fold mirror area, the 8-fold mirror area is determined to be a third magnification area, and the 8-fold magnification corresponding to the 8-fold mirror area is determined to be a third magnification corresponding to the virtual-fold mirror.
S402, controlling the virtual magnifier to be kept on at the third rate.
In the embodiment of the application, before the selection mark does not exceed the multiple multiplying power areas, the virtual multiplying power area is opened at a third multiplying power, and meanwhile, a second game scene corresponding to the virtual multiplying power area at the third multiplying power is displayed on a graphical user interface. Correspondingly, after the selection mark exceeds the multiple multiplying power areas, controlling the virtual multiplying power mirror to still be kept on at the third multiplying power; correspondingly, a second game scene corresponding to the virtual magnifier at the third time rate is still displayed on the graphical user interface.
Further, as shown in fig. 5, in the method for controlling a virtual magnifier in a game according to the embodiment of the present application, the selecting the magnifier closing area according to the second displacement of the second touch point includes:
s501, determining a fourth displacement of the selection mark according to a second displacement of the second touch point and a synchronous sliding proportion of the second sliding operation and the selection mark; the synchronous sliding proportion is the ratio of the unit sliding distance of the second sliding operation to the sliding distance of the selection mark.
In the embodiment of the present application, the selection mark indicates a magnification area selected by the second sliding operation, where the second sliding operation and the selection mark have a preset synchronous sliding ratio (optionally, the sliding ratio is the same as the preset synchronous sliding ratio between the first sliding operation and the selection mark), and the synchronous sliding ratio is a ratio of a unit sliding distance of the second sliding operation to a sliding distance of the selection mark. After the player triggers the second sliding operation, calculating a fourth displacement of the selection mark according to the second displacement of the second touch point of the second sliding operation and the synchronous sliding proportion.
S502, selecting the closing area of the magnifier according to the second display position of the selection mark and the fourth displacement of the selection mark.
Here, the selection flag selects the power mirror closing area (e.g., the "closing" area in fig. 1c and 1 d) according to the current position of the selection flag (the second display position of either power area or the second display position of the non-power area) and the fourth displacement of the selection flag.
In another implementation manner, the touch operation in the embodiment of the present application may include two touch operations, specifically, the touch operation includes:
and simultaneously, a first touch operation and a second touch operation which are applied to the magnifier control region.
The player triggers touch operations with the left hand and the right hand simultaneously, and correspondingly, the left hand triggers the first touch operation and the right hand triggers the second touch operation. As shown in fig. 1b, the player's left and right fingers simultaneously click on a magnifier control region, which may be the center of the graphical user interface (i.e., screen).
Further, as shown in fig. 6, in the method for controlling a virtual multiple mirror in a game provided in the embodiment of the present application, the displaying, in the gui, multiple magnification areas corresponding to the virtual multiple mirror includes:
S601, displaying a first group of magnification areas corresponding to the virtual magnification in the graphical user interface, wherein the first group of magnification areas comprise the plurality of magnification areas, based on the first touch operation.
Specifically, the first group of magnification areas includes a plurality of magnification areas, and the plurality of magnification areas are sequentially arranged from the inner side to the outer side of the graphical user interface in a manner of corresponding magnification from small to large. As shown in fig. 1b and 1c, the first touch operation is located at the left side of the graphical user interface 100, and accordingly, the first set of magnification areas includes a 2-magnification area, a 4-magnification area, and an 8-magnification area, which are sequentially disposed from the inside to the outside (i.e., right to left) of the graphical user interface 100 at the left side of the graphical user interface 100.
And S602, displaying a second group of magnification areas corresponding to the virtual magnification lens and comprising the plurality of magnification areas in the graphical user interface based on the second touch operation.
Specifically, the second set of magnification areas also includes a plurality of magnification areas, which are the same as the plurality of magnification areas in the first set of magnification areas; the multiple multiplying power areas are sequentially arranged from the inner side to the outer side of the graphical user interface in a manner of corresponding multiplying power from small to large. As shown in fig. 1b and 1c, the second touch operation is located on the right side of the graphical user interface 100, and accordingly, the second set of magnification areas includes a 2-magnification area, a 4-magnification area, and an 8-magnification area, which are sequentially disposed from the inside to the outside (i.e., left to right) of the graphical user interface 100 on the right side of the graphical user interface 100.
In addition, in the embodiment of the present application, the power mirror closing area includes: a first magnifier closing region and a second magnifier closing region; the first magnifier closing region is arranged adjacent to a first multiplying power region in the first group of multiplying power regions; the second magnification region is disposed adjacent to the first magnification region of the second set of magnification regions.
The following description will be given by taking, as an example, a plurality of magnification areas arranged in order from the inside to the outside of the graphical user interface in such a manner that the corresponding magnification is from small to large: as shown in fig. 1c, the first magnification (2 magnification) is the minimum magnification corresponding to the virtual magnification, the first magnification-closing region is located inside (i.e., on the right side) the first magnification region (i.e., the 2 magnification region including the "2 magnification" magnification designation on the left side of the graphical user interface 100) in the first set of magnification regions, and the second magnification-closing region is located inside (i.e., on the left side) the first magnification region (i.e., the 2 magnification region including the "2 magnification" magnification designation on the right side of the graphical user interface 100) in the second set of magnification regions.
Correspondingly, the first sliding operation includes: a first sliding operation triggered by the player by the left hand and continuous with the first touch operation, and a first sliding operation triggered by the player by the right hand and continuous with the second touch operation. The second sliding operation includes: the second sliding operation which is triggered by the left hand and is continuous with the first touch operation or the first sliding operation by the player, and the second sliding operation which is triggered by the right hand and is continuous with the second touch operation or the first sliding operation by the player. Specifically, when the left hand and the right hand of the player trigger the second sliding operation at the same time, the virtual magnifier is closed, and a third game scene matching the current game progress is displayed on the graphical user interface.
Further, in the method for controlling a virtual magnifier in a game according to the embodiment of the present application, the adjusting the first magnification of the virtual magnifier to the second magnification corresponding to the second magnification region includes:
And when the second magnification region selected by the first touch operation in the first group of magnification regions is consistent with the second magnification region selected by the second touch operation in the second group of magnification regions, adjusting the first magnification of the virtual magnifier to a second magnification corresponding to the second magnification region.
According to the method for controlling the virtual magnifier in the game, provided by the embodiment of the application, a player starts a magnification adjustment control (namely, displays a plurality of magnification areas) on a graphical user interface through touch operation on a magnifier control area, at the moment, the started virtual magnifier starts with a first magnification, then the player determines the first displacement of a first touch point of the first sliding operation according to the action position of a target touch point of the touch operation through the first sliding operation which acts on the magnifier control area and is continuous with the touch operation, a second magnification area is selected from a plurality of magnification areas according to the first displacement of the first touch point, and the first magnification of the virtual magnifier is adjusted to the second magnification corresponding to the second magnification area, after the magnification adjustment control is started, the adjusted magnification is determined through the movement displacement of the first sliding operation which triggers the magnifier control area and is continuous with the touch operation, and the magnifier of the virtual magnifier is switched, and the mode does not need to trigger the control by the fixed magnifier, so that the occupied interface space is avoided; the continuity of player operation is guaranteed, the operation difficulty of a user is reduced, and the man-machine interaction efficiency is improved.
Based on the same inventive concept, the embodiment of the application also provides a control device of the virtual multiple mirror in the game corresponding to the control method of the virtual multiple mirror in the game, and because the principle of solving the problem by the device in the embodiment of the application is similar to that of the control method of the virtual multiple mirror in the game in the embodiment of the application, the implementation of the device can refer to the implementation of the method, and the repetition is omitted.
Referring to fig. 7, a control device for virtual magnifier in game provided by an embodiment of the present application provides a graphical user interface through a terminal device, and provides a magnifier control area in the graphical user interface, where the control device includes:
a first display module 701, configured to display, on the graphical user interface, a first game scene corresponding to the opened virtual magnifier under a first magnification in response to a touch operation acting on the magnifier control region; and displaying a plurality of magnification areas corresponding to the virtual magnifier in the graphical user interface, wherein the plurality of magnification areas at least comprise a first magnification area and a second magnification area, the first magnification area corresponds to a first magnification, and the second magnification area corresponds to a second magnification;
a first determining module 702, configured to determine, in response to a first sliding operation that acts on the magnifier control region and is continuous with the touch operation, a first displacement of a first touch point of the first sliding operation according to an action position of a target touch point of the touch operation; the initial position of the first touch point is the same as the action position of the target touch point;
A first selection module 703, configured to select a second magnification region from the multiple magnification regions according to a first displacement of the first touch point;
and the adjusting module 704 is configured to adjust the first magnification of the virtual magnifier to a second magnification corresponding to the second magnification region.
In one possible embodiment, the control device further includes:
The second display module is used for displaying a plurality of multiplying power areas corresponding to the virtual multiplying power in the graphical user interface and displaying a multiplying power closing area in the graphical user interface, wherein the multiplying power closing area is arranged adjacent to the multiplying power areas;
a second determining module, configured to determine a second displacement of a second touch point of the second sliding operation in response to the second sliding operation acting on the magnifier control region; wherein the second sliding operation is opposite to the sliding direction of the first sliding operation; the second sliding operation is a continuous operation of the touch operation or the first sliding operation;
The second selection module is used for selecting the closing area of the magnifier according to the second displacement of the second touch point;
And the first closing module is used for closing the virtual magnifier.
In one possible implementation, the second determining module determines a second displacement of a second touch point of the second sliding operation, including:
When the second sliding operation is a continuous operation of the touch operation, determining a second displacement of a second touch point of the second sliding operation according to an action position of a target touch point of the touch operation;
And when the second sliding operation is a continuous operation of the first sliding operation, determining a second displacement of a second touch point of the second sliding operation according to the stay position of the first touch point of the first sliding operation.
In one possible embodiment, the control device further includes:
The providing module is used for providing a selection mark in the first multiplying power area according to the action position of the target touch point of the touch operation; wherein the first display position of the selection mark in the first rate region corresponds to the action position of the target touch point; wherein the selection flag slides synchronously following the first sliding operation or the second sliding operation; the selection flag is used for indicating a magnification region selected by the first sliding operation or is used for indicating a magnification region or a magnification closing region selected by the second sliding operation.
In a possible implementation manner, the first selecting module 703 selects, according to the first displacement of the first touch point, a second magnification region from the multiple magnification regions, including:
determining a third displacement of the selection mark according to the first displacement of the first touch point and the synchronous sliding proportion of the first sliding operation and the selection mark; the synchronous sliding proportion is the ratio of the unit sliding distance of the first sliding operation to the sliding distance of the selection mark;
And selecting a second multiplying power area from the multiplying power areas according to the first display position of the selection mark and the third displacement of the selection mark.
In one possible embodiment, the control device further includes:
the third determining module is used for determining a third multiplying power corresponding to the virtual multiplying power mirror when the selection mark exceeds the multiple multiplying power areas in the process that the selection mark slides synchronously along with the first sliding operation; the third multiplying power is the multiplying power corresponding to the third multiplying power area closest to the selection mark in the multiple multiplying power areas;
and the first control module is used for controlling the virtual magnifier to be kept on at the third multiplying power.
In one possible implementation manner, the second selecting module selects the magnifier closing region according to the second displacement of the second touch point, including:
Determining a fourth displacement of the selection mark according to the second displacement of the second touch point and the synchronous sliding proportion of the second sliding operation and the selection mark; wherein the synchronous sliding proportion is the ratio of the unit sliding distance of the second sliding operation to the sliding distance of the selection mark;
and selecting the closing area of the magnifier according to the second display position of the selection mark and the fourth displacement of the selection mark.
In one possible implementation manner, each magnification area comprises a magnification mark, and the magnification mark is determined according to the magnification corresponding to the magnification area; and the corresponding multiplying powers of different multiplying power areas in the multiplying power areas are different.
In one possible implementation manner, the multiple multiplying power areas are arranged continuously from small multiplying power to large multiplying power; or the multiple multiplying power areas are continuously arranged from large multiplying power to small multiplying power.
In one possible implementation manner, the multiple magnification areas are sequentially arranged from the inner side to the outer side of the graphical user interface in a manner of corresponding magnification from small to large.
In one possible implementation manner, the first magnification is a preset magnification, and the first magnification is a minimum magnification corresponding to the virtual magnifier or a maximum magnification corresponding to the virtual magnifier;
Or the first multiplying power is the multiplying power of the virtual magnifier after the previous adjustment.
In one possible implementation, the touch operation includes:
and simultaneously, a first touch operation and a second touch operation which are applied to the magnifier control region.
In a possible implementation manner, the first display module 701 displays, in the graphical user interface, a plurality of magnification areas corresponding to the virtual magnifier, including:
Based on the first touch operation, displaying a first group of magnification areas corresponding to the virtual magnification in the graphical user interface, wherein the first group of magnification areas comprises the plurality of magnification areas;
And based on the second touch operation, displaying a second group of magnification areas corresponding to the virtual magnifier and comprising the multiple magnification areas in the graphical user interface.
In one possible embodiment, the magnifier closing region includes: a first magnifier closing region and a second magnifier closing region; the first magnifier closing region is arranged adjacent to a first multiplying power region in the first group of multiplying power regions; the second magnification region is disposed adjacent to the first magnification region of the second set of magnification regions.
In one possible implementation, the adjusting module 704 adjusts the first magnification of the virtual magnifier to a second magnification corresponding to the second magnification region, including:
And when the second magnification region selected by the first touch operation in the first group of magnification regions is consistent with the second magnification region selected by the second touch operation in the second group of magnification regions, adjusting the first magnification of the virtual magnifier to a second magnification corresponding to the second magnification region.
In one possible embodiment, the control device further includes:
The second control module is used for responding to the end of the first sliding operation and controlling the virtual magnifier to be kept on at the second multiplying power;
And the second closing module is used for closing the plurality of multiplying power areas and the multiplying mirror closing area which are displayed.
In one possible embodiment, the control device further includes:
The judging module is used for judging whether the virtual magnifier controlled by the magnifier control region is started or not when responding to the touch operation acted on the magnifier control region;
and the starting module is used for starting the virtual magnifier if not.
According to the control device for the virtual magnifier in the game, provided by the embodiment of the application, a player starts a magnification adjustment control (namely, displays a plurality of magnification areas) on a graphical user interface through touch operation on a magnifier control area, at the moment, the started virtual magnifier starts with a first magnification, then the player determines the first displacement of a first touch point of the first sliding operation according to the action position of a target touch point of the touch operation through the first sliding operation which acts on the magnifier control area and is continuous with the touch operation, a second magnification area is selected from a plurality of magnification areas according to the first displacement of the first touch point, and the first magnification of the virtual magnifier is adjusted to the second magnification corresponding to the second magnification area, after the magnification adjustment control is started, the adjusted magnification is determined through the movement displacement of the first sliding operation which triggers the magnifier control area and is continuous with the touch operation, and the magnifier of the virtual magnifier is switched, and the mode does not need to trigger the control by the fixed magnifier, so that the occupied interface space is avoided; the continuity of player operation is guaranteed, the operation difficulty of a user is reduced, and the man-machine interaction efficiency is improved.
As shown in fig. 8, an electronic device 800 provided in an embodiment of the present application includes: a processor 801, a memory 802 and a bus, the memory 802 storing machine readable instructions executable by the processor 801, the processor 801 and the memory 802 communicating via the bus when the electronic device is running, the processor 801 executing the machine readable instructions to perform the steps of the method of controlling a virtual magnifier in a game as described above.
Specifically, the above-described memory 802 and processor 801 can be general-purpose memories and processors, and are not particularly limited herein, and when the processor 801 runs a computer program stored in the memory 802, the above-described method of controlling a virtual magnifier in a game can be executed.
Corresponding to the method for controlling the virtual magnifier in the game, the embodiment of the application also provides a computer readable storage medium, wherein the computer readable storage medium is stored with a computer program, and the computer program executes the steps of the method for controlling the virtual magnifier in the game when being run by a processor.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described system and apparatus may refer to corresponding procedures in the method embodiments, and are not repeated in the present disclosure. In the several embodiments provided by the present application, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. The above-described apparatus embodiments are merely illustrative, and the division of the modules is merely a logical function division, and there may be additional divisions when actually implemented, and for example, multiple modules or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some communication interface, indirect coupling or communication connection of devices or modules, electrical, mechanical, or other form.
The modules described as separate components may or may not be physically separate, and components shown as modules may or may not be physical units, may be located in one place, or may be distributed over multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a non-volatile computer readable storage medium executable by a processor. Based on this understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a usb disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk, etc.
The foregoing is merely illustrative of the present application, and the present application is not limited thereto, and any person skilled in the art will readily appreciate variations or alternatives within the scope of the present application. Therefore, the protection scope of the application is subject to the protection scope of the claims.

Claims (19)

1. A method for controlling a virtual magnifier in a game, wherein a graphical user interface is provided through a terminal device, and a magnifier control region is provided in the graphical user interface, the control method comprising:
Responding to the touch operation acted on the multiple mirror control area, and displaying a first game scene corresponding to the opened virtual multiple mirror under a first multiplying power on the graphical user interface; and displaying a plurality of magnification areas corresponding to the virtual magnifier in the graphical user interface, wherein the plurality of magnification areas at least comprise a first magnification area and a second magnification area, the first magnification area corresponds to a first magnification, and the second magnification area corresponds to a second magnification;
Responding to a first sliding operation continuous with the touch operation, and determining a first displacement of a first touch point of the first sliding operation according to an action position of a target touch point of the touch operation; the initial position of the first touch point is the same as the action position of the target touch point; the touch operation includes: a first touch operation and a second touch operation simultaneously acting on the magnification lens control area; the first sliding operation includes: a first sliding operation continuous with the first touch operation and a first sliding operation continuous with the second touch operation;
And selecting a second magnification region from the multiple magnification regions according to the first displacement of the first touch point, and adjusting the first magnification of the virtual magnifier to a second magnification corresponding to the second magnification region.
2. The method for controlling a virtual magnifier in a game according to claim 1, wherein said method for controlling further comprises, while displaying a plurality of magnification areas corresponding to said virtual magnifier in said graphical user interface:
displaying a magnification closing region in the graphical user interface, the magnification closing region being disposed adjacent to the plurality of magnification regions;
Determining a second displacement of a second touch point of the second sliding operation in response to the second sliding operation acting on the magnifier control region; wherein the second sliding operation is opposite to the sliding direction of the first sliding operation; the second sliding operation is a continuous operation of the touch operation or the first sliding operation;
and selecting the closing area of the double mirror according to the second displacement of the second touch point, and closing the virtual double mirror.
3. The method for controlling a virtual magnifier in a game according to claim 2, wherein said determining a second displacement of a second touch point of said second sliding operation includes:
When the second sliding operation is a continuous operation of the touch operation, determining a second displacement of a second touch point of the second sliding operation according to an action position of a target touch point of the touch operation;
And when the second sliding operation is a continuous operation of the first sliding operation, determining a second displacement of a second touch point of the second sliding operation according to the stay position of the first touch point of the first sliding operation.
4. The method for controlling a virtual magnifier in a game according to claim 2, said method further comprising:
Providing a selection mark in the first multiplying power area according to the action position of the target touch point of the touch operation; wherein the first display position of the selection mark in the first rate region corresponds to the action position of the target touch point; wherein the selection flag slides synchronously following the first sliding operation or the second sliding operation; the selection flag is used for indicating a magnification region selected by the first sliding operation or is used for indicating a magnification region or a magnification closing region selected by the second sliding operation.
5. The method of in-game virtual magnifier control according to claim 4, wherein said selecting a second magnification region among said plurality of magnification regions according to the first displacement of said first touch point, comprises:
determining a third displacement of the selection mark according to the first displacement of the first touch point and the synchronous sliding proportion of the first sliding operation and the selection mark; the synchronous sliding proportion is the ratio of the unit sliding distance of the first sliding operation to the sliding distance of the selection mark;
And selecting a second multiplying power area from the multiplying power areas according to the first display position of the selection mark and the third displacement of the selection mark.
6. The method for controlling a virtual magnifier in a game according to claim 4, wherein, in the process of synchronously sliding said selection mark along with said first sliding operation, said control method further comprises:
When the selection mark exceeds the multiple multiplying power areas, determining a third multiplying power corresponding to the virtual multiplying power; the third multiplying power is the multiplying power corresponding to the third multiplying power area closest to the selection mark in the multiple multiplying power areas;
Controlling the virtual magnifier to be kept on at the third rate.
7. The method for controlling a virtual magnifier in a game according to claim 4, wherein said selecting said magnifier closing region according to the second displacement of said second touch point includes:
Determining a fourth displacement of the selection mark according to the second displacement of the second touch point and the synchronous sliding proportion of the second sliding operation and the selection mark; wherein the synchronous sliding proportion is the ratio of the unit sliding distance of the second sliding operation to the sliding distance of the selection mark;
and selecting the closing area of the magnifier according to the second display position of the selection mark and the fourth displacement of the selection mark.
8. The method for controlling a virtual magnifier in a game according to claim 1, wherein each magnification area comprises a magnification mark, and the magnification mark is determined according to the magnification corresponding to the magnification area; and the corresponding multiplying powers of different multiplying power areas in the multiplying power areas are different.
9. The method for controlling a virtual magnifier in a game according to claim 8, wherein said plurality of magnification areas are arranged in succession from small to large in correspondence with the magnification; or the multiple multiplying power areas are continuously arranged from large multiplying power to small multiplying power.
10. The method according to claim 8, wherein the plurality of magnification areas are arranged in order from the inside to the outside of the graphical user interface in such a manner that the corresponding magnification is from small to large.
11. The method for controlling a virtual magnifier in a game according to claim 1, wherein the first magnification is a preset magnification, and the first magnification is a minimum magnification corresponding to the virtual magnifier or a maximum magnification corresponding to the virtual magnifier;
Or the first multiplying power is the multiplying power of the virtual magnifier after the previous adjustment.
12. The method for controlling a virtual magnifier in a game according to claim 2, wherein said displaying a plurality of magnification areas corresponding to said virtual magnifier in said graphic user interface comprises:
Based on the first touch operation, displaying a first group of magnification areas corresponding to the virtual magnification in the graphical user interface, wherein the first group of magnification areas comprises the plurality of magnification areas;
And based on the second touch operation, displaying a second group of magnification areas corresponding to the virtual magnifier and comprising the multiple magnification areas in the graphical user interface.
13. The method of controlling a virtual magnifier in a game according to claim 12, wherein said magnifier closing region comprises: a first magnifier closing region and a second magnifier closing region; the first magnifier closing region is arranged adjacent to a first multiplying power region in the first group of multiplying power regions; the second magnification region is disposed adjacent to the first magnification region of the second set of magnification regions.
14. The method for controlling a virtual magnifier in a game according to claim 12, wherein said adjusting the first magnification of said virtual magnifier to the second magnification corresponding to the second magnification region comprises:
and when the first sliding operation continuous with the first touch operation is consistent with the second magnification region selected in the first group magnification region and the first sliding operation continuous with the second touch operation is consistent with the second magnification region selected in the second group magnification region, adjusting the first magnification of the virtual magnifier to a second magnification corresponding to the second magnification region.
15. The method for controlling a virtual magnifier in a game according to claim 2, said method further comprising:
and controlling the virtual magnifier to be kept on at the second magnification and to close the displayed multiple magnification areas and the magnifier closing area in response to the end of the first sliding operation.
16. The method for controlling a virtual magnifier in a game according to claim 6, wherein said method for controlling further comprises, in response to a touch operation applied to said magnifier control region:
Judging whether the virtual magnifier controlled by the magnifier control region is started or not; and if not, starting the virtual magnifier.
17. A control apparatus for virtual magnifier in game, wherein a graphic user interface is provided through a terminal device, and a magnifier control region is provided in the graphic user interface, the control apparatus comprising:
The first display module is used for responding to the touch operation acted on the double-mirror control area and displaying a first game scene corresponding to the opened virtual double-mirror under a first multiplying power on the graphical user interface; and displaying a plurality of magnification areas corresponding to the virtual magnifier in the graphical user interface, wherein the plurality of magnification areas at least comprise a first magnification area and a second magnification area, the first magnification area corresponds to a first magnification, and the second magnification area corresponds to a second magnification;
The first determining module is used for responding to a first sliding operation continuous to the touch operation and determining a first displacement of a first touch point of the first sliding operation according to an action position of a target touch point of the touch operation; the initial position of the first touch point is the same as the action position of the target touch point; the touch operation includes: a first touch operation and a second touch operation simultaneously acting on the magnification lens control area; the first sliding operation includes: a first sliding operation continuous with the first touch operation and a first sliding operation continuous with the second touch operation;
the first selection module is used for selecting a second multiplying power area from the multiplying power areas according to the first displacement of the first touch point;
And the adjusting module is used for adjusting the first multiplying power of the virtual multiplying power mirror to a second multiplying power corresponding to the second multiplying power area.
18. An electronic device, comprising: a processor, a storage medium and a bus, the storage medium storing machine-readable instructions executable by the processor, the processor and the storage medium communicating over the bus when the electronic device is running, the processor executing the machine-readable instructions to perform the steps of the method of controlling a virtual fold in a game as claimed in any one of claims 1 to 16.
19. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a computer program which, when executed by a processor, performs the steps of the method of controlling a virtual magnifier in a game according to any one of claims 1 to 16.
CN202110153399.7A 2021-02-03 Method and device for controlling virtual magnifier in game, electronic equipment and storage medium Active CN112791398B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110153399.7A CN112791398B (en) 2021-02-03 Method and device for controlling virtual magnifier in game, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110153399.7A CN112791398B (en) 2021-02-03 Method and device for controlling virtual magnifier in game, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112791398A CN112791398A (en) 2021-05-14
CN112791398B true CN112791398B (en) 2024-07-16

Family

ID=

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110339562A (en) * 2019-08-01 2019-10-18 腾讯科技(深圳)有限公司 Control method, device, terminal and the storage medium of virtual objects
CN110433489A (en) * 2018-11-28 2019-11-12 网易(杭州)网络有限公司 Control method, device, storage medium and the electronic device aimed in game

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110433489A (en) * 2018-11-28 2019-11-12 网易(杭州)网络有限公司 Control method, device, storage medium and the electronic device aimed in game
CN110339562A (en) * 2019-08-01 2019-10-18 腾讯科技(深圳)有限公司 Control method, device, terminal and the storage medium of virtual objects

Similar Documents

Publication Publication Date Title
CN111124226B (en) Game screen display control method and device, electronic equipment and storage medium
JP7045486B2 (en) Viewing angle adjustment method, electronic devices, and computer programs
CN108579083B (en) Virtual scene display method and device, electronic device and storage medium
CN107132981B (en) Display control method and device, storage medium, the electronic equipment of game picture
JP7477640B2 (en) Virtual environment screen display method, device, and computer program
CN111744184B (en) Control showing method in virtual scene, computer equipment and storage medium
CN107213636B (en) Lens moving method, device, storage medium and processor
CN111888766B (en) Information processing method and device in game, electronic equipment and storage medium
CN113398601B (en) Information transmission method, information transmission device, computer-readable medium, and apparatus
CN110917618B (en) Method, device, equipment and medium for controlling virtual object in virtual environment
CN112619137A (en) Game picture switching method and device, electronic equipment and storage medium
CN112843708B (en) Configuration method and device of game equipment, electronic equipment and storage medium
CN111957041A (en) Map viewing method in game, terminal, electronic equipment and storage medium
CN112330823B (en) Virtual prop display method, device, equipment and readable storage medium
WO2023045375A1 (en) Method and apparatus for spectating game after character is killed, and electronic device and storage medium
CN110721467A (en) Display control method, electronic device, and computer-readable storage medium
CN113476825B (en) Role control method, role control device, equipment and medium in game
CN112791398B (en) Method and device for controlling virtual magnifier in game, electronic equipment and storage medium
CN113134232B (en) Virtual object control method, device, equipment and computer readable storage medium
CN112774188A (en) Method and device for adjusting virtual time mirror in game, electronic equipment and storage medium
CN111013136B (en) Movement control method, device, equipment and storage medium in virtual scene
CN112619133A (en) Game picture display method, device, equipment and storage medium
JP6831405B2 (en) Game programs and game equipment
CN113687761B (en) Game control method and device, electronic equipment and storage medium
CN112791398A (en) Method and device for controlling virtual time-of-use mirror in game, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
SE01 Entry into force of request for substantive examination
GR01 Patent grant