Animation playback method, device, computer equipment and storage medium

By monitoring the posture changes and touch operations of the terminal device, combining the posture parameters and touch operation parameters, the target animation is generated, which solves the problem of poor user interaction experience in the existing technology and achieves more efficient animation playback and interactive effects.

CN115068936BActive Publication Date: 2025-09-09NETEASE (HANGZHOU) NETWORK CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202210557599.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-19
Publication Date
2025-09-09
Estimated Expiration
2042-05-19

AI Technical Summary

Technical Problem

In existing game applications, animation generation is performed by users sliding or clicking on a graphical user interface, resulting in a poor user interaction experience.

Method used

By monitoring the posture changes and touch operations of the terminal device, combining the posture parameters and touch operation parameters of the terminal device, the target animation is determined, and the target animation is played on the graphical user interface when the touch operation ends.

Benefits of technology

It improves the user's interactive experience with the graphical user interface, enhances the user's sense of control and operation accuracy, and enriches the diversity and interactivity of animation playback.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115068936B_ABST
    Figure CN115068936B_ABST
Patent Text Reader

Abstract

The present invention discloses an animation playback method, apparatus, computer device, and computer-readable storage medium. This solution designs a virtual shooting interface in a graphical user interface (GUI), generates a target shooting animation based on the user's movement of the basketball in the virtual shooting interface and the rotation of the terminal. When the user completes the basketball movement operation, the target shooting animation is displayed in the virtual shooting interface, and then the current card draw result is displayed in the GUI. The user can complete the animation playback through various operations, thereby improving the user's interactive experience with the GUI.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to an animation playback method, apparatus, computer equipment, and computer-readable storage medium. Background Art

[0002] In game applications, to enhance the user experience, the game platform provides an animation playback function. Animation playback refers to the playback of animations generated by user touch operations in the game.

[0003] The current animation generation method is through the user's sliding operation or clicking operation on the graphical user interface, which has a poor user interaction experience. Summary of the Invention

[0004] Embodiments of the present application provide an animation playback method, apparatus, computer device, and computer-readable storage medium, which can improve the user's interactive experience with a graphical user interface.

[0005] An embodiment of the present application provides an animation playback method, wherein a graphical user interface is provided through a terminal device, wherein content displayed by the graphical user interface includes at least a first virtual object that is controlled by the terminal device. The method includes:

[0006] In response to a touch operation on the graphical user interface, monitoring a posture change of the terminal device;

[0007] Before the touch operation ends, determining a target animation corresponding to the first virtual object according to the touch operation and the posture of the terminal device;

[0008] When the touch operation ends, the target animation is played on the graphical user interface.

[0009] Accordingly, an embodiment of the present application further provides an animation playback device, which provides a graphical user interface through a terminal device, wherein the content displayed by the graphical user interface includes at least a first virtual object controlled by the terminal device, and the device includes:

[0010] a monitoring unit, configured to monitor a posture change of the terminal device in response to a touch operation on the graphical user interface;

[0011] a first determining unit, configured to determine a target animation corresponding to the first virtual object according to the touch operation and the posture of the terminal device before the touch operation ends;

[0012] A playing unit is configured to play the target animation on the graphical user interface when the touch operation ends.

[0013] In some embodiments, the first determining unit includes:

[0014] A first acquisition subunit is configured to acquire touch operation parameters corresponding to the touch operation and posture parameters of the terminal device;

[0015] The first determining subunit is configured to determine the target animation according to the touch operation parameter and the posture parameter.

[0016] In some embodiments, the first determining subunit is specifically configured to:

[0017] Determining the animation display duration according to the touch operation parameters;

[0018] Determining an animation effect type according to the posture parameters;

[0019] The target animation is generated based on the animation display duration and the animation effect type.

[0020] In some embodiments, the first determining subunit is specifically configured to:

[0021] Calculating the motion triggering force of the first virtual object according to the first sliding distance; and determining the animation display duration according to the motion triggering force;

[0022] Determining an animation effect type according to the posture parameters;

[0023] The target animation is generated based on the animation display duration and the animation effect type.

[0024] In some embodiments, the first determining unit further includes:

[0025] a comparing subunit, configured to compare the first sliding distance with a preset sliding distance;

[0026] The execution subunit is configured to execute the step of determining the target animation according to the touch operation parameter and the posture parameter if the first sliding distance is not less than the preset sliding distance.

[0027] In some embodiments, the first determining subunit is specifically configured to:

[0028] Determining the animation display duration according to the touch operation parameters;

[0029] Determining a preset animation effect type corresponding to the rotation angle from a plurality of preset animation effect types, and obtaining the animation effect type;

[0030] In some embodiments, the device further comprises: generating the target animation based on the animation display duration and the animation effect type;

[0031] a second determining unit, configured to determine a corresponding pre-movement position of the first virtual object in the motion scene according to the touch operation parameter;

[0032] a third determining unit, configured to determine a corresponding post-movement position of the first virtual object in the motion scene after movement according to the position of the second virtual object in the motion scene;

[0033] A generating unit is configured to generate a target motion trajectory of the target animation based on the pre-motion position, the post-motion position, and the animation effect type.

[0034] In some embodiments, the second determining unit includes:

[0035] a second acquiring subunit, configured to acquire an initial position of the first virtual object on the graphical user interface;

[0036] an updating subunit, configured to update the initial position according to the first sliding distance and the second sliding distance to obtain an updated position;

[0037] A mapping subunit is configured to map the updated position to the motion scene to obtain a corresponding pre-motion position of the first virtual object in the motion scene.

[0038] In some embodiments, the playback unit includes:

[0039] The motion subunit is configured to control the first virtual object to move along the target motion trajectory within the animation display duration.

[0040] In some embodiments, the apparatus further comprises:

[0041] The first control unit is configured to control the first virtual object to move in the second direction of the graphical user interface in response to a movement operation of the first virtual object in the second direction of the graphical user interface.

[0042] In some embodiments, the apparatus further comprises:

[0043] an acquiring unit, configured to acquire, in response to a movement operation on the first virtual object in a first direction of the graphical user interface, a movement operation parameter corresponding to the movement operation;

[0044] a second control unit, configured to control the first virtual object to move in the first direction of the graphical user interface and display a preset animation of the first virtual object on the graphical user interface if the movement operation parameter satisfies a movement condition of the first virtual object in the first direction;

[0045] An ending unit is configured to end the operation if the movement operation parameter does not satisfy the movement condition of the first virtual object in the first direction.

[0046] In some embodiments, the apparatus further comprises:

[0047] A display unit is configured to display an animation card drawing result corresponding to the target animation on the graphical user interface in response to playing the target animation on the graphical user interface.

[0048] In some embodiments, the apparatus further comprises:

[0049] The fourth determination unit is used to determine the animation card drawing result corresponding to the target animation from multiple preset animation card drawing results according to the animation effect type of the target animation, wherein the probabilities of different animation types in different preset animation card drawing results are different.

[0050] Correspondingly, an embodiment of the present application also provides a computer device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor executes any animation playback method provided in any embodiment of the present application.

[0051] Correspondingly, an embodiment of the present application further provides a computer-readable storage medium, which stores a plurality of instructions suitable for loading by a processor to execute the above animation playback method.

[0052] The embodiment of the present application designs a virtual shooting interface in a graphical user interface, generates a target shooting animation according to the user's movement operation of the basketball in the virtual shooting interface and the rotation operation of the terminal, and when the user completes the movement operation of the basketball, the target shooting animation is displayed in the virtual shooting interface, and then the current card drawing result is displayed in the graphical user interface. The user can complete the animation playback through various operations, thereby improving the user's interactive experience with the graphical user interface. BRIEF DESCRIPTION OF THE DRAWINGS

[0053] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0054] Figure 1 A flowchart of an animation playback method provided in an embodiment of the present application.

[0055] Figure 2 A flowchart of another animation playback method provided in an embodiment of the present application.

[0056] Figure 3 A schematic diagram of an application scenario of an animation playback method provided in an embodiment of the present application.

[0057] Figure 4 A schematic diagram of an application scenario of another animation playback method provided in an embodiment of the present application.

[0058] Figure 5 A schematic diagram of an application scenario of another animation playback method provided in an embodiment of the present application.

[0059] Figure 6 A schematic diagram of an application scenario of another animation playback method provided in an embodiment of the present application.

[0060] Figure 7 This is a structural block diagram of an animation playback device provided in an embodiment of the present application.

[0061] Figure 8 A schematic diagram of the structure of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0062] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without making any creative efforts shall fall within the scope of protection of this application.

[0063] The embodiments of the present application provide an animation playback method, apparatus, computer-readable storage medium, and computer equipment. Specifically, the animation playback method of the embodiments of the present application can be executed by a computer device, wherein the computer device can be a server or other device. The server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms.

[0064] For example, the computer device may be a terminal that can display a graphical user interface, the graphical user interface including a first virtual object and a second virtual object, wherein the first virtual object is an object controllable by a user; in response to a touch operation on the first virtual object and a posture change of the terminal device before the touch operation ends, a target animation of the first virtual object moving toward the second virtual object is determined, and a target motion trajectory corresponding to the target animation is displayed on the graphical user interface; when the touch operation ends, the first virtual object is controlled to move toward the second virtual object based on the target motion trajectory; the current animation playback result is obtained, and the animation playback result is displayed on the graphical user interface.

[0065] Based on the above problems, the embodiments of the present application provide a first animation playback method, apparatus, computer device and computer-readable storage medium, which can improve the user's interactive experience with a graphical user interface.

[0066] It should be noted that the order of description of the following embodiments is not intended to limit the preferred order of the embodiments.

[0067] An embodiment of the present application provides an animation playback method, which can be executed by a terminal or a server. The embodiment of the present application takes the animation playback method executed by a terminal as an example for explanation.

[0068] See also Figure 1 , Figure 1 This is a flow chart of an animation playback method provided in an embodiment of the present application. The specific flow of the animation playback method may be as follows:

[0069] 101. In response to a touch operation on a graphical user interface, monitor a posture change of a terminal device.

[0070] In an embodiment of the present application, a graphical user interface is provided by a terminal device, and the content displayed in the graphical user interface includes at least a first virtual object that is controlled by the terminal device. That is, in the graphical user interface, a user can control the first virtual object by performing touch operations on the first virtual object, for example, by moving the first virtual object in the graphical user interface.

[0071] The touch operation on the graphical user interface may be operations such as clicking, pressing and / or sliding the first virtual object on the graphical user interface.

[0072] The posture of the terminal device refers to the usage state of the terminal device, such as horizontal placement, vertical placement, tilted, etc.

[0073] In an embodiment of the present application, a gyroscope may be provided inside the terminal device, and the posture changes of the terminal device may be monitored by the gyroscope.

[0074] Among them, the gyroscope is also called an angular velocity sensor. The physical quantity measured by the gyroscope is the angular velocity of rotation during deflection and tilt. The angular velocity of rotation of the terminal device is measured by the gyroscope to determine the posture change of the terminal device.

[0075] Specifically, the posture of the terminal device can be changed by rotating, shaking and / or moving the terminal device.

[0076] For example, when a touch operation on a graphical user interface is detected, the gyroscope is triggered to monitor posture changes of the terminal device.

[0077] 102. Before the touch operation ends, determine a target animation corresponding to the first virtual object according to the touch operation and the posture of the terminal device.

[0078] In an embodiment of the present application, interaction with a graphical user interface is accomplished by combining touch operations with changes in the terminal device's posture, thereby triggering the playback of animations in the graphical user interface. For example, a user may first perform a touch operation on a first virtual object, change the terminal device's posture during the touch operation, determine the terminal device's posture before the touch operation ends, and finally, after the touch operation ends, display the relevant information in the graphical user interface.

[0079] Because the user holds the terminal while the animation is playing, there's a chance that holding the terminal could accidentally trigger another change in the terminal's posture after determining the change, leading to an incorrect operation. Touch operations, on the other hand, involve the user manipulating the first virtual object, which is less likely to cause an incorrect operation. Therefore, ending the touch operation can trigger the display of the operation result, improving operation accuracy.

[0080] Specifically, the target animation is determined according to the touch operation and the posture change of the terminal device. The target animation refers to the animation corresponding to the first virtual object in the graphical user interface. The target animation includes the motion trajectory of the first virtual object, that is, the target motion trajectory.

[0081] In some embodiments, to meet the user's need to select different animations, the step of "determining a target animation corresponding to the first virtual object based on the touch operation and the posture of the terminal device before the touch operation ends" may include the following operations:

[0082] Obtaining touch operation parameters corresponding to the touch operation and posture parameters of the terminal device;

[0083] Determine the target animation based on the touch operation parameters and posture parameters.

[0084] The touch operation parameter refers to an operation parameter of a touch operation performed by a user on the first virtual object in the graphical user interface. For example, the touch operation may be a sliding operation, and the touch operation parameter may be a sliding distance.

[0085] The posture parameter refers to an operation parameter for a user to change the posture of a terminal device. For example, the posture change of the terminal device may be a rotation operation, and the posture parameter may be a rotation angle, etc.

[0086] Furthermore, by jointly determining the target animation through the touch operation parameters and the posture parameters, the user's sense of control over the first virtual object can be improved in multiple dimensions.

[0087] In some embodiments, to improve the accuracy of determining the target animation, the step of “determining the target animation according to the touch operation parameters and the gesture parameters” may include the following operations:

[0088] Determine the animation display duration based on touch operation parameters;

[0089] Determine the animation effect type based on the posture parameters;

[0090] Generate target animation based on animation display duration and animation effect type.

[0091] The animation display duration refers to the time from the start to the end of the movement of the first virtual object toward the second virtual object displayed on the graphical user interface.

[0092] In some embodiments, the touch operation may be a sliding operation, and the touch operation parameters include a first sliding distance, which is the sliding distance in a first direction. For example, a coordinate system may be constructed based on a graphical user interface with the horizontal direction as the X-axis and the vertical direction as the Y-axis. The first direction may be the Y-axis, and the first sliding distance may be the sliding distance on the Y-axis. The step of "determining the animation display duration based on the touch operation parameters" may include the following operations:

[0093] Calculating a motion trigger force of the first virtual object according to the first sliding distance;

[0094] Determine the animation display duration based on the motion trigger strength.

[0095] Among them, the motion trigger force refers to the force used to control the first virtual object to start moving. The motion trigger force can be calculated according to the first sliding distance using a preset calculation formula. The relationship between the first sliding distance and the motion trigger force can be: the greater the first sliding distance, the greater the motion trigger force.

[0096] Specifically, the animation display duration can be determined based on the motion trigger force. Based on the corresponding relationship between the motion trigger force and the animation display duration, the animation display duration corresponding to the motion trigger force can be determined from multiple animation display durations. The relationship between the motion trigger force and the animation display duration can be such that the greater the motion trigger force, the longer the animation display duration. In this way, users can control the animation display duration through touch operation parameters of the touch operation to meet different user needs.

[0097] Among them, the animation effect type refers to the motion trajectory type of the first virtual object displayed in the graphical user interface. In the embodiment of the present application, multiple animation effect types can be pre-designed, and different animation effect types correspond to different motion trajectory types.

[0098] In some embodiments, the posture change of the terminal device may be a rotation operation, and the posture parameter may include a rotation angle. The step of "determining the animation effect type according to the posture parameter" may include the following operations:

