Game control method, device and electronic device

By using the graphical user interface and touch area segmentation technology of the terminal device, the problem of low success rate of users in controlling complex virtual objects has been solved, and the high-difficulty operation has been simplified and the success rate has been improved.

CN116251344BActive Publication Date: 2026-07-07NETEASE (HANGZHOU) NETWORK CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
NETEASE (HANGZHOU) NETWORK CO LTD
Filing Date
2022-09-06
Publication Date
2026-07-07

AI Technical Summary

Technical Problem

Users have a low success rate when controlling virtual objects to perform complex game operations, especially high-difficulty operations such as curved balls and elevator balls, which current technology has not been able to effectively solve.

Method used

The terminal device provides a graphical user interface, responds to the sliding operation of the touch area in the controller, determines the trajectory type of the sliding trajectory, divides the touch area into multiple sub-areas, determines the target sub-area and the corresponding target control method based on the sliding trajectory, and controls the movement of the virtual object.

Benefits of technology

It reduces the difficulty for users to manipulate virtual objects, increases the success rate of completing difficult operations, and enhances the gaming experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116251344B_ABST
    Figure CN116251344B_ABST
Patent Text Reader

Abstract

The application discloses a game control method, device and electronic device. The method provides a graphical user interface through a terminal device, the content displayed by the graphical user interface includes at least part of a virtual scene, the virtual scene includes a virtual object controlled by the terminal device, and the method includes the following steps: in response to a sliding operation on a touch area of a controller, determining the track type of a sliding track corresponding to the sliding operation, wherein the controller is connected with the terminal device; based on the track type, dividing the touch area into a plurality of sub-areas; determining a target sub-area corresponding to the sliding operation from the plurality of sub-areas according to the sliding track; determining a target control mode corresponding to the target sub-area; and controlling the movement of the virtual object based on the target control mode. The application solves the technical problem of low success rate of complex operations of a virtual object controlled by a user in the related art.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of intelligent control, and more specifically, to a method, apparatus, and electronic device for controlling a game. Background Technology

[0002] Currently, users can control virtual objects in games to perform preset game operations by controlling various controls on the gaming device. For example, in a football game, users can control the joystick and buttons on the game controller to perform operations such as passing and shooting. However, some special game operations have a high degree of difficulty, such as curved shots and knuckleballs in football games. If users do not spend time learning the corresponding operation techniques, the success rate of completing these types of game operations will be very low.

[0003] There is currently no effective solution to the above problems. Summary of the Invention

[0004] This disclosure provides at least some embodiments of a game control method, apparatus, and electronic device to at least address the technical problem of low success rate of users controlling virtual objects to perform complex operations in the related art.

[0005] According to one embodiment of this disclosure, a game control method is provided, which provides a graphical user interface through a terminal device. The content displayed by the graphical user interface includes at least a portion of a virtual scene, and the virtual scene includes virtual objects controlled by the terminal device. The method includes: responding to a sliding operation on a touch area in a controller; determining the trajectory type of the sliding trajectory corresponding to the sliding operation, wherein the controller is connected to the terminal device; dividing the touch area into multiple sub-areas based on the trajectory type; determining a target sub-area corresponding to the sliding operation from the multiple sub-areas according to the sliding trajectory; determining a target control mode corresponding to the target sub-area; and controlling the movement of the virtual objects based on the target control mode.

[0006] According to one embodiment of this disclosure, a game control device is also provided, which provides a graphical user interface (GUI) via a terminal device. The GUI displays at least a portion of a virtual scene, which includes virtual objects controlled by the terminal device. The device includes: a trajectory type determination module, configured to determine the trajectory type of a sliding trajectory corresponding to a sliding operation in response to a sliding operation on a touch area in a controller, wherein the controller is connected to the terminal device; a region division module, configured to divide the touch area into multiple sub-regions based on the trajectory type; a region determination module, configured to determine a target sub-region corresponding to the sliding operation from the multiple sub-regions based on the sliding trajectory; a control mode determination module, configured to determine a target control mode corresponding to the target sub-region; and a control module, configured to control the movement of the virtual objects based on the target control mode.

[0007] According to one embodiment of this disclosure, a non-volatile storage medium is also provided, wherein a computer program is stored in the non-volatile storage medium, and the computer program is configured to execute the control method of the game in any of the above-mentioned embodiments when running.

[0008] According to one embodiment of this disclosure, an electronic device is also provided, including a memory and a processor, wherein the memory stores a computer program and the processor is configured to run the computer program to perform the control method of the game in any of the preceding claims.

[0009] In at least some embodiments of this disclosure, a response is made to a sliding operation on a touch area in the controller to determine the trajectory type of the sliding trajectory corresponding to the sliding operation; based on the trajectory type, the touch area is divided into multiple sub-regions; according to the sliding trajectory, a target sub-region corresponding to the sliding operation is determined from the multiple sub-regions; a target control method corresponding to the target sub-region is determined; and the movement of the virtual object is controlled based on the target control method. By determining the trajectory type of the sliding trajectory determined on the touch area and the target sub-region where a specific position on the sliding trajectory is located, the movement that the user wants to control the virtual object can be determined. This can effectively reduce the difficulty of the user's manipulation of the virtual object, making it easier to achieve complex movement operations, and solving the technical problem of low success rate of users controlling virtual objects to perform complex operations in related technologies. Attached Figure Description

[0010] The accompanying drawings, which are included to provide a further understanding of this disclosure and form part of this disclosure, illustrate exemplary embodiments of the present disclosure and are used to explain the disclosure, but do not constitute an undue limitation of the disclosure. In the drawings:

[0011] Figure 1 This is a hardware structure block diagram of a mobile terminal for a game control method according to an embodiment of the present disclosure;

[0012] Figure 2 This is a flowchart of a game control method according to one embodiment of the present disclosure;

[0013] Figure 3a This is a schematic diagram of the first curve trajectory region division result according to one embodiment of the present disclosure;

[0014] Figure 3b This is a schematic diagram of the second curve trajectory region division result according to one embodiment of the present disclosure;

[0015] Figure 3c This is a schematic diagram of the third curve trajectory region division result according to one embodiment of the present disclosure;

[0016] Figure 4aThis is a schematic diagram of the first straight-line trajectory region division result according to one embodiment of the present disclosure;

[0017] Figure 4b This is a schematic diagram of the second straight-line trajectory region division result according to one embodiment of the present disclosure;

[0018] Figure 4c This is a schematic diagram of the third straight-line trajectory region division result according to one embodiment of the present disclosure;

[0019] Figure 4d This is a schematic diagram of the fourth straight-line trajectory region division result according to one embodiment of the present disclosure;

[0020] Figure 4e This is a schematic diagram of the fifth straight-line trajectory region division result according to one embodiment of the present disclosure;

[0021] Figure 4f This is a schematic diagram of the sixth straight-line trajectory region division result according to one embodiment of the present disclosure;

[0022] Figure 5 This is a structural block diagram of a game control device according to one embodiment of the present disclosure;

[0023] Figure 6 This is a schematic diagram of an electronic device according to an embodiment of the present disclosure. Detailed Implementation

[0024] To enable those skilled in the art to better understand the present disclosure, the technical solutions of the present disclosure will be clearly and completely described below with reference to the accompanying drawings of the embodiments. Obviously, the described embodiments are only some embodiments of the present disclosure, and not all embodiments. Based on the embodiments of the present disclosure, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present disclosure.

