CN113082691A - Racing car game control method, device, equipment and readable storage medium - Google Patents

Racing car game control method, device, equipment and readable storage medium Download PDF

Info

Publication number
CN113082691A
CN113082691A CN202110245478.0A CN202110245478A CN113082691A CN 113082691 A CN113082691 A CN 113082691A CN 202110245478 A CN202110245478 A CN 202110245478A CN 113082691 A CN113082691 A CN 113082691A
Authority
CN
China
Prior art keywords
interval
numerical
racing game
value
depth value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110245478.0A
Other languages
Chinese (zh)
Other versions
CN113082691B (en
Inventor
陈智磊
乔文龙
艾洋
马东
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Dongfeng Motor Corp
Original Assignee
Dongfeng Motor Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Dongfeng Motor Corp filed Critical Dongfeng Motor Corp
Priority to CN202110245478.0A priority Critical patent/CN113082691B/en
Publication of CN113082691A publication Critical patent/CN113082691A/en
Application granted granted Critical
Publication of CN113082691B publication Critical patent/CN113082691B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/20Input arrangements for video game devices
    • A63F13/24Constructional details thereof, e.g. game controllers with detachable joystick handles
    • A63F13/245Constructional details thereof, e.g. game controllers with detachable joystick handles specially adapted to a particular type of game, e.g. steering wheels
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/40Processing input control signals of video game devices, e.g. signals generated by the player or derived from the environment
    • A63F13/42Processing input control signals of video game devices, e.g. signals generated by the player or derived from the environment by mapping the input signals into game commands, e.g. mapping the displacement of a stylus on a touch screen to the steering angle of a virtual vehicle
    • A63F13/422Processing input control signals of video game devices, e.g. signals generated by the player or derived from the environment by mapping the input signals into game commands, e.g. mapping the displacement of a stylus on a touch screen to the steering angle of a virtual vehicle automatically for the purpose of assisting the player, e.g. automatic braking in a driving game
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/80Special adaptations for executing a specific game genre or game mode
    • A63F13/803Driving vehicles or craft, e.g. cars, airplanes, ships, robots or tanks

Abstract

The invention provides a racing game control method, a racing game control device, racing game equipment and a readable storage medium. The method comprises the following steps: acquiring a brake pedal depth value or an accelerator pedal depth value acquired by a vehicle controller; triggering a corresponding braking instruction according to a numerical value interval in which the depth value of the brake pedal is positioned, or triggering a corresponding accelerating instruction according to a numerical value interval in which the depth value of the accelerator pedal is positioned; and carrying out braking control on the vehicle in the racing game according to the braking instruction, or carrying out acceleration control on the vehicle in the racing game according to the acceleration instruction. According to the invention, the user controls the real vehicle, so that the acceleration and deceleration of the vehicle in the racing game are controlled, the user can experience real driving feeling in the racing game, and the interest of the game is improved.

Description

Racing car game control method, device, equipment and readable storage medium
Technical Field
The invention relates to the field of games, in particular to a racing car game control method, device and equipment and a readable storage medium.
Background
With the popularization of electronic devices, online games have been rapidly developed. The types of online games are various, such as a policy type, a role playing type, a race type, and the like. Among them, the racing game in the racing type is favored by most people because of its high competitive nature.
The existing racing game generally realizes control over vehicles in the game based on operation of a user on virtual keys or physical keys, and the mode is difficult for the user to experience real driving feeling, so that the vehicle is not well controlled and has poor interestingness.
Disclosure of Invention
The invention mainly aims to provide a racing game control method, a racing game control device, racing game control equipment and a readable storage medium, and aims to solve the technical problem that in the prior art, a control mode of a vehicle in a game is difficult for a user to experience real driving feeling, so that the interestingness is poor.
In a first aspect, the present invention provides a method for controlling a racing game, the method comprising:
acquiring a brake pedal depth value or an accelerator pedal depth value acquired by a vehicle controller;
triggering a corresponding braking instruction according to a numerical value interval in which the depth value of the brake pedal is positioned, or triggering a corresponding accelerating instruction according to a numerical value interval in which the depth value of the accelerator pedal is positioned;
and carrying out braking control on the vehicle in the racing game according to the braking instruction, or carrying out acceleration control on the vehicle in the racing game according to the acceleration instruction.
Optionally, the step of obtaining a brake pedal depth value or an accelerator pedal depth value collected by the vehicle controller includes:
and a control interface based on the racing game receives the depth value of the brake pedal or the depth value of the accelerator pedal which is sent by a controller local area network and collected by the whole vehicle controller.
Optionally, the step of triggering a corresponding braking instruction according to the numerical value interval where the depth value of the brake pedal is located includes:
when the depth value of the brake pedal is in a first numerical value interval, triggering a slow braking instruction;
when the depth value of the brake pedal is in a second numerical value interval, triggering an emergency braking instruction;
wherein the lower limit value of the second value interval is larger than the upper limit value of the first value interval.
Optionally, the step of triggering a corresponding acceleration instruction according to the numerical value interval where the depth value of the accelerator pedal is located includes:
when the depth value of the accelerator pedal is in a third numerical value interval, triggering a slow acceleration instruction;
when the depth value of the accelerator pedal is in a fourth numerical value interval, triggering an emergency acceleration instruction;
wherein, the lower limit value of the fourth numerical interval is larger than the upper limit value of the third numerical interval.
Optionally, before the step of obtaining a brake pedal depth value or an accelerator pedal depth value collected by the vehicle controller, the method further includes:
the method comprises the steps of obtaining personal information of a driver, and determining a first numerical interval, a second numerical interval, a third numerical interval and a fourth numerical interval according to the personal information, wherein the personal information comprises one or more of height, weight, age, driving style and gender.
Optionally, the driving style includes an aggressive driving style and a smooth driving style, and the lower limit value of the second numerical value interval and the lower limit value of the fourth numerical value interval corresponding to the aggressive driving style are lower than the smooth driving style.
Optionally, when the height is higher than the preset height, the lower limit value of the corresponding second numerical value interval or fourth numerical value interval is higher than that when the height is smaller than the preset height; when the weight is above the preset weight, the lower limit value of the corresponding second numerical value interval or fourth numerical value interval is higher than that when the weight is smaller than the preset weight; the lower limit value of the corresponding second numerical value interval or the fourth numerical value interval is higher when the age is below the preset age than when the age is greater than the preset age; the lower limit of the corresponding second or fourth interval of values is higher for males than for females.
In a second aspect, the present invention also provides a racing game control apparatus comprising:
the acquisition module is used for acquiring a brake pedal depth value or an accelerator pedal depth value acquired by the vehicle controller;
the triggering module is used for triggering a corresponding braking instruction according to a numerical value interval where the depth value of the brake pedal is located, or triggering a corresponding acceleration instruction according to a numerical value interval where the depth value of the acceleration pedal is located;
and the control module is used for carrying out braking control on the vehicle in the racing game according to the braking instruction or carrying out acceleration control on the vehicle in the racing game according to the acceleration instruction.
In a third aspect, the present invention also provides a racing game control apparatus comprising a processor, a memory, and a racing game control program stored on the memory and executable by the processor, wherein the racing game control program, when executed by the processor, implements the steps of the racing game control method as described above.
In a fourth aspect, the present invention further provides a readable storage medium, on which a racing game control program is stored, wherein the racing game control program, when executed by a processor, implements the steps of the racing game control method as described above.
In the invention, the depth value of a brake pedal or the depth value of an accelerator pedal collected by a vehicle controller is obtained; triggering a corresponding braking instruction according to a numerical value interval in which the depth value of the brake pedal is positioned, or triggering a corresponding accelerating instruction according to a numerical value interval in which the depth value of the accelerator pedal is positioned; and carrying out braking control on the vehicle in the racing game according to the braking instruction, or carrying out acceleration control on the vehicle in the racing game according to the acceleration instruction. According to the invention, the user controls the real vehicle, so that the acceleration and deceleration of the vehicle in the racing game are controlled, the user can experience real driving feeling in the racing game, and the interest of the game is improved.
Drawings
Fig. 1 is a schematic diagram of a hardware structure of a racing game control apparatus according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart illustrating a method for controlling a racing game according to an embodiment of the present invention;
fig. 3 is a schematic diagram of functional modules of an embodiment of the racing game control device of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In a first aspect, embodiments of the present invention provide a racing game control apparatus, which may be a Personal Computer (PC), a notebook computer, a server, or other apparatuses having a data processing function.
Referring to fig. 1, fig. 1 is a schematic diagram of a hardware structure of a racing game control apparatus according to an embodiment of the present invention. In an embodiment of the present invention, the racing game control device may include a processor 1001 (e.g., a Central Processing Unit, CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. The communication bus 1002 is used for realizing connection communication among the components; the user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard); the network interface 1004 may optionally include a standard wired interface, a WIreless interface (e.g., a WI-FI interface, WI-FI interface); the memory 1005 may be a Random Access Memory (RAM) or a non-volatile memory (non-volatile memory), such as a magnetic disk memory, and the memory 1005 may optionally be a storage device independent of the processor 1001. Those skilled in the art will appreciate that the hardware configuration depicted in FIG. 1 is not intended to be limiting of the present invention, and may include more or less components than those shown, or some components in combination, or a different arrangement of components.
With continued reference to FIG. 1, the memory 1005 of FIG. 1, which is one type of computer storage medium, may include an operating system, a network communication module, a user interface module, and a racing game control program. The processor 1001 may call the racing game control program stored in the memory 1005, and execute the method for controlling the racing game according to the embodiment of the present invention.
In a second aspect, an embodiment of the present invention provides a method for controlling a racing game.
Referring to fig. 2, fig. 2 is a flow chart of an embodiment of a racing game control method of the present invention. As shown in fig. 2, the racing game control method includes:
step S10, obtaining a brake pedal depth value or an accelerator pedal depth value collected by the vehicle controller;
in this embodiment, a user operates on a real vehicle, and the user treads on a brake pedal or an accelerator pedal on the real vehicle, so that a vehicle control unit on the real vehicle acquires a brake pedal depth value or an accelerator pedal depth value, and an execution main body of the method of this embodiment acquires the brake pedal depth value or the accelerator pedal depth value acquired by the vehicle control unit.
The execution main body of the method of the embodiment may be a Personal Computer (PC), a notebook computer, a tablet PC, or a smart phone, and the execution main body establishes a network connection with the real vehicle, where the network connection may be a wireless network connection or a wired network connection, so as to receive the depth value of the brake pedal or the depth value of the accelerator pedal acquired by the vehicle controller. Of course, the execution main body may also be composed of a real vehicle and an electronic device, a network connection is established between the real vehicle and the electronic device, and the electronic device may be a Personal Computer (PC), a notebook computer, a tablet computer, a smart phone, or other devices.
Step S20, according to the value interval of the depth value of the brake pedal, triggering the corresponding brake instruction,
or triggering a corresponding acceleration instruction according to a numerical value interval where the depth value of the accelerator pedal is located;
in this embodiment, after the depth value of the brake pedal is obtained, the value interval where the depth value of the brake pedal is located is determined, so as to trigger a corresponding braking instruction. Namely, different braking instructions are triggered according to different value intervals of the depth value of the brake pedal. Similarly, after the accelerator pedal depth value is obtained, the numerical value interval where the accelerator pedal depth value is located is determined, so that a corresponding acceleration instruction is triggered. Namely, different acceleration instructions are triggered according to different numerical value intervals of the depth value of the accelerator pedal.
And step S30, performing brake control on the vehicle in the racing game according to the brake command, or performing acceleration control on the vehicle in the racing game according to the acceleration command.
In this embodiment, the braking control or the acceleration control is performed on the vehicle in the racing game according to the braking command or the acceleration command triggered in step S20. Wherein, the braking dynamics that different braking instructions correspond is different, and the acceleration dynamics that different acceleration instructions correspond is different, and the concrete value of braking dynamics and acceleration dynamics sets up according to actual conditions.
In the embodiment, the depth value of a brake pedal or the depth value of an accelerator pedal collected by the vehicle control unit is obtained; triggering a corresponding braking instruction according to a numerical value interval in which the depth value of the brake pedal is positioned, or triggering a corresponding accelerating instruction according to a numerical value interval in which the depth value of the accelerator pedal is positioned; and carrying out braking control on the vehicle in the racing game according to the braking instruction, or carrying out acceleration control on the vehicle in the racing game according to the acceleration instruction. Through this embodiment, the user is controlled real vehicle to in the cycle racing game carries out acceleration and deceleration control, makes the user experience real driving sense in the cycle racing game, has improved the recreation interest.
Further, in one embodiment, step S10 includes:
and a control interface based on the racing game receives the depth value of the brake pedal or the depth value of the accelerator pedal which is sent by a controller local area network and collected by the whole vehicle controller.
In this embodiment, the racing game software itself reserves a control interface, and the depth value of the brake pedal or the depth value of the accelerator pedal acquired by the vehicle control unit of the real vehicle is sent to the control interface of the racing game through the controller area network CAN.
Further, in one embodiment, step S20 includes:
when the depth value of the brake pedal is in a first numerical value interval, triggering a slow braking instruction; when the depth value of the brake pedal is in a second numerical value interval, triggering an emergency braking instruction; wherein the lower limit value of the second value interval is larger than the upper limit value of the first value interval.
In the embodiment, when the depth value of the brake pedal is in a first numerical value interval, a slow braking instruction is triggered; when the depth value of the brake pedal is in a second numerical value interval, triggering an emergency braking instruction; and the lower limit value of the second numerical interval is greater than the upper limit value of the first numerical interval. The first value interval and the second value interval may be set according to actual conditions, for example, the first value interval is greater than 5% and less than or equal to 55%, and the second value interval is greater than 55% and less than or equal to 100%. Correspondingly, when the emergency braking instruction is triggered, the vehicle in the racing game is subjected to braking control according to the emergency braking instruction, that is, the vehicle in the racing game is subjected to braking control according to the braking force corresponding to the emergency braking instruction, and the braking force corresponding to the emergency braking instruction is set according to actual needs, for example, set to be 5m/s2. Correspondingly, when the triggered slow braking instruction is used, the vehicle in the racing game is subjected to braking control according to the slow braking instruction, namely the vehicle in the racing game is subjected to braking control according to the braking force corresponding to the slow braking instruction, and the braking force corresponding to the slow braking instruction is set according to actual needs, for example, set to be 2m/s2. It is easy to understand that, the specific values corresponding to the braking force corresponding to the first value interval, the second value interval, the sudden braking instruction and the slow braking instruction can be flexibly adjusted according to the actual situation, and are not limited herein.
Further, in one embodiment, step S20 includes:
when the depth value of the accelerator pedal is in a third numerical value interval, triggering a slow acceleration instruction; when the depth value of the accelerator pedal is in a fourth numerical value interval, triggering an emergency acceleration instruction; wherein, the lower limit value of the fourth numerical interval is larger than the upper limit value of the third numerical interval.
In the embodiment, when the depth value of the accelerator pedal is in a third numerical value interval, a slow acceleration instruction is triggered; when the depth value of the accelerator pedal is in a fourth numerical value interval, triggering an emergency acceleration instruction; wherein the lower limit value of the fourth numerical interval is greater than the upper limit value of the third numerical interval. The third value interval and the fourth value interval may be set according to actual conditions, for example, the third value interval is greater than 6% and less than or equal to 50%, and the second value interval is greater than 50% and less than or equal to 100%. Correspondingly, when the triggered rapid acceleration instruction is a rapid acceleration instruction, the vehicle in the racing game is accelerated according to the rapid acceleration instruction, that is, the vehicle in the racing game is accelerated according to the acceleration degree corresponding to the rapid acceleration instruction, and the acceleration degree corresponding to the rapid acceleration instruction is set according to the actual requirement, for example, set to 5m/s2. Correspondingly, when the triggered slow acceleration instruction is used, the vehicle in the racing game is accelerated according to the slow acceleration instruction, namely the vehicle in the racing game is accelerated according to the acceleration corresponding to the slow acceleration instruction, and the acceleration corresponding to the slow acceleration instruction is set according to actual needs, for example, set to be 2m/s2. It is easy to understand that, the specific values corresponding to the acceleration levels corresponding to the third numerical interval, the fourth numerical interval, the rapid acceleration command and the slow acceleration command can be flexibly adjusted according to the actual situation, and are not limited herein.
Further, in an embodiment, before step S10, the method further includes:
the method comprises the steps of obtaining personal information of a driver, and determining a first numerical interval, a second numerical interval, a third numerical interval and a fourth numerical interval according to the personal information, wherein the personal information comprises one or more of height, weight, age, driving style and gender.
In this embodiment, a first numerical interval, a second numerical interval, a third numerical interval and a fourth numerical interval corresponding to different heights, weights, ages, driving styles or sexes can be preset; or a first numerical interval, a second numerical interval, a third numerical interval and a fourth numerical interval corresponding to different combinations of height, weight, age, driving style and gender are set. Therefore, after the personal information of the driver is obtained, the first numerical value interval, the second numerical value interval, the third numerical value interval and the fourth numerical value interval can be determined based on the currently received personal information according to the preset setting.
Further, in an embodiment, the driving style includes an aggressive driving style and a smooth driving style, and the aggressive driving style is lower than the smooth driving style in the corresponding lower limit value of the second numerical range and the fourth numerical range.
In this embodiment, for different drivers, the driving style of some drivers is more aggressive, and the driver prefers a feeling of rapid acceleration and rapid deceleration when driving the vehicle, while the driving style of some drivers is more smooth, and the driver prefers a feeling of slow acceleration and slow deceleration when driving the vehicle, and therefore, the corresponding first numerical value section, second numerical value section, third numerical value section, and fourth numerical value section can be set according to the driving style of the driver. For example, for a driver with a more aggressive driving style, the lower limit values of the second numerical range and the fourth numerical range are set lower, so that it is easier for the driver to trigger a sudden braking/accelerating command by depressing the brake/accelerator pedal. Similarly, for a driver with a smoother driving style, the lower limit values of the second numerical range and the fourth numerical range are set higher, so that the driver can more easily trigger a slow braking/slow acceleration command by pressing the brake/accelerator pedal. Specifically, a first numerical range, a second numerical range, a third numerical range, and a fourth numerical range corresponding to the aggressive driving style may be preset, where the first numerical range is greater than 5% and less than or equal to 30%, the second numerical range is greater than 30% and less than or equal to 100%, the third numerical range is greater than 5% and less than or equal to 30%, and the fourth numerical range is greater than 30% and less than or equal to 100%. Similarly, a first numerical range, a second numerical range, a third numerical range and a fourth numerical range corresponding to the smooth driving style are preset, wherein the first numerical range is greater than 5% and less than or equal to 70%, the second numerical range is greater than 70% and less than or equal to 100%, the third numerical range is greater than 5% and less than or equal to 70%, and the fourth numerical range is greater than 70% and less than or equal to 100%. Therefore, by acquiring the personal information of the driver, and the personal information includes the driving style of the driver, the specific numerical values of the first numerical value interval, the second numerical value interval, the third numerical value interval and the fourth numerical value interval can be set according to the personal information of the driver.
Further, in an embodiment, when the height is above the preset height, the lower limit value of the corresponding second numerical value interval or the fourth numerical value interval is higher than that of the height smaller than the preset height; when the weight is above the preset weight, the lower limit value of the corresponding second numerical value interval or fourth numerical value interval is higher than that when the weight is smaller than the preset weight; the lower limit value of the corresponding second numerical value interval or the fourth numerical value interval is higher when the age is below the preset age than when the age is greater than the preset age; the lower limit of the corresponding second or fourth interval of values is higher for males than for females.
In this embodiment, the drivers with different heights/weights/ages/sexes are considered to have different strength. A driver with a high height/a high weight/a low age/a sex male may have a greater force than a driver with a low height/a low weight/a high age/a sex female, which may more easily step on the accelerator pedal or the brake pedal to a greater depth, i.e. for a driver with a high force, he or she may only exert a smaller force on the accelerator pedal or the brake pedal but step on it to a greater depth. In this case, if the lower limit value of the second numerical range or the fourth numerical range is set to be small, the driver of this type is supposed to control the slow braking/slow acceleration of the vehicle in the racing game, but since the strength of the driver is large, the brake/acceleration pedal is likely to be depressed to a large depth, and the sudden braking/sudden acceleration command is erroneously triggered, so that the control of the vehicle is contrary to the intention, and the game experience is not good. Therefore, for a driver with height above the preset height/weight above the preset weight/age below the preset age/gender male, the lower limit value of the second numerical range or the fourth numerical range may be slightly increased. For the female drivers whose height is less than the preset height/weight is less than the preset weight/age is greater than the preset years/gender, the lower limit value of the second numerical interval or the fourth numerical interval can be slightly reduced. Specifically, a first numerical range, a second numerical range, a third numerical range and a fourth numerical range corresponding to males with height above a preset height, weight below a preset age, gender above a preset age are preset, wherein the first numerical range is greater than 5% and less than or equal to 70%, the second numerical range is greater than 70% and less than or equal to 100%, the third numerical range is greater than 5% and less than or equal to 70%, and the fourth numerical range is greater than 70% and less than or equal to 100%. Similarly, a first numerical interval, a second numerical interval, a third numerical interval and a fourth numerical interval corresponding to the female are preset, wherein the height/weight smaller than the preset height/age larger than the preset years/gender is greater than or equal to 55%, the second numerical interval is greater than or equal to 55% and less than or equal to 100%, the third numerical interval is greater than or equal to 5% and less than or equal to 55%, and the fourth numerical interval is greater than or equal to 55% and less than or equal to 100%. Thus, by acquiring the personal information of the driver, and when any one of the height, the weight, the age and the sex is included in the personal information, specific numerical values of the first numerical value interval, the second numerical value interval, the third numerical value interval and the fourth numerical value interval can be set according to the personal information of the driver.
Of course, it is also possible to combine a plurality of types of height, weight, age, driving style, and sex, and preset a first numerical range, a second numerical range, a third numerical range, and a fourth numerical range corresponding to each combination. Therefore, after the personal information of the driver is acquired, and the personal information includes multiple kinds of height, weight, age, driving style and gender, the first numerical interval, the second numerical interval, the third numerical interval and the fourth numerical interval corresponding to the currently acquired personal information of the driver can be determined according to the preset first numerical interval, the preset second numerical interval, the preset third numerical interval and the preset fourth numerical interval corresponding to each combination.
In a third aspect, an embodiment of the present invention further provides a racing game control device.
Referring to fig. 3, fig. 3 is a schematic diagram of functional modules of an embodiment of the racing game control device of the present invention. As shown in fig. 3, the racing game control device includes:
the acquiring module 10 is used for acquiring a brake pedal depth value or an accelerator pedal depth value acquired by the vehicle controller;
the triggering module 20 is configured to trigger a corresponding braking instruction according to a value range where the depth value of the brake pedal is located, or trigger a corresponding acceleration instruction according to a value range where the depth value of the acceleration pedal is located;
and the control module 30 is configured to perform braking control on the vehicle in the racing game according to the braking instruction, or perform acceleration control on the vehicle in the racing game according to the acceleration instruction.
Further, in an embodiment, the obtaining module 10 is configured to:
and a control interface based on the racing game receives the depth value of the brake pedal or the depth value of the accelerator pedal which is sent by a controller local area network and collected by the whole vehicle controller.
Further, in an embodiment, the triggering module 20 is configured to:
when the depth value of the brake pedal is in a first numerical value interval, triggering a slow braking instruction;
when the depth value of the brake pedal is in a second numerical value interval, triggering an emergency braking instruction;
wherein the lower limit value of the second value interval is larger than the upper limit value of the first value interval.
Further, in an embodiment, the triggering module 20 is configured to:
when the depth value of the accelerator pedal is in a third numerical value interval, triggering a slow acceleration instruction;
when the depth value of the accelerator pedal is in a fourth numerical value interval, triggering an emergency acceleration instruction;
wherein, the lower limit value of the fourth numerical interval is larger than the upper limit value of the third numerical interval.
Further, in an embodiment, the racing game control apparatus further includes a determining module, configured to:
the method comprises the steps of obtaining personal information of a driver, and determining a first numerical interval, a second numerical interval, a third numerical interval and a fourth numerical interval according to the personal information, wherein the personal information comprises one or more of height, weight, age, driving style and gender.
Further, in an embodiment, the driving style includes an aggressive driving style and a smooth driving style, and the aggressive driving style is lower than the smooth driving style in the corresponding lower limit value of the second numerical range and the fourth numerical range.
Further, in an embodiment, when the height is above the preset height, the lower limit value of the corresponding second numerical value interval or the fourth numerical value interval is higher than that of the height smaller than the preset height; when the weight is above the preset weight, the lower limit value of the corresponding second numerical value interval or fourth numerical value interval is higher than that when the weight is smaller than the preset weight; the lower limit value of the corresponding second numerical value interval or the fourth numerical value interval is higher when the age is below the preset age than when the age is greater than the preset age; the lower limit of the corresponding second or fourth interval of values is higher for males than for females.
The function implementation of each module in the racing game control device corresponds to each step in the embodiment of the racing game control method, and the functions and implementation processes are not described in detail herein.
In a fourth aspect, the embodiment of the present invention further provides a readable storage medium.
The readable storage medium of the invention stores a racing game control program, and when the racing game control program is executed by a processor, the following steps are realized:
acquiring a brake pedal depth value or an accelerator pedal depth value acquired by a vehicle controller;
triggering a corresponding braking instruction according to a numerical value interval in which the depth value of the brake pedal is positioned, or triggering a corresponding accelerating instruction according to a numerical value interval in which the depth value of the accelerator pedal is positioned;
and carrying out braking control on the vehicle in the racing game according to the braking instruction, or carrying out acceleration control on the vehicle in the racing game according to the acceleration instruction.
Further, in an embodiment, when the processor executes the racing game control program, the following steps are further implemented:
and a control interface based on the racing game receives the depth value of the brake pedal or the depth value of the accelerator pedal which is sent by a controller local area network and collected by the whole vehicle controller.
Further, in an embodiment, when the processor executes the racing game control program, the following steps are further implemented:
when the depth value of the brake pedal is in a first numerical value interval, triggering a slow braking instruction;
when the depth value of the brake pedal is in a second numerical value interval, triggering an emergency braking instruction;
wherein the lower limit value of the second value interval is larger than the upper limit value of the first value interval.
Further, in an embodiment, when the processor executes the racing game control program, the following steps are further implemented:
when the depth value of the accelerator pedal is in a third numerical value interval, triggering a slow acceleration instruction;
when the depth value of the accelerator pedal is in a fourth numerical value interval, triggering an emergency acceleration instruction;
wherein, the lower limit value of the fourth numerical interval is larger than the upper limit value of the third numerical interval.
Further, in an embodiment, when the processor executes the racing game control program, the following steps are further implemented:
the method comprises the steps of obtaining personal information of a driver, and determining a first numerical interval, a second numerical interval, a third numerical interval and a fourth numerical interval according to the personal information, wherein the personal information comprises one or more of height, weight, age, driving style and gender.
Further, in an embodiment, the driving style includes an aggressive driving style and a smooth driving style, and the aggressive driving style is lower than the smooth driving style in the corresponding lower limit value of the second numerical range and the fourth numerical range.
Further, in an embodiment, when the height is above the preset height, the lower limit value of the corresponding second numerical value interval or the fourth numerical value interval is higher than that of the height smaller than the preset height; when the weight is above the preset weight, the lower limit value of the corresponding second numerical value interval or fourth numerical value interval is higher than that when the weight is smaller than the preset weight; the lower limit value of the corresponding second numerical value interval or the fourth numerical value interval is higher when the age is below the preset age than when the age is greater than the preset age; the lower limit of the corresponding second or fourth interval of values is higher for males than for females.
The method for implementing the racing game control program when executed may refer to each embodiment of the method for controlling the racing game of the present invention, and will not be described herein again.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for causing a terminal device to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A racing game control method is characterized by comprising the following steps:
acquiring a brake pedal depth value or an accelerator pedal depth value acquired by a vehicle controller;
triggering a corresponding braking instruction according to the numerical value interval of the depth value of the brake pedal,
or triggering a corresponding acceleration instruction according to a numerical value interval where the depth value of the accelerator pedal is located;
and carrying out braking control on the vehicle in the racing game according to the braking instruction, or carrying out acceleration control on the vehicle in the racing game according to the acceleration instruction.
2. The racing game control method of claim 1, wherein the step of obtaining a brake pedal depth value or an accelerator pedal depth value collected by the vehicle controller comprises:
and a control interface based on the racing game receives the depth value of the brake pedal or the depth value of the accelerator pedal which is sent by a controller local area network and collected by the whole vehicle controller.
3. The method for controlling a racing game of claim 1, wherein the step of triggering a corresponding braking command according to the value range of the depth value of the brake pedal comprises:
when the depth value of the brake pedal is in a first numerical value interval, triggering a slow braking instruction;
when the depth value of the brake pedal is in a second numerical value interval, triggering an emergency braking instruction;
wherein the lower limit value of the second value interval is larger than the upper limit value of the first value interval.
4. The racing game control method of claim 3, wherein the step of triggering a corresponding acceleration command according to the value range of the depth value of the accelerator pedal comprises:
when the depth value of the accelerator pedal is in a third numerical value interval, triggering a slow acceleration instruction;
when the depth value of the accelerator pedal is in a fourth numerical value interval, triggering an emergency acceleration instruction;
wherein, the lower limit value of the fourth numerical interval is larger than the upper limit value of the third numerical interval.
5. The racing game control method of claim 4, wherein before the step of obtaining the brake pedal depth value or the accelerator pedal depth value collected by the vehicle controller, further comprising:
the method comprises the steps of obtaining personal information of a driver, and determining a first numerical interval, a second numerical interval, a third numerical interval and a fourth numerical interval according to the personal information, wherein the personal information comprises one or more of height, weight, age, driving style and gender.
6. The racing game control method of claim 5, wherein the driving styles include an aggressive driving style and a smooth driving style, and the aggressive driving style has a lower limit value of the second numerical range and the fourth numerical range than the smooth driving style.
7. The method as claimed in claim 5, wherein the height is higher than the predetermined height than the height is smaller than the predetermined height, and the lower limit value of the corresponding second or fourth value range is higher; when the weight is above the preset weight, the lower limit value of the corresponding second numerical value interval or fourth numerical value interval is higher than that when the weight is smaller than the preset weight; the lower limit value of the corresponding second numerical value interval or the fourth numerical value interval is higher when the age is below the preset age than when the age is greater than the preset age; the lower limit of the corresponding second or fourth interval of values is higher for males than for females.
8. A racing game control apparatus, characterized by comprising:
the acquisition module is used for acquiring a brake pedal depth value or an accelerator pedal depth value acquired by the vehicle controller;
the triggering module is used for triggering a corresponding braking instruction according to a numerical value interval where the depth value of the brake pedal is located, or triggering a corresponding acceleration instruction according to a numerical value interval where the depth value of the acceleration pedal is located;
and the control module is used for carrying out braking control on the vehicle in the racing game according to the braking instruction or carrying out acceleration control on the vehicle in the racing game according to the acceleration instruction.
9. A racing game control apparatus comprising a processor, a memory, and a racing game control program stored on the memory and executable by the processor, wherein the racing game control program when executed by the processor implements the steps of the racing game control method of any one of claims 1 to 7.
10. A readable storage medium having stored thereon a racing game control program, wherein the racing game control program when executed by a processor implements the steps of the racing game control method according to any one of claims 1 to 7.
CN202110245478.0A 2021-03-05 2021-03-05 Racing game control method, device, equipment and readable storage medium Active CN113082691B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110245478.0A CN113082691B (en) 2021-03-05 2021-03-05 Racing game control method, device, equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110245478.0A CN113082691B (en) 2021-03-05 2021-03-05 Racing game control method, device, equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN113082691A true CN113082691A (en) 2021-07-09
CN113082691B CN113082691B (en) 2023-05-23

Family

ID=76666736

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110245478.0A Active CN113082691B (en) 2021-03-05 2021-03-05 Racing game control method, device, equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN113082691B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023221685A1 (en) * 2022-05-20 2023-11-23 腾讯科技(深圳)有限公司 Virtual vehicle control method and apparatus in virtual scene and electronic device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000167245A (en) * 1998-12-04 2000-06-20 Namco Ltd Game system and information storage medium
JP2006320419A (en) * 2005-05-17 2006-11-30 Sega Corp Game device and program
CN103028243A (en) * 2011-09-30 2013-04-10 通用汽车环球科技运作有限责任公司 Front- and rear- seat augmented reality vehicle game system to entertain & educate passengers
CN104379414A (en) * 2013-04-15 2015-02-25 弗莱克斯电子有限责任公司 User interface and virtual personality presentation based on user profile
CN108305524A (en) * 2018-01-26 2018-07-20 北京工业大学 Immersion driving behavior antidote and system based on drive simulation platform
CN109131355A (en) * 2018-07-31 2019-01-04 上海博泰悦臻电子设备制造有限公司 Vehicle, vehicle device equipment and its vehicle-mounted scene interactive approach based on user's identification
CN112386907A (en) * 2019-08-13 2021-02-23 比亚迪股份有限公司 Game data processing method based on vehicle and vehicle

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000167245A (en) * 1998-12-04 2000-06-20 Namco Ltd Game system and information storage medium
JP2006320419A (en) * 2005-05-17 2006-11-30 Sega Corp Game device and program
CN103028243A (en) * 2011-09-30 2013-04-10 通用汽车环球科技运作有限责任公司 Front- and rear- seat augmented reality vehicle game system to entertain & educate passengers
CN104379414A (en) * 2013-04-15 2015-02-25 弗莱克斯电子有限责任公司 User interface and virtual personality presentation based on user profile
CN108305524A (en) * 2018-01-26 2018-07-20 北京工业大学 Immersion driving behavior antidote and system based on drive simulation platform
CN109131355A (en) * 2018-07-31 2019-01-04 上海博泰悦臻电子设备制造有限公司 Vehicle, vehicle device equipment and its vehicle-mounted scene interactive approach based on user's identification
CN112386907A (en) * 2019-08-13 2021-02-23 比亚迪股份有限公司 Game data processing method based on vehicle and vehicle

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023221685A1 (en) * 2022-05-20 2023-11-23 腾讯科技(深圳)有限公司 Virtual vehicle control method and apparatus in virtual scene and electronic device

Also Published As

Publication number Publication date
CN113082691B (en) 2023-05-23

Similar Documents

Publication Publication Date Title
US20230211235A1 (en) Device control method and apparatus, computer device, and storage medium
CN113082691A (en) Racing car game control method, device, equipment and readable storage medium
CN112141125A (en) Intelligent hierarchical interaction method, device and equipment for automatic driving and storage medium
CN113568674A (en) Page data loading method, page data loading device and electronic equipment
CN112494953A (en) Game matching method, electronic device, and computer-readable storage medium
CN110090438B (en) Game loading method, device, terminal and computer readable storage medium
JP5586771B1 (en) Server and method for providing game
CN112295234B (en) Method and device for obtaining game props
CN108525295A (en) The method for control speed and device of virtual objects
US20210038142A1 (en) Electronic device and method for providing personalized biometric information based on biometric signal using same
CN113842634B (en) Force feedback control method and device for trigger button, electronic product and medium
US20140004920A1 (en) Server device and non-transitory computer-readable record medium
CN113886022A (en) Data processing method, data processing apparatus, computer device, and storage medium
CN113769395A (en) Interaction method and device of virtual scene and electronic equipment
CN112328338A (en) Application hiding method, device, equipment and computer readable storage medium
CN113209637A (en) Game team forming method and device, electronic equipment and storage medium
CN116271830B (en) Behavior control method, device, equipment and storage medium for virtual game object
CN112138394B (en) Image processing method, image processing device, electronic equipment and computer readable storage medium
CN111729292B (en) Data processing method and device in character game
JP7349833B2 (en) Systems, methods, and programs for providing games
CN111444473B (en) Vehicle risk information prompting method and device, storage medium and electronic device
CN113507620B (en) Live broadcast data processing method, device, equipment and storage medium
KR102600656B1 (en) Method for providing basketball player matching service based on active-passive matching algorithm
CN115437705B (en) Method, device, electronic equipment and storage medium for providing vehicle service
CN117465453A (en) Single pedal control method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant