CN114307131A - Game control method and device - Google Patents

Game control method and device Download PDF

Info

Publication number
CN114307131A
CN114307131A CN202111547436.9A CN202111547436A CN114307131A CN 114307131 A CN114307131 A CN 114307131A CN 202111547436 A CN202111547436 A CN 202111547436A CN 114307131 A CN114307131 A CN 114307131A
Authority
CN
China
Prior art keywords
slot
area
target control
virtual
slot position
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.)
Pending
Application number
CN202111547436.9A
Other languages
Chinese (zh)
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 CN202111547436.9A priority Critical patent/CN114307131A/en
Publication of CN114307131A publication Critical patent/CN114307131A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a game control method and device. Wherein, the method comprises the following steps: responding to touch operation aiming at the shortcut icon, displaying a virtual wheel disc on a graphical user interface, wherein the virtual wheel disc comprises a target control located at the center position of the virtual wheel disc and a plurality of slot positions, each slot position consists of a first area and a second area, the first area is located between the center position and the second area, and each slot position is used for establishing a binding relationship with at least one virtual article; in response to the dragging operation aiming at the target control, controlling the target control to move in the graphical user interface along with the dragging operation; responding to the target control to reach a first area of a first slot position in the plurality of slot positions, and selecting the first slot position; and controlling the virtual character to use the first virtual article corresponding to the first slot position in response to the target control reaching the second area of the first slot position. The invention solves the technical problems of lower operation consistency, stronger interruption feeling and poorer experience feeling of the game control method in the prior art.

Description