[0099] From a plurality of preset animation effect types, a preset animation effect type corresponding to the rotation angle is determined to obtain the animation effect type.

[0100] For example, the preset animation effect types may include: a first animation effect type, a second animation effect type, a third animation effect type, etc., and different animation effect types correspond to different rotation angle ranges. Among them, the rotation angle range corresponding to the first animation effect type may be: [R1, R2], that is, greater than or equal to angle R1, and less than or equal to angle R2; the rotation angle range corresponding to the second animation effect type may be: (R2, R3], that is, greater than angle R2, and less than or equal to angle R3; the rotation angle range corresponding to the third animation effect type may be: (R3, R4], that is, greater than angle R3, and less than or equal to angle R4. Then, the corresponding animation effect type is determined according to the angle range to which the selected angle belongs. For example, if the rotation angle belongs to the range of (R2, R3], it can be determined that the animation effect type is: the second animation effect type.

[0101] In some embodiments, in order to prevent user misoperation, before the step of "determining the target animation according to the touch operation parameters and the posture parameters", the following steps may be further included:

[0102] comparing the first sliding distance with a preset sliding distance;

[0103] If the first sliding distance is not less than the preset sliding distance, a step of determining a target animation according to the touch operation parameters and the posture parameters is performed.

[0104] In an embodiment of the present application, a preset sliding distance is set. When the first sliding distance is greater than or equal to the preset distance, the target animation determined according to the touch operation parameters and the posture parameters is triggered; when the first sliding distance is less than the preset distance, the target animation determined according to the touch operation parameters and the posture parameters is not triggered, that is, the motion trajectory is not displayed on the graphical user interface, thereby avoiding wasting terminal processing resources.

[0105] In some embodiments, in order to facilitate the user to view the motion trajectory of the first virtual object corresponding to the current touch operation and the posture change of the terminal device, before the step of "playing the target animation on the graphical user interface", the following steps may be further included:

[0106] Determining a corresponding pre-movement position of the first virtual object in the motion scene according to the touch operation parameter;

[0107] Determining a corresponding post-movement position of the first virtual object in the motion scene according to the position of the second virtual object in the motion scene;

[0108] Generates a target motion trajectory of the target animation based on the pre-motion position, post-motion position, and animation effect type.

[0109] In an embodiment of the present application, the content displayed by the graphical user interface may further include a motion scene corresponding to the first virtual object, wherein the motion scene includes a second virtual object, and the second virtual object is an inoperable object.

[0110] The position before the movement refers to the position of the first virtual object in the movement scene after the touch operation on the first virtual object.

[0111] In some embodiments, the touch operation may be a sliding operation, and the touch operation parameter may further include a second sliding distance, where the second sliding distance is a sliding distance in a second direction. The second direction may be an X-axis, and the second sliding distance may be a sliding distance on the X-axis. The step of “determining the position of the first virtual object before movement in the graphical user interface according to the touch operation parameter” may include the following operations:

[0112] Obtaining an initial position of the first virtual object in the graphical user interface;

[0113] Updating the initial position according to the first sliding distance and the second sliding distance to obtain an updated position;

[0114] The updated position is mapped to the motion scene to obtain the corresponding pre-motion position of the first virtual object in the motion scene.

[0115] The initial position refers to the position where the first virtual object is displayed on the graphical user interface before the touch operation, and may also be the default display position of the first virtual object on the graphical user interface.

[0116] The initial position is updated based on the first sliding distance and the second sliding distance. Specifically, the movement distance of the first virtual object on the Y-axis is set according to the first sliding distance, and the movement distance of the first virtual object on the X-axis is set according to the second sliding distance. The initial position is then moved by the first sliding distance and the second sliding distance to obtain a moved position, i.e., an updated position. The updated position of the graphical user interface is then mapped to the motion scene to obtain the corresponding pre-motion position of the first virtual object in the motion scene.

[0117] The post-movement position refers to the position of the first virtual object set in the embodiment of the present application corresponding to the motion scene after the target animation movement is completed.

[0118] Among them, the animation effect type includes the motion trajectory type corresponding to the animation effect type, and the target motion trajectory is generated based on the position before movement, the position after movement and the animation effect type. The target motion trajectory can be generated according to the position before movement, the position after movement and the motion trajectory type, and then the target motion trajectory is displayed in the graphical user interface. For example, the target motion trajectory can be highlighted by a preset line style to facilitate user viewing.

[0119] 103. When the touch operation ends, play the target animation on the graphical user interface.

[0120] The end of the touch operation may refer to the user ceasing to operate the first virtual object in the graphical user interface. For example, the touch operation may be the user sliding a finger over the first virtual object in the graphical user interface. When the user completes the sliding operation and releases contact with the first virtual object, the touch operation ends.

[0121] When the touch operation ends, a target animation determined according to the touch operation and the posture change of the terminal device is triggered to be displayed on the graphical user interface.

[0122] In some embodiments, the step of “playing the target animation on the graphical user interface” may include the following operations:

[0123] The first virtual object is controlled to move according to the target motion trajectory within the animation display duration.

[0124] Specifically, the target animation is displayed on the graphical user interface by controlling the first virtual object to follow the target motion trajectory and complete the movement within the animation display duration, that is, controlling the first virtual object to move from the pre-movement position along the target motion trajectory to the post-movement position within the animation display duration to complete the display of the target animation.

[0125] In an embodiment of the present application, the display target animation is triggered by touch operation and posture change of the terminal device. There is no need to set controls in the graphical user interface and no space is occupied by the graphical user interface. By combining touch operation with posture change of the terminal device, multi-dimensional operations can improve the user's interactive experience with the terminal, and the user can determine different motion animations by changing the touch operation and the posture change of the terminal device to meet the user's needs for different display animations.

[0126] In some embodiments, to improve the interaction effect with the graphical user interface, the method may further include the following steps:

[0127] In response to a movement operation on the first virtual object in a second direction of the graphical user interface, the first virtual object is controlled to move in the second direction of the graphical user interface.

[0128] The second direction may be a horizontal direction of the graphical user interface.

[0129] In an embodiment of the present application, a response area is set in the graphical user interface, and the user can perform a touch operation in the response area to control the position change of the first virtual object according to the touch operation.

[0130] For example, when the user performs a touch operation in the horizontal direction at any position in the response area, the first virtual object is controlled to move in the horizontal direction following the user's movement operation (for example, dragging the user's finger) according to the horizontal movement from the time the touch operation is pressed to the time it is released, and the movement trajectory of the first virtual object is displayed in the graphical user interface.

[0131] In some embodiments, to improve the interaction effect with the graphical user interface, the method may further include the following steps:

[0132] In response to a movement operation on a first virtual object in a first direction of the graphical user interface, obtaining a movement operation parameter corresponding to the movement operation;

[0133] If the movement operation parameter satisfies the movement condition of the first virtual object in the first direction, controlling the first virtual object to move in the first direction of the graphical user interface and displaying a preset animation of the first virtual object on the graphical user interface;

[0134] If the movement operation parameter does not satisfy the movement condition of the first virtual object in the first direction, the operation is terminated.

[0135] The first direction may be a vertical direction of the graphical user interface, and the movement operation parameter may be a movement distance.

[0136] In an embodiment of the present application, a response area is set in the graphical user interface, and the user can perform a touch operation in the response area to control the position change of the first virtual object according to the touch operation.

[0137] The movement condition of the first virtual object in the first direction may be: a movement distance corresponding to the movement operation is greater than a preset movement distance. For example, the preset movement distance may be 2 centimeters.

[0138] For example, when the user performs a touch operation in the vertical direction at any position within the response area, the moving distance of the move operation is obtained based on the movement in the vertical direction from when the touch operation is pressed to when it is released.

