CN112791398A - Method and device for controlling virtual time-of-use mirror in game, electronic equipment and storage medium - Google Patents

Method and device for controlling virtual time-of-use mirror in game, electronic equipment and storage medium Download PDF

Info

Publication number
CN112791398A
CN112791398A CN202110153399.7A CN202110153399A CN112791398A CN 112791398 A CN112791398 A CN 112791398A CN 202110153399 A CN202110153399 A CN 202110153399A CN 112791398 A CN112791398 A CN 112791398A
Authority
CN
China
Prior art keywords
magnification
virtual
area
mirror
areas
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.)
Granted
Application number
CN202110153399.7A
Other languages
Chinese (zh)
Other versions
CN112791398B (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
Priority date (The priority date 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 date listed.)
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

Images

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/50Controlling the output signals based on the game progress
    • A63F13/52Controlling the output signals based on the game progress involving aspects of the displayed game scene
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/50Controlling the output signals based on the game progress
    • A63F13/53Controlling the output signals based on the game progress involving additional visual information provided to the game scene, e.g. by overlay to simulate a head-up display [HUD] or displaying a laser sight in a shooting game
    • A63F13/533Controlling the output signals based on the game progress involving additional visual information provided to the game scene, e.g. by overlay to simulate a head-up display [HUD] or displaying a laser sight in a shooting game for prompting the player, e.g. by displaying a game menu
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/80Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game specially adapted for executing a specific type of game
    • A63F2300/8076Shooting

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Physics & Mathematics (AREA)
  • Optics & Photonics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application provides a method and a device for controlling a virtual double mirror in a game, electronic equipment and a storage medium, wherein the method comprises the following steps: responding to touch operation acted on a zoom lens control area, and displaying a first game scene corresponding to the started virtual zoom lens under a first magnification on a graphical user interface; displaying a plurality of multiplying power areas corresponding to the virtual multiplying mirror in a graphical user interface; responding to a first sliding operation which acts on the double mirror control area and is continuous with the touch operation, and determining a 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; according to the first displacement of the first touch point, a second magnification area is selected from the multiple magnification areas, and the first magnification of the virtual mirror is adjusted to be a second magnification corresponding to the second magnification area. According to the method, a fixed double-lens trigger control is not needed, and the occupation of interface space is avoided; the consistency of player operation is ensured, the operation difficulty of the user is reduced, and the human-computer interaction efficiency is improved.

Description

Method and device for controlling virtual time-of-use mirror in game, electronic equipment and storage medium
Technical Field
The application relates to the technical field of games, in particular to a method and a device for controlling a virtual double mirror in a game, an electronic device and a storage medium.
Background
Currently, in shooting games, players play games using firearms and view the field of view of the game at normal magnification; after the player picks up the double mirror, the game visual field under the multiplying power can be viewed through the double mirror installed in the gun. In the prior art, a double-mirror trigger control corresponding to a double mirror is provided in a graphical user interface, and a player opens a sliding magnification control by operating the double-mirror trigger control, and adjusts the magnification of the double mirror in a firearm based on the sliding magnification control.
However, in the above manner, the zoom lens trigger control is fixed in the interface, which results in occupying the interface space; moreover, the operation of adjusting the magnification of the pair of magnifying lenses is discontinuous, so that the operation difficulty of a user is increased, and the human-computer interaction efficiency is low.
Disclosure of Invention
In view of this, an object of the present application is to provide a method and an apparatus for controlling a virtual double mirror in a game, an electronic device, and a storage medium, which do not need a fixed double mirror trigger control, and avoid occupying an interface space; moreover, the method ensures the consistency of player operation, reduces the operation difficulty of the user and improves the human-computer interaction efficiency.
In a first aspect, an embodiment of the present application provides a method for controlling a virtual zoom lens in a game, where a terminal device provides a graphical user interface, and a zoom lens control area is provided in the graphical user interface, and the method includes:
responding to touch operation acted on the zoom lens control area, and displaying a first game scene corresponding to the started virtual zoom lens under a first magnification on the graphical user interface; displaying a plurality of magnification areas corresponding to the virtual microscope 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 double mirror control area and is continuous with 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 starting position of the first touch point is the same as the acting position of the target touch point;
according to the first displacement of the first touch point, selecting a second magnification area from the multiple magnification areas, and adjusting the first magnification of the virtual magnifying lens to a second magnification corresponding to the second magnification area.
In a possible implementation manner, while displaying a plurality of magnification areas corresponding to the virtual magnification mirror in the graphical user interface, the control method further includes:
displaying a multiple-magnification-ratio closed area in the graphical user interface, wherein the multiple-magnification-ratio closed area is arranged adjacent to the multiple magnification ratio areas;
responding to a second sliding operation acted on the double-lens control area, and determining a second displacement of a second touch point of the second sliding operation; wherein the second sliding operation is in a sliding direction opposite to that 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 mirror closing area according to the second displacement of the second touch point, and closing the virtual mirror.
In one possible implementation, the determining the second displacement of the second touch point of the second sliding operation includes:
when the second sliding operation is the continuous operation of the touch operation, determining a second displacement of a second touch point of the second sliding operation according to the action position of a target touch point of the touch operation;
when the second sliding operation is the continuous operation of the first sliding operation, determining a second displacement of a second touch point of the second sliding operation according to the stop position of the first touch point of the first sliding operation.
In one possible embodiment, the control method further includes:
providing a selection identifier in the first multiplying power area according to the action position of the target touch point of the touch operation; a first display position of the selection identifier in the first magnification area corresponds to an action position of the target touch point; wherein the selection identifier slides synchronously following the first sliding operation or the second sliding operation; the selection mark is used for indicating the magnification area selected by the first sliding operation, or is used for indicating the magnification area or the double mirror closing area selected by the second sliding operation.
In one possible implementation, the selecting a second magnification area among the plurality of magnification areas according to the first displacement of the first touch point includes:
determining a third displacement of the selection identifier according to the first displacement of the first touch point and the synchronous sliding proportion of the first sliding operation and the selection identifier; wherein the synchronous sliding proportion is a ratio of a unit sliding distance of the first sliding operation to a sliding distance of the selection identifier;
and selecting a second magnification area from the plurality of magnification 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 identification exceeds the multiple magnification areas, determining a third magnification corresponding to the virtual double mirror; wherein the third magnification is a magnification corresponding to a third magnification area closest to the selection identifier in the plurality of magnification areas;
controlling the virtual double mirror to remain on at the third rate.
In one possible implementation, the selecting the zoom lens closing area according to the second displacement of the second touch point includes:
determining a fourth displacement of the selection identifier according to a second displacement of the second touch point and a synchronous sliding proportion of the second sliding operation and the selection identifier; wherein the synchronous sliding proportion is a ratio of a unit sliding distance of the second sliding operation to a sliding distance of the selection identifier;
and selecting the double-lens closing area according to the second display position of the selection identifier and the fourth displacement of the selection identifier.
In a possible implementation manner, each magnification area includes a magnification identifier, and the magnification identifier is determined according to a magnification corresponding to the magnification area; the different magnification areas in the multiple magnification areas have different corresponding magnifications.
In a possible implementation manner, the multiple magnification areas are arranged in series from small to large according to the corresponding magnifications; or, the multiple magnification areas are continuously arranged in a mode that the corresponding magnifications are from large to small.
In a possible embodiment, the multiple magnification areas are arranged in sequence from the inner side to the outer side of the graphical user interface in a way that the corresponding magnifications are from small to large.
In a possible implementation manner, the first magnification is a preset magnification, and the first magnification is a minimum magnification corresponding to the virtual multiple mirror or a maximum magnification corresponding to the virtual multiple mirror;
or, the first multiplying power is the multiplying power of the virtual multiplying mirror after the previous adjustment.
In one possible implementation, the touch operation includes:
and simultaneously acting on the first touch operation and the second touch operation of the double-mirror control area.
In a possible embodiment, the displaying, in the graphical user interface, a plurality of magnification areas corresponding to the virtual magnification mirror includes:
displaying a first group of magnification areas comprising the plurality of magnification areas corresponding to the virtual magnification mirror in the graphical user interface based on the first touch operation;
displaying a second group of magnification areas comprising the plurality of magnification areas corresponding to the virtual magnification mirror in the graphical user interface based on the second touch operation.
In one possible embodiment, the power mirror closing region includes: a first mirror-off region and a second mirror-off region; the first power mirror closing region is arranged adjacent to a first power region in the first set of power regions; the second mirror-off region is disposed adjacent to a first magnification region of the second set of magnification regions.
In a possible implementation, the adjusting the first magnification of the virtual mirror to the second magnification corresponding to the second magnification area includes:
when a second magnification area selected by the first touch operation in the first group of magnification areas is consistent with a second magnification area selected by the second touch operation in the second group of magnification areas, adjusting the first magnification of the virtual mirror to a second magnification corresponding to the second magnification area.
In one possible embodiment, the control method further includes:
controlling the virtual double mirror to remain on at the second magnification and to turn off the plurality of magnification areas and the double mirror off area displayed in response to the end of the first sliding operation.
In one possible embodiment, in response to a touch operation applied to the power mirror control area, the control method further includes:
judging whether a virtual double mirror controlled by the double mirror control area is opened or not; if not, the virtual double mirror is started.
In a second aspect, an embodiment of the present application further provides a control apparatus for virtual zoom lens in a game, where a terminal device provides a graphical user interface, and a zoom lens control area is provided in the graphical user interface, and the control apparatus includes:
the first display module is used for responding to touch operation acted on the zoom lens control area and displaying a first game scene corresponding to the started virtual zoom lens under a first magnification on the graphical user interface; displaying a plurality of magnification areas corresponding to the virtual microscope 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 which acts on the double-lens control area and is continuous with 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 starting position of the first touch point is the same as the acting position of the target touch point;
the first selection module is used for selecting a second multiplying power area from the multiple 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 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, wherein the storage medium stores machine-readable instructions executable by the processor, when the electronic device runs, the processor and the storage medium communicate through the bus, and the processor executes the machine-readable instructions to execute the steps of the method for controlling the virtual double mirror in the game according to any one of the first aspect.
In a fourth aspect, the present application further provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to execute the steps of the method for controlling a virtual double mirror in a game according to any one of the first aspect.
According to the method, the device, the electronic equipment and the storage medium for controlling the virtual double mirror in the game, a player enables a magnification adjusting control (namely, a plurality of magnification areas are displayed) on a graphical user interface through touch operation on a double mirror control area, at the moment, the opened virtual double mirror is enabled at a first magnification, then, the player selects a second magnification area from the multiple magnification areas through first sliding operation which is continuous with the touch operation and acts on the double mirror control area, according to the action position of a target touch point of the touch operation, first displacement of a first touch point of the first sliding operation is determined, according to the first displacement of the first touch point, the first magnification of the virtual double mirror is adjusted to a second magnification corresponding to the second magnification area, and through the mode, after the magnification adjusting control is enabled, the magnification of the double mirror control area is triggered, The adjusted multiplying power is determined by the moving displacement of the first sliding operation continuous with the touch operation, and the multiplying mirror switching of the virtual multiplying mirror is carried out, so that a fixed multiplying mirror is not needed to trigger a control, and the occupation of interface space is avoided; the consistency of player operation is ensured, the operation difficulty of the user is reduced, and the human-computer 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 required to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained from the drawings without inventive effort.
FIG. 1a is a flow chart illustrating a method for controlling a virtual double mirror in a game according to an embodiment of the present application;
FIG. 1b is a diagram illustrating contents of a graphical user interface display provided by an embodiment of the present application and a player triggering a touch operation on the graphical user interface;
FIG. 1c shows a schematic diagram showing a graphical user interface displaying a plurality of multiplier areas and a multiplier closing area enabled by a touch operation by a player;
FIG. 1d shows a schematic diagram of determining a second magnification area (i.e., a 4-magnification area) by a first sliding operation that is continuous with a touch operation;
FIG. 1e shows a schematic view of a fourth game scenario with the virtual multiplier adjusted at a second magnification (i.e., 4 magnifications);
FIG. 1f shows a schematic diagram of the selection of the double mirror closed region by a second sliding operation continuous with the touching operation;
FIG. 1g illustrates a schematic diagram showing a third game scenario on a graphical user interface matching a current game progress;
FIG. 2 is a flow chart illustrating another method for controlling a virtual double mirror in a game according to an embodiment of the present application;
FIG. 3 is a flow chart illustrating another method for controlling a virtual double mirror in a game according to an embodiment of the present application;
FIG. 4 is a flow chart illustrating another method for controlling a virtual double mirror in a game according to an embodiment of the present application;
FIG. 5 is a flow chart illustrating another method for controlling a virtual double mirror in a game according to an embodiment of the present application;
FIG. 6 is a flow chart illustrating another method for controlling a virtual double mirror in a game according to an embodiment of the present application;
FIG. 7 is a schematic structural diagram illustrating a control device for a virtual double mirror in a game according to an embodiment of the present application;
fig. 8 shows a schematic structural diagram of an electronic device provided in an embodiment of the present application.
Detailed Description
In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it should be understood that the drawings in the present application are for illustrative and descriptive purposes only and are not used to limit the scope of protection of the present application. Additionally, it should be understood that the schematic drawings are not necessarily drawn to scale. The flowcharts used in this application illustrate operations implemented according to some embodiments of the present application. It should be understood that the operations of the flow diagrams may be performed out of order, and steps without logical context may be performed in reverse order or simultaneously. One skilled in the art, under the guidance of this application, may add one or more other operations to, or remove one or more operations from, the flowchart.
In addition, the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present application without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that in the embodiments of the present application, the term "comprising" is used to indicate the presence of the features stated hereinafter, but does not exclude the addition of further features.
In shooting games, when a player adjusts a double-lens in a firearm, the player needs to click a fixed double-lens trigger control to trigger a multiplying power adjusting control at another position, and click the multiplying power adjusting control at another position to adjust the multiplying power of the double-lens, however, in this way, the double-lens trigger control needs to be fixedly displayed in an interface, so that the interface space is occupied; moreover, the magnification adjustment operation of the double mirror is discontinuous, so that the operation difficulty of a user is increased, and the human-computer interaction efficiency is low. Based on this, the embodiment of the application provides a method and a device for controlling a virtual double mirror in a game, an electronic device and a storage medium, a fixed double mirror trigger control is not needed, and the occupation of an interface space is avoided; moreover, the method ensures the consistency of player operation, reduces the operation difficulty of the user and improves the human-computer interaction efficiency.
In one embodiment of the application, the control method of the virtual double mirror in the game can be operated on a terminal device or a server. The terminal device may be a local terminal device. When the processing method for decorating the prop runs on the server, the method can be implemented and executed based on a cloud interaction system, wherein the cloud interaction system comprises the server and a client device (i.e. a terminal device).
In an optional embodiment, various cloud applications may be run under the cloud interaction system, for example: and (5) cloud games. Taking a cloud game as an example, a 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 the operation of the processing method for decorating the props are completed on a cloud game server, and the client device is used for receiving and sending data and presenting the game pictures, 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; however, the terminal device performing the information processing is a cloud game server in the cloud. When a game is played, a 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, data such as game pictures and the like are encoded and compressed, the data are returned to the client device through a network, and finally the data are decoded through the client device and the game pictures are output.
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 for presenting a game screen. The local terminal device is used for interacting with the player through a graphical user interface, namely, a game program is downloaded and installed and operated through an electronic device conventionally. The manner in which the local terminal device provides the graphical user interface to the player may include a variety of ways, for example, it may be rendered for display on a display screen of the terminal or provided to the player through holographic projection. For example, the local terminal device may include a display screen for presenting a graphical user interface including a game screen and a processor for running the game, generating the graphical user interface, and controlling display of the graphical user interface on the display screen.
For the convenience of understanding of the embodiments of the present application, detailed descriptions are provided below for a method, an apparatus, an electronic device, and a storage medium for controlling a virtual multiplier in a game according to the embodiments of the present application.
As shown in fig. 1a, for a method for controlling a virtual zoom lens in a game provided in an embodiment of the present application, a terminal device provides a graphical user interface, and a zoom lens control area is provided in the graphical user interface, where the method includes:
s101, responding to touch operation acted on the zoom lens control area, and displaying a first game scene corresponding to the opened virtual zoom lens under a first magnification on the graphical user interface; and displaying a plurality of magnification areas corresponding to the virtual microscope 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 double mirror control area and is continuous with 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 starting position of the first touch point is the same as the acting position of the target touch point.
S103, according to the first displacement of the first touch point, selecting a second magnification area from the multiple magnification areas, and adjusting the first magnification of the virtual mirror to a second magnification corresponding to the second magnification area.
In the method for controlling a virtual double mirror in a game provided by the embodiment of the application, a player starts a magnification adjustment control (i.e. displays multiple magnification areas) on a graphical user interface through touch operation on a double mirror control area, at this time, the started virtual double mirror is started at a first magnification, then, the player selects a second magnification area in the multiple magnification areas through a first sliding operation which is continuous with the touch operation and acts on the double mirror control area according to an acting position of a target touch point of the touch operation, and adjusts the first magnification of the virtual double mirror to a second magnification corresponding to the second magnification area according to the first displacement of the first touch point, and after the magnification adjustment control is started, the adjusted magnification is determined by triggering the movement displacement of the first sliding operation which is continuous with the touch operation in the double mirror control area, the method does not need a fixed microscope to trigger a control, thereby avoiding occupying interface space; the consistency of player operation is ensured, the operation difficulty of the user is reduced, and the human-computer interaction efficiency is improved.
The above exemplary steps of the embodiments of the present application will be described below by taking the application of the above method to a terminal device as an example.
S101, responding to touch operation acted on the zoom lens control area, and displaying a first game scene corresponding to the opened virtual zoom lens under a first magnification on the graphical user interface; and displaying a plurality of magnification areas corresponding to the virtual microscope 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 present application, the virtual double-lens may be a double-lens pre-assembled on a virtual firearm, or may be a camera. For example, in a shooting game, a player needs to use a virtual gun in the game, and when the player picks up the virtual double mirror, the player can assemble the virtual double mirror on the virtual gun to better play the game.
As shown in fig. 1b, in the embodiment of the present application, a graphical user interface 100 is provided through a terminal device, and a game scene 200, an operation control 101, and an item control 102 of a current game are displayed on the graphical user interface 100. In the game scene 200, a target game character 201 is included, and the target game character 201 is a game character controlled by a player. In the shooting type game, the player can control the target game character 201 to pick up a desired item, such as a firearm, a medicine pack, a bullet, a sighting telescope (including a red dot and a hologram), a virtual double mirror (including a 2-fold mirror, a 3-fold mirror, a 4-fold mirror, a 6-fold mirror, an 8-fold mirror), and the like, by operating the control 101. After the target game character 201 picks up the firearm and the time-of-day mirror, the target firearm 103 currently in use is configured for the target game character 201, and the virtual time-of-day mirror is selected by triggering the item control 102 to fit the virtual time-of-day mirror for the target firearm 103, and accordingly, the target firearm 103 fitted with the virtual time-of-day mirror is displayed in the graphical user interface 100.
For example, the current target firearm used by the target game role 1 is a 98K sniping gun, and the 98K sniping gun is provided with an 8-time lens; accordingly, the target game character 1 is shown in the graphical user interface 100 with a 98K sniping gun equipped with 8 x mirrors.
The touch operation may include one touch operation, or may include two touch operations (for example, including a first touch operation and a second touch operation); responding to touch operation acting on a double-lens control area, and firstly judging whether a virtual double lens controlled by the double-lens control area is opened or not; if not, the virtual double mirror is opened (namely, the virtual double mirror assembled on the target firearm is opened), and a first game scene of the virtual double mirror under a first multiplying power is displayed on a graphical user interface; and if the virtual time mirror is opened, directly displaying a first game scene of the virtual time mirror at the first multiplying power on the graphical user interface. In addition, a plurality of magnification areas corresponding to the virtual magnification mirror can be displayed on the graphical user interface through the touch operation. Optionally, a plurality of magnification areas corresponding to the virtual double mirror are displayed in the virtual double mirror.
The zoom lens control area corresponds to a set range in the graphical user interface, that is, the zoom lens control area is a partial area corresponding to the graphical user interface. Optionally, the zoom lens control area is located at a center of the graphical user interface.
Wherein, the multiple magnification areas at least comprise a first magnification area and a second magnification area; each of the multiple magnification areas corresponds to a magnification, and the magnifications corresponding to different magnification areas are different. For example, 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, each magnification area comprises a magnification identification, and the magnification identification is determined according to the magnification corresponding to the magnification area; the different magnification areas in the multiple magnification areas correspond to different magnifications. As shown in fig. 1c and 1d, for example, a 2-magnification area corresponds to 2-magnification and includes a magnification mark of "2-magnification"; the 4-magnification area corresponds to 4 magnifications and comprises a magnification mark of '4-magnification'; the 8-magnification area corresponds to 8 magnifications and comprises a magnification mark of 8 times; and, the different magnification areas correspond to different magnifications. In addition, the 2-magnification area, the 4-magnification area, and the 8-magnification area are arranged in order from the inside to the outside of the graphic user interface 100. In fig. 1c, the virtual double mirror 104 is opened, the lowest magnification (i.e. 2 magnifications) corresponding to the virtual double mirror 104 is started, and accordingly, other magnification areas are displayed outside the 2 magnification area, where the other magnification areas include a 4 magnification area and a 6 magnification area; wherein the player's finger is located within the power control area.
In the embodiment of the present application, the touch operation is located in a multiple magnification control area, and here, there is no limitation on a relationship between the multiple magnification control area and multiple magnification areas, 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 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, the virtual multiple mirrors correspond to at least one magnification (in the embodiment of the present application, multiple virtual multiple mirrors are taken as an example), and the magnifications corresponding to different virtual multiple mirrors are different. For example, when the virtual mirror is a 4-fold mirror, the corresponding magnifications are 4-fold, 3-fold, and 2-fold; when the virtual magnification mirror is an 8-fold mirror, the corresponding magnification is 8-fold, 4-fold, 2-fold, or the like.
Optionally, the first magnification may be a preset magnification corresponding to an initial state of the virtual double mirror, that is, in a state where the magnification of the virtual double mirror is not adjusted, the first magnification is a minimum magnification corresponding to the virtual double mirror, or is a maximum magnification corresponding to the virtual double mirror. Alternatively, the first magnification is a magnification obtained by adjusting the virtual mirror in the previous time, and the magnification may be any magnification.
As shown in fig. 1b, a game scene 200 of the game is displayed on the graphical user interface 100, and after the player triggers a touch operation on the graphical user interface 100, the virtual double mirror 104 is turned on, as shown in fig. 1c, the virtual double mirror 104 is displayed on the graphical user interface 100, and a first game scene 202 at a first magnification can be viewed through the virtual double mirror 104; meanwhile, a plurality of magnification areas 105 corresponding to the virtual mirror 104 are displayed in the graphical user interface 100, and the plurality of magnification areas 105 specifically include a first magnification area (2 magnification areas in fig. 1 c) and other magnification areas (4 magnification areas and 8 magnification areas in fig. 1c, where the second magnification area is 4 magnification areas), and the like.
S102, responding to a first sliding operation which acts on the double mirror control area and is continuous with 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 starting position of the first touch point is the same as the acting position of the target touch point.
In the embodiment of the present application, the player selects the second magnification area from the plurality of magnification areas by the first slide operation continuous with the touch operation, which acts on the zoom control area. 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 area among the multiple magnification areas based on the first displacement. The first sliding operation is a first sliding operation which acts on the double mirror control area 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 acting position of the target touch point, correspondingly, the acting 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, according to the first displacement of the first touch point, selecting a second magnification area from the multiple magnification areas, and adjusting the first magnification of the virtual mirror to a second magnification corresponding to the second magnification area.
In the embodiment of the application, different displacements of the first touch point of the first sliding operation correspond to different selected magnification areas. Therefore, here, according to the first displacement of the first touch point of the first sliding operation, the second magnification area is selected from the multiple magnification areas, and the first magnification of the virtual mirror is adjusted to the second magnification corresponding to the second magnification area.
As shown in fig. 1c to 1d, the first sliding operation of the player moves by a first displacement, accordingly, the second magnification area is determined to be a 4-magnification area according to the first displacement, and the first magnification (i.e., 2 magnifications) corresponding to the virtual mirror 104 is adjusted based on the second magnification (i.e., 4 magnifications) corresponding to the second magnification area (4-magnification area), that is, the currently used 2 magnifications of the virtual mirror 104 are adjusted to 4 magnifications. Wherein fig. 1e shows a fourth game scenario 203 with the virtual multiplier mirror 104 at the adjusted 4-magnification.
Further, an embodiment of the present application provides a method for controlling a virtual zoom lens in a game, where while a plurality of magnification areas corresponding to the virtual zoom lens are displayed in the graphical user interface, the method further includes:
s201, displaying a multiple-magnification-ratio closed area in the graphical user interface, wherein the multiple-magnification-ratio closed area is arranged adjacent to the multiple magnification-ratio areas.
Optionally, the multiple magnification areas are arranged in a continuous manner, and the double mirror closing area is arranged adjacent to the multiple magnification areas, that is, arranged in a continuous manner with the multiple magnification areas. The double-mirror closing area comprises an indication mark, and specifically comprises a closing indication mark as shown in fig. 1 c; in fig. 1c, the above-described power mirror closed region is disposed adjacent to a first magnification region including a magnification flag of "2 times".
S202, responding to a second sliding operation acted on the double-lens control area, and determining a second displacement of a second touch point of the second sliding operation; wherein the second sliding operation is in a sliding direction opposite to that of the first sliding operation; the second sliding operation is a continuous operation of the touch operation or the first sliding operation.
Optionally, the player closes the virtual double mirror by triggering a second sliding operation, which is continuous with the touch operation, applied to the double mirror control area. Specifically, whether the player selects the double mirror closing region or not is judged by determining the displacement of the second sliding operation, and when the second displacement of the second sliding operation determines that the player selects the double mirror closing region, the opened virtual double mirror is closed.
Optionally, the second sliding operation may be a continuous operation of a touch operation, or may be a continuous operation of a 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 the action position of a target touch point of the touch operation; when the second sliding operation is the continuous operation of the first sliding operation, determining a second displacement of a second touch point of the second sliding operation according to the stop position of the first touch point of the first sliding operation.
S203, selecting the double mirror closing area according to the second displacement of the second touch point, and closing the virtual double mirror.
In the embodiment of the present application, when it is determined that the player has selected the double mirror closing region based on the second displacement of the second sliding operation, the virtual double mirror is closed (i.e., the virtual double mirror mounted on the target shooter is closed), and at the same time, a third game scene matching 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 loose, the terminal device determines that the player selects the double-mirror closing area;
that is, after the virtual double mirror is opened, the player can directly close the virtual double mirror through the second sliding operation which is continuous with the touch operation; alternatively, the player may adjust the magnification of the virtual double mirror by a first sliding operation in conjunction with the touch operation after the virtual double mirror is opened, and then close the virtual double mirror by a second sliding operation that is continuous with the first sliding operation.
As shown in fig. 1c and 1f, after the player selects the power close region 106 through the second slide operation from the 2-magnification region, the virtual power 104 mounted on the target shooter 103 is closed, and the displayed plurality of magnification regions 105 and power close region 106 are closed, and a third game scene matching the current game progress is displayed on the graphic user interface 100. Fig. 1g shows a third game scenario 204 of the current game progress displayed on the graphical user interface 100 after closing the virtual double mirror 104 mounted on the target firearm 103.
In the embodiment of the application, the multiple magnification areas are continuously arranged in a mode that the corresponding magnifications are from small to large; alternatively, the plurality of magnification areas are arranged in series so that the corresponding magnifications are gradually reduced. Optionally, when the first magnification is a preset magnification, the first magnification corresponds to an initial state of the virtual double mirror, that is, in a state where the magnification of the virtual double mirror is not adjusted, the first magnification is a minimum magnification corresponding to the virtual double mirror, or is a maximum magnification corresponding to the virtual double mirror.
In one embodiment, the magnification areas are arranged in sequence from the inner side to the outer side of the graphical user interface in a manner that the corresponding magnifications are from small to large.
The following description will be given by taking an example in which a plurality of magnification areas are arranged in order from the inside to the outside of a graphical user interface in such a manner that the corresponding magnifications are gradually increased: when the first magnification is the minimum magnification corresponding to the virtual double mirror, the double mirror closing region is located inside the first magnification region. As shown in fig. 1c, the 2-magnification area, the 4-magnification area, and the 8-magnification area are arranged in order from the inside to the outside of the graphic user interface 100. In the touch operation by the finger of the player, the 2-magnification area corresponding to the 2-magnification is selected, the other magnification areas (including the 4-magnification area and the 6-magnification area) are displayed outside the 2-magnification area, and the scope closing area 106 is displayed inside the 2-magnification area.
Correspondingly, the first magnification may be a preset magnification, for example, in an initial state of the virtual mirror, the first magnification may be a minimum magnification corresponding to the virtual mirror, or a maximum magnification corresponding to the virtual mirror; the first magnification may be a magnification after the virtual mirror is adjusted, and after the virtual mirror is adjusted, the first magnification is a magnification (for example, 4 magnifications) after the virtual mirror is adjusted.
Further, the method for controlling a virtual double mirror in a game provided by the embodiment of the present application further includes:
providing a selection identifier in the first multiplying power area according to the action position of the target touch point of the touch operation; a first display position of the selection identifier in the first magnification area corresponds to an action position of the target touch point; wherein the selection identifier slides synchronously following the first sliding operation or the second sliding operation; the selection mark is used for indicating the magnification area selected by the first sliding operation, or is used for indicating the magnification area or the double mirror closing area selected by the second sliding operation.
In the embodiment of the present application, as shown in fig. 1c, while the player triggers a touch operation on the zoom control area, a selection indicator 107 is provided in the first magnification area (i.e., the 2-magnification area), and the selection indicator 107 is used to indicate that the player currently selects the first magnification area (i.e., the 2-magnification area). 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. 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 a predetermined distance away from the action position of the target touch point (for example, in fig. 1c, the positions of two small hands at the center of the virtual double mirror 104 represent the action position of the target touch point, and the positions of two small hands in the 2-magnification area represent the first display position of the selection mark 107, and the first display position is located at the left side of the action position and is a predetermined distance away from the action position), and in another alternative embodiment, the first display position is the same as the action position of the target touch point, for example, taking fig. 1c as an example (but this case is not shown in fig. 1 c), the positions of two small hands in the 2-magnification area of the virtual double mirror 104 represent both the action position of the target touch point and the first display position of the selection mark 107, in which case, the first display position is the same as the action position.
In practice, the selection mark 107 slides synchronously with the first sliding operation or the second sliding operation, wherein the sliding direction of the selection mark 107 following the first sliding operation is opposite to the sliding direction following the second sliding operation; when the selection mark 107 slides synchronously along with the first sliding operation, the selection mark 107 is used for indicating the magnification area 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 a magnification area or a magnification closing area selected by the second sliding operation.
Further, as shown in fig. 3, the method for controlling a virtual telescope in a game according to an embodiment of the present application, where selecting a second magnification area from the multiple magnification areas according to the first displacement of the first touch point includes:
s301, determining a third displacement of the selection identifier according to the first displacement of the first touch point and the synchronous sliding proportion of the first sliding operation and the selection identifier; wherein the synchronous sliding proportion is a ratio of a unit sliding distance of the first sliding operation to a sliding distance of the selection mark.
In the embodiment of the application, the magnification area selected by the first sliding operation is indicated through the selection mark, wherein the first sliding operation and the selection mark have a preset synchronous sliding proportion, and the synchronous sliding proportion is a ratio of a unit sliding distance of the first sliding operation to a sliding distance of the selection mark. And after the player triggers the first sliding operation, calculating a third displacement of the selection identifier according to the first displacement of the first touch point of the first sliding operation and the synchronous sliding proportion.
S302, selecting a second magnification area from the multiple magnification areas according to the first display position of the selection mark and the third displacement of the selection mark.
Here, it is determined that the selection flag selects the second magnification area (4-magnification area as shown in fig. 1 d) among the plurality of magnification areas, based on the current position of the selection flag (i.e., the first display position in the first magnification area) and the third displacement of the selection flag.
In addition, the method for controlling the virtual double mirror in the game provided by the embodiment of the application further comprises the following steps: controlling the virtual double mirror to remain on at the second magnification and to turn off the plurality of magnification areas and the double mirror off area displayed in response to the end of the first sliding operation.
Here, the end of the first sliding operation means that the player looses his hand with respect to the triggered first sliding operation, and at this time, the virtual double mirror is kept opened at the adjusted second magnification, and the adjustment state of the virtual double mirror is exited; here, exiting the adjustment state of the virtual double mirror means: and closing the displayed multiple magnification areas and the multiple mirror closing area.
Further, as shown in fig. 4, in the method for controlling a virtual double mirror in a game provided in an embodiment of the present application, in a process in which the selection identifier slides synchronously along with the first sliding operation, the method further includes:
s401, when the selection identifier exceeds the multiple magnification areas, determining a third magnification corresponding to the virtual double mirror; wherein the third magnification is a magnification corresponding to a third magnification area closest to the selection identifier in the plurality of magnification 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) while the selection indicator slides in synchronization with the first sliding operation, a third magnification of the last selection before the selection indicator leaves the plurality of magnification areas is determined, where the third magnification is a magnification corresponding to a 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 may be an innermost magnification area in the graphical user interface. As shown in fig. 1c, for example, if a plurality of magnification areas are arranged in sequence from the inside to the outside of the graphical user interface in a manner that the corresponding magnifications are gradually increased from the inside to the outside of the graphical user interface, when the selection mark slides from the inside to the outside of the graphical user interface in sequence and exceeds 8 times of the mirror area, the 8 times of the mirror area is determined as a third magnification area, and the 8 magnifications corresponding to the 8 times of the mirror area are determined as a third magnification area corresponding to the virtual mirror.
S402, controlling the virtual double mirror to be opened at the third rate.
In the embodiment of the application, before the selection identifier does not exceed the multiple magnification areas, the virtual double mirror is turned on at a third magnification, and meanwhile, a second game scene corresponding to the virtual double mirror at the third magnification is displayed on a graphical user interface. Correspondingly, after the selection mark exceeds the multiple multiplying power areas, the virtual multiplying mirror is controlled to still be started at the third multiplying power; correspondingly, the second game scene corresponding to the virtual time doubling mirror at the third time ratio is still displayed on the graphical user interface.
Further, as shown in fig. 5, in the method for controlling a virtual double mirror in a game provided in the embodiment of the present application, the selecting the double mirror 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; wherein the synchronous sliding proportion is a ratio of a unit sliding distance of the second sliding operation to a sliding distance of the selection mark.
In this embodiment of the application, the magnification area selected by the second sliding operation is indicated by the selection identifier, where the second sliding operation and the selection identifier have a preset synchronous sliding proportion (optionally, the sliding proportion is the same as the preset synchronous sliding proportion of the first sliding operation and the selection identifier), and the synchronous sliding proportion is a ratio of a unit sliding distance of the second sliding operation to a sliding distance of the selection identifier. And after the player triggers the second sliding operation, calculating a fourth displacement of the selection identifier according to the second displacement of the second touch point of the second sliding operation and the synchronous sliding proportion.
S502, selecting the double-lens closing area according to the second display position of the selection identifier and the fourth displacement of the selection identifier.
Here, the selection flag selection zoom out region (e.g., "off" region in fig. 1c and 1 d) is determined based on the current position of the selection flag (which may be the second display position of any magnification region or the second display position of a non-magnification region) and the fourth displacement of the selection flag.
In another embodiment, the touch operation in the embodiment of the present application may include two touch operations, specifically, the touch operation includes:
and simultaneously acting on the first touch operation and the second touch operation of the double-mirror control area.
The player triggers touch operation by the left hand and the right hand simultaneously, 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 the zoom control area, 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 zoom lens in a game provided in the embodiment of the present application, the displaying, in the graphical user interface, a plurality of magnification areas corresponding to the virtual zoom lens includes:
s601, displaying a first group of magnification areas comprising the multiple magnification areas corresponding to the virtual microscope in the graphical user interface 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 that the corresponding magnifications are gradually increased from small to large. As shown in fig. 1b and 1c, the first touch operation is located on 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, and on the left side of the graphical user interface 100, the 2-magnification area, the 4-magnification area, and the 8-magnification area are sequentially arranged from the inside to the outside (i.e., right to left) of the graphical user interface 100.
S602, displaying a second group of magnification areas comprising the multiple magnification areas corresponding to the virtual microscope in the graphical user interface based on the second touch operation.
Specifically, the second group of magnification areas also comprises a plurality of magnification areas, and the plurality of magnification areas are the same as the plurality of magnification areas in the first group of magnification areas; the multiple magnification areas are sequentially arranged from the inner side to the outer side of the graphical user interface in a mode that the corresponding magnifications are 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 group of magnification areas includes a 2-magnification area, a 4-magnification area, and an 8-magnification area, and the 2-magnification area, the 4-magnification area, and the 8-magnification area are sequentially arranged from the inner side to the outer side (i.e., left side to right side) of the graphical user interface 100 on the right side of the graphical user interface 100.
In addition, in this embodiment of the present application, the double mirror closing region includes: a first mirror-off region and a second mirror-off region; the first power mirror closing region is arranged adjacent to a first power region in the first set of power regions; the second mirror-off region is disposed adjacent to a first magnification region of the second set of magnification regions.
The following description will be given by taking an example in which a plurality of magnification areas are arranged in order from the inside to the outside of a graphical user interface in such a manner that the corresponding magnifications are gradually increased: as shown in fig. 1c, the first magnification (2 magnifications) is the minimum magnification corresponding to the virtual mirror, the first mirror-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 mark on the left side of the graphical user interface 100) in the first set of magnification regions, and the second mirror-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 mark on the right side of the graphical user interface 100) in the second set of magnification regions.
Accordingly, the first sliding operation includes: a first sliding operation by the player triggered by the left hand, which is continuous with the first touch operation, and a first sliding operation by the player triggered by the right hand, which is continuous with the second touch operation. The second sliding operation includes: the second sliding operation that is continuous with the first touch operation or the first sliding operation and is triggered by the player through the left hand, and the second sliding operation that is continuous with the second touch operation or the first sliding operation and is triggered by the player through the right hand. Specifically, when the left hand and the right hand of the player simultaneously trigger the second sliding operation, the virtual double mirror 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 mirror in a game provided in the embodiment of the present application, adjusting the first magnification of the virtual mirror to the second magnification corresponding to the second magnification area includes:
when a second magnification area selected by the first touch operation in the first group of magnification areas is consistent with a second magnification area selected by the second touch operation in the second group of magnification areas, adjusting the first magnification of the virtual mirror to a second magnification corresponding to the second magnification area.
In the method for controlling a virtual double mirror in a game provided by the embodiment of the present application, a player activates a magnification adjustment control (i.e., displays multiple magnification areas) on a graphical user interface by touching a double mirror control area, at this time, the activated virtual double mirror is activated at a first magnification, then, the player selects a second magnification area in the multiple magnification areas by a first sliding operation continuous to the touching operation and acting on the double mirror control area according to an acting position of a target touch point of the touching operation, and adjusts the first magnification of the virtual double mirror to a second magnification corresponding to the second magnification area according to the first displacement of the first touch point, and after activating the magnification adjustment control, determines an adjusted magnification by triggering the moving displacement of the first sliding operation continuous to the touching operation in the double mirror control area, the method does not need a fixed microscope to trigger a control, thereby avoiding occupying interface space; the consistency of player operation is ensured, the operation difficulty of the user is reduced, and the human-computer interaction efficiency is improved.
Based on the same inventive concept, the embodiment of the present application further provides a device for controlling a virtual mirror in a game corresponding to the method for controlling a virtual mirror in a game, and since the principle of solving the problem of the device in the embodiment of the present application is similar to the method for controlling a virtual mirror in a game described above in the embodiment of the present application, the implementation of the device can refer to the implementation of the method, and repeated details are omitted.
Referring to fig. 7, in order to provide a control apparatus for a virtual zoom lens in a game according to an embodiment of the present application, a terminal device provides a graphical user interface, and a zoom lens control area is provided in the graphical user interface, where the control apparatus includes:
a first display module 701, configured to display, on the graphical user interface, a first game scene corresponding to the started virtual zoom lens at a first magnification in response to a touch operation applied to the zoom lens control area; displaying a plurality of magnification areas corresponding to the virtual microscope 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 is applied to the zoom lens control area and is continuous with the touch operation, a first displacement of a first touch point of the first sliding operation according to an application position of a target touch point of the touch operation; the starting position of the first touch point is the same as the acting position of the target touch point;
a first selecting module 703, configured to select a second magnification area from the multiple magnification areas according to a first displacement of the first touch point;
an adjusting module 704, configured to adjust the first magnification of the virtual mirror to a second magnification corresponding to the second magnification area.
In one possible embodiment, the control device further comprises:
the second display module is used for displaying a plurality of multiplying power areas corresponding to the virtual times mirror in the graphical user interface and displaying a times mirror closing area in the graphical user interface, wherein the times mirror closing area is arranged adjacent to the multiplying power areas;
the second determining module is used for responding to a second sliding operation acted on the double-lens control area and determining a second displacement of a second touch point of the second sliding operation; wherein the second sliding operation is in a sliding direction opposite to that 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 double-lens closing area according to the second displacement of the second touch point;
and the first closing module is used for closing the virtual double mirror.
In one possible implementation, the second determining module determines a second displacement of the second touch point of the second sliding operation, including:
when the second sliding operation is the continuous operation of the touch operation, determining a second displacement of a second touch point of the second sliding operation according to the action position of a target touch point of the touch operation;
when the second sliding operation is the continuous operation of the first sliding operation, determining a second displacement of a second touch point of the second sliding operation according to the stop position of the first touch point of the first sliding operation.
In one possible embodiment, the control device further comprises:
the providing module is used for providing a selection identifier in the first multiplying power area according to the action position of the target touch point of the touch operation; a first display position of the selection identifier in the first magnification area corresponds to an action position of the target touch point; wherein the selection identifier slides synchronously following the first sliding operation or the second sliding operation; the selection mark is used for indicating the magnification area selected by the first sliding operation, or is used for indicating the magnification area or the double mirror closing area selected by the second sliding operation.
In a possible implementation manner, the selecting module 703 selects a second magnification area from the multiple magnification areas according to the first displacement of the first touch point, including:
determining a third displacement of the selection identifier according to the first displacement of the first touch point and the synchronous sliding proportion of the first sliding operation and the selection identifier; wherein the synchronous sliding proportion is a ratio of a unit sliding distance of the first sliding operation to a sliding distance of the selection identifier;
and selecting a second magnification area from the plurality of magnification 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 comprises:
a third determining module, configured to determine, when the selection identifier exceeds the multiple magnification areas in a process in which the selection identifier slides synchronously along with the first sliding operation, a third magnification corresponding to the virtual multiple mirror; wherein the third magnification is a magnification corresponding to a third magnification area closest to the selection identifier in the plurality of magnification areas;
and the first control module is used for controlling the virtual double mirror to be kept opened at the third rate.
In one possible implementation, the selecting the zoom lens closing area according to the second displacement of the second touch point by the second selection module includes:
determining a fourth displacement of the selection identifier according to a second displacement of the second touch point and a synchronous sliding proportion of the second sliding operation and the selection identifier; wherein the synchronous sliding proportion is a ratio of a unit sliding distance of the second sliding operation to a sliding distance of the selection identifier;
and selecting the double-lens closing area according to the second display position of the selection identifier and the fourth displacement of the selection identifier.
In a possible implementation manner, each magnification area includes a magnification identifier, and the magnification identifier is determined according to a magnification corresponding to the magnification area; the different magnification areas in the multiple magnification areas have different corresponding magnifications.
In a possible implementation manner, the multiple magnification areas are arranged in series from small to large according to the corresponding magnifications; or, the multiple magnification areas are continuously arranged in a mode that the corresponding magnifications are from large to small.
In a possible embodiment, the multiple magnification areas are arranged in sequence from the inner side to the outer side of the graphical user interface in a way that the corresponding magnifications are from small to large.
In a possible implementation manner, the first magnification is a preset magnification, and the first magnification is a minimum magnification corresponding to the virtual multiple mirror or a maximum magnification corresponding to the virtual multiple mirror;
or, the first multiplying power is the multiplying power of the virtual multiplying mirror after the previous adjustment.
In one possible implementation, the touch operation includes:
and simultaneously acting on the first touch operation and the second touch operation of the double-mirror control area.
In a possible implementation, the first display module 701 displays, in the graphical user interface, a plurality of magnification areas corresponding to the virtual magnification mirror, including:
displaying a first group of magnification areas comprising the plurality of magnification areas corresponding to the virtual magnification mirror in the graphical user interface based on the first touch operation;
displaying a second group of magnification areas comprising the plurality of magnification areas corresponding to the virtual magnification mirror in the graphical user interface based on the second touch operation.
In one possible embodiment, the power mirror closing region includes: a first mirror-off region and a second mirror-off region; the first power mirror closing region is arranged adjacent to a first power region in the first set of power regions; the second mirror-off region is disposed adjacent to a first magnification region of the second set of magnification regions.
In a possible implementation, the adjusting module 704 adjusts the first magnification of the virtual mirror to a second magnification corresponding to the second magnification area, including:
when a second magnification area selected by the first touch operation in the first group of magnification areas is consistent with a second magnification area selected by the second touch operation in the second group of magnification areas, adjusting the first magnification of the virtual mirror to a second magnification corresponding to the second magnification area.
In one possible embodiment, the control device further comprises:
a second control module, configured to control the virtual double mirror to remain on at the second magnification in response to an end of the first sliding operation;
and the second closing module is used for closing the displayed multiple magnification areas and the multiple mirror closing area.
In one possible embodiment, the control device further comprises:
the judging module is used for judging whether a virtual double mirror controlled by the double mirror control area is started or not when responding to the touch operation acted on the double mirror control area;
and the starting module is used for starting the virtual double mirror if the virtual double mirror is not started.
In the control device for the virtual double mirror in the game provided in the embodiment of the present application, a player activates a magnification adjustment control (i.e., displays a plurality of magnification areas) on a graphical user interface by a touch operation on a double mirror control area, at this time, an activated virtual double mirror is activated at a first magnification, then, the player selects a second magnification area in the plurality of magnification areas by a first sliding operation continuous to the touch operation and acting on the double mirror control area according to an acting position of a target touch point of the touch operation and according to the first displacement of the first touch point, and adjusts the first magnification of the virtual double mirror to a second magnification corresponding to the second magnification area, and in this way, after the magnification adjustment control is activated, the adjusted magnification is determined by triggering the movement displacement of the first sliding operation continuous to the touch operation in the double mirror control area, the method does not need a fixed microscope to trigger a control, thereby avoiding occupying interface space; the consistency of player operation is ensured, the operation difficulty of the user is reduced, and the human-computer 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, wherein the memory 802 stores machine readable instructions executable by the processor 801, when the electronic device runs, the processor 801 communicates with the memory 802 through the bus, and the processor 801 executes the machine readable instructions to execute the steps of the control method of the virtual double mirror in the game.
Specifically, the memory 802 and the processor 801 can be general memories and processors, which are not limited to the specific embodiments, and when the processor 801 runs a computer program stored in the memory 802, the control method of the virtual double mirror in the game can be executed.
Corresponding to the method for controlling the virtual double mirror in the game, an embodiment of the present application further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and the computer program is executed by a processor to perform the steps of the method for controlling the virtual double mirror in the game.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the system and the apparatus described above may refer to corresponding processes in the method embodiments, and are not described in detail in this application. In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. The above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is merely a logical division, and there may be other divisions in actual implementation, and for example, a plurality of modules or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or modules through some communication interfaces, and may be in an electrical, mechanical or other form.
The modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into 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 such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a U disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (20)