[0025] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this disclosure are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this disclosure described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0026] The operability of a game is always a crucial factor in determining its popularity among users. High operability and the variability of virtual object behavior not only indicate a promising future for the game but also attract a large user base, ensuring its leading position in the industry. Taking football games as an example, most user actions revolve around shooting. When taking free kicks, users often choose visually appealing, engaging, and rewarding actions, such as curveballs and knuckleballs. However, these actions are relatively difficult, requiring significant time to learn, which is not user-friendly for casual players. These players have a lower success rate in performing these actions, significantly impacting their gaming experience.

[0027] According to one embodiment of this disclosure, an embodiment of a game control method is provided. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Also, although a logical order is shown in the flowchart, in some cases the steps shown or described may be executed in a different order than that shown here.

[0028] This method embodiment can be executed on a mobile terminal, computer terminal, or similar computing device. Taking running on a mobile terminal as an example, the mobile terminal can be a smartphone (such as an Android phone, iOS phone, etc.), tablet computer, PDA, mobile Internet Device (MID), PAD, game console, and other terminal devices. Figure 1 This is a hardware structure block diagram of a mobile terminal for a game control method according to an embodiment of this disclosure. Figure 1 As shown, a mobile terminal may include one or more ( Figure 1 Only one is shown in the diagram. A processor 102 (which may include, but is not limited to, a central processing unit (CPU), graphics processing unit (GPU), digital signal processing (DSP) chip, microprocessor (MCU), programmable logic device (FPGA), neural network processor (NPU), tensor processor (TPU), artificial intelligence (AI) type processor, etc.) and a memory 104 for storing data are also shown. Optionally, the mobile terminal may further include a transmission device 106 for communication functions, an input / output device 108, and a display device 110. Those skilled in the art will understand that... Figure 1 The structure shown is for illustrative purposes only and does not limit the structure of the mobile terminal described above. For example, the mobile terminal may also include components that are more... Figure 1 The more or fewer components shown, or having the same Figure 1 The different configurations shown.

[0029] The memory 104 can be used to store computer programs, such as application software programs and modules, like the computer program corresponding to the game control method in this embodiment. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, thereby implementing the aforementioned game control method. 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 instances, the memory 104 may further include memory remotely located relative to the processor 102, and these remote memories can be connected to the mobile terminal via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.

[0030] The transmission device 106 is used to receive or send data via a network. Specific examples of the network described above may include a wireless network provided by the mobile terminal's communication provider. In one example, the transmission device 106 includes a Network Interface Controller (NIC), which can connect to other network devices via a base station to communicate with the Internet. In another example, the transmission device 106 may be a Radio Frequency (RF) module used for wireless communication with the Internet.

[0031] The inputs in input / output device 108 can come from multiple human interface devices (HIDs). Examples include keyboards and mice, gamepads, and other dedicated game controllers (such as steering wheels, fishing rods, dance mats, and remote controls). Some HIDs, in addition to providing input functions, can also provide output functions, such as force feedback and vibration from gamepads, and audio output from controllers.

[0032] Display device 110 may be, for example, a head-up display (HUD), a touchscreen liquid crystal display (LCD), and a touch display (also referred to as a "touchscreen" or "touch display"). The LCD allows a user to interact with the user interface of the mobile terminal. In some embodiments, the mobile terminal has a graphical user interface (GUI), which allows the user to interact with the GUI by touching and / or gesturing on a touch-sensitive surface. Optional human-computer interaction functions include: creating web pages, drawing, word processing, creating electronic documents, playing games, video conferencing, instant messaging, sending and receiving emails, a call interface, playing digital video, playing digital music, and / or web browsing, etc. Executable instructions for performing the above human-computer interaction functions are configured / stored in one or more processor-executable computer program products or readable storage media.

[0033] In one embodiment of this disclosure, the game control method can run on a local terminal device or a server. When the game control method 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.

[0034] 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 game control methods 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 game screen data, returns it to the client device via the network, and finally, the client device decodes and outputs the game screen.

[0035] 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.

[0036] In one possible implementation, this disclosure provides a game control method that provides a graphical user interface through a terminal device, wherein the terminal device may be the aforementioned local terminal device or a client device in the aforementioned cloud interactive system. Figure 2 This is a flowchart of a game control method according to one embodiment of the present disclosure, which provides a graphical user interface (GUI) through a terminal device. The GUI includes at least a virtual scene, and the virtual scene includes virtual objects controlled by the terminal device, such as... Figure 2 As shown, the method includes the following steps:

[0037] Step S202: In response to a sliding operation on the touch area of ​​the controller, determine the trajectory type of the sliding trajectory corresponding to the sliding operation.

[0038] The controller is connected to the terminal device.

[0039] The aforementioned sliding operation can refer to the sliding curve drawn by the user on the touchpad. The aforementioned controller can refer to a device that is connected to the terminal device via a line or wireless network, or is attached to the terminal device, such as a game controller or a professional game touchpad. Generally, users can operate the touch area on the controller to change the content displayed on the terminal device in order to control the game. For example, by long-pressing and sliding the touch area, users can control the virtual object to aim. After aiming, clicking the touch area can control the virtual object to launch virtual items.

[0040] In one optional embodiment, to avoid user operation failures due to excessive game operation difficulty, which would negatively impact the user's gaming experience, the user's swiping operation within the aforementioned touch area can be used to replace the complex combination of joystick and button operations. For example, while pushing the joystick upwards, multiple buttons such as A, B, and C need to be pressed in sequence to release the special skills of virtual objects, thereby reducing the difficulty of game operation and improving the user's gaming experience.

[0041] Specifically, it can detect in real time whether there is a swiping operation in the above-mentioned touch area. If there is a swiping operation, it can further determine the trajectory type of the user's swiping trajectory in the touch area, and then determine the game operation that the user wants to perform based on the trajectory type.

[0042] In one optional embodiment, to prevent users from accidentally touching the touch area and causing the virtual object to perform incorrect game operations, a time threshold can be set. Only when the time the user touches the touch area exceeds the time threshold is it determined that the user has performed a swipe operation, and then the swipe trajectory type corresponding to the swipe operation is determined.

[0043] Generally, the above trajectory types can be divided into straight-line trajectories and curved trajectories. Curved trajectories can be further subdivided into various sub-curved trajectories with different curvature ranges based on the size of the trajectory arc.

[0044] It should be noted that the method proposed in this disclosure for determining the user's desired game operation based on the sliding trajectory does not mean that the user can only perform game operations through the aforementioned touch area. Specifically, it can be determined based on the game content. That is, while using the touch area, the user can also combine it with the joystick, buttons, and other controls on the terminal device to complete the game. Taking a football game as an example, the user can use the joystick to control the main field of view of the virtual object, use the buttons to control the virtual object to pass, shoot, etc., and use the aforementioned touch area to control the virtual object to perform highly visually appealing and rewarding game operations such as curved shots and knuckleballs in certain virtual scenarios, such as when taking a penalty kick.

[0045] Step S204: Based on the trajectory type, the touch area is divided into multiple sub-regions.

[0046] The aforementioned sub-regions can refer to parts of the touch area, such as the upper left corner or the middle area of ​​the touch area.

[0047] After determining the trajectory type of the above sliding trajectory, in order to provide users with a variety of different game operations, the above touch area can be divided according to the trajectory type and preset rules.

[0048] Optionally, based on the trajectory type, the touch area can be divided into multiple sub-regions, including: dividing the touch area into three sub-regions in response to a curve trajectory type; and dividing the touch area into six sub-regions in response to a straight trajectory type.

[0049] In one optional embodiment, considering the operating habits of most users, the touch area can be divided into three sub-areas when the trajectory type is a curve, and into six sub-areas when the trajectory type is a straight line.

[0050] In one optional embodiment, the user can set the above-mentioned preset rules according to their own usage habits and actual needs. For example, if the user's hand size is small, the multiple sub-areas can be concentrated on one side of the touch area; if the user makes a lot of accidental touches, the multiple sub-areas can be placed on one side that is not easy to touch.

[0051] Optionally, the three sub-regions include: a left sub-region located to the left of the touch area, a right sub-region located to the right of the touch area, and an upper sub-region located above the touch area and adjacent to both the left and right sub-regions.

[0052] Figure 3a This is a schematic diagram of the first curve trajectory region division result according to one embodiment of the present disclosure, such as... Figure 3a As shown, when the user-drawn sliding trajectory is a curve, the touch area can be divided into three sub-regions in a Y-shape: sub-region ① to the left of the touch area, sub-region ② to the right of the touch area, and sub-region ③ above the touch area and adjacent to the aforementioned two sub-regions. This division method can effectively distinguish the start and end points and the point of maximum curvature of the curved sliding trajectory, thereby improving the accuracy of determining the control method corresponding to the curved sliding trajectory.

[0053] Optionally, the six sub-regions include: an upper-left sub-region located at the upper left corner of the touch area, a lower-left sub-region located at the lower left corner of the touch area, an upper-right sub-region located at the upper right corner of the touch area, a lower-right sub-region located at the lower right corner of the touch area, an upper-middle sub-region located above the touch area and adjacent to both the upper-left and upper-right sub-regions, and a lower-middle sub-region located below the touch area and adjacent to both the lower-left and lower-right sub-regions.

[0054] Figure 4a This is a schematic diagram of the first straight-line trajectory region division result according to one embodiment of the present disclosure, as shown below. Figure 4a As shown, when the user-drawn sliding trajectory is a straight line, the touch area can be divided into six sub-regions using a grid pattern. These six sub-regions are: sub-region ④ at the top left corner, sub-region ⑦ at the bottom left corner, sub-region ⑥ at the top right corner, sub-region ⑨ at the bottom right corner, sub-region ⑤ at the top of the touch area (adjacent to sub-regions ④ and ⑥), and sub-region ⑧ at the bottom of the touch area (adjacent to sub-regions ⑦ and ⑨). This division method can directly determine the corresponding control method based on the start and end points of the straight sliding trajectory, thereby improving the efficiency of determining the target control method.

[0055] In one optional embodiment, the multiple sub-target areas described above can be further subdivided to correspond to more game operations. It should be noted that the control methods corresponding to the sliding trajectory described above are only illustrative and are not specifically limited.

[0056] Step S206: Based on the sliding trajectory, determine the target sub-region corresponding to the sliding operation from multiple sub-regions.

[0057] Once the game control system divides the touch area into multiple sub-regions based on the aforementioned sliding trajectory, the target sub-region can be further determined based on specific positions within the sliding trajectory, such as the final landing point of the sliding trajectory or the position corresponding to the maximum curvature.

[0058] For example, if a user draws a curved trajectory with a large curvature in the touch area, the position corresponding to the maximum curvature of the curve trajectory can be used as the special position mentioned above, and then the target sub-region can be determined based on the position of the maximum curvature. If a user draws a long straight trajectory, the end position of the straight trajectory can be used as the special position mentioned above, and then the target sub-region can be determined based on the end position.

[0059] In one optional embodiment, the target sub-region may include more than one sub-region. For example, the sub-region corresponding to the maximum curvature position and the endpoint position of the curve trajectory with a large arc may be used as the target sub-region; or the sub-region corresponding to the starting position and the endpoint position of the straight trajectory with a long length may be used as the target sub-region.

[0060] By first dividing the touch area into multiple sub-regions using the trajectory type of the sliding path, and then determining the target sub-region based on multiple special positions on the sliding path, the game operation corresponding to the sliding path can be determined. This approach, which considers multiple factors to determine the game operation the user wants to perform, can effectively improve the accuracy of the determined game operation. This makes the game operation presented by the virtual object more in line with the user's expectations, thereby improving the user's gaming experience.

[0061] Step S208: Determine the target control method corresponding to the target sub-region.

[0062] The aforementioned target control method can refer to the specific game operation that the user wants to perform, such as launching a curved ball or a knuckleball in a football game.

[0063] In one optional embodiment, multiple preset control methods can be preset for different target sub-regions. Based on the trajectory type and the corresponding target sub-region determined above, the system matches the preset game operation database, that is, with multiple preset control methods, to determine the corresponding target control method, thereby completing the game operation that the user wants to perform.

[0064] Generally, one target control method corresponds to only one target sub-region. In one optional solution of this embodiment, in some special virtual scenarios of the game, such as when taking a penalty kick, since the number of different penalty kick forms is limited, if the above-mentioned touch area can be divided into many sub-regions, many different target sub-regions can be identified. In this case, multiple different target sub-regions can be set to the same target control method to avoid too many types of target sub-regions, which would cause the sliding trajectory drawn by the user to not meet their expectations, and thus lead to the situation where the virtual object is controlled to perform incorrect game operations.

[0065] Users can manually draw swipe paths to perform the desired game actions, eliminating the need for a complex combination of joysticks and buttons. This reduces the difficulty of game operation while increasing the fun of the game and improving the user's gaming experience.

[0066] Step S210: Control the movement of the virtual object based on the target control method.

[0067] The aforementioned virtual objects can refer to user-controlled game characters, such as tanks, ships, and virtual characters in war games, and athletes and referees in football games.

[0068] After determining the target control method corresponding to the sliding trajectory, the virtual object can be further controlled to move according to the above target control method. For example, in a football game, the virtual object can be controlled to launch curved balls, knuckleballs, and other game operations.

[0069] In at least some embodiments of this disclosure, a response is made to a sliding operation on a touch area in the controller to determine the trajectory type of the sliding trajectory corresponding to the sliding operation; based on the trajectory type, the touch area is divided into multiple sub-regions; according to the sliding trajectory, a target sub-region corresponding to the sliding operation is determined from the multiple sub-regions; a target control method corresponding to the target sub-region is determined; and the movement of the virtual object is controlled based on the target control method. By determining the trajectory type of the sliding trajectory determined on the touch area and the target sub-region where a specific position on the sliding trajectory is located, the movement that the user wants to control the virtual object can be determined. This can effectively reduce the difficulty of the user's manipulation of the virtual object, making it easier to achieve complex movement operations, and solving the technical problem of low success rate of users controlling virtual objects to perform complex operations in related technologies.

[0070] Optionally, determining the trajectory type of the sliding trajectory corresponding to the sliding operation includes: determining the target radian of the sliding trajectory; comparing the target radian with a radian threshold to obtain a comparison result; and determining the trajectory type based on the comparison result.

[0071] The aforementioned radian threshold can refer to the threshold used to determine whether the sliding trajectory is a straight line. Since the trajectory types mentioned above can include straight trajectories and curved trajectories with different radian ranges, when determining the trajectory type of a sliding trajectory, its specific type can be determined based on the maximum radian of the sliding trajectory.

[0072] Specifically, after a user completes a sliding trajectory, the maximum radian of that trajectory, i.e., the target radian mentioned above, can be detected first. The specific detection method can be found in relevant radian detection technologies, which will not be elaborated here. Then, this maximum radian is compared with a preset threshold to determine the specific trajectory type. For example, if the maximum radian of the sliding trajectory is less than or equal to the preset radian threshold, the trajectory type can be determined as a straight line; if the maximum radian is greater than the preset radian threshold, the trajectory type can be determined as a curve. Specific explanations are provided below. By using preset thresholds to classify different types of sliding trajectories, the accuracy of the determined trajectory type can be improved.

[0073] Optionally, determining the trajectory type based on the comparison result includes: determining the trajectory type as a curve in response to the comparison result that the target radian is greater than the radian threshold; and determining the trajectory type as a straight line in response to the comparison result that the target radian is less than or equal to the radian threshold.

[0074] In one optional embodiment, a preset radian threshold can be set to determine whether the sliding trajectory drawn by the user is a straight line. For example, the first radian threshold can be set to 0.1π. When the target radian of the sliding trajectory is less than or equal to 0.1π, it means that the sliding trajectory is generally flat and can be classified as a straight line. When the target radian of the sliding trajectory is greater than 0.1π, it means that the sliding trajectory changes more and can be classified as a curve.

[0075] In one optional embodiment, multiple radian thresholds larger than the first radian threshold can be further set to subdivide the curve-type sliding trajectory into multiple sub-curve types to correspond to various different game operations. Taking a penalty kick in a football game as an example, a second radian threshold of 0.6π can be set. After determining that the sliding trajectory is a curve type, it is further determined whether the target radian of the curve is greater than 0.6π. If it is greater, it means that the game operation the user wants to perform is a large-amplitude shot, in which case the virtual object can be controlled to shoot the football at a high speed; if it is less, it means that the game operation the user wants to perform is a small-amplitude shot, in which case the virtual object can be controlled to shoot the football at a low speed. Different game operations can correspond to different game rewards. Setting multiple different radian thresholds can meet the diverse needs of users for game operations, thereby improving the user's gaming experience.

[0076] It should be noted that the first and second radian thresholds mentioned above are only illustrative examples. The specific threshold values ​​can be set according to the game content, or users can set them themselves in the game. No specific limitations are made here.

[0077] Optionally, determining the target sub-region corresponding to the sliding operation from multiple sub-regions based on the sliding trajectory includes: determining the position of the target touch point on the sliding trajectory, wherein the position of the target touch point is different for different trajectory types; and determining the sub-region where the target touch point is located from multiple sub-regions as the target sub-region.

[0078] The aforementioned target touch point can refer to a specific location in the aforementioned sliding trajectory, such as the start and end points of the sliding trajectory, the midpoint of the sliding trajectory, the point of maximum curvature, etc., as long as the sub-region traversed by the sliding trajectory can be determined.

[0079] In one optional embodiment, to facilitate the differentiation of different game operations under straight and curved trajectories, different target touch points can be set for different trajectory types.

[0080] In one optional embodiment, if there are few game operations, in order to reduce the difficulty for users to draw sliding trajectories to perform the desired game operations, the same target touch point can be set for different trajectory types. Generally, since the sliding trajectory drawn by the user may not be a smooth straight line or curve, the determination of the midpoint of the trajectory may not match the user's expected game operation. Therefore, preferably, the point of maximum curvature in the sliding trajectory can be used as the target touch point.

[0081] Optionally, determining the position of the target touch point on the sliding trajectory includes: in response to the trajectory type being a curve, determining the position of the point corresponding to the maximum curvature on the sliding trajectory as the position of the target touch point; in response to the trajectory type being a straight line, determining the ending position of the sliding trajectory as the position of the target touch point.

[0082] In one optional embodiment, the target touch point on the sliding trajectory can be determined based on the trajectory type. For example, if the sliding trajectory is a straight line, the target touch point can be determined as the trajectory termination position; if the sliding trajectory is a curve, the target touch point can be determined as the position corresponding to the maximum curvature. Based on the target touch position, the accuracy of the determined control method corresponding to the sliding trajectory can be improved.

[0083] Optionally, determining the position of the point corresponding to the maximum curvature on the sliding trajectory as the position of the target touch point includes: mapping the sliding trajectory to a preset curve to obtain the target curve corresponding to the sliding trajectory; and determining the position of the point corresponding to the maximum curvature on the target curve as the position of the target touch point.

[0084] The aforementioned preset curve can refer to a curve used to determine the position of the point corresponding to the maximum curve of the sliding trajectory, such as a Bézier curve.

[0085] In one optional embodiment, the sliding trajectory can be mapped to a Bézier curve to smooth its state changes, making it easier to determine the maximum curvature point of the sliding trajectory. Alternatively, linear fitting can be used to determine the maximum curve; this is not specifically limited here. In another optional embodiment, the touch area can generally be divided into multiple smaller sub-regions. Then, based on the target touch point on the sliding trajectory, the target sub-region is determined, thereby further determining the target control method corresponding to the sliding trajectory.

[0086] Once the target touch point corresponding to the user-drawn swipe trajectory is determined, the virtual objects in the game can be controlled to perform game operations based on the target sub-region corresponding to the target touch point, according to the preset game control method.

[0087] Optionally, the target control method corresponding to the left sub-region is used to control the virtual object to launch a left-curved ball; the target control method corresponding to the right sub-region is used to control the virtual object to launch a right-curved ball; and the target control method corresponding to the upper sub-region is used to control the virtual object to launch an elevator ball.

[0088] Taking a penalty kick in a soccer game as an example, after dividing the touch area based on trajectory type, each sub-area can correspond to a game operation. If the trajectory type of the user's drawn sliding trajectory is curve type, and the area where the point of maximum curvature of the trajectory is selected as the target sub-area, then there are three possible game operations:

[0089] like Figure 3a As shown, curve m represents the sliding trajectory drawn by the user, and the target sub-region corresponding to the sliding trajectory is sub-region ①. Considering the operating habits of most users, the preset control method corresponding to the sliding trajectory can be set to control the virtual object to launch a left arc ball. That is, the control method corresponding to sub-region ① is used to control the virtual object to launch a right arc ball.

[0090] Figure 3b This is a schematic diagram of the second curve trajectory region division result according to one embodiment of the present disclosure, such as... Figure 3b As shown, curve n represents the sliding trajectory drawn by the user, and the target sub-region corresponding to the sliding trajectory is sub-region ②. Considering the operating habits of most users, the preset control method corresponding to the sliding trajectory can be set to control the virtual object to launch a right arc ball. That is, the control method corresponding to sub-region ② is used to control the virtual object to launch a right arc ball.

[0091] Figure 3c This is a schematic diagram of the third curve trajectory region division result according to one embodiment of the present disclosure, such as... Figure 3c As shown, curve l represents the sliding trajectory drawn by the user, and the target sub-region corresponding to the sliding trajectory is sub-region ③. The preset control mode corresponding to the sliding trajectory can be set to control the virtual object to launch the elevator ball. That is, at this time, the control mode corresponding to sub-region ③ is used to control the virtual object to launch the elevator ball.

[0092] It should be noted that the preset control methods corresponding to each sub-area mentioned above are merely illustrative examples. The left arc ball, right arc ball, and elevator ball mentioned above are all ball skill types with obvious arcs in their trajectory. Therefore, they correspond to the sliding trajectory with a curved trajectory type. In actual applications, users can set the preset control methods corresponding to each sub-area according to their own needs. No specific limitations are made here.

[0093] Optionally, the target control method corresponding to the upper left sub-region is used to control the virtual object to launch an upper left volley; the target control method corresponding to the upper right sub-region is used to control the virtual object to launch an upper right volley; the target control method corresponding to the upper center sub-region is used to control the virtual object to launch a straight volley; the target control method corresponding to the lower left sub-region is used to control the virtual object to launch a low left volley; the target control method corresponding to the lower right sub-region is used to control the virtual object to launch a low right volley; and the target control method corresponding to the lower center sub-region is used to control the virtual object to launch a low straight forward volley.

[0094] If the user draws a straight line, and the area where the trajectory ends is selected as the target sub-region, then six game operations are possible:

[0095] like Figure 4a As shown, curve u represents the sliding trajectory drawn by the user. The target sub-region corresponding to the sliding trajectory is sub-region ④. The preset control method corresponding to the sliding trajectory can be set to control the virtual object to launch the upper left shot ball. That is, the control method corresponding to sub-region ④ is used to control the virtual object to launch the upper left shot ball.

[0096] Figure 4b This is a schematic diagram of the second straight-line trajectory region division result according to one embodiment of the present disclosure, such as... Figure 4b As shown, curve v represents the sliding trajectory drawn by the user. The target sub-region corresponding to the sliding trajectory is sub-region ⑥. The preset control method corresponding to the sliding trajectory can be set to control the virtual object to launch the upper right shot ball. That is, the control method corresponding to sub-region ⑥ is used to control the virtual object to launch the upper right shot ball.

[0097] Figure 4c This is a schematic diagram of the third straight-line trajectory region division result according to one embodiment of the present disclosure, such as... Figure 4c As shown, curve w represents the sliding trajectory drawn by the user. The target sub-region corresponding to the sliding trajectory is sub-region ⑤. The preset control method corresponding to the sliding trajectory can be set to control the virtual object to launch a forward shot ball. That is, the control method corresponding to sub-region ⑤ is used to control the virtual object to launch a forward shot ball.

[0098] Figure 4d This is a schematic diagram of the fourth straight-line trajectory region division result according to one embodiment of the present disclosure, as shown below. Figure 4d As shown, curve x represents the sliding trajectory drawn by the user. The target sub-region corresponding to the sliding trajectory is sub-region ⑦. The preset control method corresponding to the sliding trajectory can be set to control the virtual object to launch a left low-level ball. That is, the control method corresponding to sub-region ⑦ is used to control the virtual object to launch a left low-level ball.

[0099] Figure 4e This is a schematic diagram of the fifth straight-line trajectory region division result according to one embodiment of the present disclosure, as shown below. Figure 4e As shown, curve y represents the sliding trajectory drawn by the user. The target sub-region corresponding to the sliding trajectory is sub-region ⑨. The preset control method corresponding to the sliding trajectory can be set to control the virtual object to launch a right low-level ball. That is, the control method corresponding to sub-region ⑨ is used to control the virtual object to launch a right low-level ball.

[0100] Figure 4f This is a schematic diagram of the sixth straight-line trajectory region division result according to one embodiment of the present disclosure, as shown below. Figure 4f As shown, curve z represents the sliding trajectory drawn by the user. The target sub-region corresponding to the sliding trajectory is sub-region ⑧. The preset control method corresponding to the sliding trajectory can be set to control the virtual object to launch a positive low-profile ball. That is, the control method corresponding to sub-region ⑧ is used to control the virtual object to launch a positive low-profile ball.

[0101] It should be noted that the preset control methods for each sub-area mentioned above are only illustrative examples. Users can set them according to their actual needs, and no specific limitations are made here.

[0102] By utilizing the touch area on the touchpad to determine the user's desired operation based on the user's swiping trajectory, the efficiency and accuracy of operation determination based on trajectory can be effectively improved. At the same time, users only need to swipe in the touch area to obtain the desired game operation, which greatly reduces the difficulty of game operation. Users do not need to spend a lot of time learning game operation, further improving the success rate of users controlling virtual objects to complete complex operations.

[0103] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods according to the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solutions of this disclosure, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods of the various embodiments of this disclosure.

[0104] This embodiment also provides a game control device for implementing the above embodiments and preferred embodiments; details already described will not be repeated. As used below, the terms "unit" and "module" can refer to a combination of software and / or hardware that performs a predetermined function. Although the device described in the following embodiments is preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.

[0105] Figure 5 This is a structural block diagram of a game control device according to one embodiment of the present disclosure. A graphical user interface (GUI) is provided through a terminal device. The GUI displays content including a touch area, such as... Figure 5 As shown, the device includes: a trajectory type determination module 502, used to determine the trajectory type of the sliding trajectory corresponding to the sliding operation in response to a sliding operation on a touch area in the controller, wherein the controller is connected to a terminal device; a region division module 504, used to divide the touch area into multiple sub-regions based on the trajectory type; a region determination module 506, used to determine the target sub-region corresponding to the sliding operation from the multiple sub-regions according to the sliding trajectory; a control mode determination module 508, used to determine the target control mode corresponding to the target sub-region; and a control module 510, used to control the movement of a virtual object based on the target control mode.

[0106] Optionally, the trajectory type determination module 502 includes: a target radian determination unit for determining the target radian of the sliding trajectory; a radian comparison unit for comparing the target radian with a radian threshold to obtain a comparison result; and a trajectory type determination unit for determining the trajectory type based on the comparison result.

[0107] Optionally, the trajectory type determination unit includes: a curve determination subunit, used to determine the trajectory type as a curve in response to a comparison result that the target radian is greater than a radian threshold; and a straight line determination subunit, used to determine the trajectory type as a straight line in response to a comparison result that the target radian is less than or equal to a radian threshold.

[0108] Optionally, the region determination module 506 includes: a target position determination unit, used to determine the position of the target touch point on the sliding trajectory, wherein the position of the target touch point is different for different trajectory types; and a target group region determination unit, used to determine the sub-region where the position of the target touch point is located from multiple sub-regions as the target sub-region.

[0109] Optionally, the target position determination unit includes: a curve position determination subunit, used to determine the position of the point corresponding to the maximum curvature on the sliding trajectory as the position of the target touch point in response to the trajectory type being a curve; and a straight line position determination subunit, used to determine the end position of the sliding trajectory as the position of the target touch point in response to the trajectory type being a straight line.

[0110] Optionally, the curve position determination subunit is also used to map the sliding trajectory to a preset curve to obtain the target curve corresponding to the sliding trajectory; and to determine the position of the point corresponding to the maximum curvature on the target curve as the position of the target touch point.

[0111] Optionally, the region division module 504 includes: a curve division unit, used to divide the touch area into three sub-regions in response to a trajectory type of curve; and a straight line division unit, used to divide the touch area into six sub-regions in response to a trajectory type of straight line.

[0112] Optionally, the curve division unit includes: a left sub-region located to the left of the touch area, a right sub-region located to the right of the touch area, and an upper sub-region located above the touch area and adjacent to both the left and right sub-regions.

[0113] Optionally, the target control method corresponding to the left sub-region is used to control the virtual object to launch a left-curved ball; the target control method corresponding to the right sub-region is used to control the virtual object to launch a right-curved ball; and the target control method corresponding to the upper sub-region is used to control the virtual object to launch an elevator ball.

[0114] Optionally, the straight-line division unit includes: an upper-left sub-region located at the upper left corner of the touch area, a lower-left sub-region located at the lower left corner of the touch area, an upper-right sub-region located at the upper right corner of the touch area, a lower-right sub-region located at the lower right corner of the touch area, a middle-upper sub-region located above the touch area and adjacent to both the upper-left and upper-right sub-regions, and a middle-lower sub-region located below the touch area and adjacent to both the lower-left and lower-right sub-regions.

[0115] Optionally, the target control method corresponding to the upper left sub-region is used to control the virtual object to launch an upper left volley; the target control method corresponding to the upper right sub-region is used to control the virtual object to launch an upper right volley; the target control method corresponding to the upper center sub-region is used to control the virtual object to launch a straight volley; the target control method corresponding to the lower left sub-region is used to control the virtual object to launch a low left volley; the target control method corresponding to the lower right sub-region is used to control the virtual object to launch a low right volley; and the target control method corresponding to the lower center sub-region is used to control the virtual object to launch a low straight forward volley.

[0116] It should be noted that the above-mentioned units and modules can be implemented by software or hardware. For the latter, they can be implemented in the following ways, but not limited to these: all the above-mentioned units and modules are located in the same processor; or, the above-mentioned units and modules are located in different processors in any combination.

[0117] Embodiments of this disclosure also provide a non-volatile storage medium storing a computer program, wherein the computer program is configured to execute the steps in any of the above method embodiments when running.

[0118] Optionally, in this embodiment, the aforementioned non-volatile storage medium may include, but is not limited to, various media capable of storing computer programs, such as USB flash drives, read-only memory (ROM), random access memory (RAM), portable hard drives, magnetic disks, or optical disks.

[0119] Optionally, in this embodiment, the non-volatile storage medium may be located in any computer terminal in a group of computer terminals in a computer network, or in any mobile terminal in a group of mobile terminals.

[0120] Optionally, in this embodiment, the non-volatile storage medium described above can be configured to store a computer program for performing the following steps:

[0121] S31, responding to a sliding operation on the touch area in the controller, determining the trajectory type of the sliding trajectory corresponding to the sliding operation, wherein the controller is connected to the terminal device;

[0122] S32, based on trajectory type, divides the touch area into multiple sub-areas;

[0123] S33, Based on the sliding trajectory, determine the target sub-region corresponding to the sliding operation from multiple sub-regions;

[0124] S34, Determine the target control method corresponding to the target sub-region;

[0125] S35 controls the movement of virtual objects based on target control.

[0126] Optionally, determining the trajectory type of the sliding trajectory corresponding to the sliding operation includes: determining the target radian of the sliding trajectory; comparing the target radian with a radian threshold to obtain a comparison result; and determining the trajectory type based on the comparison result.

[0127] Optionally, determining the trajectory type based on the comparison result includes: determining the trajectory type as a curve in response to the comparison result that the target radian is greater than the radian threshold; and determining the trajectory type as a straight line in response to the comparison result that the target radian is less than or equal to the radian threshold.

[0128] Optionally, based on the sliding trajectory, the target sub-region corresponding to the sliding operation is determined from multiple sub-regions, including: determining the position of the target touch point on the sliding trajectory, wherein the position of the target touch point is different for different trajectory types; and determining the sub-region where the target touch point is located as the target sub-region from multiple sub-regions.

[0129] Optionally, determining the position of the target touch point on the sliding trajectory includes: in response to the trajectory type being a curve, determining the position of the point corresponding to the maximum curvature on the sliding trajectory as the position of the target touch point; in response to the trajectory type being a straight line, determining the ending position of the sliding trajectory as the position of the target touch point.

[0130] Optionally, determining the position of the point corresponding to the maximum curvature on the sliding trajectory as the position of the target touch point includes: mapping the sliding trajectory to a preset curve to obtain the target curve corresponding to the sliding trajectory; and determining the position of the point corresponding to the maximum curvature on the target curve as the position of the target touch point.

[0131] Optionally, based on the trajectory type, the touch area can be divided into multiple sub-regions, including: dividing the touch area into three sub-regions in response to a curve trajectory type; and dividing the touch area into six sub-regions in response to a straight trajectory type.

[0132] Optionally, the three sub-regions include: a left sub-region located to the left of the touch area, a right sub-region located to the right of the touch area, and an upper sub-region located above the touch area and adjacent to both the left and right sub-regions.

[0133] Optionally, the target control method corresponding to the left sub-region is used to control the virtual object to launch a left-curved ball; the target control method corresponding to the right sub-region is used to control the virtual object to launch a right-curved ball; and the target control method corresponding to the upper sub-region is used to control the virtual object to launch an elevator ball.

[0134] Optionally, the six sub-regions include: an upper-left sub-region located at the upper left corner of the touch area, a lower-left sub-region located at the lower left corner of the touch area, an upper-right sub-region located at the upper right corner of the touch area, a lower-right sub-region located at the lower right corner of the touch area, an upper-middle sub-region located above the touch area and adjacent to both the upper-left and upper-right sub-regions, and a lower-middle sub-region located below the touch area and adjacent to both the lower-left and lower-right sub-regions.

[0135] Optionally, the target control method corresponding to the upper left sub-region is used to control the virtual object to launch an upper left volley; the target control method corresponding to the upper right sub-region is used to control the virtual object to launch an upper right volley; the target control method corresponding to the upper center sub-region is used to control the virtual object to launch a straight volley; the target control method corresponding to the lower left sub-region is used to control the virtual object to launch a low left volley; the target control method corresponding to the lower right sub-region is used to control the virtual object to launch a low right volley; and the target control method corresponding to the lower center sub-region is used to control the virtual object to launch a low straight forward volley.

[0136] In at least some embodiments of this disclosure, a response is made to a sliding operation on a touch area in the controller to determine the trajectory type of the sliding trajectory corresponding to the sliding operation; based on the trajectory type, the touch area is divided into multiple sub-regions; according to the sliding trajectory, a target sub-region corresponding to the sliding operation is determined from the multiple sub-regions; a target control method corresponding to the target sub-region is determined; and the movement of the virtual object is controlled based on the target control method. By determining the trajectory type of the sliding trajectory determined on the touch area and the target sub-region where a specific position on the sliding trajectory is located, the movement that the user wants to control the virtual object can be determined. This can effectively reduce the difficulty of the user's manipulation of the virtual object, making it easier to achieve complex movement operations, and solving the technical problem of low success rate of users controlling virtual objects to perform complex operations in related technologies.

[0137] From the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein can be implemented by software or by combining software with necessary hardware. Therefore, the technical solutions according to the embodiments of this disclosure can be embodied in the form of a software product, which can be stored in a computer-readable storage medium (such as a CD-ROM, USB flash drive, external hard drive, etc.) or on a network, including several instructions to cause a computing device (such as a personal computer, server, terminal device, or network device, etc.) to execute the methods according to the embodiments of this disclosure.

[0138] In exemplary embodiments of this disclosure, a computer-readable storage medium stores a program product capable of implementing the methods described above in this embodiment. In some possible implementations, various aspects of the embodiments of this disclosure may also be implemented as a program product including program code, which, when the program product is run on a terminal device, causes the terminal device to perform the steps according to the various exemplary embodiments of this disclosure described in the "Exemplary Methods" section above.

[0139] The program product for implementing the above-described method according to embodiments of the present disclosure may employ a portable compact disc read-only memory (CD-ROM) and include program code, and may run on a terminal device, such as a personal computer. However, the program product of the embodiments of the present disclosure is not limited thereto. In the embodiments of the present disclosure, the computer-readable storage medium may be any tangible medium that contains or stores a program that may be used by or in conjunction with an instruction execution system, apparatus, or device.

[0140] The aforementioned program product may take the form of any combination of one or more computer-readable media. Such computer-readable storage media may be, for example, but not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatuses, or devices, or any combination thereof. More specific examples (not exhaustive) of computer-readable storage media include: electrical connections having one or more wires, portable disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.

[0141] It should be noted that the program code contained on the computer-readable storage medium can be transmitted using any suitable medium, including but not limited to wireless, wired, optical fiber, RF, etc., or any suitable combination thereof.

[0142] Embodiments of this disclosure also provide an electronic device including a memory and a processor, the memory storing a computer program and the processor being configured to run the computer program to perform the steps in any of the above method embodiments.

[0143] Optionally, the electronic device 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.

[0144] Optionally, in this embodiment, the processor can be configured to perform the following steps via a computer program:

[0145] S41, responding to a sliding operation on the touch area in the controller, determining the trajectory type of the sliding trajectory corresponding to the sliding operation, wherein the controller is connected to the terminal device;

[0146] S42, based on trajectory type, divides the touch area into multiple sub-areas;

[0147] S43, Based on the sliding trajectory, determine the target sub-region corresponding to the sliding operation from multiple sub-regions;

[0148] S44, Determine the target control method corresponding to the target sub-region;

[0149] S45 controls the movement of virtual objects based on target control.

[0150] Optionally, determining the trajectory type of the sliding trajectory corresponding to the sliding operation includes: determining the target radian of the sliding trajectory; comparing the target radian with a radian threshold to obtain a comparison result; and determining the trajectory type based on the comparison result.

[0151] Optionally, determining the trajectory type based on the comparison result includes: determining the trajectory type as a curve in response to the comparison result that the target radian is greater than the radian threshold; and determining the trajectory type as a straight line in response to the comparison result that the target radian is less than or equal to the radian threshold.

[0152] Optionally, based on the sliding trajectory, the target sub-region corresponding to the sliding operation is determined from multiple sub-regions, including: determining the position of the target touch point on the sliding trajectory, wherein the position of the target touch point is different for different trajectory types; and determining the sub-region where the target touch point is located as the target sub-region from multiple sub-regions.

[0153] Optionally, determining the position of the target touch point on the sliding trajectory includes: in response to the trajectory type being a curve, determining the position of the point corresponding to the maximum curvature on the sliding trajectory as the position of the target touch point; in response to the trajectory type being a straight line, determining the ending position of the sliding trajectory as the position of the target touch point.

[0154] Optionally, determining the position of the point corresponding to the maximum curvature on the sliding trajectory as the position of the target touch point includes: mapping the sliding trajectory to a preset curve to obtain the target curve corresponding to the sliding trajectory; and determining the position of the point corresponding to the maximum curvature on the target curve as the position of the target touch point.

[0155] Optionally, based on the trajectory type, the touch area can be divided into multiple sub-regions, including: dividing the touch area into three sub-regions in response to a curve trajectory type; and dividing the touch area into six sub-regions in response to a straight trajectory type.

[0156] Optionally, the three sub-regions include: a left sub-region located to the left of the touch area, a right sub-region located to the right of the touch area, and an upper sub-region located above the touch area and adjacent to both the left and right sub-regions.

[0157] Optionally, the target control method corresponding to the left sub-region is used to control the virtual object to launch a left-curved ball; the target control method corresponding to the right sub-region is used to control the virtual object to launch a right-curved ball; and the target control method corresponding to the upper sub-region is used to control the virtual object to launch an elevator ball.

[0158] Optionally, the six sub-regions include: an upper-left sub-region located at the upper left corner of the touch area, a lower-left sub-region located at the lower left corner of the touch area, an upper-right sub-region located at the upper right corner of the touch area, a lower-right sub-region located at the lower right corner of the touch area, an upper-middle sub-region located above the touch area and adjacent to both the upper-left and upper-right sub-regions, and a lower-middle sub-region located below the touch area and adjacent to both the lower-left and lower-right sub-regions.

[0159] Optionally, the target control method corresponding to the upper left sub-region is used to control the virtual object to launch an upper left volley; the target control method corresponding to the upper right sub-region is used to control the virtual object to launch an upper right volley; the target control method corresponding to the upper center sub-region is used to control the virtual object to launch a straight volley; the target control method corresponding to the lower left sub-region is used to control the virtual object to launch a low left volley; the target control method corresponding to the lower right sub-region is used to control the virtual object to launch a low right volley; and the target control method corresponding to the lower center sub-region is used to control the virtual object to launch a low straight forward volley.

[0160] In at least some embodiments of this disclosure, a response is made to a sliding operation on a touch area in the controller to determine the trajectory type of the sliding trajectory corresponding to the sliding operation; based on the trajectory type, the touch area is divided into multiple sub-regions; according to the sliding trajectory, a target sub-region corresponding to the sliding operation is determined from the multiple sub-regions; a target control method corresponding to the target sub-region is determined; and the movement of the virtual object is controlled based on the target control method. By determining the trajectory type of the sliding trajectory determined on the touch area and the target sub-region where a specific position on the sliding trajectory is located, the movement that the user wants to control the virtual object can be determined. This can effectively reduce the difficulty of the user's manipulation of the virtual object, making it easier to achieve complex movement operations, and solving the technical problem of low success rate of users controlling virtual objects to perform complex operations in related technologies.

[0161] Figure 6 This is a schematic diagram of an electronic device according to an embodiment of the present disclosure. Figure 6 As shown, the electronic device 600 is merely an example and should not impose any limitation on the functionality and scope of use of the embodiments disclosed herein.

[0162] like Figure 6 As shown, the electronic device 600 is presented in the form of a general-purpose computing device. The components of the electronic device 600 may include, but are not limited to: at least one processor 610, at least one memory 620, a bus 630 connecting different system components (including memory 620 and processor 610), and a display 640.

[0163] The memory 620 stores program code that can be executed by the processor 610, causing the processor 610 to perform the steps described in the method section of the embodiments of this disclosure according to various exemplary implementations of this disclosure.

[0164] The memory 620 may include a readable medium in the form of volatile memory cells, such as random access memory (RAM) 6201 and / or cache memory 6202, and may further include a read-only memory (ROM) 6203, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory.

[0165] In some instances, memory 620 may also include a program / utility 6204 having a set (at least one) of program modules 6206, including but not limited to: an operating system, one or more application programs, other program modules, and program data. Each or some combination of these examples may include an implementation of a network environment. Memory 620 may further include memory remotely located relative to processor 610, which can be connected to electronic device 600 via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.

[0166] Bus 630 can represent one or more of several types of bus structures, including a memory cell bus or memory cell controller, peripheral bus, graphics acceleration port, processor 610, or a local bus using any of the various bus structures.

[0167] The display 640 may be, for example, a touchscreen liquid crystal display (LCD) that allows a user to interact with the user interface of the electronic device 600.

[0168] Optionally, the electronic device 600 can also communicate with one or more external devices 700 (e.g., keyboard, pointing device, Bluetooth device, etc.), one or more devices that enable a user to interact with the electronic device 600, and / or any device that enables the electronic device 600 to communicate with one or more other computing devices (e.g., router, modem, etc.). This communication can be performed via the input / output (I / O) interface 660. Furthermore, the electronic device 600 can also communicate with one or more networks (e.g., local area network (LAN), wide area network (WAN), and / or public networks, such as the Internet) via the network adapter 660. Figure 6 As shown, network adapter 660 communicates with other modules of electronic device 600 via bus 630. It should be understood that, although... Figure 6As not shown in the diagram, other hardware and / or software modules may be used in conjunction with electronic device 600, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0169] The aforementioned electronic device 600 may further include: a keyboard, a cursor control device (such as a mouse), an input / output interface (I / O interface), a network interface, a power supply, and / or a camera.

