Control method and device of game control, and touch terminal
By setting an extended area for game controls and selecting corresponding control behaviors based on touch points, the problem of misoperation caused by control occlusion is solved, enabling precise operation and a better gaming experience in environments with dense controls.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- NETEASE (HANGZHOU) NETWORK CO LTD
- Filing Date
- 2022-11-24
- Publication Date
- 2026-04-14
AI Technical Summary
In games, the obstruction between controls can easily lead to accidental actions by players, affecting the gaming experience.
By setting an extended area for each control in the game interface, the system responds to touch operations to determine the extended area where the touch point is located, controls the virtual character to perform corresponding actions, and selects the control that is closest or has the highest display level to operate when multiple extended areas overlap.
In situations with dense controls, avoid controls obscuring each other, improve the accuracy of player operations, alleviate misoperation problems, and enhance the gaming experience.
Smart Images

Figure CN115708953B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of game technology, and in particular to a method, device, and touch terminal for controlling controls in games. Background Technology
[0002] Many game interfaces contain various controls, such as skill controls, attack controls, and defense controls. These controls are often clustered in one area, making it easy for players to accidentally click the wrong control during gameplay. Current technology typically enlarges the controls to try and avoid this problem, but this can also obscure other controls.
[0003] In current technology, the obstruction between controls can cause players to accidentally operate the controls in the game, affecting the player's gaming experience. Summary of the Invention
[0004] The purpose of this disclosure is to provide a method, device, and touch terminal for controlling controls in games, so as to alleviate the technical problem that players are prone to accidentally operating controls in games.
[0005] In a first aspect, embodiments of this disclosure provide a method for controlling controls in a game, providing a graphical user interface via a terminal device. The game scene includes a virtual character controlled by the terminal device, and the graphical user interface includes controls for the virtual character and corresponding extended areas for the controls, the extended areas surrounding the display area of the controls; the method includes:
[0006] In response to a touch operation on the graphical user interface, determine the touch point corresponding to the touch operation;
[0007] In response to the touch point being located in the first extended area, a first control corresponding to the first extended area is determined;
[0008] Control the virtual character to perform the behavior corresponding to the first control;
[0009] In response to the touch point being located in multiple extended areas, multiple controls corresponding to the multiple extended areas are determined;
[0010] Determine the second control from the plurality of controls that has the shortest distance to the touch point;
[0011] Control the virtual character to perform the behavior corresponding to the second control;
[0012] In response to the touch point being located in the overlapping area between the second extended area and the display area of the third control, the virtual character is controlled to perform the behavior corresponding to the third control.
[0013] Secondly, embodiments of this disclosure provide a control device for controls in a game, providing a graphical user interface via a terminal device. The game scene includes a virtual character controlled by the terminal device, and the graphical user interface includes controls for the virtual character and corresponding extended areas for the controls, the extended areas surrounding the display area of the controls; including:
[0014] The first determining module is configured to determine the touch point corresponding to the touch operation in response to the touch operation of the graphical user interface;
[0015] The second determining module is used to determine the first control corresponding to the first extended area in response to the touch point being located in the first extended area;
[0016] The first control module is used to control the virtual character to perform the behavior corresponding to the first control;
[0017] The third determination module is used to respond to the fact that the touch point is located in multiple extended areas, determine multiple controls corresponding to the multiple extended areas, determine the second control with the shortest distance to the touch point from the multiple controls, and control the virtual character to perform the behavior corresponding to the second control;
[0018] The second control module is used to control the virtual character to perform the behavior corresponding to the third control in response to the touch point being located in the overlapping area between the second extended area and the display area of the third control.
[0019] Thirdly, this disclosure also provides a touch terminal, including a memory and a processor. The memory stores a computer program that can run on the processor, and the processor executes the computer program to implement the steps of the method described in the first aspect above.
[0020] Fourthly, embodiments of this disclosure also provide a computer-readable storage medium storing computer-executable instructions that, when invoked and executed by a processor, cause the processor to perform the method described in the first aspect above.
[0021] The embodiments disclosed herein bring the following beneficial effects:
[0022] This disclosure provides a method, device, and touch terminal for controlling controls in a game. First, in response to a touch operation on a graphical user interface, a touch point corresponding to the touch operation is determined. Then, in response to the touch point being located in a first extended area, a first control corresponding to the first extended area is determined, thereby controlling a virtual character to perform an action corresponding to the first control. In response to the touch point being located in multiple extended areas, multiple controls corresponding to the multiple extended areas are determined. From the multiple controls, a second control with the shortest distance to the touch point is determined, and the virtual character is controlled to perform an action corresponding to the second control. In response to the touch point being located in the overlapping area between a second extended area and the display area of a third control, the virtual character is controlled to perform an action corresponding to the third control. In this solution, the display area of a control is surrounded by its corresponding extended area, creating a two-layer nested relationship. When the touch point enters an extended area, the virtual character can be controlled to execute the behavior of the control corresponding to that extended area. When the touch point enters multiple extended areas, the virtual character can be controlled to execute the behavior of the control corresponding to the nearest extended area. When the touch point enters the overlapping part of a control and an extended area, the virtual character can be controlled to execute the behavior of the overlapping control. Therefore, it is not necessary to enlarge the clickable and display areas of the control itself, and it avoids one control from obscuring the area of other nearby controls. Even when controls are densely packed, players can accurately operate on the controls. When the player taps the wrong control, it can assist in selecting the control they want to tap, alleviating the technical problem of players accidentally operating controls in the game and improving the player's gaming experience. Attached Figure Description
[0023] To more clearly illustrate the technical solutions in the specific embodiments of this disclosure or the prior art, the drawings used in the description of the specific embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this disclosure. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0024] Figure 1 This is a schematic diagram illustrating an application scenario provided by an embodiment of this disclosure;
[0025] Figure 2 This is a schematic diagram of the structure of a touch terminal provided in an embodiment of the present disclosure;
[0026] Figure 3 This is a schematic diagram illustrating a usage scenario of a touch terminal provided in an embodiment of this disclosure;
[0027] Figure 4 A flowchart illustrating a control method for a control in a game, provided as an embodiment of this disclosure;
[0028] Figure 5 A graphical user interface diagram provided for an embodiment of this disclosure;
[0029] Figure 6 Another graphical user interface diagram provided for an embodiment of this disclosure;
[0030] Figure 7 Another graphical user interface diagram provided for an embodiment of this disclosure;
[0031] Figure 8 Another graphical user interface diagram provided for an embodiment of this disclosure;
[0032] Figure 9 This is a structural schematic of a control device for game controls provided in an embodiment of the present disclosure. Detailed Implementation
[0033] To make the objectives, technical solutions, and advantages of the embodiments of this disclosure clearer, the technical solutions of this disclosure will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this disclosure, not all embodiments. Based on the embodiments of this disclosure, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this disclosure.
[0034] The terms “comprising” and “having”, and any variations thereof, used in the embodiments of this disclosure are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device that includes a series of steps or units is not limited to the steps or units listed, but may optionally include other steps or units not listed, or may optionally include other steps or units inherent to such processes, methods, products, or devices.
[0035] Current mobile game controls are generally designed to cover only the standard clickable area, but players may sometimes tap off-center, resulting in missed clicks. Since most controls have rectangular or circular clickable areas, simply enlarging the clickable area of a control would obscure other nearby controls.
[0036] As the aforementioned defects indicate, with existing game mechanics, players are prone to accidental input when interacting with densely packed game controls. Current games suffer from a technical problem that makes players susceptible to accidental control input.
[0037] Based on this, the present disclosure provides a method, device, and touch terminal for controlling controls in games. This method avoids enlarging the clickable area of the control itself, prevents the control from obscuring the areas of other nearby controls, and allows players to accurately operate the controls when they are densely packed. When the player clicks the wrong control, it can also help the player select the control they want to click, thus alleviating the technical problem that players are prone to accidentally operating controls in games.
[0038] In one embodiment of this disclosure, the control method for game controls can run on a local terminal device or a server. When the control method for game controls runs on a server, the method can be implemented and executed based on a cloud interaction system, wherein the cloud interaction system includes a server and a client device.
[0039] In an optional implementation, various cloud applications, such as cloud gaming, can run under the cloud interaction system. Taking cloud gaming as an example, cloud gaming refers to a gaming method based on cloud computing. In the cloud gaming operating mode, the game program and the game screen presentation are separated. The storage and execution of the control methods in the game are completed on the cloud gaming server. The client device is used for data reception, transmission, and game screen presentation. For example, the client device can be a display device with data transmission capabilities located close to the user, such as a mobile terminal, television, computer, or PDA; however, the information processing is performed by the cloud gaming server in the cloud. When playing the game, the player operates the client device to send operation commands to the cloud gaming server. The cloud gaming server runs the game according to the operation commands, encodes and compresses the game screen and other data, returns it to the client device via the network, and finally, the client device decodes and outputs the game screen.
[0040] In an optional implementation, taking a game as an example, the local terminal device stores the game program and is used to display the game screen. The local terminal device is used to interact with the player through a graphical user interface (GUI), i.e., conventionally by downloading, installing, and running the game program via an electronic device. The local terminal device can provide the GUI to the player in various ways, such as rendering it on the terminal's display screen or providing it to the player via holographic projection. For example, the local terminal device can include a display screen for displaying the GUI, which includes game screens, and a processor for running the game, generating the GUI, and controlling the display of the GUI on the display screen.
[0041] In one possible implementation, this disclosure provides a method for controlling controls in a game, which provides a graphical user interface through a terminal device. The terminal device can be either the aforementioned local terminal device or a client device in the aforementioned cloud interactive system.
[0042] For example, such as Figure 1 As shown, Figure 1 This is a schematic diagram illustrating an application scenario provided by an embodiment of this disclosure. The application scenario may include a touch terminal (e.g., mobile phone 102) and a server 101. The touch terminal can communicate with the server 101 via a wired or wireless network. The touch terminal is used to run a virtual desktop, through which it can interact with the server 101 to control virtual characters within the server 101.
[0043] This embodiment uses a mobile phone 102 as an example to illustrate the touch terminal. The mobile phone 102 includes components such as a radio frequency (RF) circuit 210, a memory 220, a touchscreen 230, and a processor 240. Those skilled in the art will understand that... Figure 2 The mobile phone structure shown does not constitute a limitation on the mobile phone and may include more or fewer components than shown, or combine or separate certain components, or have different component arrangements. Those skilled in the art will understand that the touchscreen 230 is a user interface (UI), and the mobile phone 102 may include a user interface with fewer components than shown.
[0044] RF circuit 210 can also communicate wirelessly with networks and other devices. The wireless communication can use any communication standard or protocol, including but not limited to Global System for Mobile Communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, and Short Messaging Service (SMS).
[0045] The memory 220 can be used to store software programs and modules. The processor 240 executes various functional applications and data processing of the mobile phone 102 by running the software programs and modules stored in the memory 220. The memory 220 may mainly include a program storage area and a data storage area. The program storage area may store the operating system, at least one application required for a function, etc.; the data storage area may store data created based on the use of the mobile phone 102, etc. In addition, the memory 220 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device.
[0046] The touchscreen 230 can be used to display a graphical user interface and receive user actions on the graphical user interface. Specifically, the touchscreen 230 may include a display panel and a touch panel. The display panel can be configured as a liquid crystal display (LCD), organic light-emitting diode (OLED), or similar device. The touch panel can collect touch or non-touch operations from the user on or near it (e.g., ...). Figure 3 As shown, the user operates on or near the touch panel using their finger 301, stylus, or any suitable object or accessory, generating pre-set operation commands. The touch panel can include a touch detection device and a touch controller. The touch detection device detects the user's touch position and posture, and detects the signals generated by the touch operation, transmitting the signals to the touch controller. The touch controller receives touch information from the touch detection device, converts it into information that the processor can process, and sends it to the processor 240. It can also receive and execute commands from the processor 240. Furthermore, the touch panel can be implemented using various types of technologies, such as resistive, capacitive, infrared, and surface acoustic wave, or any future-developed technology. Further, the touch panel can cover the display panel. The user can operate on or near the touch panel covered by the display panel according to the graphical user interface displayed on the display panel. After detecting the operation on or near the touch panel, the touch panel transmits it to the processor 240 to confirm the user input. Subsequently, the processor 240 responds to the user input by providing corresponding visual output on the display panel. In addition, the touch panel and the display panel can be implemented as two separate components or integrated together.
[0047] The processor 240 is the control center of the mobile phone 102. It connects various parts of the mobile phone through various interfaces and lines. By running or executing software programs and / or modules stored in the memory 220, and calling data stored in the memory 220, it performs various functions of the mobile phone 102 and processes data, thereby monitoring the mobile phone as a whole.
[0048] The embodiments of this disclosure will be further described below with reference to the accompanying drawings.
[0049] Figure 4 This is a flowchart illustrating a control method for a control in a game, as provided in an embodiment of this disclosure.
[0050] This method can be applied to terminal devices capable of displaying graphical user interfaces (e.g., Figure 2 The mobile phone 102 shown provides a graphical user interface (GUI) through the terminal device. The game scene includes virtual characters controlled by the terminal device. The GUI includes controls for the virtual characters and corresponding extended areas for the controls. The extended areas surround the display area of the controls. Figure 4 As shown, the method includes:
[0051] Step S410: In response to a touch operation for a graphical user interface, determine the touch point corresponding to the touch operation.
[0052] In one optional implementation, the control in this embodiment of the present disclosure can be a relatively large area or a relatively small area of the graphical user interface. The control can be square, rectangular, frame-shaped, or other shapes (e.g., circle). The control can be displayed in the upper left, upper right, or other positions in the graphical user interface, and this exemplary embodiment is not limited thereto.
[0053] Specifically, a graphical user interface (GUI) is provided via a terminal device. The GUI includes at least one functional control, such as a movement control, a shooting control, an item release control, an aiming control, etc. In response to touch input to the movement control, the virtual character is controlled to move within the game scene; in response to touch input to the shooting control, the virtual character is controlled to shoot in the aiming direction; in response to touch input to the item release control, the virtual character is controlled to throw virtual items in the aiming direction; in response to touch input to the aiming control, the virtual object is controlled to adjust its aiming direction, and so on.
[0054] In this step, for example, such as Figure 5 As shown, the controls in the game consist of two parts. Taking attack control 501 as an example, attack control 501 includes a display area 502 and an extended area 503 (the area within the dashed circle). The extended area 503 surrounds the display area 502 of attack control 501. The display area 502 represents the normal trigger range of attack control 501, while the extended area 503 is an additional area set up to expand the trigger range of attack control 501. When the player performs a touch operation on the graphical user interface, the system can determine the touch point corresponding to the touch operation.
[0055] Step S420: In response to the touch point being located in the first extended area, determine the first control corresponding to the first extended area.
[0056] For example, such as Figure 5 As shown, if the player's touch point 504 on the mobile phone screen is located within the extended area 503 or the display area 502, the system can determine that the player has performed a touch operation on the attack control 501 (first control).
[0057] Step S430: Control the virtual character to perform the behavior corresponding to the first control.
[0058] For example, the system can respond to a player's touch operation on the attack control 501, control the virtual character to perform the behavior corresponding to the control 501, and control the virtual character to launch an attack in the game scene.
[0059] In some embodiments, the extended areas of different controls may overlap. When the touch point is located in the overlapping area of multiple extended areas, the system can determine the control closest to the touch point as the control selected by the player. This achieves the function of assisting the player in selecting the control they want to select when the touch point is off-target, thus avoiding accidental operation. As an example, the method may also include the following steps:
[0060] Step a) In response to the touch point being located in multiple extended areas, determine multiple controls corresponding to the multiple extended areas.
[0061] Step b) Determine the second control that is closest to the touch point from among multiple controls.
[0062] Step c) Control the virtual character to perform the behavior corresponding to the second control.
[0063] For example, such as Figure 6 As shown, the graphical user interface includes an attack control 501 and a defense control 601. The extended areas of the attack control 501 and the extended areas of the defense control 601 have a first overlapping area 602. If the player's touch point 603 on the phone screen is located within the first overlapping area 602, the system can identify the attack control 501 and the defense control 601, then calculate the shortest distance between the touch point 603 and the attack control 501, compare the shortest distances, and determine the control with the shortest distance to the touch point 603.
[0064] For example, in Figure 6 The control with the shortest distance to the touch point 603 is the defense control 601. Therefore, the system can determine the player's touch operation as a touch operation targeting the defense control 601 and control the virtual character to perform defensive actions in the game scene.
[0065] By making the system respond to the touch point being located in multiple extended areas, determining multiple controls corresponding to the multiple extended areas, and identifying the second control with the shortest distance from the touch point from among the multiple controls, the virtual character is controlled to perform the behavior corresponding to the second control. This enables players to accurately operate on the controls when they are densely packed, and assists them in selecting the control they want when they tap the wrong spot, reducing the possibility of player misoperation and improving the player's gaming experience.
[0066] In some embodiments, the extended areas and display areas of different controls may overlap. When the touch point is located in the overlapping area between the extended and display areas, the system can determine that the player has selected the control corresponding to that display area. This clearly distinguishes the trigger priority between the display area and the extended area, and assists the player in selecting the desired control when the touch point is misclicked, thus preventing accidental operation. As an example, the method may also include the following steps:
[0067] Step f) In response to the touch point being located in the overlapping area between the second extended area and the display area of the third control, the virtual character is controlled to perform the behavior corresponding to the third control.
[0068] For example, such as Figure 7 As shown, the graphical user interface includes an attack control 501 and a jump control 701. The extended area of the attack control 501 and the display area of the jump control 701 have a second overlapping area 702. If the player's touch point on the mobile phone screen is located within the second overlapping area 702, the system can determine the player's touch operation as a touch operation on the jump control 701, and control the virtual character to perform a jump action in the game scene.
[0069] By making the system respond to the touch point being located in the overlapping area between the second extended area and the display area of the third control, the system controls the virtual character to perform the behavior corresponding to the third control. When the touch point is located in the overlapping area between the extended area and the display area, the system can clearly distinguish the trigger priority of the display area and the extended area, and determine the control corresponding to the display area as the control corresponding to the player's touch operation, so that the player can perform operations more accurately and improve the player's gaming experience.
[0070] In this embodiment, the display area of a control is surrounded by an extended area corresponding to that control, giving the control a two-layer nesting relationship. When the touch point of a touch operation enters an extended area, the virtual character can be controlled to execute the behavior of the control corresponding to that extended area. When the touch point of a touch operation enters multiple extended areas, the virtual character can be controlled to execute the behavior of the control corresponding to the nearest extended area. When the touch point of a touch operation enters the overlapping part of a control and an extended area, the virtual character can be controlled to execute the behavior corresponding to the overlapping control. Therefore, it is not necessary to enlarge the click area and display area of the control itself, and to avoid a control from obscuring the area of other nearby controls. Even when controls are densely packed, players can accurately operate the controls. When the player taps the wrong control, it can assist in selecting the control that needs to be selected, alleviating the technical problem of players easily misoperating controls in the game and improving the player's gaming experience.
[0071] Based on steps a), b), and c) above, the system can determine the second control closest to the touch point in various ways, enriching its functionality. For example, by using the boundaries of the display areas of each control as the determination target, the distance between the touch point and the boundaries of the display areas of each control can be determined, thereby identifying the control closest to the touch point as the control selected by the player, making the control determination more accurate. As an example, step b) above may specifically include the following steps:
[0072] Step d) Determine the shortest boundary distance between the touch point and the display area boundary of each of the multiple controls.
[0073] Step e) identifies the control with the shortest boundary distance among the multiple boundary distances of the multiple controls as the second control.
[0074] For example, such as Figure 6 As shown, the shortest distance can be calculated by taking the shortest boundary distance between touch point 603 and the control display boundary, and taking it as the shortest distance, thereby determining the second control.
[0075] For example, calculate the shortest distance L1 between the touch point 603 and the boundary of the display area corresponding to the attack control 501, and the shortest distance L2 between the touch point 603 and the boundary of the display area corresponding to the defense control 601, and compare L1 and L2 to determine the control with the shortest distance to the touch point 603. Following the above calculation method, in Figure 6 The control with the shortest distance to the touch point 603 is the defense control 601. Therefore, the system can determine the player's touch operation as a touch operation targeting the defense control 601 and control the virtual character to perform defensive actions in the game scene.
[0076] By first determining the shortest boundary distance between the touch point and the display area boundary of each of the multiple controls, and then identifying the control with the shortest boundary distance among the multiple boundary distances as the second control, the system can more accurately determine the control closest to the touch point. This allows players to precisely operate the controls even when they are densely packed, thus improving the player's gaming experience.
[0077] In some embodiments, the display areas of different controls may overlap. When the touch point is located in the overlapping area between multiple display areas, the system can determine the control with the highest display layer as the control selected by the player based on preset trigger conditions. This clearly distinguishes the trigger priority of the display areas and assists the player in selecting the desired control when the touch point is misclicked, thus avoiding accidental operation. As an example, the method may also include the following steps:
[0078] Step g), in response to the touch point being located in the display area of multiple controls, determine the fourth control displayed on the top layer of the graphical user interface from the multiple controls according to the preset control hierarchy order.
[0079] Step h) controls the virtual character to perform the behavior corresponding to the fourth control.
[0080] For example, such as Figure 8 As shown, the graphical user interface includes an attack control 501 and an acceleration control 801. The display areas of the attack control 501 and the acceleration control 801 overlap in a third region 802. If the player's touch point on the phone screen is located within this third overlapping region 802, the system can determine the topmost control as the fourth control based on a preset display priority, i.e., a preset control hierarchy order. For example, the player or system defaults to displaying the attack control 501 above the acceleration control 801, meaning the trigger priority of the attack control 501 is higher than that of the acceleration control 801. Therefore, when the player's touch point on the phone screen is within the third overlapping region 802, the system can respond to the player's touch operation on the attack control 501, controlling the virtual character to execute the behavior corresponding to control 501 and perform attacks within the game scene.
[0081] By making the system respond to the touch point being located in the display area of multiple controls, the fourth control displayed on the top layer of the graphical user interface is determined from among the multiple controls, thereby controlling the virtual character to perform the behavior corresponding to the fourth control. This enables players to accurately operate the controls even when they are densely packed, thus improving the player's gaming experience.
[0082] In some embodiments, players can personalize the size of the expanded area according to their individual gaming habits, enriching the functionality and adapting to the gaming habits of different players. This allows players to accurately operate on controls when they are densely packed, avoiding accidental operations and improving the player's gaming experience. As an example, the method may also include the following steps:
[0083] Step i) In response to the adjustment operation for the extended region, determine the region range corresponding to the adjustment operation.
[0084] Step j) defines the area formed by the range of regions as the extended area corresponding to the control.
[0085] For example, in the game, players can adjust the extended area of the control. For instance, if a player feels that the extended area is too large or too small for them, they can adjust the area of the extended area in the game settings interface. The system can then determine the area formed by the adjusted area as the extended area of the control.
[0086] By enabling the system to respond to player adjustments to the extended area, determining the area range corresponding to the adjustment operation, and defining the area formed by the adjustment range as the extended area corresponding to the control, it can adapt to the gaming habits of different players. This allows players to accurately operate the controls even when they are densely packed, avoiding player misoperations and improving the player's gaming experience.
[0087] Based on steps i) and j) above, the adjustment operation can include various operation methods. By including multiple types of adjustment operations, players can more flexibly adjust the size of the expanded area, thereby improving click accuracy and enhancing the player's gaming experience. As an example, the adjustment operation includes any one or more of the following:
[0088] This includes operations for adjusting the size of the expanded area, adjusting the distance between areas, and adjusting the boundaries of the expanded area.
[0089] For example, such as Figure 6As shown, players can adjust the size of the expanded area, for example, adjusting the size of the expanded area corresponding to attack control 501 to a larger circle, and adjusting the size of the expanded area corresponding to defense control 601 to a smaller circle, and so on. Players can also adjust the distance between the expanded areas, for example, adjusting the distance between attack control 501 and defense control 601, thereby adjusting the distance between the expanded areas corresponding to attack control 501 and defense control 601. Players can also adjust the boundaries of the expanded areas, for example, changing the boundary of the expanded area corresponding to attack control 501 from a circle to a square, triangle, etc.
[0090] By offering a variety of adjustment options, players can flexibly adjust the size, shape, and distance of the expanded area, thereby improving click accuracy and enhancing the player's gaming experience.
[0091] In some embodiments, due to the varying importance or frequency of use of different controls, the sizes of the expanded areas corresponding to different controls can differ, thereby enriching the functionality. Players can also personalize the size of the expanded areas according to their individual gaming habits, thus improving click accuracy and enhancing the player's gaming experience. As an example, different controls correspond to different sizes of their expanded areas.
[0092] For example, different controls in a game can have the same size, such as... Figure 6 As shown, the attack control 501 and the defense control 601 have different sizes. Players can configure each control individually in the game settings interface, adjusting the size of its expansion area according to their personal gaming habits. For example, if the player controls an assassin character who needs to perform frequent attacks, the expansion area of the attack control 501 can be set larger, while the expansion area of the defense control 601 can be set smaller. Conversely, if the player controls a warrior character who needs to perform frequent defenses, the expansion area of the defense control 601 can be set larger, while the expansion area of the attack control 501 can be set smaller, or even no expansion area can be set for the attack control 501.
[0093] By allowing players to individually configure the expansion area of each control, it can adapt to the gaming habits of different players. This enables players to accurately operate the controls even when they are densely packed, avoiding accidental operation and improving the player's gaming experience.
[0094] Figure 9 This is a schematic diagram of the structure of a control device for game controls provided in an embodiment of this disclosure.
[0095] This device can be applied to terminal devices capable of displaying a graphical user interface (GUI). The GUI is provided by the terminal device, and the game scene includes virtual characters controlled by the terminal device. The GUI includes controls for the virtual characters and corresponding extended areas that surround the display area of the controls. For example... Figure 9 As shown, the control device 900 for the controls in the game includes:
[0096] The first determining module 901 is used to determine the touch point corresponding to the touch operation in response to the touch operation of the graphical user interface;
[0097] The second determining module 902 is used to determine the first control corresponding to the first extended area in response to the touch point being located in the first extended area;
[0098] The control module 903 is used to control the virtual character to perform the behavior corresponding to the first control.
[0099] In some embodiments, the device may further include:
[0100] The third determination module is used to respond to the fact that the touch point is located in multiple extended areas, determine multiple controls corresponding to the multiple extended areas, determine the second control with the shortest distance to the touch point from the multiple controls, and control the virtual character to perform the behavior corresponding to the second control.
[0101] In some embodiments, the third determining module is specifically used for:
[0102] Determine the shortest boundary distance between the touch point and the display area boundary of each of the multiple controls;
[0103] The control with the shortest boundary distance among multiple boundary distances is identified as the second control.
[0104] In some embodiments, the device may further include:
[0105] The second control module is used to control the virtual character to perform the behavior corresponding to the third control in response to the touch point being located in the overlapping area between the second extended area and the display area of the third control.
[0106] In some embodiments, the device may further include:
[0107] The fourth determination module is used to determine the fourth control displayed on the top layer of the graphical user interface from multiple controls according to a preset control hierarchy order when the touch point is located in the display area of multiple controls.
[0108] Control the virtual character to perform the behavior corresponding to the fourth control.
[0109] In some embodiments, the device may further include:
[0110] The fifth determining module is used to determine the area range corresponding to the adjustment operation in response to the adjustment operation for the extended area;
[0111] Define the area formed by the range of regions as the extended area corresponding to the control.
[0112] In some embodiments, the adjustment operation includes any one or more of the following:
[0113] This includes operations for adjusting the size of the expanded area, adjusting the distance between areas, and adjusting the boundaries of the expanded area.
[0114] In some embodiments, the size of the extended area corresponding to different controls is different.
[0115] The control device for game controls provided in this disclosure has the same technical features as the control method for game controls provided in the above embodiments, and therefore can solve the same technical problems and achieve the same technical effects. By surrounding the display area of a control with its corresponding extended area, the control has a two-layer nesting relationship. When the touch point of a touch operation enters a certain extended area, the virtual character can be controlled to execute the behavior of the control corresponding to that extended area. When the touch point of a touch operation enters multiple extended areas, the virtual character can be controlled to execute the behavior of the control corresponding to the nearest extended area. When the touch point of a touch operation enters the overlapping part of a control and an extended area, the virtual character can be controlled to execute the behavior corresponding to the overlapping control. Therefore, it is not necessary to enlarge the click area and display area of the control itself, avoiding one control from obscuring the area of other nearby controls. Even when controls are densely packed, players can accurately operate the controls. When a player misclicks, it can assist in selecting the desired control, alleviating the technical problem of players easily misoperating controls in the game and improving the player's gaming experience.
[0116] This disclosure also provides a touch terminal, including: a processor, a storage medium, and a bus. The storage medium stores machine-readable instructions executable by the processor. When the touch terminal runs a control method for a game control as described in the embodiments, the processor communicates with the storage medium via the bus. The processor executes the machine-readable instructions, and the preamble of the processor method item performs the following steps:
[0117] In response to a touch operation on the graphical user interface, determine the touch point corresponding to the touch operation;
[0118] In response to the touch point being located in the first extended area, a first control corresponding to the first extended area is determined;
[0119] Control the virtual character to perform the behavior corresponding to the first control.
[0120] The specific implementation methods and working processes can be referred to the corresponding processes in the above method embodiments, and will not be repeated here.
[0121] In one feasible implementation, the processor is further configured to:
[0122] In response to the touch point being located in multiple extended areas, multiple controls corresponding to the multiple extended areas are determined;
[0123] Determine the second control from the plurality of controls that has the shortest distance to the touch point;
[0124] Control the virtual character to perform the behavior corresponding to the second control.
[0125] In one feasible implementation, when the processor executes the step of determining the second control with the shortest distance to the touch point from the plurality of controls, it specifically performs the following:
[0126] Determine the shortest boundary distance between the touch point and the display area boundary of each of the plurality of controls;
[0127] The control with the shortest boundary distance among the multiple boundary distances corresponding to the multiple controls is determined as the second control.
[0128] In one feasible implementation, the processor is further configured to:
[0129] In response to the touch point being located in the overlapping area between the second extended area and the display area of the third control, the virtual character is controlled to perform the behavior corresponding to the third control.
[0130] In one feasible implementation, the processor is further configured to:
[0131] In response to the touch point being located in the display area of multiple controls, the fourth control displayed at the top layer in the graphical user interface is determined from the multiple controls according to a preset control hierarchy order;
[0132] Control the virtual character to perform the behavior corresponding to the fourth control.
[0133] In one feasible implementation, the processor is further configured to:
[0134] In response to the adjustment operation for the extended region, the region range corresponding to the adjustment operation is determined;
[0135] The area formed by the range of the specified region is defined as the extended area corresponding to the control.
[0136] In one feasible implementation, the adjustment operation includes any one or more of the following:
[0137] The operations performed include adjusting the size of the extended region, adjusting the distance between regions, and adjusting the boundaries of the region.
[0138] In one feasible implementation, the size of the extended area corresponding to different controls is different.
[0139] By enclosing the display area of a control within its corresponding extended area, the controls achieve a two-layer nesting relationship. When a touch point enters an extended area, the virtual character can execute the behavior of the control corresponding to that extended area. When a touch point enters multiple extended areas, the virtual character can execute the behavior of the control corresponding to the nearest extended area. When a touch point enters the overlapping area of a control and an extended area, the virtual character can execute the behavior of the overlapping control. Therefore, it is unnecessary to enlarge the clickable and display areas of the control itself, and it avoids one control obscuring the area of other nearby controls. Even when controls are densely packed, players can accurately operate on them. When a player misclicks, it can assist in selecting the control they want to click, alleviating the technical problem of players easily misoperating controls in the game and improving the player's gaming experience.
[0140] Corresponding to the control methods of the controls in the above game, this disclosure also provides a program product, such as a computer-readable storage medium, which stores computer-executable instructions. When the computer-executable instructions are invoked and executed by a processor, the computer-executable instructions cause the processor to perform the following steps:
[0141] In response to a touch operation on the graphical user interface, determine the touch point corresponding to the touch operation;
[0142] In response to the touch point being located in the first extended area, a first control corresponding to the first extended area is determined;
[0143] Control the virtual character to perform the behavior corresponding to the first control.
[0144] The specific implementation methods and working processes can be referred to the corresponding processes in the above method embodiments, and will not be repeated here.
[0145] In one feasible implementation, the processor is further configured to:
[0146] In response to the touch point being located in multiple extended areas, multiple controls corresponding to the multiple extended areas are determined;
[0147] Determine the second control from the plurality of controls that has the shortest distance to the touch point;
[0148] Control the virtual character to perform the behavior corresponding to the second control.
[0149] In one feasible implementation, when the processor executes the step of determining the second control with the shortest distance to the touch point from the plurality of controls, it specifically performs the following:
[0150] Determine the shortest boundary distance between the touch point and the display area boundary of each of the plurality of controls;
[0151] The control with the shortest boundary distance among the multiple boundary distances corresponding to the multiple controls is determined as the second control.
[0152] In one feasible implementation, the processor is further configured to:
[0153] In response to the touch point being located in the overlapping area between the second extended area and the display area of the third control, the virtual character is controlled to perform the behavior corresponding to the third control.
[0154] In one feasible implementation, the processor is further configured to:
[0155] In response to the touch point being located in the display area of multiple controls, the fourth control displayed at the top layer in the graphical user interface is determined from the multiple controls according to a preset control hierarchy order;
[0156] Control the virtual character to perform the behavior corresponding to the fourth control.
[0157] In one feasible implementation, the processor is further configured to:
[0158] In response to the adjustment operation for the extended region, the region range corresponding to the adjustment operation is determined;
[0159] The area formed by the range of the specified region is defined as the extended area corresponding to the control.
[0160] In one feasible implementation, the adjustment operation includes any one or more of the following:
[0161] The operations performed include adjusting the size of the extended region, adjusting the distance between regions, and adjusting the boundaries of the region.
[0162] In one feasible implementation, the size of the extended area corresponding to different controls is different.
[0163] By enclosing the display area of a control within its corresponding extended area, the controls achieve a two-layer nesting relationship. When a touch point enters an extended area, the virtual character can execute the behavior of the control corresponding to that extended area. When a touch point enters multiple extended areas, the virtual character can execute the behavior of the control corresponding to the nearest extended area. When a touch point enters the overlapping area of a control and an extended area, the virtual character can execute the behavior of the overlapping control. Therefore, it is unnecessary to enlarge the clickable and display areas of the control itself, and it avoids one control obscuring the area of other nearby controls. Even when controls are densely packed, players can accurately operate on them. When a player misclicks, it can assist in selecting the control they want to click, alleviating the technical problem of players easily misoperating controls in the game and improving the player's gaming experience.
[0164] The control device for game controls provided in this disclosure can be specific hardware on a device or software or firmware installed on the device. The implementation principle and technical effects of the device provided in this disclosure are the same as those in the foregoing method embodiments. For the sake of brevity, any parts not mentioned in the device embodiments can be referred to the corresponding content in the foregoing method embodiments. Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can all be referred to the corresponding processes in the above method embodiments, and will not be repeated here.
[0165] In the embodiments provided in this disclosure, it should be understood that the disclosed apparatus and methods can be implemented in other ways. The apparatus embodiments described above are merely illustrative. For example, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. Furthermore, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Additionally, the displayed or discussed mutual couplings or direct couplings or communication connections may be through some communication interfaces; indirect couplings or communication connections between devices or units may be electrical, mechanical, or other forms.
[0166] For example, the flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods, and computer program products according to various embodiments of the present disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks may occur in a different order than those marked in the drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram and / or flowchart, and combinations of blocks in block diagrams and / or flowcharts, may be implemented using a dedicated hardware-based system that performs the specified function or action, or using a combination of dedicated hardware and computer instructions.
[0167] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0168] In addition, the functional units in the embodiments provided in this disclosure can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.
[0169] If the aforementioned functions are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this disclosure, in essence, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the control methods for game controls described in the various embodiments of this disclosure. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0170] It should be noted that similar labels and letters in the following figures indicate similar items. Therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures. In addition, the terms "first", "second", "third", etc. are used only to distinguish descriptions and should not be construed as indicating or implying relative importance.
[0171] Finally, it should be noted that the above-described embodiments are merely specific implementations of this disclosure, used to illustrate the technical solutions of this disclosure, and not to limit it. The scope of protection of this disclosure is not limited thereto. Although this disclosure has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that any person skilled in the art can still modify or easily conceive of changes to the technical solutions described in the foregoing embodiments, or make equivalent substitutions for some of the technical features, within the scope of the technology disclosed in this disclosure; and these modifications, changes, or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of this disclosure. All should be covered within the scope of protection of this disclosure. Therefore, the scope of protection of this disclosure should be determined by the scope of the claims.
Claims
1. A method for controlling controls in a game, characterized in that, A graphical user interface is provided through a terminal device. The game scene includes a virtual character controlled by the terminal device. The graphical user interface includes controls for the virtual character and corresponding extended areas for the controls, the extended areas surrounding the display area of the controls. The method includes: In response to a touch operation on the graphical user interface, determine the touch point corresponding to the touch operation; In response to the touch point being located in the first extended area, a first control corresponding to the first extended area is determined; Control the virtual character to perform the behavior corresponding to the first control; In response to the touch point being located in multiple extended areas, multiple controls corresponding to the multiple extended areas are determined; Determine the second control from the plurality of controls that has the shortest distance to the touch point; Control the virtual character to perform the behavior corresponding to the second control; In response to the touch point being located in the overlapping area between the second extended area and the display area of the third control, the virtual character is controlled to perform the behavior corresponding to the third control; The size of the extended area corresponding to different controls is different, and the size of the extended area corresponding to different controls is determined based on at least one of the importance of the control, the frequency of use, and personal gaming habits.
2. The method according to claim 1, characterized in that, The step of determining the second control with the shortest distance to the touch point from the plurality of controls includes: Determine the shortest boundary distance between the touch point and the display area boundary of each of the plurality of controls; The control with the shortest boundary distance among the multiple boundary distances corresponding to the multiple controls is determined as the second control.
3. The method according to claim 1, characterized in that, Also includes: In response to the touch point being located in the display area of multiple controls, the fourth control displayed at the top layer in the graphical user interface is determined from the multiple controls according to a preset control hierarchy order; Control the virtual character to perform the behavior corresponding to the fourth control.
4. The method according to claim 1, characterized in that, Also includes: In response to the adjustment operation for the extended region, the region range corresponding to the adjustment operation is determined; The area formed by the range of the specified region is defined as the extended area corresponding to the control.
5. The method according to claim 4, characterized in that, The adjustment operation includes any one or more of the following: The operations performed include adjusting the size of the extended region, adjusting the distance between regions, and adjusting the boundaries of the region.
6. A control device for controls in a game, characterized in that, A graphical user interface is provided through a terminal device. The game scene includes a virtual character controlled by the terminal device. The graphical user interface includes controls for the virtual character and corresponding extended areas for the controls, the extended areas surrounding the display area of the controls; including: The first determining module is configured to determine the touch point corresponding to the touch operation in response to the touch operation of the graphical user interface; The second determining module is used to determine the first control corresponding to the first extended area in response to the touch point being located in the first extended area; The first control module is used to control the virtual character to perform the behavior corresponding to the first control; The third determination module is used to respond to the fact that the touch point is located in multiple extended areas, determine multiple controls corresponding to the multiple extended areas, determine the second control with the shortest distance to the touch point from the multiple controls, and control the virtual character to perform the behavior corresponding to the second control; The second control module is used to control the virtual character to perform the behavior corresponding to the third control in response to the touch point being located in the overlapping area between the second extended area and the display area of the third control; The size of the extended area corresponding to different controls is different, and the size of the extended area corresponding to different controls is determined based on at least one of the importance of the control, the frequency of use, and personal gaming habits.
7. A touch terminal, comprising a memory and a processor, wherein the memory stores a computer program executable on the processor, characterized in that, When the processor executes the computer program, it implements the steps of the method described in any one of claims 1 to 5.
8. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer operating instructions, which, when invoked and executed by a processor, cause the processor to perform the method according to any one of claims 1 to 5.
Citation Information
Patent Citations
Control responding method and device and terminal
CN108379839A
Information processing method and device in game, and electronic equipment
CN111840987A