1. A control method of virtual time of a game is characterized in that a graphical user interface is provided through a terminal device, a time control area is provided in the graphical user interface, and the control method comprises the following steps:
responding to touch operation acted on the zoom lens control area, and displaying a first game scene corresponding to the started virtual zoom lens under a first magnification on the graphical user interface; displaying a plurality of magnification areas corresponding to the virtual microscope 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 double mirror control area and is continuous with 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 starting position of the first touch point is the same as the acting position of the target touch point;
according to the first displacement of the first touch point, selecting a second magnification area from the multiple magnification areas, and adjusting the first magnification of the virtual magnifying lens to a second magnification corresponding to the second magnification area.
2. The method for controlling a virtual zoom lens in a game according to claim 1, wherein the method for controlling a virtual zoom lens further comprises, while a plurality of magnification areas corresponding to the virtual zoom lens are displayed in the graphical user interface:
displaying a multiple-magnification-ratio closed area in the graphical user interface, wherein the multiple-magnification-ratio closed area is arranged adjacent to the multiple magnification ratio areas;
responding to a second sliding operation acted on the double-lens control area, and determining a second displacement of a second touch point of the second sliding operation; wherein the second sliding operation is in a sliding direction opposite to that 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 mirror closing area according to the second displacement of the second touch point, and closing the virtual mirror.
3. The method for controlling a virtual telescope in game according to claim 2, wherein the determining the second displacement of the second touch point of the second sliding operation includes:
when the second sliding operation is the continuous operation of the touch operation, determining a second displacement of a second touch point of the second sliding operation according to the action position of a target touch point of the touch operation;
when the second sliding operation is the continuous operation of the first sliding operation, determining a second displacement of a second touch point of the second sliding operation according to the stop position of the first touch point of the first sliding operation.
4. The method of controlling a virtual multiplier in a game according to claim 2, wherein said method further comprises:
providing a selection identifier in the first multiplying power area according to the action position of the target touch point of the touch operation; a first display position of the selection identifier in the first magnification area corresponds to an action position of the target touch point; wherein the selection identifier slides synchronously following the first sliding operation or the second sliding operation; the selection mark is used for indicating the magnification area selected by the first sliding operation, or is used for indicating the magnification area or the double mirror closing area selected by the second sliding operation.
5. The method of claim 4, wherein selecting a second magnification area among the plurality of magnification areas according to the first displacement of the first touch point comprises:
determining a third displacement of the selection identifier according to the first displacement of the first touch point and the synchronous sliding proportion of the first sliding operation and the selection identifier; wherein the synchronous sliding proportion is a ratio of a unit sliding distance of the first sliding operation to a sliding distance of the selection identifier;
and selecting a second magnification area from the plurality of magnification 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 multiplier in a game according to claim 4, wherein in a process in which said selection flag slides in synchronization with said first sliding operation, said method further comprises:
when the selection identification exceeds the multiple magnification areas, determining a third magnification corresponding to the virtual double mirror; wherein the third magnification is a magnification corresponding to a third magnification area closest to the selection identifier in the plurality of magnification areas;
controlling the virtual double mirror to remain on at the third rate.
7. The method for controlling a virtual magnifier according to claim 4, wherein selecting the magnifier closing area according to the second displacement of the second touch point comprises:
determining a fourth displacement of the selection identifier according to a second displacement of the second touch point and a synchronous sliding proportion of the second sliding operation and the selection identifier; wherein the synchronous sliding proportion is a ratio of a unit sliding distance of the second sliding operation to a sliding distance of the selection identifier;
and selecting the double-lens closing area according to the second display position of the selection identifier and the fourth displacement of the selection identifier.
8. The method for controlling a virtual telescope in a game according to claim 1, wherein each magnification area includes a magnification identifier, and the magnification identifier is determined according to the magnification corresponding to the magnification area; the different magnification areas in the multiple magnification areas have different corresponding magnifications.
9. The method for controlling a virtual multiplier mirror in a game according to claim 8, wherein said plurality of magnification areas are arranged in series in a manner that the corresponding magnifications are from small to large; or, the multiple magnification areas are continuously arranged in a mode that the corresponding magnifications are from large to small.
10. The method of claim 8, wherein the plurality of magnification areas are arranged in order from inside to outside of the graphical user interface in a manner that the corresponding magnifications are gradually increased from small to large.
11. The method for controlling a virtual multiple mirror 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 multiple mirror or a maximum magnification corresponding to the virtual multiple mirror;
or, the first multiplying power is the multiplying power of the virtual multiplying mirror after the previous adjustment.
12. The method for controlling a virtual multiplier in a game according to claim 2, wherein the touch operation includes:
and simultaneously acting on the first touch operation and the second touch operation of the double-mirror control area.
13. The method for controlling a virtual zoom lens in a game according to claim 12, wherein the displaying a plurality of magnification areas corresponding to the virtual zoom lens in the graphical user interface comprises:
displaying a first group of magnification areas comprising the plurality of magnification areas corresponding to the virtual magnification mirror in the graphical user interface based on the first touch operation;
displaying a second group of magnification areas comprising the plurality of magnification areas corresponding to the virtual magnification mirror in the graphical user interface based on the second touch operation.
14. The method of controlling a virtual multiplier in a game according to claim 13, wherein said multiplier closing area includes: a first mirror-off region and a second mirror-off region; the first power mirror closing region is arranged adjacent to a first power region in the first set of power regions; the second mirror-off region is disposed adjacent to a first magnification region of the second set of magnification regions.
15. The method for controlling a virtual telescope in a game according to claim 13, wherein said adjusting the first magnification of the virtual telescope to the second magnification corresponding to the second magnification area comprises:
when a second magnification area selected by the first touch operation in the first group of magnification areas is consistent with a second magnification area selected by the second touch operation in the second group of magnification areas, adjusting the first magnification of the virtual mirror to a second magnification corresponding to the second magnification area.
16. The method of controlling a virtual multiplier in a game according to claim 2, wherein said method further comprises:
controlling the virtual double mirror to remain on at the second magnification and to turn off the plurality of magnification areas and the double mirror off area displayed in response to the end of the first sliding operation.
17. The method for controlling a virtual double mirror in a game according to claim 6, wherein in response to a touch operation applied to the double mirror control area, the method further comprises:
judging whether a virtual double mirror controlled by the double mirror control area is opened or not; if not, the virtual double mirror is started.
18. A control apparatus for virtual zoom in a game, wherein a graphical user interface is provided through a terminal device, and a zoom control area is provided in the graphical user interface, the control apparatus comprising:
the first display module is used for responding to touch operation acted on the zoom lens control area and displaying a first game scene corresponding to the started virtual zoom lens under a first magnification on the graphical user interface; displaying a plurality of magnification areas corresponding to the virtual microscope 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 which acts on the double-lens control area and is continuous with 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 starting position of the first touch point is the same as the acting position of the target touch point;
the first selection module is used for selecting a second multiplying power area from the multiple 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 mirror to a second multiplying power corresponding to the second multiplying power area.
19. 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 via the bus when the electronic device is running, the processor executing the machine-readable instructions to perform the steps of the method for controlling a virtual multiplier mirror in a game according to any one of claims 1 to 17.
20. A computer-readable storage medium, having stored thereon a computer program which, when being executed by a processor, carries out the steps of the method of controlling a virtual multiplier mirror in a game according to any one of claims 1 to 17.
CN202110153399.7A 2021-02-03 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 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 2021-02-03 Method and device for controlling virtual magnifier in game, electronic equipment and storage medium