[0170] Those skilled in the art will understand that Figure 6 The structure shown is for illustrative purposes only and does not limit the structure of the electronic device described above. For example, electronic device 600 may also include components that are more... Figure 6 The more or fewer components shown, or having the same Figure 1 Different configurations are shown. The memory 620 can be used to store computer programs and corresponding data, such as the computer program and corresponding data corresponding to the game control method in this embodiment of the present disclosure. The processor 610 executes various functional applications and data processing by running the computer program stored in the memory 620, thereby implementing the aforementioned game control method.

[0171] The sequence numbers of the embodiments disclosed above are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.

[0172] In the above embodiments of this disclosure, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.

[0173] In the several embodiments provided in this disclosure, it should be understood that the disclosed technical content can be implemented in other ways. The device embodiments described above are merely illustrative; for example, the division of units can be a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the displayed or discussed mutual couplings, direct couplings, or communication connections may be through some interfaces; indirect couplings or communication connections between units or modules may be electrical or other forms.

[0174] 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 units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0175] Furthermore, the functional units in the various embodiments of 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. The integrated unit can be implemented in hardware or as a software functional unit.

[0176] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it 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 all or 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 methods of the various embodiments of this disclosure. The aforementioned storage medium includes various media capable of storing program code, such as a USB flash drive, read-only memory (ROM), random access memory (RAM), portable hard drive, magnetic disk, or optical disk.