[0139] If the movement distance is greater than or equal to the preset movement distance, the first virtual object can be controlled to move vertically following the user's movement operation (e.g., dragging by the user's finger), and the movement trajectory of the first virtual object is displayed on the graphical user interface. Then, a preset animation of the first virtual object is displayed on the graphical user interface.

[0140] Among them, the preset animation is a pre-designed motion animation of the first virtual object. There is no need to determine the animation effect in combination with the posture change of the terminal device. The animation display duration of the preset animation is linearly related to the moving distance in the vertical direction.

[0141] If the moving distance is less than the preset moving distance, the first virtual object does not need to be controlled to move in the vertical direction following the user's movement operation.

[0142] In some embodiments, playing a target animation in a graphical user interface can trigger an animation card draw to obtain an animation card draw result. The animation card draw refers to drawing different cards based on different animations, and the cards can be used to obtain rewards in sports scenes.

[0143] Among them, the animation card drawing result refers to the process of playing the target animation. It can be when the target animation starts playing, when the target animation ends playing, or when the target animation is playing, the background card drawing operation is triggered to obtain the animation card drawing result. The animation card drawing result can be randomly generated.

[0144] In some embodiments, to ensure smooth display of the results of the animated card drawing result scene, the method may further include the following steps:

[0145] In response to playing the target animation on the graphical user interface, the animation card drawing result corresponding to the target animation is displayed on the graphical user interface.

[0146] Specifically, after the graphical user interface finishes playing the target animation, the animation card drawing result can be displayed on the graphical user interface, thereby enriching the scene of the animation card drawing process and improving the user's card drawing experience.

[0147] In some embodiments, in order to improve the user's game card drawing experience, the method may further include the following steps:

[0148] An animation card drawing result corresponding to the target animation is determined from multiple preset animation card drawing results according to the animation effect type of the target animation.

[0149] Among them, different animation types have different probabilities in different preset animation card drawing results.

[0150] In an embodiment of the present application, the difficulty of controlling the first virtual object to achieve different types of animation effects is different. The probability of different animation effects on different card drawing results can be set according to the difficulty of operating different animation effect types. For example, for animation effect types with greater operating difficulty, the probability of setting better card drawing results is greater, that is, better rewards are set for operations with greater difficulty.

[0151] For example, the animation effect types may include: a first animation effect type, a second animation effect type, and a third animation effect type. The difficulty of each animation effect type is as follows: the first animation effect type is difficult, the second animation effect type is medium, and the third animation effect type is easy. Preset card draw results may include: a first card draw result, a second card draw result, a third card draw result, and a fourth card draw result. The reward level for each preset card draw result is: the first card draw result is higher than the second card draw result, the second card draw result is higher than the third card draw result, and the third card draw result is higher than the fourth card draw result.

[0152] Specifically, for the first animation effect type, the probabilities set on each card drawing result can be: 50% for the first card drawing result, 30% for the second card drawing result, 15% for the third card drawing result, and 5% for the fourth card drawing result; the probabilities set on each card drawing result can be: 25% for the first card drawing result, 25% for the second card drawing result, 25% for the third card drawing result, and 25% for the fourth card drawing result; for the third animation effect type, the probabilities set on each card drawing result can be: 5% for the first card drawing result, 15% for the second card drawing result, 30% for the third card drawing result, and 50% for the fourth card drawing result, that is, the more difficult the operation of the animation effect type, the greater the probability of setting a card drawing result with a higher reward level, for the second animation effect type.

[0153] In an embodiment of the present application, by setting different probabilities of card drawing results for different animation types, the randomness of the user's card drawing is guaranteed, and at the same time, users who complete more difficult operations have a greater chance of obtaining better rewards, thereby increasing user participation enthusiasm.

[0154] The present application discloses an animation playback method, comprising: monitoring a posture change of a terminal device in response to a touch operation on a graphical user interface; determining a target animation corresponding to a first virtual object based on the touch operation and the posture of the terminal device before the touch operation ends; and playing the target animation on the graphical user interface when the touch operation ends. This method improves the user's interactive experience with the graphical user interface through multi-dimensional interaction between the user and the terminal.

[0155] Based on the above introduction, the following examples will be given to further illustrate the animation playback method of this application. Figure 2 , Figure 2 This is a flow chart of another animation playback method provided in an embodiment of the present application. Taking the animation playback method as an example, in which a user triggers a game card draw by virtual pitching, the specific process can be as follows:

[0156] 201. Display the card drawing interface of the target game on the mobile phone display.

[0157] In an embodiment of the present application, a game card drawing interface is displayed on a mobile phone display screen, and a virtual pitching scene is designed in the game card drawing interface. The user can complete the pitching operation in the virtual pitching scene, so that a goal-scoring animation is displayed in the game card drawing interface. After the goal-scoring animation ends, the current game card drawing result can be obtained and displayed.

[0158] For example, see Figure 3 , Figure 3 This is a schematic diagram of an application scenario of an animation playback method provided in an embodiment of the present application. Figure 3 The game card drawing interface shown shows a virtual pitching scene, including a virtual ball frame and a virtual sphere, wherein the virtual sphere is an object that the user can control, and the user can complete the pitching operation by touching the virtual sphere.

[0159] 202. When a sliding operation on the virtual sphere in the card drawing interface and a rotation operation on the mobile phone are detected, an animation of the virtual sphere in the card drawing interface entering a target ball into the virtual ball frame is determined.

[0160] Among them, the sliding operation refers to the user controlling the virtual sphere to move in the game card drawing interface.

[0161] In an embodiment of the present application, a coordinate system can be constructed according to the horizontal and vertical directions of the game card drawing interface, that is, the horizontal direction is the X-axis direction, and the vertical direction is the Y-axis direction. The moving distance of the virtual sphere on the X-axis and the moving distance on the Y-axis are determined by sliding the virtual sphere.

[0162] In an embodiment of the present application, a gyroscope is provided inside the mobile phone for detecting the rotation angle corresponding to the rotation operation.

[0163] Among them, multiple states of the game card drawing interface are pre-designed, and the game card drawing interface can be controlled to display different states according to sliding operations and gesture operations.

[0164] Specifically, the states of the game card drawing interface may include: initial state, non-responsive state, angle r1 state, angle r2 state, angle r3 state, sphere horizontally following state along the X-axis, and sphere vertically following state along the Y-axis, etc.

[0165] Among them, the initial state refers to the default display state when entering the game card drawing interface. After entering the card drawing interface, the default gyroscope rotation angle is r=0°, and the virtual sphere is in the default position.

[0166] Among them, the "should not be state" refers to when the vertical distance of the user's sliding operation on the virtual sphere along the Y-axis does not exceed the threshold y1, the camera angle of the game card drawing interface is related to the angle of the gyroscope, no motion trajectory is displayed, and no ball-entry animation is loaded.

[0167] Among them, the angle r1 state refers to when the distance of the user's sliding operation on the virtual sphere along the Y axis exceeds the threshold y1, and through the rotation operation of the mobile phone, the rotation angle r of the mobile phone gyroscope is greater than or equal to 0°, and r is less than or equal to r1, the first motion trajectory is determined. The first motion trajectory is linearly related to the angle of the gyroscope, and the first motion trajectory corresponds to the hollow frame animation.

[0168] For example, see Figure 4 , Figure 4 A schematic diagram of another application scenario of an animation playback method provided in an embodiment of the present application. Figure 4 In the game card drawing interface shown, through the user's sliding operation on the virtual sphere, the distance of the sliding operation along the Y axis exceeds the threshold y1, and the mobile phone is rotated, and the angle of the rotation operation is greater than or equal to 0° and less than or equal to r1, a first motion trajectory is generated and displayed on the game card drawing interface, so that the user can view the motion trajectory of the virtual sphere in advance.

