Game interaction control method and apparatus and electronic device
By introducing the reciprocating motion control method of virtual vehicles in racing games, adjusting the motion amplitude and speed, the problem of single game scenes is solved, and the richness of game scenes and the improvement of player interests is achieved.
Patent Information
- Application Number
- PCT/CN2024/140708
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2024-01-19
- Filing Date
- 2024-12-19
- Publication Date
- 2025-07-24
AI Technical Summary
The existing racing gameplay is single, and the game scene content and scene changes are limited, resulting in low player interest in gaming.
By introducing a reciprocating motion control method of the virtual vehicle in the game scene, the movement control is used to adjust the movement amplitude and speed of the virtual vehicle, including adjusting the maximum movement amplitude when moving in the first direction, responding to the speed threshold or amplitude change to the direction of the change, and adjusting the movement speed according to the movement amplitude to achieve high-speed movement of the virtual vehicle.
It increases the richness of the game scene and the player's gaming experience, and improves the fun and challenging game through the high-speed movement of virtual vehicles.
Smart Images

Figure CN2024140708_24072025_PF_FP_ABST
Abstract
Description
Game interactive control method, device and electronic device
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application claims priority to Chinese patent application number 202410084296.3, filed on January 19, 2024, entitled “Game interactive control method, device and electronic device”, the entire contents of which are incorporated herein by reference. Technical Field
[0003] The present disclosure relates to the technical field of game design, and in particular to a game interactive control method, device, and electronic device. Background Art
[0004] In racing games, the first few virtual objects to reach the finish line usually pass the level, while the other virtual objects are eliminated. However, current racing games have a single gameplay, and the game scene content and scene changes are limited, resulting in low player interest in the game. Summary of the Invention
[0005] The purpose of the present disclosure is to provide a game interaction control method, device and electronic device to improve the richness of game scene content and enhance players' gaming interest.
[0006] In a first aspect, the present disclosure provides a game interaction control method, which includes: providing a graphical user interface through a terminal device, the graphical user interface including a game scene and a mobile control, and the game scene including a virtual vehicle; the mobile control is configured to control the virtual vehicle to move back and forth; when the virtual vehicle moves toward a first direction, responding to a first trigger operation for the mobile control, and controlling the virtual vehicle's current maximum movement amplitude in the first direction to be adjusted to a first movement amplitude according to the first trigger operation, wherein the current maximum movement amplitude is related to the first trigger operation; in response to the virtual vehicle's movement speed in the first direction reaching a preset speed threshold or the virtual vehicle's current movement amplitude in the first direction reaching the first movement amplitude, controlling the virtual vehicle to convert from moving toward the first direction to moving toward the second direction, and controlling the movement speed of the virtual vehicle to be adjusted to a target speed according to the movement amplitude corresponding to the virtual vehicle's movement direction conversion; the first direction and the second direction are different; controlling the virtual vehicle to move in the game scene according to the target speed.
[0007] In a second aspect, the present disclosure provides a game interaction control device, which includes: an interface display module, used to provide a graphical user interface through a terminal device, the graphical user interface including a game scene and a mobile control, and the game scene including a virtual vehicle; the mobile control is configured to control the virtual vehicle to perform reciprocating motion; a motion amplitude control module, used to respond to a first trigger operation on the mobile control when the virtual vehicle moves toward a first direction, and control the adjustment of the current maximum motion amplitude of the virtual vehicle in the first direction to a first motion amplitude according to the first trigger operation, wherein the current maximum motion amplitude is related to the first trigger operation; a speed control module, used to control the virtual vehicle to switch from moving toward the first direction to moving toward the second direction in response to the movement speed of the virtual vehicle in the first direction reaching a preset speed threshold or the current motion amplitude of the virtual vehicle in the first direction reaching the first motion amplitude, and control the adjustment of the movement speed of the virtual vehicle to a target speed according to the motion amplitude corresponding to the virtual vehicle movement direction conversion; the first direction and the second direction are different; and a vehicle movement module, used to control the movement of the virtual vehicle in the game scene according to the target speed.
[0008] In a third aspect, the present disclosure provides an electronic device comprising a processor and a memory, wherein the memory stores machine-executable instructions that can be executed by the processor, and the processor executes the machine-executable instructions to implement the above-mentioned game interaction control method.
[0009] In a fourth aspect, the present disclosure provides a computer-readable storage medium storing computer-executable instructions. When the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to implement the above-mentioned game interaction control method.
[0010] The embodiments of the present disclosure bring the following beneficial effects:
[0011] The present disclosure provides a game interaction control method, device, and electronic device. When a virtual vehicle moves in a first direction, the method responds to a first trigger operation on a mobile control, and according to the first trigger operation, the maximum movement amplitude of the virtual vehicle in the first direction is adjusted to the first movement amplitude. The mobile control is configured to control the virtual vehicle to move back and forth. Then, in response to the movement speed of the virtual vehicle in the first direction reaching a preset speed threshold or the current movement amplitude of the virtual vehicle in the first direction reaching the first movement amplitude, the method controls the virtual vehicle to switch from moving in the first direction to moving in the second direction, and according to the movement amplitude corresponding to the direction of the virtual vehicle switching, controls the movement speed of the virtual vehicle to be adjusted to a target speed. Then, the virtual vehicle is controlled to move in the game scene according to the target speed. This method can control the virtual vehicle to move back and forth through the mobile control while increasing the movement speed of the virtual vehicle, so that the virtual vehicle moves at high speed, thereby enhancing the player's gaming experience.
[0012] Other features and advantages of the present disclosure will be set forth in the following description, or some features and advantages may be inferred or unambiguously determined from the description, or may be learned by practicing the above-mentioned technology of the present disclosure.
[0013] In order to make the above-mentioned objects, features and advantages of the present disclosure more obvious and easy to understand, preferred embodiments are specifically listed below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] In order to more clearly illustrate the specific embodiments of the present disclosure or the technical solutions in the related technologies, the following briefly introduces the drawings required for use in the specific embodiments or related technical descriptions. Obviously, the drawings described below are some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0015] FIG1 is a flow chart of a game interaction control method provided by one embodiment of the present disclosure;
[0016] FIG2 is a schematic diagram of a swing motion provided by one embodiment of the present disclosure;
[0017] FIG3 is a schematic structural diagram of a game interaction control device provided by one embodiment of the present disclosure;
[0018] FIG4 is a schematic structural diagram of an electronic device provided by one embodiment of the present disclosure. DETAILED DESCRIPTION
[0019] To make the objectives, technical solutions, and advantages of the embodiments of the present disclosure more clear, the technical solutions of the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings of the embodiments of the present disclosure. Obviously, the described embodiments are only some of the embodiments of the present disclosure, but not all of them. Generally, the components of the embodiments of the present disclosure described and shown in the drawings herein can be arranged and designed in various different configurations.
[0020] Therefore, the following detailed description of the embodiments of the present disclosure provided in the accompanying drawings is not intended to limit the scope of the present disclosure as claimed, but merely represents selected embodiments of the present disclosure. All other embodiments derived by persons of ordinary skill in the art based on the embodiments of the present disclosure without creative effort shall fall within the scope of protection of the present disclosure.
[0021] In one embodiment of the present disclosure, the game interaction control method can be run on a local terminal device or a server. When the game interaction control method is run on a server, the method can be implemented and executed based on a cloud interaction system, wherein the cloud interaction system includes a server and a client device.
[0022] In an optional embodiment, various cloud applications can be run under the cloud interaction system, such as cloud games. Taking cloud games as an example, cloud games refer to a gaming method based on cloud computing. In the cloud game operation mode, the operating body of the game program and the main body of the game screen presentation are separated. The storage and operation of the game interaction control method are completed on the cloud game server. The role of the client device is to receive and send data and present the game screen. For example, the client device can be a display device with data transmission function close to the user side, such as a mobile terminal, TV, computer, PDA, etc.; but the cloud game server in the cloud is responsible for information processing. When playing the game, the player operates the client device to send operation instructions to the cloud game server. The cloud game server runs the game according to the operation instructions, encodes and compresses the game screen and other data, and returns it to the client device through the network. Finally, the client device decodes and outputs the game screen.
[0023] In an optional embodiment, taking a game as an example, a local terminal device stores a game program and is used to present the game screen. The local terminal device is used to interact with the player through a graphical user interface, that is, conventionally downloading and installing the game program through an electronic device and running it. The local terminal device can provide the graphical user interface to the player in a variety of ways, for example, it can be rendered and displayed on the terminal's display screen, or provided to the player through holographic projection. For example, the local terminal device may include a display screen and a processor, the display screen is used to present the graphical user interface, the graphical user interface includes the game screen, and the processor is used to run the game, generate the graphical user interface, and control the display of the graphical user interface on the display screen.
[0024] In one possible implementation, the present disclosure provides a method for interactive game control, as shown in FIG1 . The method includes the following specific steps:
[0025] Step S102: providing a graphical user interface through the terminal device, wherein the graphical user interface includes a game scene and mobile controls, and the game scene includes a virtual vehicle; the mobile controls are configured to control the virtual vehicle to perform reciprocating motion.
[0026] The above-mentioned terminal device can be the local terminal device mentioned above, or it can be the client device in the above-mentioned cloud interaction system. Specifically, the above-mentioned terminal device can be a mobile phone, a tablet computer or a personal computer, etc. By running the game program corresponding to the target game, the terminal device can provide a graphical user interface corresponding to the target game, and the graphical user interface is used to display the scene screen of the game scene. The game scene at least includes a virtual vehicle controlled by the terminal device. The virtual vehicle can be a vehicle for a virtual character to ride, or it can be a vehicle running independently. The specific nature of the virtual vehicle can be determined according to research and development needs. For example, the virtual vehicle can be a virtual Trojan horse or a virtual vehicle, etc.
[0027] In a specific implementation, the aforementioned motion control can be displayed anywhere on the graphical user interface, and the display format of the motion control can be determined based on R&D requirements. The motion control is used to control the reciprocating motion of the virtual vehicle, which can be reciprocating swinging or reciprocating movement. Reciprocating swinging refers to the forward or backward swinging of the virtual vehicle, similar to the motion of a simple pendulum or simple harmonic motion; reciprocating movement refers to the forward or backward movement of the virtual vehicle.
[0028] Step S104, when the virtual vehicle moves toward the first direction, respond to the first trigger operation for the mobile control, and adjust the current maximum movement amplitude of the virtual vehicle in the first direction to the first movement amplitude according to the first trigger operation control, wherein the current maximum movement amplitude is related to the first trigger operation.
[0029] The specific direction corresponding to the above-mentioned first direction can be determined according to research and development needs. For example, the first direction can be the front or back of the virtual vehicle. The above-mentioned first trigger operation can be a click operation or a long press operation on the mobile control, or it can be a sliding operation on the mobile control, etc. When the virtual vehicle moves toward the first direction, the player triggers the mobile control, which will provide the virtual vehicle with motion energy toward the first direction or the second direction, so as to adjust the maximum motion amplitude of the virtual vehicle in the first direction, so that the maximum motion amplitude is adjusted toward the direction close to the first motion amplitude. Among them, the motion energy can be the acceleration provided to the virtual vehicle or the kinetic energy of a fixed size, etc. Specifically, the maximum motion amplitude of the virtual vehicle in the first direction is related to the first trigger operation. For example, the longer the triggering time of the first trigger operation is, the larger the maximum motion amplitude is, or the more times the first trigger operation is triggered, the larger the maximum motion amplitude is.
[0030] In actual applications, when the virtual object moves toward a first direction, motion energy in the first direction is provided to the virtual vehicle, and the motion amplitude of the virtual vehicle in the first direction will increase, so that the submaximal motion amplitude can increase to the first motion amplitude; when the virtual object moves toward the first direction, motion energy in the second direction is provided to the virtual vehicle, and the motion amplitude of the virtual vehicle in the first direction will gradually decrease, thereby reducing the motion amplitude of the virtual vehicle in the first direction, but the submaximal motion amplitude may not decrease.
[0031] In practical applications, the first motion amplitude is typically set based on R&D requirements. This first motion amplitude indicates the maximum motion amplitude threshold that the virtual vehicle can reach during reciprocating motion. Setting the maximum motion amplitude threshold ensures that the virtual vehicle reaches the maximum motion amplitude threshold more quickly, thereby increasing the frequency of the virtual vehicle's reciprocating motion and achieving faster movement.
[0032] Step S106, in response to the movement speed of the virtual vehicle in the first direction reaching a preset speed threshold or the current movement amplitude of the virtual vehicle in the first direction reaching a first movement amplitude, the virtual vehicle is controlled to convert from moving toward the first direction to moving toward the second direction, and according to the movement amplitude corresponding to the virtual vehicle when the movement direction is converted, the movement speed of the virtual vehicle is controlled to be adjusted to the target speed; the directions of the first direction and the second direction are different.
[0033] The movement speed of the above-mentioned virtual vehicle in the first direction refers to the speed of the virtual vehicle when it moves toward the first direction when performing reciprocating motion. The above-mentioned preset speed threshold can be set according to player needs or determined according to natural laws. For example, the preset speed threshold can be set to 0 or 1m / s.
[0034] In a specific implementation, if the movement speed of the virtual vehicle in the first direction reaches a preset speed threshold or the current movement amplitude of the virtual vehicle in the first direction reaches the first movement amplitude, the virtual vehicle will switch from moving toward the first direction to moving toward the second direction, and according to the corresponding movement amplitude when the virtual vehicle switches from moving toward the first direction to moving toward the second direction, the movement speed of the virtual vehicle is controlled to be adjusted to the target speed. The target speed here is determined according to the current corresponding movement amplitude of the virtual vehicle. The greater the movement amplitude, the greater the speed increase of the virtual vehicle or the target speed reached by the virtual vehicle. Among them, the first direction and the second direction are different. The specific direction of the first direction and the second direction can be determined according to research and development needs. Usually, the first direction and the second direction are two opposite directions. For example, the first direction is in front of the virtual vehicle and the second direction is behind the virtual vehicle; the first direction is obliquely behind the virtual vehicle and the second direction is obliquely in front of the virtual vehicle, etc.
[0035] It should be noted that the above steps S106-S108 are the reciprocating motion effect produced by the virtual vehicle after the mobile control is triggered when the virtual vehicle moves toward the first direction. This effect is similar to the reciprocating motion effect produced by the virtual vehicle after the mobile control is triggered when the virtual vehicle moves toward the second direction. It is only necessary to replace the first direction in steps S106-S108 with the second direction, and the second direction with the first direction.
[0036] Step S108: Control the virtual vehicle to move in the game scene according to the target speed.
[0037] In a specific implementation, after the virtual vehicle's movement speed is adjusted to the target speed, the virtual vehicle can be controlled to move in the game scene according to the target speed. In this case, the virtual vehicle's movement in the game scene refers to forward movement, not reciprocating motion. Specifically, after the virtual vehicle's movement speed is adjusted to the target speed, the virtual vehicle can be controlled to move in the game scene at the target speed, and the virtual vehicle can also be controlled to move in the game scene with the target speed as the maximum speed.
[0038] An embodiment of the present invention provides a game interaction control method, which can control the reciprocating motion of a virtual vehicle by moving controls while increasing the movement speed of the virtual vehicle, so that the virtual vehicle moves at high speed, thereby enhancing the player's gaming experience.
[0039] The following preferred embodiment is used to describe a method for adjusting the maximum movement amplitude of the virtual vehicle at that time.
[0040] Specifically, the above-mentioned specific process of responding to the first trigger operation for the mobile control when the virtual vehicle moves toward the first direction, and adjusting the current maximum movement amplitude of the virtual vehicle in the first direction to the first movement amplitude according to the first trigger operation control may include: when the virtual vehicle moves toward the first direction, responding to the first trigger operation for the mobile control, and increasing the current maximum movement amplitude of the virtual vehicle in the first direction to the first movement amplitude according to the first trigger operation control; wherein the current maximum movement amplitude is not greater than the first movement amplitude.
[0041] When the virtual vehicle moves toward the second direction, in response to the first trigger operation on the mobile control, the maximum movement amplitude of the virtual vehicle in the second direction is increased to a third movement amplitude according to the control of the first trigger operation; wherein the third movement amplitude matches the first movement amplitude. The third movement amplitude is set according to R&D requirements, and the third movement amplitude is used to indicate the maximum movement amplitude threshold that the virtual vehicle can reach in the second direction when reciprocating. Setting the maximum movement amplitude threshold can ensure that the virtual vehicle will reach the maximum movement amplitude threshold relatively quickly, thereby increasing the frequency of the reciprocating movement of the virtual vehicle to make the virtual vehicle move faster. In a specific embodiment, the first movement amplitude is the same as or similar to the third movement amplitude.
[0042] In practice, triggering the movement control simply provides thrust to the virtual vehicle and is unrelated to the direction in which the virtual vehicle is currently reciprocating. Specifically, when the virtual vehicle is moving in a first direction, triggering the movement control increases the swing amplitude of the virtual vehicle's reciprocating motion in the first direction; and when the virtual vehicle is moving in a second direction, triggering the movement control increases the swing amplitude of the virtual vehicle's reciprocating motion in the second direction.
[0043] In a specific implementation, if the movement speed of the virtual vehicle in the first direction reaches a preset speed threshold or the current movement amplitude of the virtual vehicle in the first direction reaches the first movement amplitude, the virtual vehicle is controlled to switch from moving toward the first direction to moving toward the second direction, and then the maximum movement amplitude of the virtual vehicle in the second direction is controlled to be adjusted to the second movement amplitude; wherein the second movement amplitude is not greater than the first movement amplitude; in response to the movement speed of the virtual vehicle in the second direction reaching a preset speed threshold, the virtual vehicle is controlled to switch from moving toward the second direction to moving toward the first direction, and the movement speed of the virtual vehicle is adjusted according to the movement amplitude corresponding to the virtual vehicle movement direction switch. Specifically, the above-mentioned second movement amplitude is usually less than or equal to the third movement amplitude, that is, the second movement amplitude is less than or equal to the maximum movement amplitude threshold that the virtual vehicle can reach in the second direction.
[0044] In a specific implementation, when the virtual vehicle moves in a first direction, the player triggers the movement control, which adjusts the movement amplitude of the virtual vehicle in the first direction according to the first trigger operation control. When the movement speed of the virtual vehicle in the first direction reaches 0 or the movement amplitude of the virtual vehicle in the first direction reaches the first movement amplitude, the virtual vehicle is converted from moving in the first direction to moving in the second direction, and the movement speed of the virtual vehicle is adjusted according to the movement amplitude corresponding to the virtual vehicle movement direction conversion; then the virtual vehicle is controlled to move in the second direction, and when the movement speed of the virtual vehicle in the second direction reaches 0 or the movement amplitude of the virtual vehicle in the second direction reaches a third movement amplitude, the virtual vehicle is converted from moving in the second direction to moving in the first direction, and the movement speed of the virtual vehicle is adjusted according to the movement amplitude corresponding to the virtual vehicle movement direction conversion; and so on, the virtual vehicle is controlled to reciprocate between the first direction and the second direction, and the movement speed of the virtual vehicle is increased when the virtual vehicle movement direction is converted, until the virtual vehicle stops at a certain position, thereby stopping the reciprocating movement of the virtual vehicle. Similarly, when the virtual vehicle moves in the second direction, triggering the movement control has a reciprocating motion form similar to the above method.
[0045] In the above method, the moving control can be used to provide thrust for the reciprocating motion of the virtual vehicle, thereby increasing the motion amplitude of the reciprocating motion of the virtual vehicle.
[0046] The following preferred embodiment is used to describe another method of adjusting the movement amplitude of a virtual vehicle.
[0047] Specifically, when the virtual vehicle moves toward a first direction, responding to a first trigger operation for a mobile control, and controlling the adjustment of the maximum movement amplitude of the virtual vehicle in the first direction to the first movement amplitude according to the first trigger operation, the specific process includes: when the virtual vehicle moves toward the first direction, responding to the first trigger operation for the mobile control, determining that the control movement direction configured by the first trigger operation matches the first direction, and controlling the increase of the maximum movement amplitude of the virtual vehicle in the first direction to the first movement amplitude according to the first trigger operation; wherein the first movement amplitude is greater than the maximum movement amplitude. When the virtual vehicle moves toward the first direction, responding to the first trigger operation for the mobile control, determining that the control movement direction configured by the first trigger operation does not match the first direction, controlling the reduction of the movement amplitude of the virtual vehicle in the first direction according to the first trigger operation, and controlling the adjustment of the maximum movement amplitude of the virtual vehicle in the first direction to the first movement amplitude.
[0048] In specific implementation, it is necessary to determine whether the control movement direction configured by the first trigger operation matches the reciprocating movement direction of the virtual vehicle's current direction based on the first trigger operation for the mobile control. If the control movement direction configured by the first trigger operation matches the reciprocating movement direction of the virtual vehicle's current direction, the movement amplitude of the virtual vehicle in the current direction is increased according to the first trigger operation control, thereby increasing the maximum movement amplitude of the virtual vehicle in the current direction to the first movement amplitude. If the control movement direction configured by the first trigger operation does not match the reciprocating movement direction of the virtual vehicle's current direction, the movement amplitude of the virtual vehicle in the current direction is reduced according to the first trigger operation control, thereby maintaining the maximum movement amplitude of the virtual vehicle in the current direction unchanged.
[0049] In an optional embodiment, the movement control includes a first control and a second control; the first control is used to control the movement of the virtual vehicle in a first direction, and the second control is used to control the movement of the virtual vehicle in a second direction; the step of determining that the control movement direction of the first trigger operation configuration matches the first direction includes: determining that the first trigger operation is a trigger operation acting on the first control, and determining that the control movement direction of the first trigger operation configuration matches the first direction. Based on this, the specific process of increasing the maximum movement amplitude of the virtual vehicle in the first direction to the first movement amplitude according to the first trigger operation control can be achieved through the following steps 10-11:
[0050] Step 10: Determine the initial movement speed of the virtual vehicle in the first direction when the first trigger operation is triggered, and provide movement energy toward the first direction for the virtual vehicle based on the first trigger operation.
[0051] When the player triggers the first control, if the virtual vehicle is in a stationary state, the initial movement speed of the virtual vehicle in the first direction is 0. If the virtual vehicle accelerates or decelerates toward the first direction, the initial movement speed of the virtual vehicle in the first direction can be calculated based on the current force conditions of the virtual vehicle. Usually, the virtual vehicle will be affected by gravity and preset resistance during movement. The direction of the preset resistance is opposite to the direction of movement. The specific forces included in the preset resistance can be determined based on research and development needs. For example, the preset resistance may include but is not limited to at least one of the following: air resistance and sliding friction.
[0052] When the first control is triggered and the corresponding controlled movement direction matches the first direction that the virtual vehicle is currently heading, the virtual vehicle will also be provided with movement energy toward the first direction, which can be kinetic energy toward the first direction or thrust toward the first direction, etc.
[0053] In a specific embodiment, the above-mentioned providing the virtual vehicle with kinetic energy toward the first direction based on the first trigger operation includes: continuously providing the virtual vehicle with a first acceleration toward the first direction during the duration of the first trigger operation. The magnitude of the first acceleration can be determined according to R&D requirements. Specifically, providing the virtual vehicle with the first acceleration toward the first direction can also be understood as providing the virtual vehicle with a thrust toward the first direction, that is, the first acceleration in the first direction can be calculated from the thrust in the first direction: the first acceleration in the first direction multiplied by the mass of the virtual vehicle equals the thrust in the first direction.
[0054] In a specific implementation, during the duration of the first trigger operation, the first acceleration toward the first direction will continue to be provided to the virtual vehicle. When the first trigger operation ends, the first acceleration toward the first direction will stop being provided to the virtual vehicle.
[0055] In another specific embodiment, providing the virtual vehicle with kinetic energy in the first direction based on the first trigger operation includes providing the virtual vehicle with first kinetic energy in the first direction based on the first trigger operation. The first kinetic energy is fixed in magnitude, and each time the player triggers the first control, the virtual vehicle is provided with the first kinetic energy in the first direction.
[0056] Step 11, based on the initial movement speed, the preset resistance and the movement energy in the first direction, control the virtual vehicle's second maximum movement amplitude in the first direction to increase to the first movement amplitude; wherein, the second maximum movement amplitude matches the maximum movement amplitude corresponding to when the movement speed of the virtual vehicle in the first direction reaches the preset speed threshold.
[0057] In a specific implementation, because the motion energy in the first direction is the same as the motion direction of the virtual vehicle, triggering the first control increases the motion amplitude of the virtual vehicle in the first direction. The maximum motion amplitude of the virtual vehicle in the first direction can be calculated based on the initial motion speed, the preset resistance, and the motion energy in the first direction. This maximum motion amplitude can be the maximum motion amplitude corresponding to when the virtual vehicle's motion speed in the first direction reaches a preset speed threshold, or it can be the first motion amplitude.
[0058] In practical applications, the speed of the virtual vehicle in the first direction can be calculated based on the initial speed, the preset resistance, the kinetic energy in the first direction, and the air resistance. When the speed of the virtual vehicle in the first direction reaches a preset speed threshold or when the current movement amplitude reaches a first movement amplitude, the virtual vehicle switches to movement in the second direction. The magnitude of the speed of the virtual vehicle in the first direction matches the movement amplitude of the virtual vehicle in the first direction. Therefore, the maximum movement amplitude or the first movement amplitude corresponding to when the speed of the virtual vehicle in the first direction reaches the preset speed threshold can be determined as the current maximum movement amplitude of the virtual vehicle in the first direction.
[0059] In another optional embodiment, the specific process of determining that the controlled movement direction of the first trigger operation configuration does not match the first direction and reducing the movement amplitude of the virtual vehicle in the first direction according to the first trigger operation control can be achieved through the following steps 20-22:
[0060] Step 20: Determine that the first trigger operation is a trigger operation acting on the second control, and determine that the control movement direction configured by the first trigger operation does not match the first direction.
[0061] Step 21 : determining an initial movement speed of the virtual vehicle in a first direction when the first trigger operation is triggered, and providing movement energy toward a second direction for the virtual vehicle based on the first trigger operation.
[0062] In specific implementation, the calculation method of the above-mentioned initial motion speed can refer to the above-mentioned embodiment, and the above-mentioned motion energy in the second direction includes but is not limited to: kinetic energy toward the second direction, thrust toward the second direction, or acceleration toward the second direction, etc.
[0063] In a specific embodiment, the above-mentioned provision of kinetic energy toward the second direction for the virtual vehicle based on the first trigger operation includes: continuously providing the virtual vehicle with a second acceleration toward the second direction during the duration of the first trigger operation. The magnitude of the second acceleration can be determined according to research and development requirements. Specifically, providing the virtual vehicle with a second acceleration toward the second direction can also be understood as providing the virtual vehicle with a thrust toward the second direction, that is, the second acceleration in the second direction can be calculated from the thrust in the second direction: the second acceleration in the second direction multiplied by the mass of the virtual vehicle is equal to the thrust in the second direction. In specific implementation, the second acceleration toward the second direction will be continuously provided to the virtual vehicle during the duration of the first trigger operation, and the second acceleration toward the second direction will stop being provided to the virtual vehicle when the second trigger operation ends.
[0064] In another specific embodiment, providing the virtual vehicle with kinetic energy in the second direction based on the first trigger operation includes providing the virtual vehicle with a second kinetic energy in the second direction based on the first trigger operation. The second kinetic energy is fixed in magnitude, and each time the player triggers the second control, the virtual vehicle is provided with the second kinetic energy in the second direction.
[0065] Step 22 : Based on the initial movement speed, the preset resistance, and the movement energy in the second direction, controlling to reduce the movement amplitude of the virtual vehicle in the first direction.
[0066] In a specific implementation, since the kinetic energy in the second direction is opposite to the direction of movement of the virtual vehicle, when the second control is triggered, the movement amplitude of the virtual vehicle in the first direction will be reduced. Specifically, the maximum movement amplitude of the virtual vehicle when moving in the second direction can be calculated based on the initial movement speed, the preset resistance and the kinetic energy in the second direction. The maximum movement amplitude can be the maximum movement amplitude corresponding to when the movement speed of the virtual vehicle in the second direction reaches a preset speed threshold. In actual application, the movement speed of the virtual vehicle in the first direction can be calculated based on the initial movement speed, the preset resistance, the kinetic energy in the second direction and the air resistance, and when the movement speed of the virtual vehicle in the first direction reaches the preset speed threshold or when the current movement amplitude reaches the first movement amplitude, the movement is converted to move toward the second direction. Among them, the magnitude of the movement speed of the virtual vehicle in the first direction matches the movement amplitude of the virtual vehicle in the first direction, so the maximum movement amplitude or the first movement amplitude corresponding to when the movement speed of the virtual vehicle in the first direction reaches the preset speed threshold can be determined as the maximum movement amplitude of the virtual vehicle in the first direction at that time.
[0067] In an optional embodiment, when the virtual vehicle moves toward a first direction, in response to a trigger operation on a first control, movement energy toward the first direction is provided to the virtual vehicle, and the virtual vehicle is controlled to accelerate toward the first direction based on the movement energy in the first direction; when the movement speed of the virtual vehicle in the first direction reaches a preset speed threshold, the virtual vehicle is controlled to switch from moving toward the first direction to moving toward the second direction.
[0068] In a specific implementation, when the virtual vehicle moves toward a first direction, if the player triggers the first control, the virtual vehicle will be provided with movement energy toward the first direction. At this time, the virtual vehicle will continue to move toward the first direction, and the acceleration of the virtual vehicle toward the first direction will be controlled to increase to a maximum value, and then gradually decrease to 0. Due to the existence of the preset resistance, the acceleration toward the first direction will decrease to a negative value, thereby controlling the movement speed of the virtual vehicle toward the first direction from gradually increasing to the maximum value that can be reached at that time, and then gradually decreasing to 0. After decreasing to 0, the virtual vehicle will move toward the second direction, and the movement speed when moving toward the second direction will also gradually increase to the maximum value that can be reached at that time, and then gradually decrease to 0.
[0069] In another optional embodiment, when the virtual vehicle moves toward a first direction, in response to a trigger operation on a second control, movement energy toward a second direction is provided to the virtual vehicle, and the virtual vehicle is controlled to decelerate toward the first direction based on the movement energy in the second direction; when the movement speed of the virtual vehicle in the first direction reaches a preset speed threshold, the virtual vehicle is controlled to switch from moving toward the first direction to moving toward the second direction.
[0070] In a specific implementation, when the virtual vehicle is moving in the first direction, if the player triggers the second control, the virtual vehicle will be provided with movement energy in the second direction. At this time, because the virtual vehicle still has kinetic energy to move in the first direction, the virtual vehicle will not immediately switch to moving in the second direction, but will continue to move in the first direction. Since the virtual vehicle is provided with movement energy in the second direction, the resistance of the virtual vehicle in the first direction is increased, which will control the acceleration of the virtual vehicle in the first direction to decay rapidly, so as to control the movement speed of the virtual vehicle in the first direction to gradually decrease to 0. After decreasing to 0, the virtual vehicle will move in the second direction, and the movement speed in the second direction will gradually increase to the maximum value that can be achieved at that time, and then gradually decrease to 0.
[0071] In an optional embodiment, in response to the virtual vehicle moving in a first direction, a first special effect is controlled to be played on the first control; in response to the virtual vehicle moving in a second direction, a second special effect is controlled to be played on the second control. The first and second special effects may be the same or different. The specific special effects corresponding to the first and second special effects may be determined based on R&D requirements or player settings.
[0072] In a specific implementation, in order to increase the movement amplitude of a virtual vehicle moving in a certain direction, a special effect may be played on a control configured to control the movement of the virtual vehicle in that direction when the virtual vehicle moves in that direction, thereby prompting the player to press and hold the control to increase the movement amplitude of the virtual vehicle, thereby increasing the movement speed of the virtual vehicle. For example, when the virtual vehicle moves in a first direction, a first special effect may be played on a first control to prompt the player that pressing and holding the first control can increase the movement amplitude of the virtual vehicle in the first direction; when the virtual vehicle moves in a second direction, a second special effect may be played on a second control to prompt the player that pressing and holding the second control can increase the movement amplitude of the virtual vehicle in the second direction.
[0073] In the above method, the player can alternately press the first control and the second control to make the movement amplitude of the virtual vehicle larger and larger, thereby obtaining a faster movement speed, so as to control the virtual vehicle to arrive and maintain the highest speed to move in the game scene, thereby increasing the game winning rate.
[0074] The following preferred embodiments are used to describe a method for adjusting the movement speed of a virtual vehicle.
[0075] Specifically, the above-mentioned specific process of controlling the movement speed of the virtual vehicle to adjust to the target speed according to the movement amplitude corresponding to the conversion of the movement direction of the virtual vehicle may include: determining the target speed that matches the movement amplitude corresponding to the conversion of the movement direction of the virtual vehicle based on a preset speed configuration list; wherein the preset speed configuration list includes: multiple preset movement amplitudes, and speed increases or speed values corresponding to the preset movement amplitudes.
[0076] The preset speed configuration list is pre-configured and includes multiple preset motion amplitudes and the corresponding speed increments for each preset motion amplitude, or the corresponding speed values for each preset motion amplitude. Specifically, in the preset speed configuration list, a larger preset motion amplitude corresponds to a larger speed increment and a larger corresponding speed value.
[0077] In a specific embodiment, if the preset speed configuration list includes a speed increase corresponding to a preset movement amplitude; based on the preset speed configuration list, determine a target speed increase that matches the movement amplitude corresponding to the virtual vehicle's movement direction conversion; add the target speed increase to the virtual vehicle's current moving speed to obtain a target speed; wherein the current moving speed is: the virtual vehicle's movement speed corresponding to the movement direction conversion. The above-mentioned target speed is the sum of the target speed increase and the current moving speed. In a specific implementation, the movement speed of the virtual vehicle is set with a preset maximum movement speed. When the sum of the target speed increase and the current movement speed is greater than the maximum movement speed, the target speed is set to the maximum movement speed.
[0078] In another specific embodiment, if the preset speed configuration list includes speed values corresponding to preset motion amplitudes, based on the preset speed configuration list, a target speed value that matches the motion amplitude corresponding to the virtual vehicle's motion direction conversion is determined, and the moving speed of the virtual vehicle is adjusted to the target speed value.
[0079] In an optional embodiment, during the movement of the virtual vehicle in the game scene, the movement speed of the virtual vehicle increases when the direction of the movement of the virtual vehicle is converted, and except for the moment when the direction of the movement of the virtual vehicle is converted, the movement speed of the virtual vehicle is attenuated according to a preset attenuation speed. The above-mentioned preset attenuation speed can be the deceleration corresponding to a specific speed attenuation curve, and the speed attenuation curve will control the deceleration to become larger and larger as time goes by. The preset attenuation speed can also be a configured acceleration that is opposite to the movement speed of the virtual vehicle. For example, when the virtual vehicle moves, there is a negative acceleration a=-1 m / s2 (it can also be configured as other accelerations, specifically determined according to R&D needs). When the movement speed of the virtual vehicle is 0, it will not be affected by the attenuation speed, that is, it will not be affected by the negative acceleration.
[0080] In an optional embodiment, the method further includes: in response to the virtual vehicle's movement speed reaching a preset maximum speed, controlling the release of a third special effect at a first position of the virtual vehicle. The first position may be any position on the virtual vehicle and may be determined based on R&D requirements. For example, the first position may be the tail of the virtual vehicle or the front of the virtual vehicle. The specific special effect corresponding to the third special effect may be determined based on R&D requirements. For example, the third special effect may be a trailing effect or a light effect.
[0081] In an optional embodiment, the above method also includes: in response to the current movement amplitude of the virtual vehicle in the first direction reaching the first movement amplitude, or the current movement amplitude of the virtual vehicle in the second direction reaching the third movement amplitude, controlling the release of a fourth special effect of a preset duration at the second position of the virtual vehicle.
[0082] In a specific implementation, when the current movement amplitude of the virtual vehicle in the first direction reaches the maximum movement amplitude threshold that the virtual vehicle can reach in the first direction, or when the current movement amplitude of the virtual vehicle in the second direction reaches the maximum movement amplitude threshold that the virtual vehicle can reach in the second direction, a fourth special effect with a preset duration will be released at the second position of the virtual vehicle. The above-mentioned second position can be any position on the virtual vehicle and can be determined specifically based on R&D requirements. For example, the second position can be the tail of the virtual vehicle or the body of the virtual vehicle. The specific special effect corresponding to the above-mentioned fourth special effect can be determined based on R&D requirements. For example, the fourth special effect can be a trailing special effect or a light-emitting special effect. The specific duration corresponding to the above-mentioned preset duration can be determined based on R&D requirements. For example, the preset time can be 1 second or 2 seconds. In a specific embodiment, if the current movement amplitude of the virtual vehicle in a certain direction reaches the maximum movement amplitude threshold that the virtual vehicle can reach in that direction, a short special effect will be released on the virtual vehicle.
[0083] In an optional embodiment, a fifth special effect may be permanently present during the movement of the virtual vehicle. The specific special effect corresponding to the fifth special effect may also be determined based on R&D requirements. For example, the fifth special effect may be the virtual vehicle emitting light or the virtual vehicle flashing in color.
[0084] In the above method, when the virtual vehicle performs reciprocating motion, each time the motion amplitude reaches the maximum motion amplitude threshold, or the motion speed in a certain direction reaches the preset speed threshold, the virtual vehicle will gain additional speed. The speed is related to the motion amplitude and supports curve configuration, so that the player can control the movement speed of the virtual vehicle through reciprocating motion, and control the virtual vehicle to maintain high-speed operation to improve the gaming experience.
[0085] The following preferred embodiment is used to describe the movement of the virtual vehicle when the reciprocating motion is a swinging motion.
[0086] Specifically, the reciprocating motion includes: a swinging motion with the center of the circle corresponding to the arc of the bottom surface of the virtual vehicle as the swing origin; the motion amplitude is the swing angle. In a specific implementation, the swinging motion can be a damped simple pendulum motion or an undamped simple pendulum motion.
[0087] FIG2 is a schematic diagram of a swinging motion provided by an embodiment of the present invention. The Trojan horse in FIG2 is a virtual vehicle. The intersection point O of the two coordinate axes in FIG2 , which is also the center of the circle corresponding to the bottom surface of the virtual vehicle, is the swing origin. The first figure in FIG2 shows the motion state of the Trojan horse when it is not swinging. The second figure in FIG2 shows the motion state of the Trojan horse when it is swinging forward. The angle between the dotted line and the Y-axis is the swing angle corresponding to the forward swinging motion of the Trojan horse. The third figure in FIG2 shows the motion state of the Trojan horse when it is swinging backward. The angle between the dotted line and the Y-axis is the swing angle corresponding to the backward swinging motion of the Trojan horse. The position of the cycloid of the Trojan horse during the swinging motion is the same as the position of the dotted line in the figure. The length of the cycloid is determined by the collision position of the Trojan horse with the X-axis. That is, the length of the cycloid is the distance from point O to the collision position of the Trojan horse with the X-axis.
[0088] In one specific embodiment, when the swinging motion is a damped simple pendulum, while the wooden horse is swinging forward, the player holds down the first control, causing the wooden horse to continue swinging forward and providing the wooden horse with a constant forward acceleration a perpendicular to the cycloid direction. At this point, the wooden horse has a certain initial motion velocity, and the forward acceleration of the wooden horse is a-gsinθ-cv, where θ is the swing angle, c is the damping coefficient, and v is the swing velocity (equivalent to the aforementioned motion velocity). When the forward acceleration of the wooden horse reaches 0, the wooden horse will continue to swing forward until the forward swing velocity reaches 0 or the forward swing angle reaches a maximum swing angle threshold, at which point it will cease swinging forward and begin swinging backward. Furthermore, during the transition from forward swing to backward swing, additional movement velocity is added to the virtual vehicle.
[0089] While the horse is swinging forward, the player holds down the second control, causing it to continue swinging forward while applying a constant backward acceleration b perpendicular to the cycloid. At this point, the horse has a certain initial velocity, and its backward acceleration is b + g sin θ + cv. Based on the backward acceleration, the horse reduces its forward swing speed until the forward swing speed reaches zero or the forward swing angle reaches the maximum swing angle threshold, at which point it stops swinging forward and begins swinging backward. During the transition from forward to backward swing, additional movement speed is added to the virtual vehicle.
[0090] Similarly, when the wooden horse is swinging backward, the player holds down the first control, causing it to continue swinging backward and applying a constant forward acceleration a perpendicular to the cycloid. At this point, the wooden horse has a certain initial velocity, and its backward acceleration is gsinθ+cv-a. When the wooden horse is swinging backward, the player holds down the second control, causing it to continue swinging backward and applying a constant backward acceleration b perpendicular to the cycloid. At this point, the wooden horse has a certain initial velocity, and its backward acceleration is b+gsinθ+cv. Here, the forward acceleration is the negative backward acceleration.
[0091] In its implementation, this solution takes into account the impact of the player's immediate feedback on the horse's control. The swing angle varies depending on the player's control trigger (similar to a swing). Therefore, each time the horse swings from one direction to the other after reaching the maximum swing angle threshold, the maximum swing angle corresponding to the other direction is unknown. Specifically, the theoretical maximum swing angle of the swing can actually be calculated from multiple parameters of the damped swing. An additional maximum swing angle threshold is also designed in the implementation to ensure that the player will quickly reach the swing angle threshold and rebound, accelerating the swing frequency while maintaining the same swing angle.
[0092] In an alternative embodiment, the game scene includes a virtual character and a virtual track. The virtual character rides a virtual vehicle, which moves along the virtual track within the game scene. The design of the virtual track can be determined based on R&D requirements. For example, the virtual track can be a straight track within the game scene with uphill and downhill sections. The virtual track can also be a circular track.
[0093] In a specific implementation, the game can include multiple virtual characters, each of which can form its own team. The first few virtual characters to reach the end of the virtual track (or complete a specified number of laps) pass the level, and the other virtual characters are eliminated. At the beginning of the game, the virtual characters are automatically in a riding state, and only the first and second controls are displayed in the graphical user interface, with other controls blocked. By alternately pressing the first and second controls left and right, the virtual vehicle swings higher and higher, thereby achieving a faster forward speed (equivalent to the above-mentioned movement speed). The player needs to press and hold the first and second controls back and forth in a specific rhythm to make the virtual vehicle reach and maintain the highest speed, thereby enriching the game player experience.
[0094] Corresponding to the above method embodiment, an embodiment of the present invention further provides a game interaction control device, as shown in FIG3 , which includes:
[0095] The interface display module 30 is configured to provide a graphical user interface through a terminal device. The graphical user interface includes a game scene and mobile controls. The game scene includes a virtual vehicle; the mobile controls are configured to control the virtual vehicle to move back and forth.
[0096] The motion amplitude control module 31 is configured to respond to a first trigger operation on the mobile control when the virtual vehicle moves toward a first direction, and adjust the current maximum motion amplitude of the virtual vehicle in the first direction to the first motion amplitude according to the first trigger operation control, wherein the current maximum motion amplitude is related to the first trigger operation.
[0097] The speed control module 32 is configured to control the virtual vehicle to convert movement in the first direction to movement in the second direction in response to the movement speed of the virtual vehicle in the first direction reaching a preset speed threshold or the current movement amplitude of the virtual vehicle in the first direction reaching a first movement amplitude, and to control the movement speed of the virtual vehicle to be adjusted to the target speed according to the movement amplitude corresponding to the direction conversion of the virtual vehicle; the directions of the first direction and the second direction are different.
[0098] The vehicle movement module 33 is configured to control the movement of the virtual vehicle in the game scene according to the target speed.
[0099] The above-mentioned game interactive control device can control the reciprocating motion of the virtual vehicle by moving the control panel while increasing the movement speed of the virtual vehicle, so that the virtual vehicle moves at high speed, thereby enhancing the player's gaming experience.
[0100] Specifically, the above-mentioned device also includes a steering movement module, which is configured to: after controlling the virtual vehicle to move from a first direction to a second direction, adjust the maximum movement amplitude of the virtual vehicle toward the second direction to a second movement amplitude; wherein the second movement amplitude is not greater than the first movement amplitude; in response to the movement speed of the virtual vehicle in the second direction reaching a preset speed threshold, control the virtual vehicle to move from the second direction to the first direction, and adjust the movement speed of the virtual vehicle according to the movement amplitude corresponding to the movement direction conversion of the virtual vehicle.
[0101] Furthermore, the above-mentioned motion amplitude control module 31 is configured to: when the virtual vehicle moves toward a first direction, respond to a first trigger operation on the mobile control, and control the virtual vehicle's maximum motion amplitude in the first direction to increase to a first motion amplitude according to the first trigger operation; wherein, the maximum motion amplitude is not greater than the first motion amplitude.
[0102] In an optional embodiment, the above-mentioned device also includes an amplitude increase module, which is configured to: when the virtual vehicle moves toward the second direction, respond to a first trigger operation on the mobile control, and increase the maximum movement amplitude of the virtual vehicle in the second direction to a third movement amplitude according to the first trigger operation control; wherein the third movement amplitude matches the first movement amplitude.
[0103] Furthermore, the above-mentioned motion amplitude control module 31 is also configured to: when the virtual vehicle moves toward a first direction, respond to a first trigger operation for the mobile control, determine that the control motion direction configured by the first trigger operation matches the first direction, and increase the current maximum motion amplitude of the virtual vehicle in the first direction to the first motion amplitude according to the first trigger operation control; wherein the first motion amplitude is greater than the current maximum motion amplitude.
[0104] Furthermore, the above-mentioned motion amplitude control module 31 is also configured to: when the virtual vehicle moves toward a first direction, respond to a first trigger operation for the mobile control, determine that the control motion direction configured by the first trigger operation does not match the first direction, control the reduction of the motion amplitude of the virtual vehicle in the first direction according to the first trigger operation, and control the adjustment of the maximum motion amplitude of the virtual vehicle in the first direction to the first motion amplitude.
[0105] In a specific implementation, the above-mentioned mobile control includes a first control and a second control; the first control is used to control the virtual vehicle to move in a first direction, and the second control is used to control the virtual vehicle to move in a second direction; the above-mentioned motion amplitude control module 31 is also configured to: determine that the first trigger operation is a trigger operation acting on the first control, and determine that the control motion direction configured by the first trigger operation matches the first direction; determine the initial motion speed of the virtual vehicle in the first direction when the first trigger operation starts, and provide the virtual vehicle with motion energy toward the first direction based on the first trigger operation; based on the initial motion speed, the preset resistance and the motion energy in the first direction, control the virtual vehicle's submaximal motion amplitude in the first direction to increase to the first motion amplitude; wherein, when the submaximal motion amplitude matches the maximum motion amplitude corresponding to the motion speed of the virtual vehicle in the first direction reaches the preset speed threshold.
[0106] Furthermore, the motion amplitude control module 31 is further configured to continuously provide the virtual vehicle with a first acceleration toward the first direction during the duration of the first trigger operation.
[0107] Furthermore, the motion amplitude control module 31 is further configured to provide the virtual vehicle with first kinetic energy in a first direction based on a first trigger operation.
[0108] Furthermore, the above-mentioned motion amplitude control module 31 is also configured to: determine that the first trigger operation is a trigger operation acting on the second control, and determine that the control motion direction configured by the first trigger operation does not match the first direction; determine the initial motion speed of the virtual vehicle in the first direction when the first trigger operation is triggered, and provide the virtual vehicle with motion energy toward the second direction based on the first trigger operation; based on the initial motion speed, the preset resistance and the motion energy in the second direction, control the reduction of the motion amplitude of the virtual vehicle in the first direction.
[0109] Furthermore, the motion amplitude control module 31 is further configured to: continuously provide the virtual vehicle with a second acceleration toward the second direction during the duration of the first trigger operation; or, provide the virtual vehicle with a second kinetic energy toward the second direction based on the first trigger operation.
[0110] In an optional embodiment, the above-mentioned device also includes a first control trigger module, which is configured to: when the virtual vehicle moves toward a first direction, respond to a trigger operation on the first control, provide the virtual vehicle with movement energy toward the first direction, and control the virtual vehicle to accelerate toward the first direction based on the movement energy in the first direction; when the movement speed of the virtual vehicle in the first direction reaches a preset speed threshold, control the virtual vehicle to switch from moving toward the first direction to moving toward the second direction.
[0111] In an optional embodiment, the above-mentioned device also includes a second control trigger module, which is configured to: when the virtual vehicle moves toward the first direction, respond to the trigger operation of the second control, provide the virtual vehicle with movement energy toward the second direction, and control the virtual vehicle to decelerate toward the first direction based on the movement energy in the second direction; when the movement speed of the virtual vehicle in the first direction reaches a preset speed threshold, control the virtual vehicle to switch from moving toward the first direction to moving toward the second direction.
[0112] Furthermore, the above-mentioned device also includes a special effect prompt module, which is configured to: in response to the virtual vehicle moving toward the first direction, control the playing of the first special effect on the first control; in response to the virtual vehicle moving toward the second direction, control the playing of the second special effect on the second control.
[0113] Furthermore, the speed control module 32 is configured to determine a target speed that matches the movement amplitude corresponding to the direction conversion of the virtual vehicle based on a preset speed configuration list; wherein the preset speed configuration list includes: multiple preset movement amplitudes, and speed increases or speed values corresponding to the preset movement amplitudes.
[0114] Specifically, the above-mentioned preset speed configuration list includes a speed increase corresponding to a preset movement amplitude; the above-mentioned speed control module 32 is also configured to: determine the target speed increase that matches the movement amplitude corresponding to the virtual vehicle's movement direction conversion based on the preset speed configuration list; add the target speed increase to the current moving speed of the virtual vehicle to obtain the target speed; wherein the current moving speed is: the moving speed corresponding to the virtual vehicle when the movement direction is converted.
[0115] Furthermore, the above-mentioned device also includes a speed adjustment module, which is configured to: during the movement of the virtual vehicle in the game scene, the movement speed of the virtual vehicle increases when the movement direction of the virtual vehicle is changed, and except for the moment when the movement direction of the virtual vehicle is changed, the movement speed of the virtual vehicle decays according to a preset decay speed.
[0116] Furthermore, the above-mentioned device also includes a first releasing module, which is configured to: in response to the moving speed of the virtual vehicle reaching a preset maximum speed, control the release of the third special effect at the first position of the virtual vehicle.
[0117] Furthermore, the above-mentioned device also includes a second release module, which is configured to: in response to the current movement amplitude of the virtual vehicle in the first direction reaching the first movement amplitude, or the current movement amplitude of the virtual vehicle in the second direction reaching the first movement amplitude, control the release of a fourth special effect of a preset duration at the second position of the virtual vehicle.
[0118] In an optional embodiment, the reciprocating motion includes: a swinging motion with the center of a circle corresponding to the arc of the bottom surface of the virtual vehicle as the swing origin; and the amplitude of the motion is the swing angle.
[0119] In an optional embodiment, the game scene includes a virtual character and a virtual track, the virtual character rides on a virtual vehicle, and the virtual vehicle moves on the virtual track in the game scene.
[0120] The game interactive control device provided in the embodiment of the present disclosure has the same implementation principle and technical effects as those of the aforementioned method embodiment. For the sake of brief description, for matters not mentioned in the device embodiment, reference may be made to the corresponding content in the aforementioned method embodiment.
[0121] An embodiment of the present disclosure further provides an electronic device, as shown in FIG4 , which includes a processor and a memory, wherein the memory stores machine-executable instructions that can be executed by the processor, and the processor executes the machine-executable instructions to implement the above-mentioned game interaction control method.
[0122] Specifically, the specific process of the above-mentioned game interaction control method may include: providing a graphical user interface through a terminal device, the graphical user interface including a game scene and a mobile control, and the game scene including a virtual vehicle; the mobile control is configured to control the virtual vehicle to move back and forth; when the virtual vehicle moves toward a first direction, responding to a first trigger operation for the mobile control, and controlling the virtual vehicle's current maximum movement amplitude in the first direction to be adjusted to a first movement amplitude according to the first trigger operation, wherein the current maximum movement amplitude is related to the first trigger operation; in response to the virtual vehicle's movement speed in the first direction reaching a preset speed threshold or the virtual vehicle's current movement amplitude in the first direction reaching the first movement amplitude, controlling the virtual vehicle to convert from moving toward the first direction to moving toward the second direction, and controlling the movement speed of the virtual vehicle to be adjusted to a target speed according to the movement amplitude corresponding to the virtual vehicle's movement direction conversion; the first direction and the second direction are different; controlling the virtual vehicle to move in the game scene according to the target speed.
[0123] The above-mentioned game interactive control method can control the reciprocating motion of the virtual vehicle by moving the control panel while increasing the movement speed of the virtual vehicle, so that the virtual vehicle moves at high speed, thereby enhancing the player's gaming experience.
[0124] In an optional embodiment, after the step of controlling the virtual vehicle to convert movement from a first direction to a second direction, the above method further includes: controlling the maximum movement amplitude of the virtual vehicle toward the second direction to be adjusted to a second movement amplitude; wherein the second movement amplitude is not greater than the first movement amplitude; in response to the movement speed of the virtual vehicle in the second direction reaching a preset speed threshold, controlling the virtual vehicle to convert movement from the second direction to the first direction, and adjusting the movement speed of the virtual vehicle according to the movement amplitude corresponding to the conversion of the movement direction of the virtual vehicle.
[0125] In an optional embodiment, when the virtual vehicle moves toward a first direction, responding to a first trigger operation for a mobile control, and controlling the second maximum movement amplitude of the virtual vehicle in the first direction to the first movement amplitude according to the first trigger operation, the step includes: when the virtual vehicle moves toward the first direction, responding to a first trigger operation for a mobile control, and controlling the second maximum movement amplitude of the virtual vehicle in the first direction to increase to the first movement amplitude according to the first trigger operation; wherein the second maximum movement amplitude is not greater than the first movement amplitude.
[0126] In an optional embodiment, the above method also includes: when the virtual vehicle moves toward the second direction, responding to a first trigger operation on the mobile control, controlling the maximum movement amplitude of the virtual vehicle in the second direction to increase to a third movement amplitude according to the first trigger operation; wherein the third movement amplitude matches the first movement amplitude.
[0127] In an optional embodiment, when the virtual vehicle moves toward a first direction, responding to a first trigger operation for a mobile control, and adjusting the current maximum movement amplitude of the virtual vehicle in the first direction to the first movement amplitude according to the first trigger operation control, the step includes: when the virtual vehicle moves toward the first direction, responding to the first trigger operation for the mobile control, determining that the control movement direction configured by the first trigger operation matches the first direction, and controlling the current maximum movement amplitude of the virtual vehicle in the first direction to increase to the first movement amplitude according to the first trigger operation; wherein the first movement amplitude is greater than the current maximum movement amplitude.
[0128] In an optional embodiment, when the virtual vehicle moves toward a first direction, responding to a first trigger operation for a mobile control, and controlling the adjustment of the maximum movement amplitude of the virtual vehicle in the first direction to the first movement amplitude according to the first trigger operation, includes: when the virtual vehicle moves toward the first direction, responding to the first trigger operation for a mobile control, determining that the control movement direction configured by the first trigger operation does not match the first direction, controlling the reduction of the movement amplitude of the virtual vehicle in the first direction according to the first trigger operation, and controlling the adjustment of the maximum movement amplitude of the virtual vehicle in the first direction to the first movement amplitude.
[0129] In an optional embodiment, the above-mentioned mobile control includes a first control and a second control; the first control is used to control the virtual vehicle to move in a first direction, and the second control is used to control the virtual vehicle to move in a second direction; the above-mentioned step of determining that the control movement direction of the first trigger operation configuration matches the first direction includes: determining that the first trigger operation is a trigger operation acting on the first control, and determining that the control movement direction of the first trigger operation configuration matches the first direction.
[0130] In an optional embodiment, the above-mentioned step of increasing the sub-maximal movement amplitude of the virtual vehicle in the first direction to the first movement amplitude according to the first trigger operation includes: determining the initial movement speed of the virtual vehicle in the first direction when the first trigger operation is triggered, and providing the virtual vehicle with movement energy toward the first direction based on the first trigger operation; based on the initial movement speed, the preset resistance and the movement energy in the first direction, controlling the sub-maximal movement amplitude of the virtual vehicle in the first direction to increase to the first movement amplitude; wherein, the sub-maximal movement amplitude matches the maximum movement amplitude corresponding to when the movement speed of the virtual vehicle in the first direction reaches a preset speed threshold.
[0131] In an optional embodiment, the step of providing the virtual vehicle with motion energy toward the first direction based on the first trigger operation includes: continuously providing the virtual vehicle with a first acceleration toward the first direction during the duration of the first trigger operation.
[0132] In an optional embodiment, the step of providing the virtual vehicle with motion energy in the first direction based on the first trigger operation includes: providing the virtual vehicle with first kinetic energy in the first direction based on the first trigger operation.
[0133] In an optional embodiment, the above-mentioned step of determining that the control movement direction of the first trigger operation configuration does not match the first direction, and controlling to reduce the movement amplitude of the virtual vehicle in the first direction according to the first trigger operation, includes: determining that the first trigger operation is a trigger operation acting on the second control, and determining that the control movement direction of the first trigger operation configuration does not match the first direction; determining the initial movement speed of the virtual vehicle in the first direction when the first trigger operation is triggered, and providing the virtual vehicle with movement energy toward the second direction based on the first trigger operation; and controlling to reduce the movement amplitude of the virtual vehicle in the first direction based on the initial movement speed, the preset resistance and the movement energy in the second direction.
[0134] In an optional embodiment, the above-mentioned step of providing the virtual vehicle with kinetic energy toward the second direction based on the first trigger operation includes: continuously providing the virtual vehicle with a second acceleration toward the second direction during the duration of the first trigger operation; or, providing the virtual vehicle with second kinetic energy toward the second direction based on the first trigger operation.
[0135] In an optional embodiment, the above method also includes: when the virtual vehicle moves toward a first direction, responding to a trigger operation on a first control, providing the virtual vehicle with movement energy toward the first direction, and controlling the virtual vehicle to accelerate toward the first direction based on the movement energy in the first direction; when the movement speed of the virtual vehicle in the first direction reaches a preset speed threshold, controlling the virtual vehicle to switch from moving toward the first direction to moving toward the second direction.
[0136] In an optional embodiment, the above method also includes: when the virtual vehicle moves toward the first direction, responding to a trigger operation on the second control, providing the virtual vehicle with movement energy toward the second direction, and controlling the virtual vehicle to decelerate toward the first direction based on the movement energy in the second direction; when the movement speed of the virtual vehicle in the first direction reaches a preset speed threshold, controlling the virtual vehicle to switch from moving toward the first direction to moving toward the second direction.
[0137] In an optional embodiment, the above method also includes: in response to the virtual vehicle moving toward the first direction, controlling the playing of the first special effect on the first control; in response to the virtual vehicle moving toward the second direction, controlling the playing of the second special effect on the second control.
[0138] In an optional embodiment, the above-mentioned step of controlling the movement speed of the virtual vehicle to adjust to the target speed according to the movement amplitude corresponding to the conversion of the movement direction of the virtual vehicle includes: determining the target speed that matches the movement amplitude corresponding to the conversion of the movement direction of the virtual vehicle based on a preset speed configuration list; wherein the preset speed configuration list includes: multiple preset movement amplitudes, and speed increases or speed values corresponding to the preset movement amplitudes.
[0139] In an optional embodiment, the above-mentioned preset speed configuration list includes a speed increase corresponding to a preset movement amplitude; the above-mentioned step of determining the target speed that matches the movement amplitude corresponding to the virtual vehicle's movement direction conversion based on the preset speed configuration list includes: determining the target speed increase that matches the movement amplitude corresponding to the virtual vehicle's movement direction conversion based on the preset speed configuration list; adding the target speed increase to the current moving speed of the virtual vehicle to obtain the target speed; wherein the current moving speed is: the moving speed corresponding to the virtual vehicle when the movement direction is converted.
[0140] In an optional embodiment, the above method also includes: during the movement of the virtual vehicle in the game scene, the movement speed of the virtual vehicle increases when the movement direction of the virtual vehicle changes, and except for the moment when the movement direction of the virtual vehicle changes, the movement speed of the virtual vehicle decays according to a preset decay speed.
[0141] In an optional embodiment, the above method further includes: in response to the moving speed of the virtual vehicle reaching a preset maximum speed, controlling the release of a third special effect at the first position of the virtual vehicle.
[0142] In an optional embodiment, the above method also includes: in response to the current movement amplitude of the virtual vehicle in the first direction reaching the first movement amplitude, or the current movement amplitude of the virtual vehicle in the second direction reaching the first movement amplitude, controlling the release of a fourth special effect of a preset duration at the second position of the virtual vehicle.
[0143] In an optional embodiment, the reciprocating motion includes: a swinging motion with the center of a circle corresponding to the arc of the bottom surface of the virtual vehicle as the swing origin; the motion amplitude is the swing angle.
[0144] In an optional embodiment, the game scene includes a virtual character and a virtual track, the virtual character rides on a virtual vehicle, and the virtual vehicle moves on the virtual track in the game scene.
[0145] Furthermore, the electronic device shown in FIG. 4 further includes a bus 102 and a communication interface 103 , and the processor 101 , the communication interface 103 and the memory 100 are connected via the bus 102 .
[0146] Memory 100 may include high-speed random access memory (RAM) and may also include non-volatile memory, such as at least one disk storage device. Communication between the system network element and at least one other network element is achieved through at least one communication interface 103 (which may be wired or wireless), and may utilize the Internet, a wide area network, a local area network, a metropolitan area network, etc. Bus 102 may be an ISA bus, a PCI bus, or an EISA bus. The bus may be classified as an address bus, a data bus, a control bus, etc. For ease of illustration, FIG4 shows only one bidirectional arrow, but this does not indicate that there is only one bus or only one type of bus.
[0147] The processor 101 may be an integrated circuit chip with signal processing capabilities. During implementation, each step of the above method can be completed by an integrated logic circuit of hardware in the processor 101 or by instructions in the form of software. The above-mentioned processor 101 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gates or transistor logic devices, or discrete hardware components. The various methods, steps, and logic block diagrams disclosed in the embodiments of the present disclosure can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in conjunction with the embodiments of the present disclosure can be directly embodied as being executed by a hardware decoding processor, or can be executed by a combination of hardware and software modules in the decoding processor. The software module can be located in a storage medium well-known in the art, such as a random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, or register. The storage medium is located in the memory 100, and the processor 101 reads the information in the memory 100 and, in conjunction with its hardware, completes the steps of the method of the aforementioned embodiment.
[0148] The embodiments of the present disclosure also provide a computer-readable storage medium, which stores computer-executable instructions. When the computer-executable instructions are called and executed by the processor, the computer-executable instructions prompt the processor to implement the above-mentioned game interaction control method. The specific implementation can be found in the method embodiment, which will not be repeated here.
[0149] Specifically, the specific process of the above-mentioned game interaction control method may include: providing a graphical user interface through a terminal device, the graphical user interface including a game scene and a mobile control, and the game scene including a virtual vehicle; the mobile control is configured to control the virtual vehicle to move back and forth; when the virtual vehicle moves toward a first direction, responding to a first trigger operation for the mobile control, and controlling the virtual vehicle's current maximum movement amplitude in the first direction to be adjusted to a first movement amplitude according to the first trigger operation, wherein the current maximum movement amplitude is related to the first trigger operation; in response to the virtual vehicle's movement speed in the first direction reaching a preset speed threshold or the virtual vehicle's current movement amplitude in the first direction reaching the first movement amplitude, controlling the virtual vehicle to convert from moving toward the first direction to moving toward the second direction, and controlling the movement speed of the virtual vehicle to be adjusted to a target speed according to the movement amplitude corresponding to the virtual vehicle's movement direction conversion; the first direction and the second direction are different; controlling the virtual vehicle to move in the game scene according to the target speed.
[0150] The above-mentioned game interactive control method can control the reciprocating motion of the virtual vehicle by moving the control panel while increasing the movement speed of the virtual vehicle, so that the virtual vehicle moves at high speed, thereby enhancing the player's gaming experience.
[0151] In an optional embodiment, after the step of controlling the virtual vehicle to convert movement from a first direction to a second direction, the above method further includes: controlling the maximum movement amplitude of the virtual vehicle toward the second direction to be adjusted to a second movement amplitude; wherein the second movement amplitude is not greater than the first movement amplitude; in response to the movement speed of the virtual vehicle in the second direction reaching a preset speed threshold, controlling the virtual vehicle to convert movement from the second direction to the first direction, and adjusting the movement speed of the virtual vehicle according to the movement amplitude corresponding to the conversion of the movement direction of the virtual vehicle.
[0152] In an optional embodiment, when the virtual vehicle moves toward a first direction, responding to a first trigger operation for a mobile control, and controlling the second maximum movement amplitude of the virtual vehicle in the first direction to the first movement amplitude according to the first trigger operation, the step includes: when the virtual vehicle moves toward the first direction, responding to a first trigger operation for a mobile control, and controlling the second maximum movement amplitude of the virtual vehicle in the first direction to increase to the first movement amplitude according to the first trigger operation; wherein the second maximum movement amplitude is not greater than the first movement amplitude.
[0153] In an optional embodiment, the above method also includes: when the virtual vehicle moves toward the second direction, responding to a first trigger operation on the mobile control, controlling the maximum movement amplitude of the virtual vehicle in the second direction to increase to a third movement amplitude according to the first trigger operation; wherein the third movement amplitude matches the first movement amplitude.
[0154] In an optional embodiment, when the virtual vehicle moves toward a first direction, responding to a first trigger operation for a mobile control, and adjusting the current maximum movement amplitude of the virtual vehicle in the first direction to the first movement amplitude according to the first trigger operation control, the step includes: when the virtual vehicle moves toward the first direction, responding to the first trigger operation for the mobile control, determining that the control movement direction configured by the first trigger operation matches the first direction, and controlling the current maximum movement amplitude of the virtual vehicle in the first direction to increase to the first movement amplitude according to the first trigger operation; wherein the first movement amplitude is greater than the current maximum movement amplitude.
[0155] In an optional embodiment, when the virtual vehicle moves toward a first direction, responding to a first trigger operation for a mobile control, and controlling the adjustment of the maximum movement amplitude of the virtual vehicle in the first direction to the first movement amplitude according to the first trigger operation, includes: when the virtual vehicle moves toward the first direction, responding to the first trigger operation for a mobile control, determining that the control movement direction configured by the first trigger operation does not match the first direction, controlling the reduction of the movement amplitude of the virtual vehicle in the first direction according to the first trigger operation, and controlling the adjustment of the maximum movement amplitude of the virtual vehicle in the first direction to the first movement amplitude.
[0156] In an optional embodiment, the above-mentioned mobile control includes a first control and a second control; the first control is used to control the virtual vehicle to move in a first direction, and the second control is used to control the virtual vehicle to move in a second direction; the above-mentioned step of determining that the control movement direction of the first trigger operation configuration matches the first direction includes: determining that the first trigger operation is a trigger operation acting on the first control, and determining that the control movement direction of the first trigger operation configuration matches the first direction.
[0157] In an optional embodiment, the above-mentioned step of increasing the sub-maximal movement amplitude of the virtual vehicle in the first direction to the first movement amplitude according to the first trigger operation includes: determining the initial movement speed of the virtual vehicle in the first direction when the first trigger operation is triggered, and providing the virtual vehicle with movement energy toward the first direction based on the first trigger operation; based on the initial movement speed, the preset resistance and the movement energy in the first direction, controlling the sub-maximal movement amplitude of the virtual vehicle in the first direction to increase to the first movement amplitude; wherein, the sub-maximal movement amplitude matches the maximum movement amplitude corresponding to when the movement speed of the virtual vehicle in the first direction reaches a preset speed threshold.
[0158] In an optional embodiment, the step of providing the virtual vehicle with motion energy toward the first direction based on the first trigger operation includes: continuously providing the virtual vehicle with a first acceleration toward the first direction during the duration of the first trigger operation.
[0159] In an optional embodiment, the step of providing the virtual vehicle with motion energy in the first direction based on the first trigger operation includes: providing the virtual vehicle with first kinetic energy in the first direction based on the first trigger operation.
[0160] In an optional embodiment, the above-mentioned step of determining that the control movement direction of the first trigger operation configuration does not match the first direction, and controlling to reduce the movement amplitude of the virtual vehicle in the first direction according to the first trigger operation, includes: determining that the first trigger operation is a trigger operation acting on the second control, and determining that the control movement direction of the first trigger operation configuration does not match the first direction; determining the initial movement speed of the virtual vehicle in the first direction when the first trigger operation is triggered, and providing the virtual vehicle with movement energy toward the second direction based on the first trigger operation; and controlling to reduce the movement amplitude of the virtual vehicle in the first direction based on the initial movement speed, the preset resistance and the movement energy in the second direction.
[0161] In an optional embodiment, the above-mentioned step of providing the virtual vehicle with kinetic energy toward the second direction based on the first trigger operation includes: continuously providing the virtual vehicle with a second acceleration toward the second direction during the duration of the first trigger operation; or, providing the virtual vehicle with second kinetic energy toward the second direction based on the first trigger operation.
[0162] In an optional embodiment, the above method also includes: when the virtual vehicle moves toward a first direction, responding to a trigger operation on a first control, providing the virtual vehicle with movement energy toward the first direction, and controlling the virtual vehicle to accelerate toward the first direction based on the movement energy in the first direction; when the movement speed of the virtual vehicle in the first direction reaches a preset speed threshold, controlling the virtual vehicle to switch from moving toward the first direction to moving toward the second direction.
[0163] In an optional embodiment, the above method also includes: when the virtual vehicle moves toward the first direction, responding to a trigger operation on the second control, providing the virtual vehicle with movement energy toward the second direction, and controlling the virtual vehicle to decelerate toward the first direction based on the movement energy in the second direction; when the movement speed of the virtual vehicle in the first direction reaches a preset speed threshold, controlling the virtual vehicle to switch from moving toward the first direction to moving toward the second direction.
[0164] In an optional embodiment, the above method also includes: in response to the virtual vehicle moving toward the first direction, controlling the playing of the first special effect on the first control; in response to the virtual vehicle moving toward the second direction, controlling the playing of the second special effect on the second control.
[0165] In an optional embodiment, the above-mentioned step of controlling the movement speed of the virtual vehicle to adjust to the target speed according to the movement amplitude corresponding to the conversion of the movement direction of the virtual vehicle includes: determining the target speed that matches the movement amplitude corresponding to the conversion of the movement direction of the virtual vehicle based on a preset speed configuration list; wherein the preset speed configuration list includes: multiple preset movement amplitudes, and speed increases or speed values corresponding to the preset movement amplitudes.
[0166] In an optional embodiment, the above-mentioned preset speed configuration list includes a speed increase corresponding to a preset movement amplitude; the above-mentioned step of determining the target speed that matches the movement amplitude corresponding to the virtual vehicle's movement direction conversion based on the preset speed configuration list includes: determining the target speed increase that matches the movement amplitude corresponding to the virtual vehicle's movement direction conversion based on the preset speed configuration list; adding the target speed increase to the current moving speed of the virtual vehicle to obtain the target speed; wherein the current moving speed is: the moving speed corresponding to the virtual vehicle when the movement direction is converted.
[0167] In an optional embodiment, the above method also includes: during the movement of the virtual vehicle in the game scene, the movement speed of the virtual vehicle increases when the movement direction of the virtual vehicle changes, and except for the moment when the movement direction of the virtual vehicle changes, the movement speed of the virtual vehicle decays according to a preset decay speed.
[0168] In an optional embodiment, the above method further includes: in response to the moving speed of the virtual vehicle reaching a preset maximum speed, controlling the release of a third special effect at the first position of the virtual vehicle.
[0169] In an optional embodiment, the above method also includes: in response to the current movement amplitude of the virtual vehicle in the first direction reaching the first movement amplitude, or the current movement amplitude of the virtual vehicle in the second direction reaching the first movement amplitude, controlling the release of a fourth special effect of a preset duration at the second position of the virtual vehicle.
[0170] In an optional embodiment, the reciprocating motion includes: a swinging motion with the center of a circle corresponding to the arc of the bottom surface of the virtual vehicle as the swing origin; the motion amplitude is the swing angle.
[0171] In an optional embodiment, the game scene includes a virtual character and a virtual track, the virtual character rides on a virtual vehicle, and the virtual vehicle moves on the virtual track in the game scene.
[0172] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present disclosure, or the part that contributes to the relevant technology or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, a terminal device, or a network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present disclosure. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0173] In the description of this disclosure, it should be noted that the terms "center," "upper," "lower," "left," "right," "vertical," "horizontal," "inner," and "outer," etc., indicating orientations or positional relationships, are based on the orientations or positional relationships shown in the accompanying drawings and are intended solely to facilitate the description of this disclosure and simplify the description. They do not indicate or imply that the devices or components referred to must have a specific orientation, be constructed, or operate in a specific orientation. Therefore, they should not be construed as limitations on this disclosure. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and should not be construed as indicating or implying relative importance.
[0174] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present disclosure, which are used to illustrate the technical solutions of the present disclosure, rather than to limit them. The scope of protection of the present disclosure is not limited thereto. Although the present disclosure has been described in detail with reference to the above-described embodiments, those skilled in the art should understand that any person skilled in the art can modify or easily conceive of changes to the technical solutions described in the above-described embodiments within the technical scope disclosed in the present disclosure, or replace some of the technical features therein with equivalents. Such modifications, changes, or replacements do not deviate from the spirit and scope of the technical solutions of the embodiments of the present disclosure, and should be included in the scope of protection of the present disclosure. Therefore, the scope of protection of the present disclosure shall be subject to the scope of protection of the claims.
Claims
1. A game interaction control method, the method comprising: Providing a graphical user interface through a terminal device, the graphical user interface including a game scene and a movement control, the game scene including a virtual vehicle; the movement control is configured to control the virtual vehicle to perform reciprocating motion; When the virtual vehicle moves in a first direction, responding to a first trigger operation on the movement control, and controlling to adjust the maximum movement amplitude of the virtual vehicle in the first direction for the current time to a first movement amplitude according to the first trigger operation, wherein the maximum movement amplitude for the current time is related to the first trigger operation; Responding to the movement speed of the virtual vehicle in the first direction reaching a preset speed threshold or the current movement amplitude of the virtual vehicle in the first direction reaching the first movement amplitude, controlling the virtual vehicle to change from moving in the first direction to moving in a second direction, and controlling to adjust the moving speed of the virtual vehicle to a target speed according to the movement amplitude corresponding to the conversion of the movement direction of the virtual vehicle; the first direction and the second direction are different; Controlling the virtual vehicle to move in the game scene according to the target speed.
2. The method according to claim 1, wherein, After the step of controlling the virtual vehicle to change from moving in the first direction to moving in the second direction, the method further comprises: Controlling to adjust the maximum movement amplitude of the virtual vehicle in the second direction for the current time to a second movement amplitude; wherein the second movement amplitude is not greater than the first movement amplitude; Responding to the movement speed of the virtual vehicle in the second direction reaching the preset speed threshold, controlling the virtual vehicle to change from moving in the second direction to moving in the first direction, and adjusting the moving speed of the virtual vehicle according to the movement amplitude corresponding to the conversion of the movement direction of the virtual vehicle.
3. The method according to claim 1, wherein, The step of, when the virtual vehicle moves in a first direction, responding to a first trigger operation on the movement control, and controlling to adjust the maximum movement amplitude of the virtual vehicle in the first direction for the current time to a first movement amplitude according to the first trigger operation, includes: When the virtual vehicle moves in the first direction, responding to a first trigger operation on the movement control, and controlling to increase the maximum movement amplitude of the virtual vehicle in the first direction for the current time to the first movement amplitude according to the first trigger operation; wherein the maximum movement amplitude for the current time is not greater than the first movement amplitude.
4. The method according to claim 3, wherein The method further comprises: When the virtual vehicle moves in the second direction, responding to a first trigger operation on the movement control, and controlling to increase the maximum movement amplitude of the virtual vehicle in the second direction for the current time to a third movement amplitude according to the first trigger operation; wherein the third movement amplitude matches the first movement amplitude.
5. The method according to claim 1, wherein When the virtual vehicle moves in the first direction, in response to a first trigger operation on the movement control, and controlling, according to the first trigger operation, to adjust the maximum movement amplitude of the virtual vehicle in the first direction for the current time to a first movement amplitude, includes: When the virtual vehicle moves in the first direction, in response to a first trigger operation on the movement control, determining that the control movement direction configured by the first trigger operation matches the first direction, and controlling, according to the first trigger operation, to increase the maximum movement amplitude of the virtual vehicle in the first direction for the current time to the first movement amplitude; wherein, the first movement amplitude is greater than the maximum movement amplitude for the current time.
6. The method according to claim 5, wherein, When the virtual vehicle moves in the first direction, in response to a first trigger operation on the movement control, and controlling, according to the first trigger operation, to adjust the maximum movement amplitude of the virtual vehicle in the first direction for the current time to a first movement amplitude, includes: When the virtual vehicle moves in the first direction, in response to a first trigger operation on the movement control, determining that the control movement direction configured by the first trigger operation does not match the first direction, controlling to reduce the movement amplitude of the virtual vehicle in the first direction, and controlling to adjust the maximum movement amplitude of the virtual vehicle in the first direction for the current time to the first movement amplitude.
7. The method according to claim 6, wherein, The movement control includes a first control and a second control; the first control is used to control the virtual vehicle to move in the first direction, and the second control is used to control the virtual vehicle to move in the second direction; The step of determining that the control movement direction configured by the first trigger operation matches the first direction includes: Determining that the first trigger operation is a trigger operation acting on the first control, and determining that the control movement direction configured by the first trigger operation matches the first direction.
8. The method according to claim 7, wherein, The step of controlling, according to the first trigger operation, to increase the maximum movement amplitude of the virtual vehicle in the first direction for the current time to the first movement amplitude, includes: Determining the initial movement speed of the virtual vehicle in the first direction when the first trigger operation starts to be triggered, and providing movement energy in the first direction for the virtual vehicle based on the first trigger operation; Based on the initial movement speed, a preset resistance, and the movement energy in the first direction, controlling to increase the maximum movement amplitude of the virtual vehicle in the first direction for the current time to the first movement amplitude; wherein, the maximum movement amplitude for the current time matches the maximum movement amplitude corresponding to when the movement speed of the virtual vehicle in the first direction reaches a preset speed threshold.
9. The method according to claim 8, wherein The step of providing movement energy in the first direction for the virtual vehicle based on the first trigger operation includes: During the duration of the first trigger operation, continuously providing a first acceleration in the first direction for the virtual vehicle.
10. The method according to claim 8, wherein, The step of providing the virtual vehicle with motion energy towards the first direction based on the first trigger operation includes: Providing the virtual vehicle with a first kinetic energy towards the first direction based on the first trigger operation.
11. The method according to claim 7, wherein, The step of determining that the controlled motion direction configured by the first trigger operation does not match the first direction, and controlling to reduce the motion amplitude of the virtual vehicle in the first direction according to the first trigger operation includes: Determining that the first trigger operation is a trigger operation acting on the second control, and determining that the controlled motion direction configured by the first trigger operation does not match the first direction; Determining the initial motion speed of the virtual vehicle in the first direction when the first trigger operation starts to be triggered, and providing the virtual vehicle with motion energy towards the second direction based on the first trigger operation; Controlling to reduce the motion amplitude of the virtual vehicle in the first direction based on the initial motion speed, the preset resistance, and the motion energy in the second direction.
12. The method according to claim 11, wherein, The step of providing the virtual vehicle with motion energy towards the second direction based on the first trigger operation includes: Continuously providing the virtual vehicle with a second acceleration towards the second direction during the duration of the first trigger operation; Alternatively, providing the virtual vehicle with a second kinetic energy towards the second direction based on the first trigger operation.
13. The method according to claim 7, wherein The method further includes: When the virtual vehicle moves towards the first direction, in response to a trigger operation on the first control, providing the virtual vehicle with motion energy towards the first direction, and controlling the virtual vehicle to accelerate towards the first direction based on the motion energy in the first direction; when the motion speed of the virtual vehicle in the first direction reaches a preset speed threshold, controlling the virtual vehicle to change from moving towards the first direction to moving towards the second direction.
14. The method according to claim 7, wherein, The method further includes: When the virtual vehicle moves towards the first direction, in response to a trigger operation on the second control, providing the virtual vehicle with motion energy towards the second direction, and controlling the virtual vehicle to decelerate towards the first direction based on the motion energy in the second direction; when the motion speed of the virtual vehicle in the first direction reaches a preset speed threshold, controlling the virtual vehicle to change from moving towards the first direction to moving towards the second direction.
15. The method according to claim 7, wherein The method further includes: In response to the virtual vehicle moving towards the first direction, controlling to play a first special effect on the first control; In response to the virtual vehicle moving towards the second direction, controlling to play a second special effect on the second control.
16. The method according to claim 1, wherein, The step of controlling to adjust the moving speed of the virtual vehicle to a target speed according to the motion amplitude corresponding to the conversion of the moving direction of the virtual vehicle includes: Based on a preset speed configuration list, determine a target speed that matches the motion amplitude corresponding to the conversion of the motion direction of the virtual vehicle; wherein, the preset speed configuration list includes: a plurality of preset motion amplitudes, and the speed increase amount or speed value corresponding to the preset motion amplitude.
17. The method according to claim 16, wherein The preset speed configuration list includes the speed increase amount corresponding to the preset motion amplitude; The step of determining a target speed that matches the motion amplitude corresponding to the conversion of the motion direction of the virtual vehicle based on the preset speed configuration list includes: Based on the preset speed configuration list, determine a target speed increase amount that matches the motion amplitude corresponding to the conversion of the motion direction of the virtual vehicle; Add the target speed increase amount to the current moving speed of the virtual vehicle to obtain the target speed; wherein, the current moving speed is: the moving speed of the virtual vehicle corresponding to the conversion of the motion direction.
18. The method according to claim 1, wherein, The method further includes: During the process of the virtual vehicle moving in the game scene, the moving speed of the virtual vehicle increases when the motion direction of the virtual vehicle is converted, and except at the moment when the motion direction of the virtual vehicle is converted, the moving speed of the virtual vehicle decays at a preset decay speed.
19. The method according to any one of claims 1-18, wherein, The method further includes: In response to the moving speed of the virtual vehicle reaching the preset maximum speed, control to release a third special effect at the first position of the virtual vehicle.
20. The method according to any one of claims 1-19, wherein, The method further includes: In response to the current motion amplitude of the virtual vehicle in the first direction reaching the first motion amplitude, or the current motion amplitude of the virtual vehicle in the second direction reaching the third motion amplitude, control to release a fourth special effect with a preset duration at the second position of the virtual vehicle.
21. The method according to any one of claims 1-20, wherein The reciprocating motion includes: a swinging motion with the center of the circle corresponding to the bottom arc of the virtual vehicle as the swinging origin; the motion amplitude is the swinging angle.
22. The method according to any one of claims 1-21, wherein The game scene includes a virtual character and a virtual runway, the virtual character rides on the virtual vehicle, and the virtual vehicle moves on the virtual runway in the game scene.
23. A game interaction control device, the device includes: An interface display module, configured to provide a graphical user interface through a terminal device, the graphical user interface includes a game scene and a moving control, and the game scene includes a virtual vehicle; the moving control is configured to control the virtual vehicle to perform a reciprocating motion; A motion amplitude control module, configured to, when the virtual vehicle moves in the first direction, respond to a first trigger operation on the moving control, and adjust the maximum motion amplitude of the virtual vehicle in the first direction for the current time to the first motion amplitude according to the first trigger operation, wherein the maximum motion amplitude for the current time is related to the first trigger operation; A speed control module, configured to control the virtual vehicle to change from moving in the first direction to moving in the second direction in response to the movement speed of the virtual vehicle in the first direction reaching a preset speed threshold or the current movement amplitude of the virtual vehicle in the first direction reaching the first movement amplitude, and control the movement speed of the virtual vehicle to be adjusted to a target speed according to the movement amplitude corresponding to the conversion of the movement direction of the virtual vehicle; the first direction is different from the second direction; A vehicle movement module, configured to control the virtual vehicle to move in the game scene according to the target speed.
24. An electronic device, the electronic device includes a processor and a memory, the memory stores machine-executable instructions that can be executed by the processor, and the processor executes the machine-executable instructions to implement the game interaction control method according to any one of claims 1 to 22.
25. A computer-readable storage medium, the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are called and executed by a processor, the computer-executable instructions cause the processor to implement the game interaction control method according to any one of claims 1 to 22.
Citation Information
Patent Citations
Information processing method and device, storage medium and electronic equipment
CN107930105A
Display control method and device in game
CN111399743A
Game control method and device and electronic equipment
CN111760275A
Interaction control method and device in game and electronic equipment
CN116617668A
Game interaction control method and device and electronic equipment
CN117942576A