[0177] The above are merely preferred embodiments of this disclosure. It should be noted that those skilled in the art can make various improvements and modifications without departing from the principles of this disclosure, and these improvements and modifications should also be considered within the scope of protection of this disclosure.

Claims

1. A method for controlling a game, characterized in that, A graphical user interface is provided via a terminal device, the content displayed by the graphical user interface including at least a portion of a virtual scene, the virtual scene including virtual objects controlled by the terminal device, the method comprising: In response to a swipe operation on a touch area in the controller, the trajectory type of the swipe trajectory corresponding to the swipe operation is determined, wherein the controller is connected to the terminal device; Based on the trajectory type, the touch area is divided into multiple sub-regions; Based on the sliding trajectory, a target sub-region corresponding to the sliding operation is determined from the plurality of sub-regions, wherein, when the trajectory type is a curve, the target sub-region is the sub-region where the position of the point corresponding to the maximum curvature on the sliding trajectory is located; Determine the target control method corresponding to the target sub-region; The movement of the virtual object is controlled based on the target control method.

2. The method according to claim 1, characterized in that, The trajectory type for determining the sliding trajectory corresponding to the sliding operation includes: Determine the target radian of the sliding trajectory; The target radian is compared with the radian threshold to obtain the comparison result; The trajectory type is determined based on the comparison results.