[0169] Among them, in the angle r2 state, when the distance of the user's sliding operation on the virtual sphere along the Y axis exceeds the threshold y1, and through the rotation operation of the mobile phone, the rotation angle r of the mobile phone gyroscope is greater than r1, but r is less than or equal to r2, the second motion trajectory is determined. The second motion trajectory is linearly related to the angle of the gyroscope, and the second motion trajectory corresponds to the board-in-frame animation.

[0170] For example, see Figure 5 , Figure 5 A schematic diagram of another application scenario of an animation playback method provided in an embodiment of the present application. Figure 5 In the game card drawing interface shown, through the user's sliding operation on the virtual sphere, when the distance of the sliding operation along the Y axis exceeds the threshold y1, and the mobile phone is rotated, when the angle of the rotation operation is greater than r1 and less than or equal to r2, a second motion trajectory is generated and displayed on the game card drawing interface, so that the user can view the motion trajectory of the virtual sphere in advance.

[0171] Among them, in the angle r3 state, when the distance of the user's sliding operation on the virtual sphere along the Y axis exceeds the threshold y1, and the rotation angle r of the mobile phone's gyroscope is greater than r2 through the rotation operation of the mobile phone, the third motion trajectory is determined. The third motion trajectory is linearly related to the angle of the gyroscope. The third motion trajectory corresponds to the high-throw-into-box animation, and the ball exit angle is related to the changing angle of the gyroscope.

[0172] For example, see Figure 6 , Figure 6 A schematic diagram of another application scenario of an animation playback method provided in an embodiment of the present application. Figure 6 In the game card drawing interface shown, through the user's sliding operation on the virtual sphere, the sliding operation distance along the Y axis exceeds the threshold y1, and the mobile phone is rotated, and the rotation operation angle is greater than r2, a third motion trajectory is generated, and the third motion trajectory is displayed on the game card drawing interface, so that the user can view the motion trajectory of the virtual sphere in advance.

[0173] The horizontal following state of the sphere along the X-axis means that when the user slides the virtual sphere along the X-axis, the sphere also moves along the X-axis in the direction of the finger dragging.

[0174] Among them, the sphere is in the vertical following state along the Y axis. When the user's sliding operation on the virtual sphere moves the distance along the Y axis less than the threshold y1, the sphere does not move along the Y axis and the subsequent ball-out animation is not loaded. When the moving distance along the Y axis exceeds the threshold y1, the sphere moves along the Y axis and the subsequent ball-out animation is loaded. The animation duration is linearly related to the vertical distance of the sphere along the Y axis.

[0175] 203. When the sliding operation is completed, the target ball-entry animation of the virtual sphere is displayed on the card drawing interface.

[0176] For example, when the game card drawing interface displays the third motion trajectory, the user stops the sliding operation. At this time, the goal-scoring animation corresponding to the third motion trajectory can be triggered, that is, the virtual sphere is controlled in the game card drawing interface to move toward the virtual ball frame according to the third motion trajectory and pass through the virtual ball frame, and the goal-scoring animation display is completed.

[0177] 204. When the goal scoring animation ends, the current card drawing result is displayed on the card drawing interface.

[0178] While the target goal animation is displayed on the card drawing interface, the backend can complete the card drawing operation. When the target goal animation is completed, the card drawing is completed, the target card drawing result is obtained, and the reward animation corresponding to the target card drawing result is obtained. The target card drawing result and the reward animation are displayed on the card drawing interface to complete the current card drawing process. The card drawing result can be randomly drawn to ensure the fairness of the card drawing rewards.

[0179] In an embodiment of the present application, by entering the card drawing interface (initial state), it is detected that the user drags the ball downward at any angle (a motion parabola appears in the pressed state), and the phone can be rotated to change the gyroscope angle at the same time. The motion parabola can change according to the angle (if only the gyroscope is changed without pressing, the phone only monitors the rotation angle and the shooting parabola does not appear). After releasing the phone, the phone plays the ball animation according to the size of the X / Y value corresponding to the dragging distance at this time and the parabolic trajectory (the corresponding value of the X axis controls the left and right movement distance, and the corresponding value of the Y axis controls the vertical movement distance and the duration of the ball animation). After scoring, a random reward is given and a reward animation is played. On the one hand, triggering the shot by combining gesture interaction with touch operation increases the user's immersion. On the other hand, the feedback given by the combination of gesture interaction and sliding interaction helps users improve their sense of control and the sense of recognition of the results brought about by the control illusion in the card drawing scene. In this way, the effectiveness is improved by controlling multiple output results through one input.

[0180] An embodiment of the present application discloses an animation playback method, which includes: displaying a card drawing interface of a target game through a mobile phone display screen; when a sliding operation on a virtual sphere in the card drawing interface and a rotation operation on the mobile phone are detected, determining a target ball-entry animation of the virtual sphere in the card drawing interface into a virtual ball frame; when the sliding operation ends, displaying a target ball-entry animation of the virtual sphere on the card drawing interface; when the target ball-entry animation ends, displaying the current card drawing result on the card drawing interface, thereby improving the user's card drawing experience in the game.

[0181] To facilitate better implementation of the animation playback method provided in the embodiment of the present application, the embodiment of the present application also provides an animation playback device based on the above animation playback method. The meanings of the terms herein are the same as those in the above animation playback method, and the specific implementation details can be referred to the description in the method embodiment.

[0182] See also Figure 7 , Figure 7 This is a structural block diagram of an animation playback device provided in an embodiment of the present application, the device comprising:

[0183] A monitoring unit 301 is configured to monitor a posture change of the terminal device in response to a touch operation on the graphical user interface;

[0184] A first determining unit 302 is configured to determine a target animation corresponding to the first virtual object according to the touch operation and the posture of the terminal device before the touch operation ends;

[0185] The playing unit 303 is configured to play the target animation on the graphical user interface when the touch operation ends.

[0186] In some embodiments, the first determining unit 302 may include:

[0187] A first acquisition subunit is configured to acquire touch operation parameters corresponding to the touch operation and posture parameters of the terminal device;

[0188] The first determining subunit is configured to determine the target animation according to the touch operation parameter and the posture parameter.

[0189] In some embodiments, the first determining subunit may be specifically configured to:

[0190] Determining the animation display duration according to the touch operation parameters;

[0191] Determining an animation effect type according to the posture parameters;

[0192] The target animation is generated based on the animation display duration and the animation effect type.

[0193] In some embodiments, the first determining subunit may be specifically configured to:

[0194] Calculating the motion triggering force of the first virtual object according to the first sliding distance; and determining the animation display duration according to the motion triggering force;

[0195] Determining an animation effect type according to the posture parameters;

[0196] The target animation is generated based on the animation display duration and the animation effect type.

[0197] In some embodiments, the first determining unit 302 may further include:

[0198] a comparing subunit, configured to compare the first sliding distance with a preset sliding distance;

[0199] The execution subunit is configured to execute the step of determining the target animation according to the touch operation parameter and the posture parameter if the first sliding distance is not less than the preset sliding distance.

[0200] In some embodiments, the first determining subunit may be specifically configured to:

[0201] Determining the animation display duration according to the touch operation parameters;

[0202] Determining a preset animation effect type corresponding to the rotation angle from a plurality of preset animation effect types, and obtaining the animation effect type;

[0203] The target animation is generated based on the animation display duration and the animation effect type.

[0204] In some embodiments, the apparatus may further comprise:

[0205] a second determining unit, configured to determine a corresponding pre-movement position of the first virtual object in the motion scene according to the touch operation parameter;

[0206] a third determining unit, configured to determine a corresponding post-movement position of the first virtual object in the motion scene after movement according to the position of the second virtual object in the motion scene;

[0207] A generating unit is configured to generate a target motion trajectory of the target animation based on the pre-motion position, the post-motion position, and the animation effect type.

[0208] In some embodiments, the second determining unit may include:

[0209] a second acquiring subunit, configured to acquire an initial position of the first virtual object on the graphical user interface;

[0210] an updating subunit, configured to update the initial position according to the first sliding distance and the second sliding distance to obtain an updated position;

[0211] A mapping subunit is configured to map the updated position to the motion scene to obtain a corresponding pre-motion position of the first virtual object in the motion scene.

[0212] In some embodiments, the playback unit 303 may include:

[0213] The motion subunit is configured to control the first virtual object to move along the target motion trajectory within the animation display duration.

[0214] In some embodiments, the apparatus may further comprise:

[0215] The first control unit is configured to control the first virtual object to move in the second direction of the graphical user interface in response to a movement operation of the first virtual object in the second direction of the graphical user interface.

[0216] In some embodiments, the apparatus may further comprise:

[0217] an acquiring unit, configured to acquire, in response to a movement operation on the first virtual object in a first direction of the graphical user interface, a movement operation parameter corresponding to the movement operation;

[0218] a second control unit, configured to control the first virtual object to move in the first direction of the graphical user interface and display a preset animation of the first virtual object on the graphical user interface if the movement operation parameter satisfies a movement condition of the first virtual object in the first direction;

[0219] An ending unit is configured to end the operation if the movement operation parameter does not satisfy the movement condition of the first virtual object in the first direction.

[0220] In some embodiments, the apparatus may further comprise:

[0221] A display unit is configured to display an animation card drawing result corresponding to the target animation on the graphical user interface in response to playing the target animation on the graphical user interface.

[0222] In some embodiments, the apparatus may further comprise:

[0223] The fourth determination unit is used to determine the animation card drawing result corresponding to the target animation from multiple preset animation card drawing results according to the animation effect type of the target animation, wherein the probabilities of different animation types in different preset animation card drawing results are different.

[0224] This embodiment of the present application discloses an animation playback device. A monitoring unit 301 monitors changes in the terminal device's posture in response to a touch operation on a graphical user interface (GUI). A first determination unit 302 determines a target animation corresponding to the first virtual object based on the touch operation and the terminal device's posture before the touch operation ends. A playback unit 303 plays the target animation on the GUI when the touch operation ends. This improves the user's interactive experience with the GUI.

[0225] Accordingly, the embodiment of the present application also provides a computer device, which may be a terminal. Figure 8 As shown, Figure 8A schematic diagram of the structure of a computer device provided in an embodiment of the present application. The computer device 600 includes a processor 601 having one or more processing cores, a memory 602 having one or more computer-readable storage media, and a computer program stored in the memory 602 and executable on the processor. The processor 601 is electrically connected to the memory 602. Those skilled in the art will appreciate that the computer device structure shown in the figure does not constitute a limitation of the computer device, and may include more or fewer components than shown, or combine certain components, or arrange the components differently.

[0226] The processor 601 is the control center of the computer device 600. It uses various interfaces and lines to connect the various parts of the entire computer device 600. By running or loading software programs and / or modules stored in the memory 602 and calling data stored in the memory 602, it executes various functions of the computer device 600 and processes data, thereby monitoring the computer device 600 as a whole.

[0227] In the embodiment of the present application, the processor 601 in the computer device 600 loads instructions corresponding to one or more application processes into the memory 602 according to the following steps, and the processor 601 runs the application stored in the memory 602 to implement various functions:

[0228] Responding to touch operations on the graphical user interface and monitoring changes in the terminal device's posture;

[0229] Before the touch operation ends, determining a target animation corresponding to the first virtual object according to the touch operation and the posture of the terminal device;

[0230] When the touch operation ends, play the target animation on the graphical user interface.

[0231] In some embodiments, determining a target animation corresponding to the first virtual object based on the touch operation and the posture of the terminal device before the touch operation ends includes:

[0232] Obtaining touch operation parameters corresponding to the touch operation and posture parameters of the terminal device;

[0233] Determine the target animation based on the touch operation parameters and posture parameters.

[0234] In some embodiments, determining a target animation based on touch operation parameters and gesture parameters includes:

[0235] Determine the animation display duration based on touch operation parameters;

[0236] Determine the animation effect type based on the posture parameters;

[0237] Generate target animation based on animation display duration and animation effect type.

[0238] In some embodiments, the touch operation parameter includes a first sliding distance, where the first sliding distance is a sliding distance in a first direction;

[0239] Determine the animation display duration based on touch operation parameters, including:

[0240] Calculating a motion trigger force of the first virtual object according to the first sliding distance;

[0241] Determine the animation display duration based on the motion trigger strength.

[0242] In some embodiments, before determining the target animation according to the touch operation parameters and the gesture parameters, the method further includes:

[0243] comparing the first sliding distance with a preset sliding distance;

[0244] If the first sliding distance is not less than the preset sliding distance, a step of determining a target animation according to the touch operation parameters and the posture parameters is performed.

[0245] In some embodiments, the posture parameter includes a rotation angle;

[0246] Determine the animation effect type based on the posture parameters, including:

[0247] From a plurality of preset animation effect types, a preset animation effect type corresponding to the rotation angle is determined to obtain the animation effect type.

[0248] In some embodiments, the content displayed by the graphical user interface also includes a motion scene corresponding to the first virtual object, and the motion scene includes a second virtual object;

[0249] Before playing the target animation on the GUI, also include:

[0250] Determining a corresponding pre-movement position of the first virtual object in the motion scene according to the touch operation parameter;

[0251] Determining a corresponding post-movement position of the first virtual object in the motion scene according to the position of the second virtual object in the motion scene;

[0252] Generates a target motion trajectory of the target animation based on the pre-motion position, post-motion position, and animation effect type.

[0253] In some embodiments, the touch operation parameter includes a first sliding distance and a second sliding distance, the first sliding distance is a sliding distance in a first direction, and the second sliding distance is a sliding distance in a second direction;

[0254] Determining a corresponding pre-motion position of the first virtual object in the motion scene according to the touch operation parameter includes:

[0255] Obtaining an initial position of the first virtual object in the graphical user interface;

[0256] Updating the initial position according to the first sliding distance and the second sliding distance to obtain an updated position;

[0257] The updated position is mapped to the motion scene to obtain the corresponding pre-motion position of the first virtual object in the motion scene.

[0258] In some embodiments, playing a target animation on a graphical user interface includes:

[0259] The first virtual object is controlled to move according to the target motion trajectory within the animation display duration.

[0260] In some embodiments, the method further comprises:

[0261] In response to a movement operation on the first virtual object in a second direction of the graphical user interface, the first virtual object is controlled to move in the second direction of the graphical user interface.

[0262] In some embodiments, the method further comprises:

[0263] In response to a movement operation on a first virtual object in a first direction of the graphical user interface, obtaining a movement operation parameter corresponding to the movement operation;

[0264] If the movement operation parameter satisfies the movement condition of the first virtual object in the first direction, controlling the first virtual object to move in the first direction of the graphical user interface and displaying a preset animation of the first virtual object on the graphical user interface;

[0265] If the movement operation parameter does not satisfy the movement condition of the first virtual object in the first direction, the operation is terminated.

[0266] In some embodiments, the method further comprises:

[0267] In response to playing the target animation on the graphical user interface, the animation card drawing result corresponding to the target animation is displayed on the graphical user interface.

[0268] In some embodiments, the method further comprises:

[0269] An animation card drawing result corresponding to the target animation is determined from multiple preset animation card drawing results according to the animation effect type of the target animation, wherein the probabilities of different animation types in different preset animation card drawing results are different.