Game control method and device
Technical Field
The invention relates to the field of computers, in particular to a game control method and device.
Background
At present, in a mobile phone end game, in order to facilitate a player to use an article quickly, a scheme for quickly using the article is provided for the user, and the implementation flow of the scheme is as follows: and clicking the entrance icon by the player, opening the shortcut use interface, and then clicking the item displayed in the selection interface for use. However, because the operation flow of the above scheme is fixed, in the process of reusing articles, a player needs to perform independent click operation for many times, the operation is complex, and moreover, due to the adoption of a mode of clicking an entry icon and then opening a quick use interface, the operation continuity is low, the interruption sense is strong, the player can lose a fighting state, and the game experience sense is poor.
In view of the above problems, no effective solution has been proposed.
Disclosure of Invention
At least part of embodiments of the invention provide a game control method and device, so as to at least solve the technical problems of low operation consistency, strong interruption feeling and poor experience feeling caused by the fact that a game control method in the prior art needs to perform independent click operation for many times.
According to an embodiment of the present invention, a game control method is provided, in which a terminal device provides a graphical user interface, and content displayed on the graphical user interface includes a part of a game scene, at least one virtual character, and a shortcut icon, and the method includes: responding to touch operation aiming at the shortcut icon, displaying a virtual wheel disc on a graphical user interface, wherein the virtual wheel disc comprises a target control located at the center position of the virtual wheel disc and a plurality of slot positions, each slot position consists of a first area and a second area, the first area is located between the center position and the second area, and each slot position is used for establishing a binding relationship with at least one virtual article; in response to the dragging operation aiming at the target control, controlling the target control to move in the graphical user interface along with the dragging operation; responding to the target control to reach a first area of a first slot position in the plurality of slot positions, and selecting the first slot position; and controlling the virtual character to use the first virtual article corresponding to the first slot position in response to the target control reaching the second area of the first slot position.
Optionally, the method further comprises: and in the process of displaying the virtual wheel disc, responding to the sliding operation aiming at the hollow area in the graphical user interface, and controlling the virtual wheel disc to rotate according to the sliding operation.
Optionally, the method further comprises: in response to the target control reaching the first region of the first slot, displaying detailed information of the first virtual item.
Optionally, the method further comprises: and responding to the target control returning to the central position, and keeping the selected state of the first slot position.
Optionally, the method further comprises: in the process that the first slot position is in the selected state, responding to the sliding operation aiming at the hollow white area in the graphical user interface, and controlling the virtual wheel disc to rotate according to the sliding operation; and in response to the target control falling into the second slot position, canceling the selected state of the first slot position, and selecting the second slot position.
Optionally, the first slot position and the second slot position are adjacent slot positions, and the method further includes: and determining that the target control falls into the second slot in response to the fact that the area of the part of the target control located in the second slot is larger than the area of the part of the target control located in the first slot.
Optionally, the method further comprises: and responding to the touch point corresponding to the dragging operation to move from the second area to the area outside the virtual wheel disc, and keeping the control target control in the second area.
Optionally, in response to selecting the first slot, the method further comprises: and displaying the indication mark from the central position to the target control.
Optionally, the method further comprises: in response to the end of the drag operation, the virtual wheel is hidden.
According to an embodiment of the present invention, there is also provided a game control apparatus for providing a graphical user interface through a terminal device, where contents displayed on the graphical user interface include a part of a game scene, at least one virtual character, and a shortcut icon, the apparatus including: the display module is used for responding to touch operation aiming at the shortcut icon and displaying the virtual roulette on the graphical user interface, wherein the virtual roulette comprises a target control located at the center of the virtual roulette and a plurality of slot positions, each slot position consists of a first area and a second area, the first area is located between the center and the second area, and each slot position is used for establishing a binding relationship with at least one virtual article; the first control module is used for responding to the dragging operation aiming at the target control and controlling the target control to move in the graphical user interface along with the dragging operation; the selecting module is used for responding to the target control reaching a first area of a first slot position in the plurality of slot positions and selecting the first slot position; and the second control module is used for controlling the virtual character to use the first virtual article corresponding to the first slot position in response to the target control reaching the second area of the first slot position.
Optionally, the apparatus further comprises: and the rotating module is used for responding to the sliding operation aiming at the hollow white area in the graphical user interface in the process of displaying the virtual wheel disc and controlling the virtual wheel disc to rotate according to the sliding operation.
Optionally, the display module is further configured to display detailed information of the first virtual article in response to the target control reaching the first region of the first slot.
Optionally, the apparatus further comprises: and the maintaining module is used for responding to the return of the target control to the central position and maintaining the selected state of the first slot position.
Optionally, the apparatus further comprises: the rotating module is used for responding to the sliding operation aiming at the hollow white area in the graphical user interface in the process that the first slot position is in the selected state and controlling the virtual wheel disc to rotate according to the sliding operation; and the canceling module is used for canceling the selected state of the first slot position and selecting the second slot position in response to the target control falling into the second slot position.
Optionally, the first slot position and the second slot position are adjacent slot positions, and the apparatus further includes: and the determining module is used for determining that the target control falls into the second slot in response to the fact that the area of the part of the target control located in the second slot is larger than the area of the part of the target control located in the first slot.
Optionally, the apparatus further comprises: and the third control module is used for responding to the movement of the touch point corresponding to the dragging operation from the second area to the area outside the virtual wheel disc, and controlling the target control to be kept in the second area.
Optionally, the display module is further configured to display an indication from the center position to the target control in response to the selection of the first slot.
Optionally, the apparatus further comprises: and the hiding module is used for hiding the virtual wheel disc in response to the end of the dragging operation.
According to an embodiment of the present invention, there is also provided a non-volatile storage medium having a computer program stored therein, wherein the computer program is configured to execute any one of the game control methods described above when executed.
There is further provided, in accordance with an embodiment of the present invention, a processor for executing a program, wherein the program is arranged to perform any one of the game control methods described above when executed.
There is further provided, according to an embodiment of the present invention, an electronic device including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to execute the computer program to perform the game control method in any one of the above.
In at least some embodiments of the present invention, a virtual roulette is displayed on a graphical user interface in response to a touch operation for a shortcut icon, a target control is controlled to move in the graphical user interface along with a drag operation in response to a drag operation for a target control, the first slot is selected in response to the target control reaching a first area of a first slot of a plurality of slots, and a virtual character is controlled to use a first virtual article corresponding to the first slot in response to the target control reaching a second area of the first slot, so as to achieve a purpose of quickly using the virtual article. It is easy to notice that, after clicking the shortcut icon, the player can select the first virtual object to be used by dragging the target control, so that the player does not need to click many times when using the virtual object, thereby avoiding the occurrence of a breakpoint, achieving the purpose of simplifying the operation flow, improving the continuity of operation, improving the technical effect of overall experience, and further solving the technical problems that the game control method in the prior art needs to perform independent click operation many times, resulting in lower operation continuity, stronger interruption and poorer experience.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
fig. 1 is a block diagram of a hardware configuration of a mobile terminal of a game control method according to an embodiment of the present invention;
FIG. 2 is a flow chart of a game control method according to one embodiment of the present invention;
FIG. 3 is a schematic illustration of an interface for selectively opening a virtual wheel according to one embodiment of the present invention;
FIG. 4 is an interface schematic of a sub-region of an alternative virtual roulette slot according to one embodiment of the present invention;
FIG. 5 is a schematic illustration of an alternative interface for controlling the rotation of a virtual wheel, in accordance with one embodiment of the present invention;
FIG. 6 is an interface schematic of a selected area change after rotation of an optional virtual wheel according to one embodiment of the present invention;
fig. 7 is a block diagram of a game control apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
In accordance with one embodiment of the present invention, there is provided an embodiment of a game control method, it should be noted that the steps illustrated in the flowchart of the accompanying drawings may be performed in a computer system such as a set of computer-executable instructions, and that while a logical order is illustrated in the flowchart, in some cases the steps illustrated or described may be performed in an order different than that presented herein.
The method embodiments may be performed in a mobile terminal, a computer terminal or a similar computing device. Taking the example of the Mobile terminal running on the Mobile terminal, the Mobile terminal may be a terminal device such as a smart phone (e.g., an Android phone, an iOS phone, etc.), a tablet computer, a palm computer, a Mobile Internet Device (MID), a PAD, a game console, etc. Fig. 1 is a block diagram of a hardware configuration of a mobile terminal of a game control method according to an embodiment of the present invention. As shown in fig. 1, the mobile terminal may include one or more (only one shown in fig. 1) processors 102 (the processors 102 may include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a Digital Signal Processing (DSP) chip, a Microprocessor (MCU), a programmable logic device (FPGA), a neural Network Processor (NPU), a Tensor Processor (TPU), an Artificial Intelligence (AI) type processor, etc.) and a memory 104 for storing data. Optionally, the mobile terminal may further include a transmission device 106, an input/output device 108, and a display device 110 for communication functions. It will be understood by those skilled in the art that the structure shown in fig. 1 is only an illustration, and does not limit the structure of the mobile terminal. For example, the mobile terminal may also include more or fewer components than shown in FIG. 1, or have a different configuration than shown in FIG. 1.
The memory 104 may be used to store a computer program, for example, a software program and a module of application software, such as a computer program corresponding to the game control method in the embodiment of the present invention, and the processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, so as to implement the game control method described above. The memory 104 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory located remotely from the processor 102, which may be connected to the mobile terminal over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 106 is used to receive or transmit data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a Network adapter (NIC) that can be connected to other Network devices through a base station to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is used to communicate with the internet in a wireless manner.
The inputs in the input output Device 108 may come from a plurality of Human Interface Devices (HIDs). For example: keyboard and mouse, game pad, other special game controller (such as steering wheel, fishing rod, dance mat, remote controller, etc.). Some human interface devices may provide output functions in addition to input functions, such as: force feedback and vibration of the gamepad, audio output of the controller, etc.
The display device 110 may be, for example, a head-up display (HUD), a touch screen type Liquid Crystal Display (LCD), and a touch display (also referred to as a "touch screen" or "touch display screen"). The liquid crystal display may enable a user to interact with a user interface of the mobile terminal. In some embodiments, the mobile terminal has a Graphical User Interface (GUI) with which a user can interact by touching finger contacts and/or gestures on a touch-sensitive surface, where the human-machine interaction function optionally includes the following interactions: executable instructions for creating web pages, drawing, word processing, making electronic documents, games, video conferencing, instant messaging, emailing, call interfacing, playing digital video, playing digital music, and/or web browsing, etc., for performing the above-described human-computer interaction functions, are configured/stored in one or more processor-executable computer program products or readable storage media.
The game control method in one embodiment of the present disclosure may be executed on a local terminal device or a server. When the game control method is operated on a server, the method can be implemented and executed based on a cloud interaction system, wherein the cloud interaction system comprises the server and the client 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 game control method are completed on the cloud game server, and the client device is used for receiving and sending data and presenting the game picture, for example, the client device can be a display device with a data transmission function close to a user side, such as a mobile terminal, a television, a computer, a palm computer and the like; but the cloud game server which performs information processing is a 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 optional implementation manner, 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, downloading and installing a game program and running 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.
In a possible implementation manner, an embodiment of the present invention provides a game control method, where a graphical user interface is provided by a terminal device, where the terminal device may be the aforementioned local terminal device, and may also be the aforementioned client device in a cloud interaction system. Fig. 2 is a flowchart of a game control method according to an embodiment of the present invention, in which a terminal device provides a graphical user interface, and contents displayed on the graphical user interface include a part of a game scene, at least one virtual character, and a shortcut icon, as shown in fig. 2, the method includes the following steps:
step S202, responding to touch operation aiming at the shortcut icon, displaying a virtual roulette on a graphical user interface, wherein the virtual roulette comprises a target control located at the center of the virtual roulette and a plurality of slot positions, each slot position comprises a first area and a second area, the first area is located between the center and the second area, and each slot position is used for establishing a binding relationship with at least one virtual article.
The graphical user interface in the above steps may be a game interface provided for user operation. The interface displays part of game scenes, virtual characters operated by players, virtual characters operated by other players and shortcut icons. The player may trigger the display of a virtual roulette wheel on the graphical user interface by clicking on the icon. The target control in the above step may be a control capable of moving on the virtual wheel, for example, a circular operation icon, but is not limited thereto, and in an initial state (i.e., the user does not perform any operation), the target control may be located at a center position of the virtual wheel, and may change position accordingly with dragging. The plurality of slot positions in the above steps may be uniformly distributed around the virtual roulette wheel, the plurality of slot positions may be arranged clockwise or counterclockwise, and all the slot positions have the same size, wherein the number of the slot positions on the virtual roulette wheel may be a fixed number, for example, 8 slot positions may be arranged on the virtual roulette wheel, thereby preventing the number of the slot positions from being too large and affecting the normal operation of the player; the number of the slot positions can also be determined according to the number of the virtual articles bound by the player, so that the player can see all the bound articles on the virtual roulette, the bound relationship between the slot positions and the virtual articles can be conveniently determined by the player, icons of the bound virtual articles can be displayed on the slot positions, and the player can select to use the virtual articles by moving the target control to the slot positions. The virtual object in the above steps may be an object provided for the user to use in the game scene, and may be, for example, equipment (such as weapons, armor, etc.), skills, etc., but is not limited thereto.
In an alternative embodiment, as shown in fig. 3, in the graphical user interface, when the player needs to use the item, the "shortcut button" icon may be touched by a finger, and the electronic device may open the shortcut interface after detecting the touch operation, i.e., display a virtual wheel on the graphical user interface. It should be noted that, the screen is kept pressed by fingers, so that the shortcut use interface is ensured to be displayed on the graphical user interface; and the quick use interface is closed by releasing the quick use interface through fingers.
In an optional embodiment, the number of the slot positions arranged on the virtual wheel disc is fixed to 8, and when the slot positions are not provided with the virtual article, the slot positions are still displayed, but the content of the slot positions is empty.
And S204, responding to the dragging operation aiming at the target control, and controlling the target control to move in the graphical user interface along with the dragging operation.
During the movement of the player's finger holding the target control, the target control can be controlled to move along with the movement of the finger.
Step S206, responding to the target control reaching the first area of the first slot position in the plurality of slot positions, and selecting the first slot position.
Alternatively, the first slot position may be determined by: acquiring operation parameters of the dragging operation; a first slot position is determined based on the operating parameter.
The operation parameters in the above steps include, but are not limited to, parameter information such as a dragging angle and a dragging distance of the target control, and since each slot has a fixed position, the target slot can be determined by the parameter information such as the dragging angle and the dragging distance of the target control.
Optionally, the operating parameters include at least: dragging the angle, wherein determining the first slot position based on the operating parameter comprises: acquiring a preset angle range corresponding to each slot position; comparing the dragging angle with a preset angle range corresponding to the plurality of slot positions, and determining a target angle range to which the dragging angle belongs; and determining the slot position corresponding to the target angle range as a first operation.
In an alternative embodiment, as shown in fig. 4, assuming that 8 slots are provided in the virtual roulette wheel, each slot corresponds to an angular range of 45 °. A polar coordinate system is constructed by taking the circle center of the wheel disc as the pole, the horizontal direction represents 0 degree towards the right, the upper direction is the positive direction of the angle, the lower direction is the negative direction of the angle, on the basis, the preset angle range corresponding to the slot positions on the right side and the right side can be determined to be-22.5 degrees, and the preset angle range corresponding to each slot position can be determined by analogy in sequence. In the moving process of the target control, the dragging angle of the target control can be detected in real time, then the dragging angle is compared with the preset angle ranges corresponding to the plurality of slot positions, the target angle range to which the dragging angle belongs is determined, and then the first slot position is determined. For example, if the dragging angle is 20 °, it is determined that the first slot position is the right slot position.
The first area in the above step may be a selected area, and when the target control reaches the area, the first virtual article corresponding to the first slot position may be controlled to be in a selected state, where the selected state may be that the target virtual article is selected, but the article is not used; the to-be-used state may be that the target virtual item is selected and the player is waiting to use the item after releasing his finger.
Optionally, the operating parameters include: dragging distance, wherein the target area reached by the target control can be determined by the following steps: acquiring a preset distance range corresponding to each region, wherein the preset distance range is used for representing the distance range between each region and the center position of the virtual wheel disc; comparing the dragging distance with preset distance ranges corresponding to the multiple areas, and determining a target distance range to which the dragging distance belongs; and determining the area corresponding to the target distance range as a target area.
The preset distance range in the above step may be a range between the shortest distance and the longest distance between each region and the center position of the virtual wheel, and the target region reached by the target control may be determined by comparing the dragging distance of the target control with the preset distance range corresponding to each region.
In an alternative embodiment, after the first slot position is determined according to the angle of dragging of the target control, it may be determined whether the target control reaches the first area according to a dragging parameter of the target control, for example, it may be determined whether the target control reaches the first area according to a current position or a dragging distance of the target control, and after it is further determined that the first area is reached, it may be determined that the player has selected the target virtual article and does not want to use the target virtual article immediately.
As shown in fig. 4, taking one slot as an example, the areas denoted by reference numerals 1 and 2 in the drawing are a first area and a second area, respectively, a user's finger may drag a target control (as shown by a solid circle in fig. 4) to move from a center position (as shown by a dashed circle in fig. 4), when the target control reaches the first area of the first slot, the first slot may be selected, as shown in fig. 4, the slot may be framed by a thick-lined mark box, which indicates that the slot is selected.
Step S208, in response to the target control reaching the second area of the first slot, controlling the virtual character to use the first virtual article corresponding to the first slot.
The second area in the above step may be a to-be-used area, and when the target control reaches the area, the first virtual article corresponding to the first slot position may be controlled to be in a to-be-used state, where the to-be-used state may be that the target virtual article is selected, and the player uses the article after releasing the finger.
In an alternative embodiment, after the first slot position is determined according to the dragging angle of the target control, it may be determined whether the target control reaches the second area according to the dragging parameter of the target control, for example, it may be determined whether the target control reaches the second area according to the current position or the dragging distance of the target control, and after it is further determined that the target control reaches the second area, it may be determined that the player wishes to use the target virtual article, and therefore, the instruction to use the virtual article may be executed.
It should be noted that when the target control reaches different regions of the first slot, the first slot may be labeled with different colors, so that the user can distinguish different regions more intuitively, and the experience of the user is improved. For example, when the target control reaches the first region of the first slot, the first slot is selected, and the callout box shown in fig. 4 may be blue; when the target control reaches the second area of the first slot position, the virtual character is controlled to use the first virtual article corresponding to the first slot position, and the label box shown in fig. 4 may be green.
In at least some embodiments of the present invention, a virtual roulette is displayed on a graphical user interface in response to a touch operation for a shortcut icon, a target control is controlled to move in the graphical user interface along with a drag operation in response to a drag operation for a target control, the first slot is selected in response to the target control reaching a first area of a first slot of a plurality of slots, and a virtual character is controlled to use a first virtual article corresponding to the first slot in response to the target control reaching a second area of the first slot, so as to achieve a purpose of quickly using the virtual article. It is easy to notice that, after clicking the shortcut icon, the player can select the first virtual object to be used by dragging the target control, so that the player does not need to click many times when using the virtual object, thereby avoiding the occurrence of a breakpoint, achieving the purpose of simplifying the operation flow, improving the continuity of operation, improving the technical effect of overall experience, and further solving the technical problems that the game control method in the prior art needs to perform independent click operation many times, resulting in lower operation continuity, stronger interruption and poorer experience.
Optionally, the method further comprises: and in the process of displaying the virtual wheel disc, responding to the sliding operation aiming at the hollow area in the graphical user interface, and controlling the virtual wheel disc to rotate according to the sliding operation.
The blank area in the above step may be an area other than the display area of the virtual roulette wheel in the graphical user interface, or an area that does not include any icon in the graphical user interface, but is not limited thereto.
Alternatively, the virtual wheel disc may be controlled to rotate by: acquiring a sliding distance of a sliding operation; determining a rotation angle of the virtual wheel disc based on the sliding distance; and controlling the virtual wheel disc to rotate according to the rotation angle.
In an alternative example, as shown in FIG. 5, the virtual wheel may be displayed on the left side of the electronic device, the player may hold the virtual wheel on a target control in the virtual wheel with one hand to keep the virtual wheel continuously displayed, and the other hand may slide up or down on the right side of the electronic device to control the virtual wheel to rotate, thereby more quickly selecting different items that need to be used. Alternatively, the rotation direction of the virtual wheel may be determined based on the sliding direction of the sliding operation, and the rotation angle of the virtual wheel may be determined based on the sliding distance of the sliding operation. Further, the sliding direction is upward, and the corresponding rotating direction is counterclockwise rotation; the sliding direction is downward and the corresponding rotating direction is clockwise. Moreover, a mapping relationship between the sliding distance and the rotation angle may be preset, so that after the sliding distance is obtained, the rotation angle of the response may be determined based on the mapping relationship, optionally, the virtual wheel disc rotates clockwise, the corresponding rotation angle is a positive number, the virtual wheel disc rotates counterclockwise, and the corresponding rotation angle is a negative number. On the basis, the virtual wheel disc can be controlled to rotate according to the determined rotation angle and rotation direction.
Optionally, the method further comprises: in response to the target control reaching the first region of the first slot, displaying detailed information of the first virtual item.
The detailed information in the above steps may be a name, a detailed description, and the like of the virtual article, for example, for the equipment, the detailed information may be a name, description information, and equipment effect information of the equipment, but is not limited thereto, and the present invention is not limited thereto.
In an optional embodiment, in order to facilitate the user to confirm the selected first virtual article, when the user selects the first virtual article, that is, the target control reaches the first area of the first slot, detailed information of the first virtual article may be displayed.
Optionally, the method further comprises: in the process that the first slot position is in the selected state, responding to the sliding operation aiming at the hollow white area in the graphical user interface, and controlling the virtual wheel disc to rotate according to the sliding operation; and in response to the target control falling into the second slot position, canceling the selected state of the first slot position, and selecting the second slot position.
In the process of controlling the virtual roulette to rotate, the display positions of the plurality of slots change along with the rotation of the virtual roulette, and the display position of the target control remains unchanged, so that the target control may overlap with other slots, and the slot overlapping with the target control can be determined to be the target slot. Optionally, the slot overlapping with the target control may be highlighted, so that the user can know the current target slot more clearly and intuitively. When the target control originally selects the slot position (i.e., the first slot position), as shown in fig. 5, the selection frame rotates along with the roulette wheel, and when the target control reaches another slot position (i.e., the second slot position), as shown in fig. 6, another slot position is automatically selected.
In an optional embodiment, the left hand and the right hand can be operated simultaneously, the left hand drags the target control, the right hand slides the blank area, at this time, the rotating angle of the roulette wheel can be subtracted from the dragging angle of the target control, and the slot position at which the target control and the virtual roulette wheel are overlapped is calculated to determine the target slot position.
In another optional embodiment, the current angle range of each slot position can be determined through the rotation angle of the virtual roulette, and the slot position which the target control is overlapped with can be determined according to the dragging angle of the target control.
Optionally, the first slot position and the second slot position are adjacent slot positions, and the method further includes: and determining that the target control falls into the second slot in response to the fact that the area of the part of the target control located in the second slot is larger than the area of the part of the target control located in the first slot.
In an alternative embodiment, the determination of which slot the target control falls into may be made directly based on which slot the current position of the target control center point is located in. In another alternative embodiment, when the target control overlaps two slots, the area of the overlapping portion in each slot may be determined, and the slot corresponding to the largest area is determined to be the slot in which the target control falls, that is, when the area of the portion of the target control located in the second slot is greater than the area of the portion of the target control located in the first slot, the target control is determined to fall into the second slot, otherwise, the target control is determined to still fall into the first slot.
Optionally, the method further comprises: and responding to the touch point corresponding to the dragging operation to move from the second area to the area outside the virtual wheel disc, and keeping the control target control in the second area.
In an optional embodiment, in the process of moving when the player presses the target control, the target control may be controlled to move along with the movement of the finger, but the movement range of the target control may only be within the display area of the virtual wheel, that is, in the case that the target control overlaps with the edge of the virtual wheel, that is, when the target control is dragged beyond the display area of the virtual wheel, the target control may be controlled to stop moving, that is, to continue dragging the target control, and the target control does not move any more.
Optionally, the method further comprises: and responding to the target control returning to the central position, and keeping the selected state of the first slot position.
In an optional embodiment, assuming that the preset distance range of the selected area is 5-10 and the preset distance range of the area to be used is 10-20, if the initial dragging distance of the target control is 15, the target control is initially the area to be used, at this time, the target control is dragged back, the distance from the center of the circle is 4, and the selected state of the first slot is maintained.
Optionally, the method further comprises: and moving the touch point corresponding to the dragging operation from the second area to an area outside the virtual wheel disc, and keeping the selected state of the first slot position.
In an optional embodiment, assuming that the preset distance range of the selected area is 5-10 and the preset distance range of the area to be used is 10-20, if the dragging distance of the target control is 22, it is determined that the corresponding target sub-area is the area to be used at this time.
Optionally, the obtaining the operation parameter comprises: establishing a target coordinate system by taking the center of the virtual wheel disc as an origin; determining a moving track of the dragging operation in a target coordinate system; an operating parameter is determined based on the movement trajectory.
The target coordinate system in the above step may be a planar rectangular coordinate system, which uses the center of the virtual wheel disc as an origin, the horizontal direction is an x-axis, and the vertical direction is a y-axis; the target coordinate system may be a polar coordinate system having the center of the virtual wheel as a pole, the horizontal rightward direction as a polar axis, the upper direction as a positive angle direction, and the lower direction as a negative angle direction. The movement track in the above step may be a track formed by a plurality of movement coordinate points of the target control in the target coordinate system.
In an alternative embodiment, in the case that the target coordinate system is a planar rectangular coordinate system, an included angle between the moving track and the x axis may be calculated to obtain a dragging angle, and a distance between the current coordinate point and the origin may be calculated to obtain a dragging distance. Under the condition that the target coordinate system is a polar coordinate system, the coordinate value of the current coordinate point can be directly read, and the dragging angle and the dragging distance can be obtained.
Optionally, the method further comprises: in response to the end of the drag operation, the virtual wheel is hidden.
When the fingers of the player release the target control, the electronic device determines that the player stops dragging the target control, namely, the dragging operation is finished, and the virtual wheel disc can be automatically retracted, namely, the virtual wheel disc is hidden. Optionally, in response to selecting the first slot, the method further comprises: and displaying the indication mark from the central position to the target control.
The indicator of the above step may be an icon displayed between the center position and the current position, for example, a chain icon, which indicates that there is a link relationship between the two positions, as shown by the connecting line between the dashed circle and the solid circle in fig. 4.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
In this embodiment, a game control device is further provided, and the device is used to implement the above embodiments and preferred embodiments, and the description of the device is omitted. As used hereinafter, the terms "unit", "module" and "modules" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 7 is a block diagram of a game control apparatus according to an embodiment of the present invention, in which a terminal device provides a graphical user interface, and the content displayed by the graphical user interface includes a part of a game scene, at least one virtual character, and a shortcut icon, as shown in fig. 7, the apparatus includes: the display module 72 is configured to display a virtual roulette on the graphical user interface in response to a touch operation for the shortcut icon, where the virtual roulette includes a target control located at a center position of the virtual roulette and a plurality of slot positions, each slot position is composed of a first region and a second region, the first region is located between the center position and the second region, and each slot position is used for establishing a binding relationship with at least one virtual article; a first control module 74, configured to, in response to a drag operation for the target control, control the target control to move in the graphical user interface along with the drag operation; a selecting module 76, configured to select a first slot position in response to the target control reaching a first region of the first slot position in the multiple slot positions; and a second control module 78, configured to control the virtual character to use the first virtual article corresponding to the first slot position in response to the target control reaching the second area of the first slot position.
Optionally, the apparatus further comprises: and the rotating module is used for responding to the sliding operation aiming at the hollow white area in the graphical user interface in the process of displaying the virtual wheel disc and controlling the virtual wheel disc to rotate according to the sliding operation.
Optionally, the display module 72 is further configured to display detailed information of the first virtual item in response to the target control reaching the first region of the first slot.
Optionally, the apparatus further comprises: and the maintaining module is used for responding to the return of the target control to the central position and maintaining the selected state of the first slot position.
Optionally, the apparatus further comprises: the rotating module is used for responding to the sliding operation aiming at the hollow white area in the graphical user interface in the process that the first slot position is in the selected state and controlling the virtual wheel disc to rotate according to the sliding operation; and the canceling module is used for canceling the selected state of the first slot position and selecting the second slot position in response to the target control falling into the second slot position.
Optionally, the first slot position and the second slot position are adjacent slot positions, and the apparatus further includes: and the determining module is used for determining that the target control falls into the second slot in response to the fact that the area of the part of the target control located in the second slot is larger than the area of the part of the target control located in the first slot.
Optionally, the apparatus further comprises: and the third control module is used for responding to the movement of the touch point corresponding to the dragging operation from the second area to the area outside the virtual wheel disc, and controlling the target control to be kept in the second area.
Optionally, the display module 72 is further configured to display an indication of the target control from the center position in response to selecting the first slot.
Optionally, the apparatus further comprises: and the hiding module is used for hiding the virtual wheel disc in response to the end of the dragging operation.
It should be noted that, the above units and modules may be implemented by software or hardware, and for the latter, the following may be implemented, but not limited to: the units and the modules are all positioned in the same processor; alternatively, the units and modules may be located in different processors in any combination.
Embodiments of the present invention also provide a non-volatile storage medium having a computer program stored therein, wherein the computer program is configured to perform the steps of any of the above method embodiments when executed.
Alternatively, in the present embodiment, the above-mentioned nonvolatile storage medium may be configured to store a computer program for executing the steps of:
s1, responding to touch operation aiming at the shortcut icon, displaying a virtual roulette on a graphical user interface, wherein the virtual roulette comprises a target control located at the center of the virtual roulette and a plurality of slot positions, each slot position consists of a first area and a second area, the first area is located between the center and the second area, and each slot position is used for establishing a binding relationship with at least one virtual article;
s2, responding to the dragging operation aiming at the target control, and controlling the target control to move in the graphical user interface along with the dragging operation;
s3, responding to the target control reaching a first region of a first slot position in the plurality of slot positions, and selecting the first slot position;
and S4, in response to the target control reaching the second area of the first slot position, controlling the virtual character to use the first virtual article corresponding to the first slot position.
Optionally, in this embodiment, the nonvolatile storage medium may include, but is not limited to: various media capable of storing computer programs, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
Embodiments of the present invention also provide an electronic device comprising a memory having a computer program stored therein and a processor arranged to run the computer program to perform the steps of any of the above method embodiments.
Optionally, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program:
s1, responding to touch operation aiming at the shortcut icon, displaying a virtual roulette on a graphical user interface, wherein the virtual roulette comprises a target control located at the center of the virtual roulette and a plurality of slot positions, each slot position consists of a first area and a second area, the first area is located between the center and the second area, and each slot position is used for establishing a binding relationship with at least one virtual article;
s2, responding to the dragging operation aiming at the target control, and controlling the target control to move in the graphical user interface along with the dragging operation;
s3, responding to the target control reaching a first region of a first slot position in the plurality of slot positions, and selecting the first slot position;
and S4, in response to the target control reaching the second area of the first slot position, controlling the virtual character to use the first virtual article corresponding to the first slot position.
Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation manners, and this embodiment is not described herein again.
In the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed technology can be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units may be a logical division, and in actual implementation, there may be another division, for example, multiple units 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 through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of 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 invention 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 integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes 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 invention. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (13)