3. The method according to claim 2, characterized in that, Determining the trajectory type based on the comparison results includes: In response to the comparison result that the target radian is greater than the radian threshold, the trajectory type is determined to be a curve; In response to the comparison result that the target radian is less than or equal to the radian threshold, the trajectory type is determined to be a straight line.

4. The method according to claim 1, characterized in that, Based on the sliding trajectory, determining the target sub-region corresponding to the sliding operation from the plurality of sub-regions includes: Determine the position of the target touch point on the sliding trajectory, wherein the position of the target touch point is different for different trajectory types; The target sub-region is determined from the plurality of sub-regions, and the sub-region where the target touch point is located is defined as the target sub-region.

5. The method according to claim 4, characterized in that, Determining the position of the target touch point on the sliding trajectory includes: In response to the trajectory type being a curve, the position of the point corresponding to the maximum curvature on the sliding trajectory is determined as the position of the target touch point; In response to the trajectory type being a straight line, the termination position of the sliding trajectory is determined as the position of the target touch point.

6. The method according to claim 5, characterized in that, Determining the position of the point corresponding to the maximum curvature on the sliding trajectory as the position of the target touch point includes: The sliding trajectory is mapped to a preset curve to obtain the target curve corresponding to the sliding trajectory; The position of the point corresponding to the maximum curvature on the target curve is determined as the position of the target touch point.