Publications (2)

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

Family

ID=75814129

Family Applications (1)

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

Country Status (1)

Country Link
CN (1) CN112791398B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190118089A1 (en) * 2017-10-25 2019-04-25 Netease (Hangzhou) Network Co.,Ltd. Information processing method, storage medium and electronic device
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
CN110448908A (en) * 2019-08-22 2019-11-15 腾讯科技(深圳)有限公司 The application method of gun sight, device, equipment and storage medium in virtual environment
CN110639205A (en) * 2019-10-30 2020-01-03 腾讯科技(深圳)有限公司 Operation response method, device, storage medium and terminal
CN111013136A (en) * 2019-12-12 2020-04-17 腾讯科技(深圳)有限公司 Movement control method, device, equipment and storage medium in virtual scene
US20210260479A1 (en) * 2019-04-11 2021-08-26 Tencent Technology (Shenzhen) Company Limited Operation control method and apparatus, electronic device, and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190118089A1 (en) * 2017-10-25 2019-04-25 Netease (Hangzhou) Network Co.,Ltd. Information processing method, storage medium and electronic device
CN110433489A (en) * 2018-11-28 2019-11-12 网易(杭州)网络有限公司 Control method, device, storage medium and the electronic device aimed in game
US20210260479A1 (en) * 2019-04-11 2021-08-26 Tencent Technology (Shenzhen) Company Limited Operation control method and apparatus, electronic device, and storage medium
CN110339562A (en) * 2019-08-01 2019-10-18 腾讯科技(深圳)有限公司 Control method, device, terminal and the storage medium of virtual objects
CN110448908A (en) * 2019-08-22 2019-11-15 腾讯科技(深圳)有限公司 The application method of gun sight, device, equipment and storage medium in virtual environment
CN110639205A (en) * 2019-10-30 2020-01-03 腾讯科技(深圳)有限公司 Operation response method, device, storage medium and terminal
CN111013136A (en) * 2019-12-12 2020-04-17 腾讯科技(深圳)有限公司 Movement control method, device, equipment and storage medium in virtual scene