[0270] The embodiment of the present application designs a virtual shooting interface in a graphical user interface, generates a target shooting animation according to the user's movement operation of the basketball in the virtual shooting interface and the rotation operation of the terminal, and when the user completes the movement operation of the basketball, the target shooting animation is displayed in the virtual shooting interface, and then the current card drawing result is displayed in the graphical user interface. The user can complete the animation playback through various operations, thereby improving the user's interactive experience with the graphical user interface.

[0271] The specific implementation of the above operations can be found in the previous embodiments and will not be repeated here.

[0272] Optional, such as Figure 8 As shown, the computer device 600 further includes: a touch screen 603, a radio frequency circuit 604, an audio circuit 605, an input unit 606, and a power supply 607. Among them, the processor 601 is electrically connected to the touch screen 603, the radio frequency circuit 604, the audio circuit 605, the input unit 606, and the power supply 607 respectively. It can be understood by those skilled in the art that Figure 8 The computer device structure shown in the figure does not constitute a limitation to the computer device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.

[0273] The touch display screen 603 can be used for displaying a graphical user interface and receiving an operation instruction generated by the user acting on the graphical user interface. The touch display screen 603 can include a display panel and a touch panel. Among them, the display panel can be used for displaying information input by the user or information provided to the user and various graphical user interfaces of a computer device, and these graphical user interfaces can be composed of graphics, text, icons, videos and any combination thereof. Optionally, a liquid crystal display (LCD), an organic light emitting diode (OLED, Organic Light-Emitting Diode) and the like can be used to configure the display panel. The touch panel can be used for collecting the user's touch operation on or near it (such as the user uses any suitable object or accessory such as a finger, a stylus on the touch panel or near the touch panel) and generates corresponding operation instructions, and the operation instructions execute corresponding programs. Optionally, the touch panel may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch direction, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into the touch point coordinates, and then sends it to the processor 601, and can receive the command sent by the processor 601 and execute it. The touch panel can cover the display panel. When the touch panel detects a touch operation on or near it, it is transmitted to the processor 601 to determine the type of touch event, and then the processor 601 provides a corresponding visual output on the display panel according to the type of touch event. In an embodiment of the present application, the touch panel and the display panel can be integrated into the touch display screen 603 to realize input and output functions. However, in some embodiments, the touch panel and the touch panel can be used as two independent components to realize input and output functions. That is, the touch display screen 603 can also be used as part of the input unit 606 to realize the input function.

[0274] The RF circuit 604 may be used to transmit and receive RF signals, thereby establishing wireless communication with a network device or other computer device through wireless communication, and transmitting and receiving signals between the network device or other computer device.

[0275] Audio circuit 605 can be used to provide an audio interface between the user and the computer device through a speaker and microphone. Audio circuit 605 can convert received audio data into electrical signals and transmit them to the speaker, which then converts them into sound signals for output. Conversely, the microphone converts collected sound signals into electrical signals, which are then received by audio circuit 605 and converted into audio data. The audio data is then output to processor 601 for processing, then transmitted via RF circuit 604 to, for example, another computer device, or to memory 602 for further processing. Audio circuit 605 may also include an earphone jack to allow communication between external headphones and the computer device.

[0276] The input unit 606 may be configured to receive input digital, character information, or user feature information (such as fingerprint, iris, or facial information), and to generate keyboard, mouse, joystick, optical, or trackball signal inputs related to user settings and function control.

[0277] Power supply 607 is used to supply power to various components of computer device 600. Optionally, power supply 607 can be logically connected to processor 601 via a power management system, thereby enabling the power management system to manage charging, discharging, and power consumption. Power supply 607 can also include one or more DC or AC power supplies, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and other arbitrary components.

[0278] although Figure 8 Not shown in the figure, the computer device 600 may also include a camera, a sensor, a wireless fidelity module, a Bluetooth module, etc., which will not be described in detail here.

[0279] In the above embodiments, the description of each embodiment has its own focus. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0280] As can be seen from the above, the computer device provided in this embodiment can respond to touch operations on the graphical user interface and monitor the posture changes of the terminal device; before the touch operation ends, determine the target animation corresponding to the first virtual object based on the touch operation and the posture of the terminal device; when the touch operation ends, play the target animation on the graphical user interface.

[0281] Those skilled in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be accomplished by instructions, or by controlling related hardware through instructions. The instructions may be stored in a computer-readable storage medium and loaded and executed by a processor.

[0282] To this end, an embodiment of the present application provides a computer-readable storage medium storing a plurality of computer programs, which can be loaded by a processor to execute the steps of any of the animation playback methods provided in the embodiments of the present application. For example, the computer program can execute the following steps:

[0283] Responding to touch operations on the graphical user interface and monitoring changes in the terminal device's posture;

[0284] Before the touch operation ends, determining a target animation corresponding to the first virtual object according to the touch operation and the posture of the terminal device;

[0285] When the touch operation ends, play the target animation on the graphical user interface.

[0286] In some embodiments, determining a target animation corresponding to the first virtual object based on the touch operation and the posture of the terminal device before the touch operation ends includes:

[0287] Obtaining touch operation parameters corresponding to the touch operation and posture parameters of the terminal device;

[0288] Determine the target animation based on the touch operation parameters and posture parameters.

[0289] In some embodiments, determining a target animation based on touch operation parameters and gesture parameters includes:

[0290] Determine the animation display duration based on touch operation parameters;

[0291] Determine the animation effect type based on the posture parameters;

[0292] Generate target animation based on animation display duration and animation effect type.

[0293] In some embodiments, the touch operation parameter includes a first sliding distance, where the first sliding distance is a sliding distance in a first direction;

[0294] Determine the animation display duration based on touch operation parameters, including:

[0295] Calculating a motion trigger force of the first virtual object according to the first sliding distance;

[0296] Determine the animation display duration based on the motion trigger strength.

[0297] In some embodiments, before determining the target animation according to the touch operation parameters and the gesture parameters, the method further includes:

[0298] comparing the first sliding distance with a preset sliding distance;

[0299] If the first sliding distance is not less than the preset sliding distance, a step of determining a target animation according to the touch operation parameters and the posture parameters is performed.

[0300] In some embodiments, the posture parameter includes a rotation angle;

[0301] Determine the animation effect type based on the posture parameters, including:

[0302] From a plurality of preset animation effect types, a preset animation effect type corresponding to the rotation angle is determined to obtain the animation effect type.

[0303] In some embodiments, the content displayed by the graphical user interface also includes a motion scene corresponding to the first virtual object, and the motion scene includes a second virtual object;

[0304] Before playing the target animation on the GUI, also include:

[0305] Determining a corresponding pre-movement position of the first virtual object in the motion scene according to the touch operation parameter;

[0306] Determining a corresponding post-movement position of the first virtual object in the motion scene according to the position of the second virtual object in the motion scene;

[0307] Generates a target motion trajectory of the target animation based on the pre-motion position, post-motion position, and animation effect type.

[0308] In some embodiments, the touch operation parameter includes a first sliding distance and a second sliding distance, the first sliding distance is a sliding distance in a first direction, and the second sliding distance is a sliding distance in a second direction;

[0309] Determining a corresponding pre-motion position of the first virtual object in the motion scene according to the touch operation parameter includes:

[0310] Obtaining an initial position of the first virtual object in the graphical user interface;

[0311] Updating the initial position according to the first sliding distance and the second sliding distance to obtain an updated position;

[0312] The updated position is mapped to the motion scene to obtain the corresponding pre-motion position of the first virtual object in the motion scene.

[0313] In some embodiments, playing a target animation on a graphical user interface includes:

[0314] The first virtual object is controlled to move according to the target motion trajectory within the animation display duration.

