[go: up one dir, main page]

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

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

Info

Publication number
CN113082691B
CN113082691B CN202110245478.0A CN202110245478A CN113082691B CN 113082691 B CN113082691 B CN 113082691B CN 202110245478 A CN202110245478 A CN 202110245478A CN 113082691 B CN113082691 B CN 113082691B
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.)
Active
Application number
CN202110245478.0A
Other languages
Chinese (zh)
Other versions
CN113082691A (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 Group Co Ltd
Original Assignee
Dongfeng Motor Group Co Ltd
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 Group Co Ltd filed Critical Dongfeng Motor Group Co Ltd
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

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Human Computer Interaction (AREA)
  • Control Of Vehicle Engines Or Engines For Specific Uses (AREA)

Abstract

The invention provides a racing game control method, a racing game control device, racing game control 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 interval in which the depth value of the braking pedal is located, or triggering a corresponding accelerating instruction according to a numerical interval in which the depth value of the accelerating 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. 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 experiences real driving feeling in the racing game, and the game interest is improved.

Description

Racing game control method, device, equipment and readable storage medium
Technical Field
The present invention relates to the field of games, and in particular, to a racing game control method, apparatus, device, and readable storage medium.
Background
With the popularization of electronic devices, online games have been rapidly developed. The network game is various in type, such as policy type, role playing type, racing type, and the like. Among them, racing games in the racing type are favored by most people because of their strong competitive nature.
The existing racing games are generally based on the operation of a user on virtual keys or physical keys, so that the control on vehicles in the games is realized, the mode is difficult for the user to experience real driving feeling, and the control on the vehicles is poor and the interestingness is poor.
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 a real driving feeling, so that interestingness is poor.
In a first aspect, the present invention provides a racing game control 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 interval in which the depth value of the braking pedal is located, or triggering a corresponding accelerating instruction according to a numerical interval in which the depth value of the accelerating 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.
Optionally, the step of obtaining a depth value of a brake pedal or a depth value of an accelerator pedal collected by the vehicle controller includes:
the control interface based on the racing game receives a brake pedal depth value or an accelerator pedal depth value which is sent by a controller local area network and collected by the whole vehicle controller.
Optionally, the step of triggering the corresponding braking instruction according to the numerical interval in which the depth value of the brake pedal is located includes:
triggering a slow braking instruction when the depth value of the brake pedal is in a first numerical range;
triggering a sudden braking instruction when the depth value of the brake pedal is in a second numerical range;
wherein the lower limit value of the second numerical value interval is greater than the upper limit value of the first numerical value interval.
Optionally, the step of triggering the corresponding acceleration instruction according to the numerical interval in which the depth value of the accelerator pedal is located includes:
triggering a slow acceleration instruction when the depth value of the accelerator pedal is in a third numerical range;
triggering a sudden acceleration instruction when the depth value of the accelerator pedal is in a fourth numerical range;
wherein the lower limit value of the fourth numerical value interval is greater than the upper limit value of the third numerical value interval.
Optionally, before the step of acquiring the depth value of the brake pedal or the depth value of the accelerator pedal acquired by the vehicle controller, the method further includes:
and acquiring personal information of the 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 steady driving style, and the aggressive driving style corresponds to a second numerical interval and a fourth numerical interval having lower limit values than the steady driving style.
Optionally, the height is higher than the preset height than the height is smaller than the preset height, and the corresponding lower limit value of the second numerical value interval or the fourth numerical value interval is higher; the weight is higher than the preset weight than the weight is smaller than the preset weight, and the lower limit value of the corresponding second numerical value interval or the fourth numerical value interval is higher; the age is lower than the preset time, and compared with the age which is higher than the preset time, the lower limit value of the corresponding second numerical value interval or fourth numerical value interval is higher; the lower limit of the second or fourth interval is higher for men than for women.
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 whole vehicle controller;
the triggering module is used for triggering a corresponding braking instruction according to a numerical interval in which the depth value of the braking pedal is located, or triggering a corresponding accelerating instruction according to a numerical interval in which the depth value of the accelerating 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 also provides a readable storage medium having stored thereon a racing game control program which, when executed by a processor, implements the steps of a racing game control method as described above.
In the invention, a brake pedal depth value or an accelerator pedal depth value acquired by a whole vehicle controller is acquired; triggering a corresponding braking instruction according to a numerical interval in which the depth value of the braking pedal is located, or triggering a corresponding accelerating instruction according to a numerical interval in which the depth value of the accelerating 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. 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 experiences real driving feeling in the racing game, and the game interest is improved.
Drawings
FIG. 1 is a schematic hardware configuration of a racing game control device according to an embodiment of the present invention;
FIG. 2 is a flow chart of an embodiment of a racing game control method according to the present invention;
FIG. 3 is a schematic diagram of functional modules of an embodiment of a racing game control device according to the present invention.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
In a first aspect, an embodiment of the present invention provides a racing game control apparatus, which may be a personal computer (personal computer, PC), a notebook computer, a server, or the like, having a data processing function.
Referring to fig. 1, fig. 1 is a schematic hardware configuration diagram of a racing game control device according to an embodiment of the present invention. In an embodiment of the invention, the racing game control device may comprise a processor 1001 (e.g. a central processor Central Processing Unit, CPU), a communication bus 1002, a user interface 1003, a network interface 1004, a memory 1005. Wherein the communication bus 1002 is used to enable connected communications between these 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., WIreless-FIdelity, WI-FI interface); the memory 1005 may be a high-speed random access memory (random access memory, RAM) or a stable memory (non-volatile memory), such as a disk memory, and the memory 1005 may alternatively be a storage device independent of the processor 1001. Those skilled in the art will appreciate that the hardware configuration shown in fig. 1 is not limiting of the invention and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
With continued reference to FIG. 1, an operating system, a network communication module, a user interface module, and a racing game control program may be included in memory 1005, which is one type of computer storage medium in FIG. 1. The processor 1001 may call a racing game control program stored in the memory 1005, and execute the racing game control method provided by the embodiment of the present invention.
In a second aspect, an embodiment of the present invention provides a racing game control method.
Referring to fig. 2, fig. 2 is a flowchart illustrating an embodiment of a racing game control method according to the present invention. As shown in fig. 2, the racing game control method includes:
step S10, acquiring a brake pedal depth value or an accelerator pedal depth value acquired by a whole vehicle controller;
in this embodiment, the user operates on the real vehicle, and the user steps on the brake pedal or the accelerator pedal on the real vehicle, so that the whole vehicle controller on the real vehicle acquires the depth value of the brake pedal or the depth value of the accelerator pedal, and the execution body of the method in this embodiment acquires the depth value of the brake pedal or the depth value of the accelerator pedal acquired by the whole vehicle controller.
The execution main body of the method of the embodiment can be a personal computer (personal computer, PC), a notebook computer, a tablet computer or a smart phone and other devices, and the execution main body establishes network connection with a real vehicle, wherein the network connection can be wireless network connection or wired network connection, so that a brake pedal depth value or an accelerator pedal depth value acquired by a whole vehicle controller can be received. Of course, the execution main body may be composed of a real vehicle and an electronic device, and a network connection is established between the real vehicle and the electronic device, and the electronic device may be a personal computer (personal computer, PC), a notebook computer, a tablet computer or a smart phone.
Step S20, triggering a corresponding braking instruction according to the numerical interval of the depth value of the brake pedal,
or triggering a corresponding acceleration instruction according to a numerical interval in which the depth value of the accelerator pedal is located;
in this embodiment, after the depth value of the brake pedal is obtained, a numerical interval in which the depth value of the brake pedal is located is determined, so as to trigger a corresponding brake command. Namely, different braking orders are triggered according to different numerical intervals in which the depth value of the brake pedal is located. Similarly, after the accelerator pedal depth value is obtained, a numerical interval in which 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 intervals in which the depth value of the accelerator pedal is located.
And step S30, braking control is carried out on the vehicle in the racing game according to the braking instruction, or acceleration control is carried out on the vehicle in the racing game according to the acceleration instruction.
In this embodiment, braking control or acceleration control is performed on the vehicle in the racing game according to the braking instruction or the acceleration instruction triggered in step S20. The braking force corresponding to different braking instructions is different, the acceleration force corresponding to different acceleration instructions is different, and the specific values of the braking force and the acceleration force are set according to actual conditions.
In the embodiment, a brake pedal depth value or an accelerator pedal depth value acquired by a whole vehicle controller is acquired; triggering a corresponding braking instruction according to a numerical interval in which the depth value of the braking pedal is located, or triggering a corresponding accelerating instruction according to a numerical interval in which the depth value of the accelerating 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. Through the embodiment, the user controls the real vehicle, so that the acceleration and deceleration of the vehicle in the racing game are controlled, the user experiences real driving feeling in the racing game, and the game interestingness is improved.
Further, in an embodiment, step S10 includes:
the control interface based on the racing game receives a brake pedal depth value or an accelerator pedal depth value 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 collected by the vehicle controller of the real vehicle is sent to the control interface of the racing game through the controller area network CAN.
Further, in an embodiment, step S20 includes:
triggering a slow braking instruction when the depth value of the brake pedal is in a first numerical range; triggering a sudden braking instruction when the depth value of the brake pedal is in a second numerical range; wherein the lower limit value of the second numerical value interval is greater than the upper limit value of the first numerical value interval.
In this embodiment, when the depth value of the brake pedal is in the first numerical range, a slow brake command is triggered; triggering a sudden braking instruction when the depth value of the brake pedal is in a second numerical range; wherein the lower limit value of the second numerical value zone is larger than that of the first numerical value zoneUpper limit value of the above. The first value interval and the second value interval may be set according to practical situations, 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 sudden braking instruction is triggered, the vehicle in the racing game is braked according to the sudden braking instruction, namely, the vehicle in the racing game is braked according to the braking force corresponding to the sudden braking instruction, and the braking force corresponding to the sudden braking instruction is set according to the actual requirement, for example, is set to be 5m/s 2 . Correspondingly, when the slow braking command is triggered, the vehicle in the racing game is braked according to the slow braking command, namely, the vehicle in the racing game is braked according to the braking force corresponding to the slow braking command, and the braking force corresponding to the slow braking command is set according to actual needs, for example, is set to be 2m/s 2 . It is easy to understand that, the specific values corresponding to the first value interval, the second value interval, the braking force corresponding to the sudden braking command and the braking force corresponding to the slow braking command can be flexibly adjusted according to the actual situation, which is not limited herein.
Further, in an embodiment, step S20 includes:
triggering a slow acceleration instruction when the depth value of the accelerator pedal is in a third numerical range; triggering a sudden acceleration instruction when the depth value of the accelerator pedal is in a fourth numerical range; wherein the lower limit value of the fourth numerical value interval is greater than the upper limit value of the third numerical value interval.
In this embodiment, when the accelerator pedal depth value is in the third numerical range, the slow acceleration instruction is triggered; triggering a sudden acceleration instruction when the depth value of the accelerator pedal is in a fourth numerical range; wherein the lower limit value of the fourth value interval is greater than the upper limit value of the third value interval. The third numerical interval and the fourth numerical interval may be set according to practical situations, for example, the third numerical interval is greater than 6% and less than or equal to 50%, and the second numerical interval is greater than 50% and less than or equal to 100%. Correspondingly, when the sudden acceleration command is triggered, the sudden acceleration command is used for playing the racing gameThe vehicle is accelerated and controlled, namely the vehicle in the racing game is accelerated and controlled according to the acceleration intensity corresponding to the sudden acceleration instruction, and the acceleration intensity corresponding to the sudden acceleration instruction is set according to the actual requirement, for example, is set to be 5m/s 2 . Correspondingly, when the slow acceleration command is triggered, the vehicle in the racing game is subjected to acceleration control according to the slow acceleration command, namely, the vehicle in the racing game is subjected to acceleration control according to the acceleration force corresponding to the slow acceleration command, and the acceleration force corresponding to the slow acceleration command is set according to actual needs, for example, is set to be 2m/s 2 . It is easy to understand that, in the above description, the third numerical interval, the fourth numerical interval, the acceleration corresponding to the rapid acceleration command, and the specific numerical value corresponding to the acceleration corresponding to the slow acceleration command may be flexibly adjusted according to the actual situation, which is not limited herein.
Further, in an embodiment, before step S10, the method further includes:
and acquiring personal information of the 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 value interval, a second numerical value interval, a third numerical value interval and a fourth numerical value interval corresponding to different heights, weights, ages, driving styles or sexes may be preset; or setting a first numerical value interval, a second numerical value interval, a third numerical value interval and a fourth numerical value interval corresponding to different heights, weights, ages, driving styles and gender combinations. Thus, after the personal information of the driver is acquired, 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.
Further, in an embodiment, the driving style includes a 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 interval and the fourth numerical interval.
In this embodiment, some drivers are more aggressive in driving style, and like feeling of rapid acceleration and rapid deceleration when driving the vehicle, and some drivers are more stable in driving style, like feeling of slow acceleration and slow deceleration when driving the vehicle, so that corresponding first, second, third and fourth numerical sections can be set according to the driving style of the drivers. For example, for a driver whose driving style is relatively aggressive, setting the lower limit values of the second numerical range and the fourth numerical range lower makes it easier for the driver to trigger a sudden braking/sudden acceleration instruction by stepping on the braking/acceleration pedal. Similarly, for a driver with a relatively smooth driving style, the lower limit values of the second numerical range and the fourth numerical range are set higher, so that the driver can trigger the slow brake/slow acceleration command more easily by stepping on the brake/accelerator pedal. Specifically, a first numerical interval, a second numerical interval, a third numerical interval and a fourth numerical interval corresponding to the aggressive driving style may be preset, where the first numerical interval is greater than 5% and less than or equal to 30%, the second numerical interval is greater than 30% and less than or equal to 100%, the third numerical interval is greater than 5% and less than or equal to 30%, and the fourth numerical interval is greater than 30% 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 smooth driving style are preset, wherein the first numerical interval is more than 5% and less than or equal to 70%, the second numerical interval is more than 70% and less than or equal to 100%, the third numerical interval is more than 5% and less than or equal to 70%, and the fourth numerical interval is more than 70% and less than or equal to 100%. Thus, by acquiring the personal information of the driver, and including the driving style of the driver, specific values of the first numerical value section, the second numerical value section, the third numerical value section, and the fourth numerical value section can be set according to the personal information of the driver.
Further, in an embodiment, the height is greater than the preset height and is smaller than the preset height, and the corresponding lower limit value of the second numerical value interval or the fourth numerical value interval is higher than the height; the weight is higher than the preset weight than the weight is smaller than the preset weight, and the lower limit value of the corresponding second numerical value interval or the fourth numerical value interval is higher; the age is lower than the preset time, and compared with the age which is higher than the preset time, the lower limit value of the corresponding second numerical value interval or fourth numerical value interval is higher; the lower limit of the second or fourth interval is higher for men than for women.
In this embodiment, the drivers of different heights/weights/ages/sexes are considered to have different magnitudes of forces. A taller/heavier/younger/sexed driver may more easily step on the accelerator pedal or brake pedal to a greater depth than a shorter/younger/older/sexed driver, i.e., a driver with greater strength may simply apply a smaller force to the accelerator pedal or brake pedal, but step on 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, such a driver is supposed to control the slow braking/acceleration of the vehicle in the racing game, but because the driver's own strength is large, the brake/accelerator pedal is easily stepped 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 a bad game experience is caused. Therefore, the lower limit value of the second numerical value interval or the fourth numerical value interval may be slightly adjusted for a driver having a height above the preset height/a weight above the preset weight/an age below the preset years/a sex being a male. For a driver with a height less than the predetermined height/weight less than the predetermined weight/age greater than the predetermined years/gender being female, the lower limit of the second or fourth numerical interval may be slightly reduced. Specifically, a first numerical interval, a second numerical interval, a third numerical interval and a fourth numerical interval corresponding to a male with a height above a preset height, a weight above a preset weight, an age below a preset time, and a gender, wherein the first numerical interval is more than 5% and less than or equal to 70%, the second numerical interval is more than 70% and less than or equal to 100%, the third numerical interval is more than 5% and less than or equal to 70%, and the fourth numerical interval is more than 70% and less than or equal to 100%, are preset. Similarly, the height is preset to be smaller than the preset height/weight is preset to be smaller than the weight/age and is larger than the preset time/sex, and the height/weight is preset to be a first numerical value interval, a second numerical value interval, a third numerical value interval and a fourth numerical value interval corresponding to females, wherein the first numerical value interval is larger than 5% and smaller than or equal to 55%, the second numerical value interval is larger than 55% and smaller than or equal to 100%, the third numerical value interval is larger than 5% and smaller than or equal to 55%, and the fourth numerical value interval is larger than 55% and smaller than or equal to 100%. Thus, by acquiring the personal information of the driver, and when the personal information includes any one of the height, the weight, the age, and the sex, the specific values of the first numerical value section, the second numerical value section, the third numerical value section, and the fourth numerical value section can be set according to the personal information of the driver.
Of course, it is also possible to combine a plurality of kinds of height, weight, age, driving style and sex, and to set in advance a first numerical value section, a second numerical value section, a third numerical value section and a fourth numerical value section corresponding to each combination. Therefore, after the personal information of the driver is obtained, and when the personal information includes a plurality of types of height, weight, age, driving style and gender, the first numerical value interval, the second numerical value interval, the third numerical value interval and the fourth numerical value interval corresponding to the personal information of the driver which is currently obtained can be determined according to the preset first numerical value interval, the preset second numerical value interval, the preset third numerical value interval and the preset fourth numerical value interval corresponding to each combination.
In a third aspect, the embodiment of the invention also provides a racing game control device.
Referring to fig. 3, fig. 3 is a schematic functional block diagram of a racing game control device according to an embodiment of the invention. As shown in fig. 3, the racing game control apparatus includes:
the acquisition module 10 is used for acquiring a brake pedal depth value or an accelerator pedal depth value acquired by the whole vehicle controller;
the triggering module 20 is configured to trigger a corresponding braking instruction according to a numerical interval in which the depth value of the brake pedal is located, or trigger a corresponding acceleration instruction according to a numerical interval in which the depth value of the accelerator pedal is located;
and the control module 30 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.
Further, in an embodiment, the obtaining module 10 is configured to:
the control interface based on the racing game receives a brake pedal depth value or an accelerator pedal depth value 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:
triggering a slow braking instruction when the depth value of the brake pedal is in a first numerical range;
triggering a sudden braking instruction when the depth value of the brake pedal is in a second numerical range;
wherein the lower limit value of the second numerical value interval is greater than the upper limit value of the first numerical value interval.
Further, in an embodiment, the triggering module 20 is configured to:
triggering a slow acceleration instruction when the depth value of the accelerator pedal is in a third numerical range;
triggering a sudden acceleration instruction when the depth value of the accelerator pedal is in a fourth numerical range;
wherein the lower limit value of the fourth numerical value interval is greater than the upper limit value of the third numerical value interval.
Further, in an embodiment, the racing game control device further includes a determining module for:
and acquiring personal information of the 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 a 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 interval and the fourth numerical interval.
Further, in an embodiment, the height is greater than the preset height and is smaller than the preset height, and the corresponding lower limit value of the second numerical value interval or the fourth numerical value interval is higher than the height; the weight is higher than the preset weight than the weight is smaller than the preset weight, and the lower limit value of the corresponding second numerical value interval or the fourth numerical value interval is higher; the age is lower than the preset time, and compared with the age which is higher than the preset time, the lower limit value of the corresponding second numerical value interval or fourth numerical value interval is higher; the lower limit of the second or fourth interval is higher for men than for women.
The function implementation of each module in the racing game control device corresponds to each step in the racing game control method embodiment, and the function and implementation process of each module are not described here again.
In a fourth aspect, embodiments of the present invention also provide a readable storage medium.
The invention stores racing game control program on the readable storage medium, when the racing game control program is executed by the 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 interval in which the depth value of the braking pedal is located, or triggering a corresponding accelerating instruction according to a numerical interval in which the depth value of the accelerating 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.
Further, in one embodiment, the racing game control program, when executed by the processor, further performs the steps of:
the control interface based on the racing game receives a brake pedal depth value or an accelerator pedal depth value which is sent by a controller local area network and collected by the whole vehicle controller.
Further, in one embodiment, the racing game control program, when executed by the processor, further performs the steps of:
triggering a slow braking instruction when the depth value of the brake pedal is in a first numerical range;
triggering a sudden braking instruction when the depth value of the brake pedal is in a second numerical range;
wherein the lower limit value of the second numerical value interval is greater than the upper limit value of the first numerical value interval.
Further, in one embodiment, the racing game control program, when executed by the processor, further performs the steps of:
triggering a slow acceleration instruction when the depth value of the accelerator pedal is in a third numerical range;
triggering a sudden acceleration instruction when the depth value of the accelerator pedal is in a fourth numerical range;
wherein the lower limit value of the fourth numerical value interval is greater than the upper limit value of the third numerical value interval.
Further, in one embodiment, the racing game control program, when executed by the processor, further performs the steps of:
and acquiring personal information of the 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 a 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 interval and the fourth numerical interval.
Further, in an embodiment, the height is greater than the preset height and is smaller than the preset height, and the corresponding lower limit value of the second numerical value interval or the fourth numerical value interval is higher than the height; the weight is higher than the preset weight than the weight is smaller than the preset weight, and the lower limit value of the corresponding second numerical value interval or the fourth numerical value interval is higher; the age is lower than the preset time, and compared with the age which is higher than the preset time, the lower limit value of the corresponding second numerical value interval or fourth numerical value interval is higher; the lower limit of the second or fourth interval is higher for men than for women.
The method implemented when the racing game control program is executed may refer to various embodiments of the racing game control method of the present invention, and will not be described herein.
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 one … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) as described above, comprising several instructions for causing a terminal device to perform the method according to the embodiments of the present invention.
The foregoing description is only of the preferred embodiments of the present invention, and is not intended to limit the scope of the invention, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.