Also Published As

Publication number Publication date
CN112791398B (en) 2024-07-16

Similar Documents

Publication Publication Date Title
CN108579083B (en) Virtual scene display method and device, electronic device and storage medium
WO2020029817A1 (en) Method and apparatus for selecting accessory in virtual environment, and device and readable storage medium
CN111124226A (en) Game screen display control method and device, electronic equipment and storage medium
US9348612B2 (en) Storage medium having stored therein information processing program, information processing apparatus, information processing system, and information processing method
CN110339556B (en) Display control method and device in game
CN112619137A (en) Game picture switching method and device, electronic equipment and storage medium
CN111880720B (en) Virtual display method, device, equipment and computer readable storage medium
CN111744175A (en) Method and device for operating and controlling in-game and out-game properties
US20120075352A1 (en) Storage medium having stored therein information processing program, information processing apparatus, information processing system, and information processing method
CN112148187A (en) Interaction method and device for augmented reality scene, electronic equipment and storage medium
CN112843708A (en) Game equipment configuration method and device, electronic equipment and storage medium
JP2024099643A (en) Displaying method of virtual environment view, apparatus, and computer program
CN111888766A (en) Information processing method and device in game, electronic equipment and storage medium
CN108744511B (en) Method, device and storage medium for displaying sighting telescope in virtual environment
WO2024198191A1 (en) Weapon switching method and apparatus for virtual game
CN110404257B (en) Formation control method and device, computer equipment and storage medium
JP2024521864A (en) Method, apparatus, electronic device and storage medium for watching a game after a character dies in battle
CN112774188B (en) Method and device for adjusting virtual magnifier in game, electronic equipment and storage medium
CN113694511B (en) Virtual character control method and device and electronic equipment
WO2024212465A1 (en) Shooting control method and apparatus in game, and electronic device and storage medium
CN113256710A (en) Method and device for displaying foresight in game, computer equipment and storage medium
CN112791398A (en) Method and device for controlling virtual time-of-use mirror in game, electronic equipment and storage medium
EP3550418A1 (en) Application control program, application control method, and application control system
EP4343699A1 (en) Method and apparatus for controlling virtual object, and computer device and storage medium
CN111494940A (en) Display control method and device for virtual object in game

Legal Events

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