[0315] In some embodiments, the method further comprises:

[0316] In response to a movement operation on the first virtual object in a second direction of the graphical user interface, the first virtual object is controlled to move in the second direction of the graphical user interface.

[0317] In some embodiments, the method further comprises:

[0318] In response to a movement operation on a first virtual object in a first direction of the graphical user interface, obtaining a movement operation parameter corresponding to the movement operation;

[0319] If the movement operation parameter satisfies the movement condition of the first virtual object in the first direction, controlling the first virtual object to move in the first direction of the graphical user interface and displaying a preset animation of the first virtual object on the graphical user interface;

[0320] If the movement operation parameter does not satisfy the movement condition of the first virtual object in the first direction, the operation is terminated.

[0321] In some embodiments, the method further comprises:

[0322] In response to playing the target animation on the graphical user interface, the animation card drawing result corresponding to the target animation is displayed on the graphical user interface.

[0323] In some embodiments, the method further comprises:

[0324] An animation card drawing result corresponding to the target animation is determined from multiple preset animation card drawing results according to the animation effect type of the target animation, wherein the probabilities of different animation types in different preset animation card drawing results are different.

[0325] The embodiment of the present application designs a virtual shooting interface in a graphical user interface, generates a target shooting animation according to the user's movement operation of the basketball in the virtual shooting interface and the rotation operation of the terminal, and when the user completes the movement operation of the basketball, the target shooting animation is displayed in the virtual shooting interface, and then the current card drawing result is displayed in the graphical user interface. The user can complete the animation playback through various operations, thereby improving the user's interactive experience with the graphical user interface.

[0326] The specific implementation of the above operations can be found in the previous embodiments and will not be repeated here.

[0327] The computer-readable storage medium may include a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0328] Since the computer program stored in the computer-readable storage medium can execute the steps in any animation playback method provided in the embodiments of the present application, the beneficial effects that can be achieved by any animation playback method provided in the embodiments of the present application can be achieved. Please refer to the previous embodiments for details and will not be repeated here.

[0329] The above is a detailed introduction to an animation playback method, device, computer-readable storage medium and computer equipment provided in the embodiments of the present application. Specific examples are used herein to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for technical personnel in this field, based on the ideas of the present application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. An animation playing method, characterized in that: A graphical user interface is provided through a terminal device, wherein content displayed by the graphical user interface includes at least a first virtual object that is controlled by the terminal device, and the method includes: In response to a touch operation on the graphical user interface, monitoring a posture change of the terminal device; Before the touch operation ends, determining a target animation corresponding to the first virtual object according to the touch operation and the posture of the terminal device; When the touch operation ends, playing the target animation on the graphical user interface; In response to playing the target animation on the graphical user interface, a card drawing operation is triggered in the background to obtain an animation card drawing result corresponding to the target animation, and the animation card drawing result is displayed on the graphical user interface, wherein the card drawing operation indicates drawing different cards according to different animations, and the cards are used to obtain rewards.

2. The method according to claim 1, characterized in that The determining, before the touch operation ends, a target animation corresponding to the first virtual object according to the touch operation and the posture of the terminal device, includes: Acquiring touch operation parameters corresponding to the touch operation and posture parameters of the terminal device; The target animation is determined according to the touch operation parameter and the posture parameter.

3. The method according to claim 2, characterized in that The determining the target animation according to the touch operation parameter and the posture parameter includes: Determining the animation display duration according to the touch operation parameters; Determining an animation effect type according to the posture parameters; The target animation is generated based on the animation display duration and the animation effect type.

4. The method according to claim 3, characterized in that The touch operation parameter includes a first sliding distance, where the first sliding distance is a sliding distance in a first direction; The determining of the animation display duration according to the touch operation parameters includes: Calculating a motion triggering force of the first virtual object according to the first sliding distance; The animation display duration is determined according to the motion triggering force.

5. The method according to claim 4, characterized in that Before determining the target animation according to the touch operation parameters and the posture parameters, the method further includes: comparing the first sliding distance with a preset sliding distance; If the first sliding distance is not less than the preset sliding distance, the step of determining the target animation according to the touch operation parameter and the posture parameter is performed.

6. The method according to claim 3, characterized in that The posture parameters include rotation angle; Determining the animation effect type according to the posture parameter includes: From a plurality of preset animation effect types, a preset animation effect type corresponding to the rotation angle is determined to obtain the animation effect type.

7. The method according to claim 3, characterized in that The content displayed by the graphical user interface further includes a motion scene corresponding to the first virtual object, and the motion scene includes a second virtual object; Before playing the target animation on the graphical user interface, the method further includes: determining a corresponding pre-movement position of the first virtual object in the motion scene according to the touch operation parameter; determining a corresponding post-movement position of the first virtual object in the motion scene after the first virtual object moves according to the position of the second virtual object in the motion scene; A target motion trajectory of the target animation is generated based on the pre-motion position, the post-motion position, and the animation effect type.

8. The method according to claim 7, characterized in that The touch operation parameters include a first sliding distance and a second sliding distance, the first sliding distance is a sliding distance in a first direction, and the second sliding distance is a sliding distance in a second direction; The determining, according to the touch operation parameter, the corresponding pre-movement position of the first virtual object in the motion scene includes: Obtaining an initial position of the first virtual object on the graphical user interface; updating the initial position according to the first sliding distance and the second sliding distance to obtain an updated position; The updated position is mapped to the motion scene to obtain the corresponding pre-motion position of the first virtual object in the motion scene.

9. The method according to claim 7, characterized in that Playing the target animation on the graphical user interface includes: Control the first virtual object to move along the target motion trajectory within the animation display duration.

10. The method according to claim 1, characterized in that The method further comprises: In response to a movement operation on the first virtual object in a second direction of the graphical user interface, the first virtual object is controlled to move in the second direction of the graphical user interface.

11. The method according to claim 1, characterized in that The method further comprises: In response to a movement operation of the first virtual object in a first direction of the graphical user interface, obtaining a movement operation parameter corresponding to the movement operation; If the movement operation parameter satisfies a movement condition of the first virtual object in the first direction, controlling the first virtual object to move in the first direction of the graphical user interface and displaying a preset animation of the first virtual object on the graphical user interface; If the movement operation parameter does not meet the movement condition of the first virtual object in the first direction, the operation is terminated.

12. The method according to claim 1, characterized in that The method further comprises: An animation card drawing result corresponding to the target animation is determined from a plurality of preset animation card drawing results according to the animation effect type of the target animation, wherein the probabilities of different animation types in different preset animation card drawing results are different.

13. An animation playback device, characterized in that: The apparatus is applied to a terminal device, providing a graphical user interface through the terminal device, wherein the content displayed by the graphical user interface includes at least a first virtual object controlled by the terminal device, and the apparatus comprises: a monitoring unit, configured to monitor a posture change of the terminal device in response to a touch operation on the graphical user interface; a first determining unit, configured to determine a target animation corresponding to the first virtual object according to the touch operation and the posture of the terminal device before the touch operation ends; a playing unit, configured to play the target animation on the graphical user interface when the touch operation ends; The device is also used to: in response to playing the target animation on the graphical user interface, trigger a card drawing operation in the background, obtain an animation card drawing result corresponding to the target animation, and display the animation card drawing result on the graphical user interface, wherein the card drawing operation indicates drawing different cards according to different animations, and the cards are used to obtain rewards.

14. A computer device comprising a memory, a processor, and a computer program stored in the memory and running on the processor, wherein: When the processor executes the program, the animation playing method according to any one of claims 1 to 12 is implemented.

15. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor to execute the animation playing method according to any one of claims 1 to 12.

Citation Information

Patent Citations

  • Method and system for using sensors of control device for control of game

    CN110382064A