Claims (7)

1. A racing game control method, comprising:
acquiring personal information of a driver, and determining a first numerical value interval, a second numerical value interval, a third numerical value interval and a fourth numerical value interval according to the personal information, wherein the personal information comprises one or more of height, weight, age, driving style and gender;
acquiring a brake pedal depth value or an accelerator pedal depth value acquired by a vehicle controller;
triggering a slow braking instruction when the depth value of the brake pedal is in a first numerical range;
triggering a sudden braking instruction when the depth value of the brake pedal is in a second numerical range;
wherein the lower limit value of the second numerical value interval is larger than the upper limit value of the first numerical value interval,
or when the depth value of the accelerator pedal is in a third numerical range, triggering a slow acceleration instruction;
triggering a sudden acceleration instruction when the depth value of the accelerator pedal is in a fourth numerical range;
wherein the lower limit value of the fourth numerical value interval is greater than the upper limit value of the third numerical value interval;
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 according to claim 1, wherein the step of obtaining a brake pedal depth value or an accelerator pedal depth value collected by the vehicle controller comprises:
the control interface based on the racing game receives a brake pedal depth value or an accelerator pedal depth value which is sent by a controller local area network and collected by the whole vehicle controller.
3. The racing game control method according to claim 1, wherein the driving style includes a aggressive driving style and a steady driving style, and the aggressive driving style corresponds to a second numerical interval and a fourth numerical interval having lower limit values than the steady driving style.
4. The racing game control method according to claim 1, wherein the height is greater than the predetermined height by a lower limit value of the second or fourth value interval than the height is less than the predetermined height; the weight is higher than the preset weight than the weight is smaller than the preset weight, and the lower limit value of the corresponding second numerical value interval or the fourth numerical value interval is higher; the age is lower than the preset time, and compared with the age which is higher than the preset time, the lower limit value of the corresponding second numerical value interval or fourth numerical value interval is higher; the lower limit of the second or fourth interval is higher for men than for women.
5. A racing game control apparatus, comprising:
the system comprises a determining module, a judging module and a judging module, wherein the determining module is used for acquiring personal information of a driver and determining a first numerical value interval, a second numerical value interval, a third numerical value interval and a fourth numerical value interval according to the personal information, wherein the personal information comprises one or more of height, weight, age, driving style and gender;
the acquisition module is used for acquiring a brake pedal depth value or an accelerator pedal depth value acquired by the whole vehicle controller;
the triggering module is used for triggering a slow braking instruction when the depth value of the brake pedal is in a first numerical range; triggering a sudden braking instruction when the depth value of the brake pedal is in a second numerical range; wherein the lower limit value of the second numerical value interval is greater than the upper limit value of the first numerical value interval; or when the depth value of the accelerator pedal is in a third numerical range, triggering a slow acceleration instruction; triggering a sudden acceleration instruction when the depth value of the accelerator pedal is in a fourth numerical range; wherein the lower limit value of the fourth numerical value interval is greater than the upper limit value of the third numerical value interval;
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.
6. 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 of claims 1 to 4.
7. A readable storage medium, wherein a racing game control program is stored on the readable storage medium, wherein the racing game control program, when executed by a processor, implements the steps of the racing game control method of any of claims 1 to 4.
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 CN113082691A (en) 2021-07-09
CN113082691B true 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)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114849237A (en) * 2022-04-07 2022-08-05 深圳华侨城卡乐技术有限公司 Online and offline interaction method and system for racing car
CN117122909A (en) * 2022-05-20 2023-11-28 腾讯科技(成都)有限公司 Virtual vehicle control method and device in virtual scene and electronic equipment

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

Also Published As

Publication number Publication date
CN113082691A (en) 2021-07-09

Similar Documents

Publication Publication Date Title
CN113082691B (en) Racing game control method, device, equipment and readable storage medium
CN112060986B (en) Seat adjusting method and related device
KR102125348B1 (en) Auto-reply methods, devices, equipment, and computer-readable storage media
CN109107162B (en) Game difficulty adjusting method and device
CN111330279B (en) Strategy decision model training method and device for game AI
CN112138394B (en) Image processing method, image processing device, electronic equipment and computer readable storage medium
CN110215710B (en) In-game event determination method and device, electronic equipment and storage medium
CN112141125A (en) Intelligent hierarchical interaction method, device and equipment for automatic driving and storage medium
CN113568674A (en) Method for loading page data, device and electronic device for loading page data
CN113771859A (en) Intelligent driving intervention method, device and equipment and computer readable storage medium
CN108525295A (en) The method for control speed and device of virtual objects
CN115245682A (en) Game interaction method, device, system and computer readable storage medium
KR20210060948A (en) Apparatus and method for recommending game
CN112455404A (en) Method, apparatus, storage medium, and device for vehicle brake control
KR20170007084A (en) Driving rank apparatus and system for using evaluation and ranking of driving manner and method thereof
CN113546429B (en) Virtual object landing method, device, computer equipment and storage medium
CN113177266B (en) Simulation method, simulation computer device, and computer-readable storage medium
CN117112633A (en) Active interaction method, system and storage medium based on intelligent cabin
JP7349833B2 (en) Systems, methods, and programs for providing games
CN110008321B (en) Information interaction method and device, storage medium and electronic device
JP7479558B1 (en) Program and system
CN107982915B (en) Multi-game same-screen implementation method and device
CN111729292B (en) Data processing method and device in character game
CN113753035A (en) Driving assistance system, vehicle including the same, driving assistance method, and medium
CN112328338A (en) Application hiding method, apparatus, device, and computer-readable 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