1. A game control method is characterized in that a terminal device provides a graphical user interface, and the content displayed by the graphical user interface comprises a part of game scene, at least one virtual character and a shortcut icon, and the method comprises the following steps:
responding to touch operation aiming at the shortcut icon, displaying a virtual roulette on the graphical user interface, wherein the virtual roulette comprises a target control located at the center of the virtual roulette and a plurality of slot positions, each slot position consists of a first area and a second area, the first area is located between the center and the second area, and each slot position is used for establishing a binding relationship with at least one virtual article;
in response to a dragging operation for the target control, controlling the target control to move in the graphical user interface along with the dragging operation;
in response to the target control reaching a first region of a first slot of the plurality of slots, selecting the first slot;
and controlling the virtual character to use the first virtual article corresponding to the first slot position in response to the target control reaching the second area of the first slot position.
2. The method of claim 1, further comprising:
and in the process of displaying the virtual wheel disc, responding to the sliding operation aiming at the hollow area in the graphical user interface, and controlling the virtual wheel disc to rotate according to the sliding operation.
3. The method of claim 1, further comprising:
in response to the target control reaching the first region of the first slot, displaying detailed information of the first virtual item.
4. The method of claim 1, further comprising:
in response to the target control returning to the center position, maintaining the selected state of the first slot.
5. The method of claim 4, further comprising:
in the process that the first slot position is in the selected state, responding to sliding operation aiming at a hollow white area in the graphical user interface, and controlling the virtual wheel disc to rotate according to the sliding operation;
and in response to the target control falling into a second slot position, canceling the selected state of the first slot position, and selecting the second slot position.
6. The method of claim 5, wherein the first slot and the second slot are adjacent slots, the method further comprising:
determining that the target control falls into the second slot in response to the area of the portion of the target control in the second slot being greater than the area of the portion of the target control in the first slot.
7. The method of claim 1, further comprising:
and controlling the target control to be kept in the second area in response to the touch point corresponding to the dragging operation moving from the second area to the area outside the virtual wheel.
8. The method of claim 1, wherein in response to selecting the first slot, the method further comprises:
displaying an indication from the central location to the target control.
9. The method of claim 1, further comprising:
hiding the virtual wheel in response to an end of the drag operation.
10. A game control apparatus for providing a graphical user interface through a terminal device, the graphical user interface displaying contents including a part of a game scene, at least one virtual character, and a shortcut icon, the apparatus comprising:
the display module is used for responding to touch operation aiming at the shortcut icon and displaying a virtual roulette on the graphical user interface, wherein the virtual roulette comprises a target control located at the center of the virtual roulette and a plurality of slot positions, each slot position consists of a first area and a second area, the first area is located between the center and the second area, and each slot position is used for establishing a binding relationship with at least one virtual article;
the first control module is used for responding to the dragging operation aiming at the target control and controlling the target control to move in the graphical user interface along with the dragging operation;
the selecting module is used for responding to the target control reaching a first area of a first slot position in the plurality of slot positions and selecting the first slot position;
and the second control module is used for controlling the virtual character to use the first virtual article corresponding to the first slot position in response to the target control reaching the second area of the first slot position.
11. A computer-readable storage medium, in which a computer program is stored, wherein the computer program is arranged to execute the game control method of any one of claims 1 to 9 when executed.
12. A processor for running a program, wherein the program is arranged to perform the game control method of any one of claims 1 to 9 when run.
13. An electronic device comprising a memory and a processor, wherein the memory has stored therein a computer program, and the processor is configured to execute the computer program to perform the game control method of any one of claims 1 to 9.
CN202111547436.9A 2021-12-16 2021-12-16 Game control method and device Pending CN114307131A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111547436.9A CN114307131A (en) 2021-12-16 2021-12-16 Game control method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111547436.9A CN114307131A (en) 2021-12-16 2021-12-16 Game control method and device