7. The method according to claim 1, characterized in that, Based on the trajectory type, dividing the touch area into the plurality of sub-regions includes: In response to the trajectory type being a curve, the touch area is divided into three sub-regions; In response to the trajectory type being a straight line, the touch area is divided into six sub-regions.

8. The method according to claim 7, characterized in that, The three sub-regions include: a left sub-region located to the left of the touch area, a right sub-region located to the right of the touch area, and an upper sub-region located above the touch area and adjacent to both the left and right sub-regions.

9. The method according to claim 8, characterized in that, The target control method corresponding to the left sub-region is used to control the virtual object to launch a left arc ball; the target control method corresponding to the right sub-region is used to control the virtual object to launch a right arc ball; and the target control method corresponding to the upper sub-region is used to control the virtual object to launch an elevator ball.

10. The method according to claim 7, characterized in that, The six sub-regions include: the upper left sub-region located at the upper left corner of the touch area, the lower left sub-region located at the lower left corner of the touch area, the upper right sub-region located at the upper right corner of the touch area, the lower right sub-region located at the lower right corner of the touch area, the upper middle sub-region located above the touch area and adjacent to both the upper left and upper right sub-regions, and the lower middle sub-region located below the touch area and adjacent to both the lower left and lower right sub-regions.

11. The method according to claim 10, characterized in that, The target control method corresponding to the upper left sub-region is used to control the virtual object to launch an upper left volley; the target control method corresponding to the upper right sub-region is used to control the virtual object to launch an upper right volley; the target control method corresponding to the upper middle sub-region is used to control the virtual object to launch a straight volley; the target control method corresponding to the lower left sub-region is used to control the virtual object to launch a low left volley; the target control method corresponding to the lower right sub-region is used to control the virtual object to launch a low right volley; and the target control method corresponding to the lower middle sub-region is used to control the virtual object to launch a low straight forward volley.

12. A game control device, characterized in that, A graphical user interface is provided via a terminal device, wherein the content displayed by the graphical user interface is at least a portion of a virtual scene, the virtual scene including virtual objects controlled by the terminal device, and the device includes: A trajectory type determination module is used to respond to a sliding operation on a touch area in the controller and determine the trajectory type of the sliding trajectory corresponding to the sliding operation, wherein the controller is connected to the terminal device; The region division module is used to divide the touch area into multiple sub-regions based on the trajectory type; The region determination module is used to determine a target sub-region corresponding to the sliding operation from the plurality of sub-regions according to the sliding trajectory, wherein, when the trajectory type is a curve, the target sub-region is the sub-region where the position of the point corresponding to the maximum curvature on the sliding trajectory is located; The control mode determination module is used to determine the target control mode corresponding to the target sub-region; The control module is used to control the movement of the virtual object based on the target control method.

13. A non-volatile storage medium, characterized in that, The non-volatile storage medium stores a computer program, wherein the computer program is configured to execute the game control method according to any one of claims 1 to 11 when run by a processor.

14. An electronic device comprising a memory and a processor, characterized in that, The memory stores a computer program, and the processor is configured to run the computer program to perform the game control method as described in any one of claims 1 to 11.