Game racing operation control method and device and electronic equipment
By simulating the interaction between engine speed and handbrake acceleration in the racing game, the problem of unrealistic acceleration during the start of a race car has been solved, improving the game's realism and the player's competitive experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-01
- Publication Date
- 2026-04-07
AI Technical Summary
In existing technologies, the starting acceleration process in racing games is not realistically simulated, resulting in a poor competitive experience for players.
By displaying starting parameter indicators on the game interface, the engine speed and handbrake acceleration parameters are determined in response to player operations, simulating the starting process of a race car, including interactive operations of engine speed acceleration and handbrake acceleration.
It enhances the realism of racing games and the competitive experience for players, simulating the acceleration process of racing cars through various interactive methods, thereby increasing the game's immersion and competitiveness.
Smart Images

Figure CN116099191B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of game interaction, in particular to a game racing operation control method and device and electronic equipment. BACKGROUND
[0002] In a racing game, a player needs to complete a quick reaction event operation to obtain acceleration at the start in a virtual racing start stage. In related technologies, the player usually obtains quick reaction event acceleration by a single click operation or a long press acceleration button release operation at the end of the countdown. However, this method is difficult to simulate a more realistic racing start acceleration process, and the player's competitive experience is poor. SUMMARY
[0003] Therefore, the present application aims to provide a game racing operation control method and device and electronic equipment to simulate a more realistic racing start acceleration process and improve the player's game experience.
[0004] In a first aspect, the present application provides a game racing operation control method, which provides a graphical user interface through a terminal device; the graphical user interface displays a game scene in which a target racing prop is located; the method comprises: in response to a start event of the target racing prop, displaying a start parameter indication mark; in response to a first specified operation, determining a first acceleration parameter of the target racing prop, updating the display of the start parameter indication mark based on the first acceleration parameter; the first acceleration parameter indicates the rotational speed acceleration of the target racing prop; the updated start parameter indication mark indicates the first acceleration parameter; in response to a second specified operation, determining a second acceleration parameter of the target racing prop, updating the display of the start parameter indication mark based on the second acceleration parameter; the second acceleration parameter indicates the handbrake acceleration of the target racing prop; the updated start parameter indication mark indicates the first acceleration parameter and the second acceleration parameter; in response to a start end event of the target racing prop, determining a start acceleration parameter of the target racing prop based on the first acceleration parameter and the second acceleration parameter, and controlling the target racing prop to enter a driving state according to the start acceleration parameter.
[0005] In a second aspect, an embodiment of the present application provides an operation control device for a game racing car, which provides a graphical user interface through a terminal device; the graphical user interface displays a game scene in which a target racing car prop is located; the device comprises: a start parameter identifier display module, configured to display a start parameter indicator in response to a start event of the target racing car prop; a first acceleration determination module, configured to determine a first acceleration parameter of the target racing car prop in response to a first specified operation, and update the displayed start parameter indicator based on the first acceleration parameter; the first acceleration parameter indicates an acceleration of a rotating speed of the target racing car prop; the updated start parameter indicator indicates the first acceleration parameter; a second acceleration determination module, configured to determine a second acceleration parameter of the target racing car prop in response to a second specified operation, and update the displayed start parameter indicator based on the second acceleration parameter; the second acceleration parameter indicates an acceleration of a handbrake of the target racing car prop; the updated start parameter indicator indicates the first acceleration parameter and the second acceleration parameter; and a start control module, configured to determine a start acceleration parameter of the target racing car prop based on the first acceleration parameter and the second acceleration parameter in response to an end event of the start of the target racing car prop, and control the target racing car prop to enter a driving state according to the start acceleration parameter.
[0006] In a third aspect, an embodiment of the present application provides an electronic device, comprising a processor and a memory, the memory stores machine executable instructions capable of being executed by the processor, and the processor executes the machine executable instructions to implement the operation control method for the game racing car.
[0007] In a fourth aspect, an embodiment of the present application provides a machine readable storage medium, which stores machine executable instructions, and the machine executable instructions, when invoked and executed by a processor, cause the processor to implement the operation control method for the game racing car.
[0008] The embodiments of the present application bring the following beneficial effects:
[0009] The game racing operation control method, device and electronic equipment, in response to a starting event of a target racing prop, displays a starting parameter indication mark; in response to a first specified operation, a first acceleration parameter of the target racing prop is determined, and the starting parameter indication mark is updated; the first acceleration parameter indicates the speed acceleration of the target racing prop; in response to a second specified operation, a second acceleration parameter of the target racing prop is determined, and the starting parameter indication mark is updated; the second acceleration parameter indicates the handbrake acceleration of the target racing prop; in response to an ending event of the starting of the target racing prop, based on the first acceleration parameter and the second acceleration parameter, a starting acceleration parameter of the target racing prop is determined, and the target racing prop is controlled to enter a driving state according to the starting acceleration parameter. The speed acceleration and the handbrake acceleration are simulated, a more real racing starting acceleration process is simulated, and the game experience of the player is improved.
[0010] Additional features and advantages of the present application will be set forth in the description that follows, and in part will be apparent from the description, or can be learned by practice of the present application. The objectives and other advantages of the present application will be realized and attained by the structure particularly pointed out in the description and claims.
[0011] In order to make the above objectives, features and advantages of the present application more apparent, the following will describe a preferred embodiment, and combine with the accompanying drawings, and make a detailed description as follows. BRIEF DESCRIPTION OF DRAWINGS
[0012] In order to more clearly illustrate the specific embodiments of the present application or the technical solutions in the prior art, the following will briefly introduce the drawings needed to be used in the specific embodiments or the prior art description. Obviously, the drawings described in the following description are some embodiments of the present application, and for those skilled in the art, other drawings can also be obtained without creative labor based on these drawings.
[0013] Figure 1 A flowchart of a game racing operation control method provided by an embodiment of the present application;
[0014] Figure 2 A schematic diagram of a starting parameter indication mark provided by an embodiment of the present application;
[0015] Figure 3 A schematic diagram of another starting parameter indication mark provided by an embodiment of the present application;
[0016] Figure 4 A schematic diagram of another starting parameter indication mark provided by an embodiment of the present application;
[0017] Figure 5 A schematic diagram of another starting parameter indication mark provided by an embodiment of the present application;
[0018] Figure 6 Another starting parameter indication identifier provided for the embodiment of the present application is shown in the diagram;
[0019] Figure 7 A diagram of an acceleration control provided for the embodiment of the present application is shown in the diagram;
[0020] Figure 8 A diagram of a graphical user interface provided for the embodiment of the present application is shown in the diagram;
[0021] Figure 9 A diagram of a display state of a dashboard provided for the embodiment of the present application is shown in the diagram;
[0022] Figure 10 Another diagram of a display state of a dashboard provided for the embodiment of the present application is shown in the diagram;
[0023] Figure 11 Another diagram of a display state of a dashboard provided for the embodiment of the present application is shown in the diagram;
[0024] Figure 12 Another diagram of a display state of a dashboard provided for the embodiment of the present application is shown in the diagram;
[0025] Figure 13 Another diagram of a display state of a dashboard provided for the embodiment of the present application is shown in the diagram;
[0026] Figure 14 Another diagram of a display state of a dashboard provided for the embodiment of the present application is shown in the diagram;
[0027] Figure 15 Another diagram of a display state of a dashboard provided for the embodiment of the present application is shown in the diagram;
[0028] Figure 16 A diagram of a structure of an operation control device of a game racing car provided for the embodiment of the present application is shown in the diagram;
[0029] Figure 17 A diagram of a structure of an electronic device provided for the embodiment of the present application is shown in the diagram. DETAILED DESCRIPTION
[0030] In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions of the present application will be described below in connection with the accompanying drawings, obviously, the described embodiments are some embodiments of the present application, but not all the embodiments. Based on the embodiments in the present application, all the other embodiments obtained by those skilled in the art without creative labor are within the protection scope of the present application.
[0031] In a racing game, a player often needs to complete a quick time event (QTE) operation in a starting stage to obtain a QTE acceleration of a racing car.
[0032] In the related art, an acceleration control is usually set in a graphical user interface, and a player performs a single click operation on the set control at the moment when a countdown of a racing car starting ends, so as to obtain a QTE acceleration. However, this method cannot well simulate the process of stepping on an accelerator to increase a speed in a starting stage, and the single operation cannot further differentiate players. A long press operation can also be performed on the set control, and a hand is released at the moment when all red lights are turned off, so as to obtain a starting acceleration by simulating a behavior of releasing a clutch. However, the long press operation cannot well simulate the process of stepping on an accelerator to increase a speed for multiple times, and it is difficult to give a player a real racing experience. In some games, an acceleration control can also be set, and a player needs to continuously click the acceleration control for multiple times to control the QTE starting acceleration in a certain range. This method well simulates the process of stepping on an accelerator to increase a speed in a starting stage, but lacks the feeling of releasing a handbrake to obtain an acceleration by further QTE operation at the moment when a countdown ends.
[0033] The above-mentioned methods of obtaining an acceleration of a racing car at a starting time usually adopt a single interaction mode, which is simple but cannot well simulate a reaction force of stepping on an accelerator to increase a speed and releasing a handbrake to start in a starting stage of a racing car, so as to fail to differentiate players in a racing game by player proficiency and lack the fun of a racing game competition.
[0034] Therefore, the embodiments of the present application provide a game racing operation control method, device and electronic equipment, which can be applied to various game scenes of racing.
[0035] The game racing operation control method in the embodiments of the present application can run on a local terminal device or a server. When the game racing operation control method runs on the 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.
[0036] In an optional embodiment, various cloud applications can be run under the cloud interaction system, such as cloud gaming. Taking cloud gaming as an example, cloud gaming refers to a game mode based on cloud computing. In the running mode of cloud gaming, the running subject of the game program and the presentation subject of the game picture are separated, and the storage and running of the operation control method of the game car are completed on the cloud gaming server. The client device is used for receiving and sending data and presenting the game picture. For example, the client device can be a display device close to the player side with data transmission function, such as a mobile terminal, a television, a computer, a palm computer, etc. However, the cloud gaming server in the cloud end performs information processing. When playing the game, the player operates the client device to send operation instructions to the cloud gaming server, the cloud gaming server runs the game according to the operation instructions, encodes and compresses the game picture and other data, returns the data to the client device through the network, and finally decodes and outputs the game picture through the client device.
[0037] In an optional embodiment, taking a game as an example, the local terminal device stores a game program and is used for presenting a game picture. The local terminal device is used for interacting with the player through a graphical user interface, that is, a conventional game program is downloaded and installed on an electronic device and run. The way in which the local terminal device provides the graphical user interface to the player can include various ways, for example, the graphical user interface can be rendered and displayed on the display screen of the terminal, or the graphical user interface can be provided to the player through holographic projection. For example, the local terminal device can include a display screen used for presenting a graphical user interface including a game picture and a processor used for running the game, generating the graphical user interface and controlling the display of the graphical user interface on the display screen.
[0038] In a possible embodiment, the embodiment of the present application provides a game car operation control method, which provides a graphical user interface through a terminal device. The terminal device can be the local terminal device mentioned above or the client device in the cloud interaction system mentioned above. The graphical user interface displays a game scene in which a target car prop is located. As shown in the figure, the method includes the following steps: Figure 1
[0039] Step S102, in response to a starting event of the target car prop, a starting parameter instruction mark is displayed.
[0040] The aforementioned starting event can be generated when a player controls a target racing item to enter racing mode. There are several ways for a player to control a target racing item to enter racing mode. For example, after the player selects a target racing item, the game system automatically controls that item to enter racing mode; or the player can click on a control in the graphical user interface designated for entering racing mode to initiate the racing mode. The specific implementation method can be set according to requirements and is not limited here.
[0041] The aforementioned starting parameter indicator can be displayed separately in a designated location on the graphical user interface, such as the upper part of the graphical user interface, or in a designated location on the acceleration control or other controls that control the target racing item, so that players can pay attention to the starting acceleration of the target racing item indicated by the starting parameter indicator while focusing on operating the control.
[0042] Generally, the starting acceleration of a target racing vehicle is limited; that is, the starting acceleration of the target racing vehicle is less than or equal to the preset maximum starting acceleration. Therefore, the starting parameter indicator usually has a relatively large display area to indicate the maximum starting acceleration. When the player causes the target racing vehicle to gain starting acceleration through operation, an indicator showing the starting acceleration of the target racing vehicle will appear in this area. The display size of this indicator is smaller than the display area. The ratio of the display size of this indicator to the display area usually indicates the ratio of the starting acceleration of the target racing vehicle to the maximum starting acceleration, allowing the player to understand the starting acceleration of the target racing vehicle by viewing the starting parameter indicator.
[0043] Step S104: In response to the first specified operation, determine the first acceleration parameter of the target racing car prop, and update the starting parameter indicator based on the first acceleration parameter; the first acceleration parameter indicates the rotational acceleration of the target racing car prop; the updated starting parameter indicator indicates the first acceleration parameter.
[0044] Since the aforementioned first acceleration parameter indicates the rotational acceleration of the target racing car, the aforementioned first specified operation can simulate the pressing of the accelerator pedal. For example, when the terminal device is equipped with a gyroscope, the aforementioned first specified operation can be set as a rotation operation of the terminal device. When the player rotates the terminal device to a set angle range, the target racing car can be considered to have obtained the maximum rotational acceleration. Alternatively, within a certain angle range, the greater the rotational angle of the terminal device by the player, the greater the maximum rotational acceleration obtained by the target racing car; beyond a certain angle, the rotational acceleration decreases.
[0045] In addition, acceleration controls can be set in the graphical user interface to simulate the player's accelerator pedal operation through the player's interaction with the acceleration controls. The simulated player actions with the acceleration controls can include various operations such as long presses or swipes. Typically, the operation of acceleration controls has measurable parameters, such as operation time, operation trajectory distance, or operation frequency. When determining the first acceleration parameter, some operation parameter thresholds can be set, such as a time threshold for operation time and a trajectory distance threshold for operation trajectory distance. The first acceleration parameter is determined based on the player's operation parameters with the acceleration controls and the corresponding operation parameter thresholds. The specific method can be set according to requirements and is not limited here.
[0046] Once the first acceleration parameter is determined, the starting parameter indicator needs to be updated to indicate this parameter. As mentioned above, the starting parameter indicator typically has a large display area to indicate the maximum starting acceleration. Maximum starting acceleration consists of engine speed acceleration and braking acceleration. When the starting parameter indicator indicates the first acceleration parameter, the pre-set display size of the engine speed acceleration indicator can be adjusted according to this parameter to indicate engine speed acceleration. Figure 2 As shown, the display area for the starting parameter indicator is a circular area. When the speed acceleration indicator indicates the maximum speed acceleration, it occupies 80% of the display area, as shown below. Figure 2 As shown by the dashed line in the diagram, the rotational speed acceleration indicator shows half of the maximum rotational speed acceleration, and its radius is half of the radius when it indicates the maximum rotational speed acceleration. The rotational speed acceleration indicator is marked in gray.
[0047] In step S106, in response to the second specified operation, the second acceleration parameter of the target racing car is determined, and the starting parameter indicator is updated based on the second acceleration parameter; the second acceleration parameter indicates the handbrake acceleration of the target racing car; the updated starting parameter indicator indicates the first acceleration parameter and the second acceleration parameter.
[0048] Since the second acceleration parameter indicates the braking acceleration of the target racing vehicle, the second specified operation can simulate a braking operation. Correspondingly, the second specified operation is typically an instantaneous operation, which corresponds to the aforementioned rapid reaction event. For example, a brake control can be set in the graphical user interface, allowing players to perform click operations on the brake control.
[0049] In addition, the aforementioned second specified operation can also be a rotation operation on the terminal device (in which case the first specified operation is usually not a rotation operation on the terminal device), or a sliding operation continuous with the first specified operation, etc. When determining the second acceleration parameter based on the second specified operation, it is usually necessary to consider the time difference between the operation time of the instantaneous operation and the end time of the starting event. If this time difference is less than or equal to a set time threshold, it can be determined that the target racing vehicle has obtained a large braking acceleration, corresponding to the preset second acceleration parameter; if it is greater than the time threshold, it can be determined that the target racing vehicle has obtained a small braking acceleration or has not obtained braking acceleration, corresponding to the preset second acceleration parameter.
[0050] Furthermore, the second acceleration parameter can be determined by combining the operation parameters of the second specified operation. For example, when the second specified operation is a rotation operation, its rotation angle can be considered as a factor in determining the second acceleration parameter. For instance, if the time difference between the operation time of the rotation operation and the end time of the starting event is less than a set time threshold, and the rotation angle is within the set angle range, then it is determined that the target racing car has obtained a large braking acceleration. In specific implementation, the method for determining the second acceleration parameter can be determined according to the implementation method of the second specified operation, and is not limited here.
[0051] When updating the starting parameter indicator based on the second acceleration parameter, the starting parameter indicator needs to simultaneously indicate both the first and second acceleration parameters. To facilitate player viewing of the two types of acceleration generated by their actions, the starting parameter indicator typically displays the engine speed acceleration indicator and the braking acceleration indicator in different display formats. The braking acceleration indicator's display position within the starting parameter indicator's display area can be fixed, such as... Figure 3 As shown, in the circular area; it can also change depending on the display position of the rotational speed and acceleration indicators, such as... Figure 4 As shown, the braking acceleration indicator is displayed in the adjacent area to the engine speed acceleration indicator.
[0052] Step S108: In response to the start-end event of the target racing vehicle, the starting acceleration parameter of the target racing vehicle is determined based on the first acceleration parameter and the second acceleration parameter, and the target racing vehicle is controlled to enter the driving state according to the starting acceleration parameter.
[0053] After the target racing vehicle completes its initial acceleration, its starting acceleration parameter can be calculated based on the first and second acceleration parameters. Typically, the first and second acceleration parameters are added together, and the result is used as the target racing vehicle's starting acceleration parameter. This allows the target racing vehicle to be controlled to enter the driving state according to the starting acceleration parameter.
[0054] The aforementioned method for controlling a racing game involves the following steps: In response to a starting event of the target racing vehicle, a starting parameter indicator is displayed; in response to a first specified operation, a first acceleration parameter of the target racing vehicle is determined, and the starting parameter indicator is updated; the first acceleration parameter indicates the engine speed acceleration of the target racing vehicle; in response to a second specified operation, a second acceleration parameter of the target racing vehicle is determined, and the starting parameter indicator is updated; the second acceleration parameter indicates the handbrake acceleration of the target racing vehicle; in response to a starting end event of the target racing vehicle, based on the first and second acceleration parameters, a starting acceleration parameter of the target racing vehicle is determined, and the target racing vehicle is controlled to enter a driving state according to the starting acceleration parameter. This method simulates a relatively realistic racing car starting and acceleration process by simulating engine speed acceleration and handbrake acceleration, thus improving the player's gaming experience.
[0055] The following embodiments provide a specific method for determining a first acceleration parameter of a target racing vehicle in response to a first specified operation.
[0056] In practical implementation, an acceleration control can be set in the graphical user interface. The first specified operation mentioned above can be the first touch operation targeting the acceleration control.
[0057] When the acceleration control includes a virtual joystick and its movement area, the player can perform a sliding operation on the virtual joystick. This sliding operation is typically confined to its movement area and can be a directional sliding operation or a sliding operation in any direction. In response to a sliding operation on the virtual joystick within its movement area, the first acceleration parameter of the target racing item can be determined based on the length of the sliding operation's trajectory. For example, when the trajectory length is less than 10, the product of the trajectory length and 2 can be used as the first acceleration parameter of the target racing item; when the trajectory length is equal to or greater than 10, the first acceleration parameter of the target racing item is set to 20.
[0058] When the acceleration control is a button-type control, the first specified operation can be set to a long press operation on the acceleration control. In response to the press operation on the acceleration control, timing starts and a first timing result is obtained. Then, based on the first timing result, the first acceleration parameter of the target racing item can be determined. Specifically, in response to the first timing result being less than or equal to a preset first time threshold, the product of the first timing result and a preset proportional parameter can be determined as the first acceleration parameter of the target racing item; in response to the first timing result being greater than the preset first time threshold, the first timing result is set to zero; in response to the touch point of the press operation remaining on the acceleration control, timing starts and a second timing result is obtained; based on the second timing result, the first acceleration parameter of the target racing item can be determined. Then, the second timing result can be processed in the same way as the first timing result, that is, if it exceeds the first time threshold, it is reset to zero and timing restarts until the start time ends.
[0059] When the terminal device is equipped with an attitude parameter detection device, such as a gyroscope, the first specified operation can be set as a first rotation operation for the terminal device. In response to the first rotation operation, the attitude parameter detection device determines the first rotation angle corresponding to the first rotation operation; and based on the first rotation angle, the first acceleration parameter of the target racing vehicle is determined. Specifically, in response to the first rotation angle entering a preset first angle range, the first acceleration parameter of the target racing vehicle can be set to a first value; or, in response to the first rotation angle being outside the first angle range, the first acceleration parameter of the target racing vehicle can be set to a second value. Generally, the second value is less than the first value. For example, the first angle range can be set to 50° to 60°. When the rotation angle is within this range, the first acceleration parameter of the target racing vehicle is determined to be 20; when the rotation angle is not within this range, the first acceleration parameter of the target racing vehicle is determined to be 10.
[0060] Typically, an acceleration display area is set up for the starting parameter indicator. This acceleration display area can display a first acceleration indicator and a second acceleration indicator. When updating the display of the starting parameter indicator, a preset display size for the first acceleration indicator is determined based on the first acceleration parameter; the display size is proportional to the first acceleration parameter; for example, when the first acceleration parameter is 10, the display length of the first acceleration indicator is 5; when the first acceleration parameter is 20, the display length of the first acceleration indicator is 10. Therefore, based on the display size of the first acceleration indicator, it can be displayed at a specified position within the acceleration display area, such as... Figure 5 As shown, the acceleration display area has a display size of 15, and displays the first acceleration indicator with a length of 5 and a length of 10 respectively.
[0061] A first parameter range can be preset. When the first acceleration parameter falls within this range, the rotational acceleration is considered sufficient; when it falls outside this range, the rotational acceleration is considered insufficient. Simultaneously, the first acceleration indicator corresponding to different rotational acceleration states can be displayed in different display formats. Specifically, in response to the first acceleration parameter being within the preset range, the first acceleration indicator can be displayed in a preset first display format; in response to the first acceleration parameter being outside the preset range, the first acceleration indicator can be displayed in a preset second display format. The first and second display formats can differ, specifically in color or display status, such as whether it flashes. Figure 6 As shown, the first acceleration indicator displays the rotational acceleration in different states using different colors.
[0062] The following embodiments provide a specific method for determining a second acceleration parameter of a target racing vehicle in response to a second specified operation.
[0063] In practical implementation, a handbrake control can be set in the graphical user interface. Typically, a timer starts when the target racing item begins its run, and the duration of the timer is recorded. This timer can be displayed as a countdown in the graphical user interface. Players can click on the handbrake control; in response to this click, the duration of the timer is defined as the click's duration. Based on the time difference between the click's duration and a preset end time, the second acceleration parameter of the target racing item is determined.
[0064] Specifically, a time threshold can be set, referred to as the second time threshold to distinguish it from other time thresholds. This time threshold is typically small, such as 0.1s or 0.5s, corresponding to a fast reaction time. If the time difference between the click operation and its end time is less than or equal to the preset second time threshold, the second acceleration parameter of the target racing item can be determined to be the third value; or, if the time difference between the click operation and its end time is greater than the preset second time threshold, the second acceleration parameter of the target racing item is determined to be zero, i.e., no braking acceleration is obtained. In practical implementation, it can also be set to other non-zero values smaller than the third value, i.e., a smaller braking acceleration is obtained.
[0065] When the terminal device is equipped with an attitude parameter detection device, the second specified operation can also be set as a second rotation operation for the terminal device. In response to the second rotation operation for the terminal device, the timing duration is determined as the operation time of the second rotation operation, and the attitude parameter detection device determines the second rotation angle corresponding to the second rotation operation. Then, based on the operation time of the second rotation operation, the preset end time, and the second rotation angle, the second acceleration parameter of the target racing car prop is determined. Specifically, in response to the time difference between the operation time of the second rotation operation and the preset end time being less than or equal to a preset third time threshold, it can be determined whether the second rotation angle enters a preset second angle range; and in response to the second rotation angle entering the preset second angle range, the second acceleration parameter of the target racing car prop is determined to be a third value; or, in response to the second rotation angle being outside the second angle range, the second acceleration parameter of the target racing car prop is determined to be zero.
[0066] The second specified operation described above can also be a continuous operation of the first specified operation. An acceleration control can be set in the graphical user interface. This control displays a handbrake icon when the timer duration meets a specified condition, such as... Figure 7 As shown; the specified condition can be that the time difference between the timing duration and the preset end time is less than or equal to a preset fourth time threshold. In this case, the second specified operation can be set to have the accelerator control point to the handbrake indicator.
[0067] Specifically, in response to a sliding operation pointing towards the handbrake icon, starting from the touch point of a long press on the acceleration control, the duration of this sliding operation is determined as the operation time. Based on the time difference between the operation time of the sliding operation and the display time of the handbrake icon, a second acceleration parameter for the target racing item is determined. Specifically, if the time difference between the operation time of the sliding operation and the display time of the handbrake icon is less than or equal to a preset fifth time threshold, the second acceleration parameter of the target racing item is determined to be a third value; or, if the time difference between the operation time of the sliding operation and the display time of the handbrake icon is greater than the preset fifth time threshold, the second acceleration parameter of the target racing item is determined to be zero. In practical implementation, it can also be set to other non-zero values smaller than the third value, thus achieving a smaller braking acceleration.
[0068] Generally, the second acceleration parameter is a zero or a non-zero set value, meaning the target racing vehicle may or may not have received the set value of rotational acceleration. When displaying the second acceleration indicator corresponding to the second acceleration parameter, in response to the second acceleration parameter being a non-zero set value, the preset second acceleration indicator can be displayed in the acceleration display area at the set position of the first acceleration indicator.
[0069] This invention also provides another method for controlling a racing game. This method... Figure 1 This method is implemented based on the method shown. The start of a real race car can be divided into two stages: releasing the clutch (increasing the engine speed) and releasing the handbrake (obtaining QTE acceleration). This method fully simulates the complex operation of starting by having the player perform two interactive operations on the terminal device. At the same time, the dashboard on the game interface is used as the indicator of starting parameters and visualized as four states in two parts, giving the player feedback prompts corresponding to different operations.
[0070] like Figure 8 As shown, the interaction methods available to players in the initial stage include:
[0071] Movement joystick (bottom left): Players can achieve continuous, non-discrete acceleration / deceleration / direction control by sliding up, down, left, and right.
[0072] Mobile phone gyroscope: Players can tilt their phones back and forth and calculate the tilt angle of the gyroscope to simulate pressing the accelerator to increase the speed.
[0073] Acceleration button (center of the instrument panel in the lower right corner): You can perform QTE operations by clicking it, or press and hold it to increase the engine speed.
[0074] Brake button (above the instrument panel in the lower right corner): Locked by default when starting, can be pressed by the player to simulate releasing the handbrake when the player has speed.
[0075] Feedback is provided via the dashboard after the player completes a specific action. Specifically, the dashboard in the lower right corner is divided into two parts to simulate rotational speed feedback and QTE acceleration feedback.
[0076] (1) Speed increase section (start countdown stage): During the countdown stage, you need to continuously operate the simulated throttle to increase the speed (visually, medium gray can represent insufficient speed and dark gray represents sufficient speed).
[0077] (2) QTE acceleration section (the moment the countdown ends): If the player completes the QTE operation at the moment the countdown ends, they will see the white light bar and receive the corresponding acceleration.
[0078] It is worth noting that the position of the white acceleration bar is not fixed but appears dynamically after the speed feedback bar. If the speed is too high in the first stage, causing the feedback bar to fill up, the white acceleration bar will cover the speed feedback bar and appear at the end. The two acceleration feedback parts are independent of each other and do not affect each other. That is, the player can get the QTE white acceleration feedback even if he does not get speed feedback, and vice versa.
[0079] Players can perform different actions in the two independent sections, which can be categorized into the following four feedback states:
[0080] (1) Slowest start: Insufficient engine speed / failure to obtain QTE acceleration, such as Figure 9 As shown.
[0081] (2) Slow start: Insufficient engine speed / QTE acceleration, such as Figure 10 As shown, the white light bars are represented by light gray stripes.
[0082] (3) Quick start: Sufficient engine speed / no QTE acceleration, such as Figure 11 As shown.
[0083] (4) Perfect start: Sufficient engine speed / QTE acceleration, such as Figure 12 As shown.
[0084] In practical implementation, the following interactive operation methods can be used to get started:
[0085] Method 1:
[0086] The speed increase section uses a sliding operation with a virtual joystick. This involves continuously sliding the joystick up and down to increase the speed, and calculating the speed by measuring the sliding distance.
[0087] The QTE acceleration section uses a tap on the dashboard. Specifically, you need to simulate releasing the handbrake just as the countdown ends to trigger the QTE acceleration.
[0088] Method 2:
[0089] The speed boost section employs a rotating terminal device operation method. That is, rotating the phone to a specified angle range calculates the gyroscope tilt angle to increase the speed; the acceleration button also tilts accordingly to improve visibility. For example... Figure 13 The instrument panel displays the status when the tilt angle is less than 30°, the engine speed is insufficient, or the acceleration is insufficient. Figure 14 The instrument panel displays the tilt angle as greater than 30° and less than 75°, indicating sufficient engine speed and acceleration. Figure 15 The dashboard display shows a tilt angle greater than 75° and insufficient acceleration due to excessive engine speed.
[0090] The QTE acceleration section uses a tap on the dashboard. Specifically, you need to simulate releasing the handbrake just as the countdown ends to trigger the QTE acceleration.
[0091] Method 3:
[0092] The speed increase section uses a sliding operation with a virtual joystick. This involves continuously sliding the joystick up and down to increase the speed, and calculating the speed by measuring the sliding distance.
[0093] The QTE acceleration section utilizes a rotating terminal device operation method. Specifically, QTE acceleration is achieved by rotating the phone beyond a certain angle.
[0094] Method 4:
[0095] The speed boost is achieved by holding down the accelerator button. Players must hold down the accelerator button until the speedometer reading reaches the green zone. If the player releases the button during this process or the speed exceeds the green zone, the calculation is reset.
[0096] The QTE acceleration section uses a sliding gesture. A brake button guidance animation appears the instant the countdown ends. Slide your finger to the brake button and release it, simulating releasing the handbrake, to obtain the corresponding QTE acceleration. If this action is not performed within the 1-second time limit, the QTE acceleration will not be obtained.
[0097] This method has the following advantages:
[0098] Enhanced competitiveness: The starting phase is divided into a countdown end phase and a countdown ending moment. Players need to perform different actions to gain acceleration in different phases, encouraging players to practice repeatedly to improve their operational proficiency and widen the gap between players.
[0099] Enhanced immersion: This patent more realistically recreates the process of revving the engine by pressing the accelerator before starting and then releasing the handbrake to propel the car forward.
[0100] Diverse interaction methods: This patent summarizes four feasible interaction methods, which can be combined to meet the needs of players in different scenarios.
[0101] For the above method embodiments, see Figure 16 The illustrated racing game control device provides a graphical user interface (GUI) via a terminal device; the GUI displays the game scene where the target racing car is located; the device includes:
[0102] The starting parameter indicator display module 1602 is used to respond to the starting event of the target racing vehicle and display the starting parameter indicator.
[0103] The first acceleration determination module 1604 is used to respond to a first specified operation, determine the first acceleration parameter of the target racing car prop, and update the starting parameter indicator based on the first acceleration parameter; the first acceleration parameter indicates the rotational acceleration of the target racing car prop; the updated starting parameter indicator indicates the first acceleration parameter;
[0104] The second acceleration determination module 1606 is used to respond to a second specified operation, determine the second acceleration parameter of the target racing car prop, and update the starting parameter indicator based on the second acceleration parameter; the second acceleration parameter indicates the handbrake acceleration of the target racing car prop; the updated starting parameter indicator indicates the first acceleration parameter and the second acceleration parameter.
[0105] The starting control module 1608 is used to respond to the start-end event of the target racing vehicle, determine the starting acceleration parameters of the target racing vehicle based on the first acceleration parameter and the second acceleration parameter, and control the target racing vehicle to enter the driving state according to the starting acceleration parameters.
[0106] The aforementioned racing game control device, in response to a starting event of a target racing vehicle, displays a starting parameter indicator; in response to a first specified operation, it determines a first acceleration parameter of the target racing vehicle and updates the starting parameter indicator; the first acceleration parameter indicates the engine speed acceleration of the target racing vehicle; in response to a second specified operation, it determines a second acceleration parameter of the target racing vehicle and updates the starting parameter indicator; the second acceleration parameter indicates the handbrake acceleration of the target racing vehicle; in response to a starting end event of the target racing vehicle, based on the first and second acceleration parameters, it determines the starting acceleration parameter of the target racing vehicle and controls the target racing vehicle to enter the driving state according to the starting acceleration parameter. This method simulates a relatively realistic racing car starting acceleration process by simulating engine speed acceleration and handbrake acceleration, improving the player's gaming experience.
[0107] The graphical user interface also displays an acceleration control; the first acceleration determination module is also used to: determine the first acceleration parameter of the target racing car in response to a first touch operation on the acceleration control.
[0108] The aforementioned acceleration control includes a virtual joystick and a movement area of the virtual joystick; the aforementioned first acceleration determination module is further configured to: respond to a sliding operation applied to the virtual joystick in the movement area, and determine the first acceleration parameter of the target racing car prop based on the trajectory length of the sliding operation.
[0109] The aforementioned first acceleration determination module is also used to: in response to a press operation on the acceleration control, start timing and obtain a first timing result; and based on the first timing result, determine the first acceleration parameter of the target racing car prop.
[0110] The aforementioned first acceleration determination module is further configured to: determine the product of the first timing result and a preset proportional parameter as the first acceleration parameter of the target racing car prop in response to the first timing result being less than or equal to a preset first time threshold; set the first timing result to zero in response to the first timing result being greater than the preset first time threshold; start timing in response to the touch point of the pressed operation remaining on the acceleration control to obtain a second timing result; and determine the first acceleration parameter of the target racing car prop based on the second timing result.
[0111] The aforementioned terminal device is equipped with an attitude parameter detection device; the aforementioned first acceleration determination module is further configured to: in response to a first rotation operation on the terminal device, determine a first rotation angle corresponding to the first rotation operation through the attitude parameter detection device; and determine the first acceleration parameter of the target racing car prop based on the first rotation angle.
[0112] The aforementioned first acceleration determination module is further configured to: in response to the first rotation angle entering a preset first angle range, set the first acceleration parameter of the target racing car prop to a first value; or, in response to the first rotation angle being outside the first angle range, set the first acceleration parameter of the target racing car prop to a second value.
[0113] The aforementioned starting parameter indicator includes an acceleration display area; the aforementioned first acceleration determination module is further configured to: determine the display size of a preset first acceleration indicator based on the first acceleration parameter; the display size is proportional to the first acceleration parameter; and display the first acceleration indicator at a specified position in the acceleration display area based on the display size of the first acceleration indicator.
[0114] The aforementioned device further includes: a first indicator display module, configured to display a first acceleration indicator in a preset first display format in response to the first acceleration parameter being within a preset first parameter range; and a second indicator display module, configured to display the first acceleration indicator in a preset second display format in response to the first acceleration parameter being outside the preset first parameter range.
[0115] The graphical user interface also displays a handbrake control; the starting event of the target racing item corresponds to a timing duration; the timing duration is the timing result generated when the starting event occurs; the step of determining the second acceleration parameter of the target racing item in response to the second specified operation includes: in response to a click operation on the handbrake control, determining the timing duration as the operation time of the click operation; and determining the second acceleration parameter of the target racing item based on the time difference between the operation time of the click operation and a preset end time.
[0116] The aforementioned second acceleration determination module is further configured to: determine the second acceleration parameter of the target racing car prop as a third value when the time difference between the operation and the end time of the click operation is less than or equal to a preset second time threshold; or, determine the second acceleration parameter of the target racing car prop as zero when the time difference between the operation and the end time of the click operation is greater than the preset second time threshold.
[0117] The aforementioned terminal device is equipped with an attitude parameter detection device; the starting event of the target racing prop corresponds to a timing duration; the timing duration is the timing result generated when the starting event occurs; the aforementioned second acceleration determination module is further used to: in response to a second rotation operation on the terminal device, determine the timing duration as the operation time of the second rotation operation; determine the second rotation angle corresponding to the second rotation operation through the attitude parameter detection device; and determine the second acceleration parameter of the target racing prop based on the operation time of the second rotation operation, the preset end time, and the second rotation angle.
[0118] The aforementioned second acceleration determination module is further configured to: determine whether the second rotation angle enters a preset second angle range in response to the time difference between the operation time of the second rotation operation and the preset end time being less than or equal to a preset third time threshold; determine the second acceleration parameter of the target racing car prop to be a third value in response to the second rotation angle entering the preset second angle range, or determine the second acceleration parameter of the target racing car prop to be zero in response to the second rotation angle being outside the second angle range.
[0119] The graphical user interface also displays an acceleration control; the starting event of the target racing item corresponds to a timing duration; the timing duration is the timing result generated when the starting event occurs; the first specified operation includes a long press operation on the acceleration control; the second specified operation is a continuous operation of the first specified operation; the acceleration control displays a handbrake icon when the timing duration meets a specified condition; the specified condition includes: the time difference between the timing duration and the preset end time is less than or equal to a preset fourth time threshold; the second acceleration determination module is also used to: in response to a sliding operation pointing to the handbrake icon from the touch point position of the long press operation on the acceleration control, determine the timing duration as the operation time of the sliding operation; and determine the second acceleration parameter of the target racing item based on the time difference between the operation time of the sliding operation and the display time of the handbrake icon.
[0120] The aforementioned second acceleration determination module is further configured to: determine the second acceleration parameter of the target racing car prop as a third value when the time difference between the operation time of the sliding operation and the display time of the handbrake indicator is less than or equal to a preset fifth time threshold; or, determine the second acceleration parameter of the target racing car prop as zero when the time difference between the operation time of the sliding operation and the display time of the handbrake indicator is greater than a preset fifth time threshold.
[0121] The aforementioned starting parameter indicator includes an acceleration display area; the acceleration display area shows a first acceleration indicator; the second acceleration parameter is a zero or non-zero set value; the aforementioned second acceleration determination module is further configured to: in response to the second acceleration parameter being a non-zero set value, display a preset second acceleration indicator at the set position of the first acceleration indicator in the acceleration display area.
[0122] This embodiment also provides an electronic device, including a processor and a memory. The memory stores machine-executable instructions that can be executed by the processor. The processor executes the machine-executable instructions to implement the above-mentioned operation control method for the game racing car, for example:
[0123] In response to the start event of the target racing vehicle, a start parameter indicator is displayed; in response to a first specified operation, a first acceleration parameter of the target racing vehicle is determined, and the start parameter indicator is updated based on the first acceleration parameter; the first acceleration parameter indicates the engine speed acceleration of the target racing vehicle; the updated start parameter indicator indicates the first acceleration parameter; in response to a second specified operation, a second acceleration parameter of the target racing vehicle is determined, and the start parameter indicator is updated based on the second acceleration parameter; the second acceleration parameter indicates the handbrake acceleration of the target racing vehicle; the updated start parameter indicator indicates both the first and second acceleration parameters; in response to the start end event of the target racing vehicle, the start acceleration parameter of the target racing vehicle is determined based on the first and second acceleration parameters, and the target racing vehicle is controlled to enter the driving state according to the start acceleration parameter.
[0124] The above method simulates the acceleration of a racing car from a standstill by simulating engine speed and handbrake acceleration, thus improving the player's gaming experience.
[0125] Optionally, the graphical user interface described above also displays an acceleration control; the step of determining a first acceleration parameter of the target racing vehicle in response to a first specified operation includes: determining the first acceleration parameter of the target racing vehicle in response to a first touch operation on the acceleration control.
[0126] Optionally, the acceleration control includes a virtual joystick and a movement area of the virtual joystick; the step of determining a first acceleration parameter of the target racing item in response to a first touch operation on the acceleration control includes: in response to a sliding operation on the virtual joystick in the movement area, determining the first acceleration parameter of the target racing item based on the trajectory length of the sliding operation.
[0127] Optionally, the step of determining the first acceleration parameter of the target racing car prop in response to the first touch operation on the acceleration control includes: starting a timer in response to the press operation on the acceleration control and obtaining a first timer result; and determining the first acceleration parameter of the target racing car prop based on the first timer result.
[0128] Optionally, the step of determining the first acceleration parameter of the target racing prop based on the first timing result includes: in response to the first timing result being less than or equal to a preset first time threshold, determining the product of the first timing result and a preset proportional parameter as the first acceleration parameter of the target racing prop; in response to the first timing result being greater than the preset first time threshold, setting the first timing result to zero; in response to the touch point of the pressed operation remaining at the acceleration control, starting timing to obtain a second timing result; and determining the first acceleration parameter of the target racing prop based on the second timing result.
[0129] Optionally, the aforementioned terminal device is equipped with an attitude parameter detection device; the step of determining the first acceleration parameter of the target racing prop in response to the first specified operation includes: in response to the first rotation operation on the terminal device, determining the first rotation angle corresponding to the first rotation operation through the attitude parameter detection device; and determining the first acceleration parameter of the target racing prop based on the first rotation angle.
[0130] Optionally, the step of determining the first acceleration parameter of the target racing prop based on the first rotation angle includes: in response to the first rotation angle entering a preset first angle range, setting the first acceleration parameter of the target racing prop to a first value; or, in response to the first rotation angle being outside the first angle range, setting the first acceleration parameter of the target racing prop to a second value.
[0131] Optionally, the aforementioned starting parameter indicator includes an acceleration display area; the step of updating the display of the starting parameter indicator based on the first acceleration parameter includes: determining a preset display size of the first acceleration indicator based on the first acceleration parameter; the display size is proportional to the first acceleration parameter; and displaying the first acceleration indicator at a specified position in the acceleration display area based on the display size of the first acceleration indicator.
[0132] Optionally, the above method further includes: displaying a first acceleration indicator in a preset first display format in response to the first acceleration parameter being within a preset first parameter range; and displaying the first acceleration indicator in a preset second display format in response to the first acceleration parameter being outside the preset first parameter range.
[0133] Optionally, the graphical user interface also displays a handbrake control; the starting event of the target racing vehicle corresponds to a timing duration; the timing duration is the timing result generated when the starting event occurs; the step of determining the second acceleration parameter of the target racing vehicle in response to the second specified operation includes: in response to a click operation on the handbrake control, determining the timing duration as the operation time of the click operation; and determining the second acceleration parameter of the target racing vehicle based on the time difference between the operation time of the click operation and a preset end time.
[0134] Optionally, the step of determining the second acceleration parameter of the target racing item based on the time difference between the operation time and the end time of the click operation includes: determining the second acceleration parameter of the target racing item as a third value when the time difference between the operation time and the end time of the click operation is less than or equal to a preset second time threshold; or, determining the second acceleration parameter of the target racing item as zero when the time difference between the operation time and the end time of the click operation is greater than the preset second time threshold.
[0135] Optionally, the aforementioned terminal device is equipped with an attitude parameter detection device; the starting event of the target racing prop corresponds to a timing duration; the timing duration is the timing result generated when the starting event occurs; the step of determining the second acceleration parameter of the target racing prop in response to the second specified operation includes: in response to the second rotation operation on the terminal device, determining the timing duration as the operation time of the second rotation operation; determining the second rotation angle corresponding to the second rotation operation through the attitude parameter detection device; and determining the second acceleration parameter of the target racing prop based on the operation time of the second rotation operation, the preset end time, and the second rotation angle.
[0136] Optionally, the step of determining the second acceleration parameter of the target racing car prop based on the operation time of the second rotation operation, the preset end time, and the second rotation angle includes: determining whether the second rotation angle enters a preset second angle range in response to the time difference between the operation time of the second rotation operation and the preset end time being less than or equal to a preset third time threshold; determining the second acceleration parameter of the target racing car prop to be a third value in response to the second rotation angle entering the preset second angle range, or determining the second acceleration parameter of the target racing car prop to be zero in response to the second rotation angle being outside the second angle range.
[0137] Optionally, the graphical user interface also displays an acceleration control; the starting event of the target racing item corresponds to a timing duration; the timing duration is the timing result generated when the starting event occurs; the first specified operation includes a long press operation on the acceleration control; the second specified operation is a continuous operation of the first specified operation; the acceleration control displays a handbrake icon when the timing duration meets a specified condition; the specified condition includes: the time difference between the timing duration and the preset end time is less than or equal to a preset fourth time threshold; the step of determining the second acceleration parameter of the target racing item in response to the second specified operation includes: in response to a sliding operation pointing to the handbrake icon from the touch point position of the long press operation on the acceleration control, determining the timing duration as the operation time of the sliding operation; and determining the second acceleration parameter of the target racing item based on the time difference between the operation time of the sliding operation and the display time of the handbrake icon.
[0138] Optionally, the step of determining the second acceleration parameter of the target racing prop based on the time difference between the operation time of the sliding operation and the display time of the handbrake indicator includes: determining the second acceleration parameter of the target racing prop to be a third value when the time difference between the operation time of the sliding operation and the display time of the handbrake indicator is less than or equal to a preset fifth time threshold; or, determining the second acceleration parameter of the target racing prop to be zero when the time difference between the operation time of the sliding operation and the display time of the handbrake indicator is greater than the preset fifth time threshold.
[0139] Optionally, the aforementioned starting parameter indicator includes an acceleration display area; the acceleration display area displays a first acceleration indicator; the second acceleration parameter is a zero or non-zero set value; the step of updating the display of the starting parameter indicator based on the second acceleration parameter includes: in response to the second acceleration parameter being a non-zero set value, a preset second acceleration indicator is displayed at the set position of the first acceleration indicator in the acceleration display area.
[0140] See Figure 17 As shown, the electronic device includes a processor 100 and a memory 101. The memory 101 stores machine-executable instructions that can be executed by the processor 100. The processor 100 executes the machine-executable instructions to implement the above-described operation control method for the game racing car.
[0141] Furthermore, Figure 17 The electronic device shown also includes a bus 102 and a communication interface 103, with the processor 100, the communication interface 103 and the memory 101 connected via the bus 102.
[0142] The memory 101 may include high-speed random access memory (RAM) or non-volatile memory, such as at least one disk storage device. Communication between this system network element and at least one other network element is achieved through at least one communication interface 103 (which can be wired or wireless), such as the Internet, wide area network, local area network, or metropolitan area network. The bus 102 may be an ISA bus, PCI bus, or EISA bus, etc. The bus can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 17 The symbol is represented by a single double-headed arrow, but this does not mean that there is only one bus or one type of bus.
[0143] Processor 100 may be an integrated circuit chip with signal processing capabilities. In implementation, each step of the above method can be completed by the integrated logic circuitry in the hardware of processor 100 or by instructions in software form. Processor 100 may be a general-purpose processor, including a Central Processing Unit (CPU), a Network Processor (NP), etc.; it may 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 gate or transistor logic devices, or discrete hardware components. It can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this invention. The general-purpose processor may be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of this invention can be directly manifested as execution by a hardware decoding processor, or execution by a combination of hardware and software modules in the decoding processor. The software module can reside in a readily available storage medium in the art, such as random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, or registers. This storage medium is located in memory 101, and the processor 100 reads the information from memory 101 and, in conjunction with its hardware, completes the steps of the method described in the foregoing embodiments.
[0144] This embodiment also provides a machine-readable storage medium storing machine-executable instructions. When the machine-executable instructions are called and executed by the processor, the machine-executable instructions cause the processor to implement the above-described operation control method for the game racing car.
[0145] The present invention provides a method, apparatus, and electronic device for controlling a racing game, including a computer-readable storage medium storing program code. The instructions included in the program code can be used to execute the methods described in the preceding method embodiments, for example:
[0146] In response to the start event of the target racing vehicle, a start parameter indicator is displayed; in response to a first specified operation, a first acceleration parameter of the target racing vehicle is determined, and the start parameter indicator is updated based on the first acceleration parameter; the first acceleration parameter indicates the engine speed acceleration of the target racing vehicle; the updated start parameter indicator indicates the first acceleration parameter; in response to a second specified operation, a second acceleration parameter of the target racing vehicle is determined, and the start parameter indicator is updated based on the second acceleration parameter; the second acceleration parameter indicates the handbrake acceleration of the target racing vehicle; the updated start parameter indicator indicates both the first and second acceleration parameters; in response to the start end event of the target racing vehicle, the start acceleration parameter of the target racing vehicle is determined based on the first and second acceleration parameters, and the target racing vehicle is controlled to enter the driving state according to the start acceleration parameter.
[0147] The above method simulates the acceleration of a racing car from a standstill by simulating engine speed and handbrake acceleration, thus improving the player's gaming experience.
[0148] Optionally, the graphical user interface described above also displays an acceleration control; the step of determining a first acceleration parameter of the target racing vehicle in response to a first specified operation includes: determining the first acceleration parameter of the target racing vehicle in response to a first touch operation on the acceleration control.
[0149] Optionally, the acceleration control includes a virtual joystick and a movement area of the virtual joystick; the step of determining a first acceleration parameter of the target racing item in response to a first touch operation on the acceleration control includes: in response to a sliding operation on the virtual joystick in the movement area, determining the first acceleration parameter of the target racing item based on the trajectory length of the sliding operation.
[0150] Optionally, the step of determining the first acceleration parameter of the target racing car prop in response to the first touch operation on the acceleration control includes: starting a timer in response to the press operation on the acceleration control and obtaining a first timer result; and determining the first acceleration parameter of the target racing car prop based on the first timer result.
[0151] Optionally, the step of determining the first acceleration parameter of the target racing prop based on the first timing result includes: in response to the first timing result being less than or equal to a preset first time threshold, determining the product of the first timing result and a preset proportional parameter as the first acceleration parameter of the target racing prop; in response to the first timing result being greater than the preset first time threshold, setting the first timing result to zero; in response to the touch point of the pressed operation remaining at the acceleration control, starting timing to obtain a second timing result; and determining the first acceleration parameter of the target racing prop based on the second timing result.
[0152] Optionally, the aforementioned terminal device is equipped with an attitude parameter detection device; the step of determining the first acceleration parameter of the target racing prop in response to the first specified operation includes: in response to the first rotation operation on the terminal device, determining the first rotation angle corresponding to the first rotation operation through the attitude parameter detection device; and determining the first acceleration parameter of the target racing prop based on the first rotation angle.
[0153] Optionally, the step of determining the first acceleration parameter of the target racing prop based on the first rotation angle includes: in response to the first rotation angle entering a preset first angle range, setting the first acceleration parameter of the target racing prop to a first value; or, in response to the first rotation angle being outside the first angle range, setting the first acceleration parameter of the target racing prop to a second value.
[0154] Optionally, the aforementioned starting parameter indicator includes an acceleration display area; the step of updating the display of the starting parameter indicator based on the first acceleration parameter includes: determining a preset display size of the first acceleration indicator based on the first acceleration parameter; the display size is proportional to the first acceleration parameter; and displaying the first acceleration indicator at a specified position in the acceleration display area based on the display size of the first acceleration indicator.
[0155] Optionally, the above method further includes: displaying a first acceleration indicator in a preset first display format in response to the first acceleration parameter being within a preset first parameter range; and displaying the first acceleration indicator in a preset second display format in response to the first acceleration parameter being outside the preset first parameter range.
[0156] Optionally, the graphical user interface also displays a handbrake control; the starting event of the target racing vehicle corresponds to a timing duration; the timing duration is the timing result generated when the starting event occurs; the step of determining the second acceleration parameter of the target racing vehicle in response to the second specified operation includes: in response to a click operation on the handbrake control, determining the timing duration as the operation time of the click operation; and determining the second acceleration parameter of the target racing vehicle based on the time difference between the operation time of the click operation and a preset end time.
[0157] Optionally, the step of determining the second acceleration parameter of the target racing item based on the time difference between the operation time and the end time of the click operation includes: determining the second acceleration parameter of the target racing item as a third value when the time difference between the operation time and the end time of the click operation is less than or equal to a preset second time threshold; or, determining the second acceleration parameter of the target racing item as zero when the time difference between the operation time and the end time of the click operation is greater than the preset second time threshold.
[0158] Optionally, the aforementioned terminal device is equipped with an attitude parameter detection device; the starting event of the target racing prop corresponds to a timing duration; the timing duration is the timing result generated when the starting event occurs; the step of determining the second acceleration parameter of the target racing prop in response to the second specified operation includes: in response to the second rotation operation on the terminal device, determining the timing duration as the operation time of the second rotation operation; determining the second rotation angle corresponding to the second rotation operation through the attitude parameter detection device; and determining the second acceleration parameter of the target racing prop based on the operation time of the second rotation operation, the preset end time, and the second rotation angle.
[0159] Optionally, the step of determining the second acceleration parameter of the target racing car prop based on the operation time of the second rotation operation, the preset end time, and the second rotation angle includes: determining whether the second rotation angle enters a preset second angle range in response to the time difference between the operation time of the second rotation operation and the preset end time being less than or equal to a preset third time threshold; determining the second acceleration parameter of the target racing car prop to be a third value in response to the second rotation angle entering the preset second angle range, or determining the second acceleration parameter of the target racing car prop to be zero in response to the second rotation angle being outside the second angle range.
[0160] Optionally, the graphical user interface also displays an acceleration control; the starting event of the target racing item corresponds to a timing duration; the timing duration is the timing result generated when the starting event occurs; the first specified operation includes a long press operation on the acceleration control; the second specified operation is a continuous operation of the first specified operation; the acceleration control displays a handbrake icon when the timing duration meets a specified condition; the specified condition includes: the time difference between the timing duration and the preset end time is less than or equal to a preset fourth time threshold; the step of determining the second acceleration parameter of the target racing item in response to the second specified operation includes: in response to a sliding operation pointing to the handbrake icon from the touch point position of the long press operation on the acceleration control, determining the timing duration as the operation time of the sliding operation; and determining the second acceleration parameter of the target racing item based on the time difference between the operation time of the sliding operation and the display time of the handbrake icon.
[0161] Optionally, the step of determining the second acceleration parameter of the target racing prop based on the time difference between the operation time of the sliding operation and the display time of the handbrake indicator includes: determining the second acceleration parameter of the target racing prop to be a third value when the time difference between the operation time of the sliding operation and the display time of the handbrake indicator is less than or equal to a preset fifth time threshold; or, determining the second acceleration parameter of the target racing prop to be zero when the time difference between the operation time of the sliding operation and the display time of the handbrake indicator is greater than the preset fifth time threshold.
[0162] Optionally, the aforementioned starting parameter indicator includes an acceleration display area; the acceleration display area displays a first acceleration indicator; the second acceleration parameter is a zero or non-zero set value; the step of updating the display of the starting parameter indicator based on the second acceleration parameter includes: in response to the second acceleration parameter being a non-zero set value, a preset second acceleration indicator is displayed at the set position of the first acceleration indicator in the acceleration display area.
[0163] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working process of the system and apparatus described above can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.
[0164] Furthermore, in the description of the embodiments of the present invention, unless otherwise explicitly specified and limited, the terms "installation," "connection," and "linking" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral connection; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; and they can refer to the internal connection of two components. Those skilled in the art can understand the specific meaning of the above terms in the present invention based on the specific circumstances.
[0165] If the aforementioned functions are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0166] In the description of this invention, it should be noted that the terms "center," "upper," "lower," "left," "right," "vertical," "horizontal," "inner," and "outer," etc., indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings. They are used only for the convenience of describing the invention and for simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, they should not be construed as limitations on the invention. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and should not be construed as indicating or implying relative importance.
[0167] Finally, it should be noted that the above embodiments are merely specific implementations of the present invention, used to illustrate the technical solutions of the present invention, and not to limit it. The scope of protection of the present invention is not limited thereto. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that any person skilled in the art can still modify or easily conceive of changes to the technical solutions described in the foregoing embodiments within the technical scope disclosed in the present invention, or make equivalent substitutions for some of the technical features; and these modifications, changes, or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be covered within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.
Claims
1. A method for controlling a racing game, characterized in that, A graphical user interface is provided through the terminal device; The graphical user interface displays the game scene where the target racing prop is located; the method includes: In response to the starting event of the target racing vehicle, a starting parameter indicator is displayed; In response to a first specified operation, a first acceleration parameter of the target racing vehicle is determined, and the starting parameter indicator is updated based on the first acceleration parameter; the first acceleration parameter indicates the rotational acceleration of the target racing vehicle; the updated starting parameter indicator indicates the first acceleration parameter. In response to the second specified operation, a second acceleration parameter of the target racing vehicle is determined, and the starting parameter indicator is updated based on the second acceleration parameter; the second acceleration parameter indicates the handbrake acceleration of the target racing vehicle; the updated starting parameter indicator indicates both the first acceleration parameter and the second acceleration parameter. In response to the start-end event of the target racing prop, based on the first acceleration parameter and the second acceleration parameter, the start acceleration parameter of the target racing prop is determined, and the target racing prop is controlled to enter the driving state according to the start acceleration parameter; The starting event of the target racing prop corresponds to the timing duration; the timing duration is the timing result generated when the starting event occurs; The step of determining the second acceleration parameter of the target racing prop in response to the second specified operation includes: In response to the second specified operation, the timing duration is determined as the operation time of the second specified operation; The time difference between the operation time of the second specified operation and the preset end time is determined, and based on the time difference, the second acceleration parameter of the target racing prop is determined.
2. The method according to claim 1, characterized in that, The graphical user interface also displays acceleration controls; The step of determining a first acceleration parameter of the target racing vehicle in response to a first specified operation includes: In response to a first touch operation on the acceleration control, a first acceleration parameter of the target racing vehicle is determined.
3. The method according to claim 2, characterized in that, The acceleration control includes a virtual joystick and a movement area for the virtual joystick; The step of determining a first acceleration parameter of the target racing vehicle in response to a first touch operation on the acceleration control includes: In response to a sliding operation applied to the virtual joystick in the movement area, a first acceleration parameter of the target racing prop is determined based on the trajectory length of the sliding operation.
4. The method according to claim 3, characterized in that, The step of determining a first acceleration parameter of the target racing vehicle in response to a first touch operation on the acceleration control includes: In response to a press operation on the acceleration control, a timer is started, and a first timer result is obtained; Based on the first timing result, the first acceleration parameter of the target racing prop is determined.
5. The method according to claim 4, characterized in that, The step of determining the first acceleration parameter of the target racing prop based on the first timing result includes: In response to the first timing result being less than or equal to a preset first time threshold, the product of the first timing result and a preset proportional parameter is determined as the first acceleration parameter of the target racing prop; In response to the first timing result being greater than a preset first time threshold, the first timing result is set to zero; In response to the press operation, the touch point stays on the acceleration control, and timing begins to obtain a second timing result; Based on the second timing result, the first acceleration parameter of the target racing prop is determined.
6. The method according to claim 1, characterized in that, The terminal device is equipped with an attitude parameter detection device; The step of determining a first acceleration parameter of the target racing vehicle in response to a first specified operation includes: In response to a first rotation operation on the terminal device, the first rotation angle corresponding to the first rotation operation is determined by the attitude parameter detection device. Based on the first rotation angle, the first acceleration parameter of the target racing car prop is determined.
7. The method according to claim 6, characterized in that, The step of determining the first acceleration parameter of the target racing car prop based on the first rotation angle includes: In response to the first rotation angle entering a preset first angle range, the first acceleration parameter of the target racing prop is set to a first value; or, In response to the first rotation angle being outside the first angle range, the first acceleration parameter of the target racing prop is set to a second value.
8. The method according to claim 1, characterized in that, The starting parameter indicator includes an acceleration display area; The step of updating and displaying the start-up parameter indicator based on the first acceleration parameter includes: Based on the first acceleration parameter, a preset display size for a first acceleration indicator is determined; the display size is proportional to the first acceleration parameter. Based on the display size of the first acceleration indicator, the first acceleration indicator is displayed at a designated location in the acceleration display area.
9. The method according to claim 8, characterized in that, The method further includes: In response to the first acceleration parameter being within a preset first parameter range, the first acceleration indicator is displayed in a preset first display format; In response to the first acceleration parameter being outside a preset first parameter range, the first acceleration indicator is displayed in a preset second display format.
10. The method according to claim 1, characterized in that, The graphical user interface also displays handbrake controls; The step of determining the second acceleration parameter of the target racing prop in response to the second specified operation includes: In response to a click operation on the handbrake control, the timing duration is determined as the operation time of the click operation; Based on the operation time of the click operation and the preset end time, the second acceleration parameter of the target racing prop is determined.
11. The method according to claim 10, characterized in that, The step of determining the second acceleration parameter of the target racing car prop based on the time difference between the operation time and the end time of the click operation includes: In response to the time difference between the click operation and the end time being less than or equal to a preset second time threshold, the second acceleration parameter of the target racing prop is determined to be a third value; If the time difference between the click operation and the end time is greater than a preset second time threshold, the second acceleration parameter of the target racing car prop is determined to be zero.
12. The method according to claim 1, characterized in that, The terminal device is equipped with an attitude parameter detection device; The step of determining the second acceleration parameter of the target racing prop in response to the second specified operation includes: In response to a second rotation operation on the terminal device, the timing duration is determined as the operation time of the second rotation operation; The second rotation angle corresponding to the second rotation operation is determined by the attitude parameter detection device. Based on the operation time of the second rotation operation, the preset end time, and the second rotation angle, the second acceleration parameter of the target racing car prop is determined.
13. The method according to claim 12, characterized in that, The step of determining the second acceleration parameter of the target racing prop based on the operation time of the second rotation operation, the preset end time, and the second rotation angle includes: In response to the time difference between the operation time of the second rotation operation and the preset end time being less than or equal to a preset third time threshold, it is determined whether the second rotation angle enters a preset second angle range; In response to the second rotation angle entering a preset second angle range, the second acceleration parameter of the target racing prop is determined to be a third value; or, in response to the second rotation angle being outside the second angle range, the second acceleration parameter of the target racing prop is determined to be zero.
14. The method according to claim 1, characterized in that, The graphical user interface also displays an acceleration control; the first specified operation includes a long press operation on the acceleration control; the second specified operation is a continuous operation of the first specified operation; the acceleration control displays a handbrake icon when the timing duration meets a specified condition; the specified condition includes: the time difference between the timing duration and the preset end time is less than or equal to a preset fourth time threshold. The step of determining the second acceleration parameter of the target racing prop in response to the second specified operation includes: In response to a sliding operation pointing to the handbrake icon, starting from the touch point position of the long press operation on the acceleration control, the timing duration is determined as the operation time of the sliding operation; The second acceleration parameter of the target racing car prop is determined based on the time difference between the operation time of the sliding operation and the display time of the handbrake indicator.
15. The method according to claim 14, characterized in that, The step of determining the second acceleration parameter of the target racing vehicle based on the time difference between the operation time of the sliding operation and the display time of the handbrake indicator includes: In response to the time difference between the operation time of the sliding operation and the display time of the handbrake indicator being less than or equal to a preset fifth time threshold, the second acceleration parameter of the target racing prop is determined to be the third value; If the time difference between the operation time of the sliding operation and the display time of the handbrake indicator is greater than a preset fifth time threshold, the second acceleration parameter of the target racing prop is determined to be zero.
16. The method according to claim 1, characterized in that, The starting parameter indicator includes an acceleration display area; the acceleration display shows a first acceleration indicator; the second acceleration parameter is a set value that is zero or non-zero; The step of updating the display of the start-up parameter indicator based on the second acceleration parameter includes: In response to the second acceleration parameter being a non-zero set value, a preset second acceleration indicator is displayed at the set position of the first acceleration indicator in the acceleration display area.
17. A control device for a racing game, characterized in that, A graphical user interface is provided via a terminal device; the graphical user interface displays the game scene where the target racing prop is located; the device includes: The starting parameter indicator display module is used to respond to the starting event of the target racing vehicle and display the starting parameter indicator. The first acceleration determination module is used to respond to a first specified operation, determine the first acceleration parameter of the target racing vehicle, and update the starting parameter indicator based on the first acceleration parameter; the first acceleration parameter indicates the rotational acceleration of the target racing vehicle; the updated starting parameter indicator indicates the first acceleration parameter; The second acceleration determination module is used to respond to a second specified operation, determine the second acceleration parameter of the target racing vehicle, and update the starting parameter indicator based on the second acceleration parameter; the second acceleration parameter indicates the handbrake acceleration of the target racing vehicle; the updated starting parameter indicator indicates both the first acceleration parameter and the second acceleration parameter. The starting control module is used to respond to the starting end event of the target racing vehicle, determine the starting acceleration parameter of the target racing vehicle based on the first acceleration parameter and the second acceleration parameter, and control the target racing vehicle to enter the driving state according to the starting acceleration parameter; The starting event of the target racing prop corresponds to the timing duration; the timing duration is the timing result generated when the starting event occurs; The second acceleration determination module is also used for: In response to the second specified operation, the timing duration is determined as the operation time of the second specified operation; The time difference between the operation time of the second specified operation and the preset end time is determined, and based on the time difference, the second acceleration parameter of the target racing prop is determined.
18. An electronic device, characterized in that, It includes a processor and a memory, the memory storing machine-executable instructions that can be executed by the processor, the processor executing the machine-executable instructions to implement the game racing car operation control method according to any one of claims 1-16.
19. A machine-readable storage medium, characterized in that, The machine-readable storage medium stores machine-executable instructions, which, when invoked and executed by a processor, cause the processor to implement the operation control method for the game racing car according to any one of claims 1-16.