Publications (1)

Publication Number Publication Date
CN114307131A true CN114307131A (en) 2022-04-12

Family

ID=81052949

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111547436.9A Pending CN114307131A (en) 2021-12-16 2021-12-16 Game control method and device

Country Status (1)

Country Link
CN (1) CN114307131A (en)

Similar Documents

Publication Publication Date Title
US10716995B2 (en) Information processing method and apparatus, storage medium, and electronic device
US10716997B2 (en) Information processing method and apparatus, electronic device, and storage medium
US11290543B2 (en) Scene switching method based on mobile terminal
CN108355354B (en) Information processing method, device, terminal and storage medium
US20190060767A1 (en) Shooting Game Control Method and Apparatus, Storage Medium, Processor, and Terminal
CN109513208B (en) Object display method and device, storage medium and electronic device
CN110448904B (en) Game view angle control method and device, storage medium and electronic device
CN111701226A (en) Control method, device and equipment for control in graphical user interface and storage medium
CN113350779A (en) Game virtual character action control method and device, storage medium and electronic equipment
CN113908550A (en) Virtual character control method, nonvolatile storage medium, and electronic apparatus
CN113262476B (en) Position adjusting method and device of operation control, terminal and storage medium
CN113262489B (en) Game route generation method and device, nonvolatile storage medium and electronic device
CN108543308B (en) Method and device for selecting virtual object in virtual scene
CN113900570A (en) Game control method, device, equipment and storage medium
CN113440848A (en) In-game information marking method and device and electronic device
WO2024007675A1 (en) Virtual object switching method and apparatus, storage medium, and electronic apparatus
CN108415570B (en) Control selection method and device based on augmented reality
CN113694514B (en) Object control method and device
CN114307131A (en) Game control method and device
CN115089959A (en) Direction prompting method and device in game and electronic terminal
CN115738230A (en) Game operation control method and device and electronic equipment
CN114504808A (en) Information processing method, information processing apparatus, storage medium, processor, and electronic apparatus
CN114053706A (en) Game interface visual angle processing method, device, equipment and storage medium
CN113797527A (en) Game processing method, device, equipment, medium and program product
CN113440835A (en) Control method and device of virtual unit, processor and electronic device

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