CN117258271A - Vehicle-mounted game control method and device, electronic equipment and storage medium - Google Patents

Vehicle-mounted game control method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN117258271A
CN117258271A CN202210662989.7A CN202210662989A CN117258271A CN 117258271 A CN117258271 A CN 117258271A CN 202210662989 A CN202210662989 A CN 202210662989A CN 117258271 A CN117258271 A CN 117258271A
Authority
CN
China
Prior art keywords
target
drumstick
vehicle
signal
knocking
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.)
Pending
Application number
CN202210662989.7A
Other languages
Chinese (zh)
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.)
Beijing Rockwell Technology Co Ltd
Original Assignee
Beijing Rockwell Technology 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 Beijing Rockwell Technology Co Ltd filed Critical Beijing Rockwell Technology Co Ltd
Priority to CN202210662989.7A priority Critical patent/CN117258271A/en
Publication of CN117258271A publication Critical patent/CN117258271A/en
Pending legal-status Critical Current

Links

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/21Input arrangements for video game devices characterised by their sensors, purposes or types
    • A63F13/218Input arrangements for video game devices characterised by their sensors, purposes or types using pressure sensors, e.g. generating a signal proportional to the pressure applied by the player
    • 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/21Input arrangements for video game devices characterised by their sensors, purposes or types
    • A63F13/213Input arrangements for video game devices characterised by their sensors, purposes or types comprising photodetecting means, e.g. cameras, photodiodes or infrared cells
    • 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/50Controlling the output signals based on the game progress
    • A63F13/54Controlling the output signals based on the game progress involving acoustic signals, e.g. for simulating revolutions per minute [RPM] dependent engine sounds in a driving game or reverberation against a virtual wall
    • 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/814Musical performances, e.g. by evaluating the player's ability to follow a notation

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Fittings On The Vehicle Exterior For Carrying Loads, And Devices For Holding Or Mounting Articles (AREA)

Abstract

The disclosure provides a vehicle-mounted game control method, a device, electronic equipment and a storage medium, wherein the method comprises the following steps: receiving a knocking signal sent by a target drumstick; identifying a target relative position between a target drumstick and a preset reference object in the vehicle; determining a target drumbeat to be sent currently based on the target relative position and the knocking signal; and playing the target drum sound through a loudspeaker of the vehicle. According to the method and the device, the knocking position of the drumstick can be determined according to the position relation between the drumstick and the knocked object, so that when a user uses the drumstick to knock the knocked object from different positions, the vehicle can emit the drumstick in the corresponding position, the drumsticks in different knocking positions in the actual drumstick scene are simulated, and the reality of a drumstick game is enhanced.

Description

Vehicle-mounted game control method and device, electronic equipment and storage medium
Technical Field
The disclosure relates to the technical field of vehicle-mounted games, and in particular relates to a vehicle-mounted game control method, a device, electronic equipment and a storage medium.
Background
With the continuous development of new technologies such as automatic driving and intelligent entertainment systems, vehicles not only bear the heavy duty of people in traveling, but also can bear more and more entertainment functions. The vehicle-mounted game is gradually applied to a plurality of vehicles, so that the travel entertainment modes of users are further enriched.
For a vehicle-mounted drum playing game, in the related art, when a user uses a drumstick provided by the related art to make a strike in a vehicle, the vehicle can make a corresponding drumstick and/or drumstick, so as to simulate a scene of playing a drum.
However, in an actual drum scene, when the drum is knocked in different directions by using the drumstick, the ear can hear the drum sounds in different directions, so that if the reality of the drum game is further enhanced, the direction of the drum sounds needs to be determined to simulate the drum sounds in different directions.
Disclosure of Invention
The disclosure provides a vehicle-mounted game control method, a vehicle-mounted game control device, electronic equipment and a storage medium.
An embodiment of a first aspect of the present disclosure provides a vehicle-mounted game control method, including:
receiving a knocking signal sent by a target drumstick;
identifying a target relative position between the target drumstick and a preset reference object in the vehicle;
determining a target drumbeat to be sent currently based on the target relative position and the knocking signal;
and playing the target drum sound through a loudspeaker of the vehicle.
In the embodiment of the disclosure, a knocking signal sent by a target drumstick is received, a target relative position between the target drumstick and a preset reference object in a vehicle is identified, a target drumstick which needs to be sent out currently is determined based on the target relative position and the knocking signal, and the target drumstick is played through a loudspeaker of the vehicle. According to the method and the device, the knocking position of the drumstick can be determined according to the position relation between the drumstick and the knocked object, so that when a user uses the drumstick to knock the knocked object from different positions, the vehicle can emit the drumstick in the corresponding position, the drumsticks in different knocking positions in the actual drumstick scene are simulated, and the reality of a drumstick game is enhanced.
An embodiment of a second aspect of the present disclosure proposes an in-vehicle game control apparatus including:
the receiving module is used for receiving the knocking signal sent by the target drumstick;
the identification module is used for identifying the target relative position between the target drumstick and a preset reference object in the vehicle;
the determining module is used for determining the target drumbeat which is required to be sent currently based on the target relative position and the knocking signal;
and the playing module is used for playing the target drum sound through a loudspeaker of the vehicle.
An embodiment of a third aspect of the present disclosure provides an electronic device, including: the vehicle-mounted game control method according to the embodiment of the first aspect is realized by a memory, a processor and a computer program stored in the memory and capable of running on the processor when the processor executes the program.
An embodiment of a fourth aspect of the present disclosure proposes a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the in-vehicle game control method according to the foregoing embodiment of the first aspect.
Additional aspects and advantages of the disclosure will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the disclosure.
Drawings
The foregoing and/or additional aspects and advantages of the present disclosure will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings, in which:
FIG. 1 is a flow chart of a method of controlling a vehicle-mounted game according to an embodiment of the present disclosure;
FIG. 2 is a schematic illustration of a drumstick construction according to one embodiment of the present disclosure;
FIG. 3 is a flow chart of a method of controlling a vehicle-mounted game according to another embodiment of the present disclosure;
FIG. 4 is a flow chart of a method of controlling a vehicle-mounted game according to another embodiment of the present disclosure;
FIG. 5 is a flow chart of a method of controlling a vehicle-mounted game according to another embodiment of the present disclosure;
FIG. 6 is a schematic diagram of Bluetooth positioning according to one embodiment of the present disclosure;
FIG. 7 is a flow chart of a method of controlling a vehicle-mounted game according to another embodiment of the present disclosure;
FIG. 8 is a flow chart of a method of controlling a vehicle-mounted game according to another embodiment of the present disclosure;
FIG. 9 is a schematic diagram of an in-vehicle game control apparatus according to another embodiment of the present disclosure;
FIG. 10 is a schematic diagram of a vehicle-mounted game control apparatus according to an embodiment of the present disclosure;
fig. 11 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure.
Detailed Description
Embodiments of the present disclosure are described in detail below, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to like or similar elements or elements having like or similar functions throughout. The embodiments described below by referring to the drawings are exemplary and intended for the purpose of explaining the present disclosure and are not to be construed as limiting the present disclosure.
The following describes a vehicle-mounted game control method, apparatus, electronic device, and storage medium of the embodiments of the present disclosure with reference to the accompanying drawings.
Fig. 1 is a flow chart of a vehicle-mounted game control method according to an embodiment of the disclosure, as shown in fig. 1, the method includes the following steps:
s101, receiving a knocking signal sent by a target drumstick.
The target drumstick is the drumstick which is currently in knocking.
Alternatively, the drumstick in the embodiment of the disclosure may be a drumstick shown in fig. 2, and as shown in fig. 2, a pressure sensor is disposed on a surface of the drumstick, and a communication assembly and a controller are disposed inside the drumstick, where the controller is connected with the pressure sensor and the communication assembly, and when a tapping instantaneous pressure detected by the pressure sensor of the drumstick is greater than or equal to a tapping pressure threshold value, the controller may generate a tapping signal and send the tapping signal to a vehicle machine of the vehicle through the communication assembly.
Alternatively, the communication component may be a bluetooth module. The bluetooth module in the drumstick can be connected with the bluetooth module matching in the car machine for the drumstick can be through bluetooth communication with the car machine that beats the signal transmission to the vehicle.
The instantaneous pressure is the maximum pressure instantaneously generated when the drumstick is struck, wherein the instantaneous time can be set according to practical situations, for example, if the instantaneous time is set to 100 milliseconds, the instantaneous pressure is the maximum pressure reached within 100 milliseconds.
After the drum game is started, in the process that a user uses the drumsticks in the embodiment of the disclosure to strike, when the instantaneous striking pressure detected by the pressure sensors of the drumsticks is greater than or equal to the striking pressure threshold value, the controller of the drumsticks generates a striking signal according to the identification of the pressure sensors, and then the communication component of the drumsticks sends the striking signal to the machine of the vehicle.
Alternatively, the identity of the pressure sensor may be an electronic identity (Electronic Identity, EID)
S102, identifying the target relative position between the target drumstick and a preset reference object in the vehicle.
The target relative position is a position of the target drumstick relative to a preset reference object, for example, a left side position and a right side position of the preset reference object, and the like.
The position information of the target drumstick and the position information of the preset reference object can be acquired, and the target relative position between the target drumstick and the preset reference object is determined according to the position information of the target drumstick and the position information of the preset reference object.
The preset reference object in the embodiment of the present disclosure may be a knocking object, and a user may use a drumstick to knock the preset reference object, where the preset reference object may be set according to an actual requirement, and the preset reference object is not limited herein.
Alternatively, the steering wheel of the vehicle may be used as a preset reference, that is, the steering wheel is modeled as a drum. The steering wheel comprises a steering wheel edge and a steering wheel surface, when the steering wheel is simulated into a drum, the steering wheel surface can be used as a drum surface, the steering wheel edge can be used as the drum edge, when a user uses a drumstick to strike the steering wheel surface, the user can be considered to strike the drum surface by using the drumstick, and when the user uses the drumstick to strike the steering wheel edge, the user can be considered to strike the drum edge by using the drumstick.
When the steering wheel is simulated into a drum, the key function on the steering wheel is shielded so as to avoid false touch when the steering wheel is knocked.
S103, determining the target drumbeat which is required to be sent currently based on the target relative position and the knocking signal.
The striking position of the target drumstick can be determined according to the target relative position between the target drumstick and the preset reference object, and the sound position of the target drumstick can be determined according to the striking position of the target drumstick.
In some implementations, when the user taps the steering wheel while riding in the main driving position, the left-hand hammer of the user is located on the left side of the steering wheel, the right-hand hammer of the user is located on the right side of the steering wheel, and the left-hand hammer of the user may be referred to as a left hammer, and the right-hand hammer of the user may be referred to as a right hammer. In general, the user uses the left drumstick to strike the left side of the steering wheel and uses the right drumstick to strike the right side of the steering wheel, so if the relative position of the target is the left side of the steering wheel, the sound direction of the target drumstick can be determined to be left, namely the vehicle needs to emit left drumstick currently; if the target relative position is the right side of the steering wheel, the sound azimuth of the target drum sound can be determined to be right, namely the vehicle is required to emit right drum sound currently.
Further, the knock signal transmitted by the target drumstick may be analyzed, the knock part of the target drumstick may be determined, and the sound type of the target drumstick may be determined according to the knock part of the target drumstick.
Alternatively, the sound types of the target drumhead may include a drumhead sound and a head sound, and since the steering wheel edge simulates a drumhead and the steering wheel surface simulates a head, during the process of the user striking the steering wheel with the drumstick, the vehicle should sound the drumstick when the striking part is the steering wheel edge and the vehicle should sound the head sound when the striking part is the steering wheel surface.
And S104, playing the target drum sound through a loudspeaker of the vehicle.
In some implementations, the target drum sound is played directly through the vehicle's speakers.
In still other implementations, background music is acquired, the background music and the target drum sound are sent together to digital signal processing of the vehicle for mixing, and after mixing is completed, the mixed target drum sound is played through a loudspeaker of the vehicle.
In the embodiment of the disclosure, a knocking signal sent by a target drumstick is received, a target relative position between the target drumstick and a preset reference object in a vehicle is identified, a target drumstick which needs to be sent out currently is determined based on the target relative position and the knocking signal, and the target drumstick is played through a loudspeaker of the vehicle. According to the embodiment of the disclosure, the knocking position of the drumstick can be determined according to the position relation between the drumstick and the knocking object, so that when a user uses the drumstick to knock the knocking object from different positions, the vehicle can emit the drumstick in the corresponding position, the drumsticks in different knocking positions in the actual drumstick scene are simulated, and the sense of reality of a drumstick game is enhanced.
Fig. 3 is a flowchart of a vehicle-mounted game control method according to an embodiment of the present disclosure, and further with reference to fig. 3, a process of identifying a target relative position between a target drumstick and a preset reference object in a vehicle based on an image is explained based on the above embodiment, including the steps of:
s301, a cabin image of the vehicle is acquired.
Wherein the cabin image is an interior cabin image of the vehicle.
The cabin image of the vehicle may be acquired by a camera inside the vehicle cabin.
S302, based on the cabin image, the position information of the target drumstick is acquired.
Image recognition is performed on the cabin image to recognize the target drumstick, and after the target drumstick is recognized, positional information of the target drumstick is extracted from the cabin image.
S303, determining the target relative position based on the position information of the preset reference object and the position information of the target drumstick.
The position information of the preset reference object may be stored in the database of the vehicle in advance.
In some implementations, the location information of the preset reference is obtained from a database of the vehicle.
In still other implementations, the cockpit image is image-identified to identify a preset reference, and after the preset reference is identified, the location information of the preset reference is extracted from the cockpit image.
Alternatively, the position information of the preset reference object and the target drumstick is coordinate information, and the target relative position between the target drumstick and the preset reference object in the vehicle may be determined according to the coordinate information of the preset reference object and the target drumstick.
In the embodiment of the disclosure, a cabin image of a vehicle is acquired, position information of a target drumstick is acquired based on the cabin image, and a target relative position is determined based on the position information of a preset reference and the position information of the target drumstick. According to the technical scheme, the specific positions of the drumsticks and the knocking objects can be accurately determined, so that the relative positions of the drumsticks and the knocking objects can be accurately determined.
Fig. 4 is a flowchart of a vehicle-mounted game control method according to an embodiment of the present disclosure, and further with reference to fig. 4, a process of identifying a target relative position between a target drumstick and a preset reference object in a vehicle based on a positioning signal is explained based on the above embodiment, including the steps of:
s401, receiving the positioning signal transmitted by the target drumstick through the plurality of communication devices of the vehicle.
It should be noted that, the positioning signal in the embodiment of the present disclosure may be a signal for positioning, or may be a tapping signal, which is not limited herein.
Alternatively, the plurality of communication devices of the vehicle may be bluetooth modules for locating the target drumsticks.
It should be noted that, in the embodiment of the present disclosure, the plurality of communication devices of the vehicle should be distributed at different positions of the vehicle to improve accuracy of positioning the target drumstick, and the specific positions thereof may be set according to actual situations, which is not limited in any way.
The target drumstick can establish Bluetooth communication connection between the communication assembly and a plurality of communication devices of the vehicle after the target drumstick is started, and can send positioning signals to the plurality of communication devices of the vehicle after the connection is successful.
Wherein the positioning signal includes basic information of the target drumstick, such as manufacturer information, date of production information, production number information, etc.
The database of the vehicle is provided with a preset white list, whether the target drumstick is in the white list can be determined according to the basic information of the target drumstick, if the target drumstick is not in the white list, the target drumstick cannot be used, the vehicle discards the received knocking signal after receiving the knocking signal of the target drumstick, and the vehicle does not respond to the knocking action of the target drumstick; if the target drumstick is within the white list, the target drumstick may be used, and the vehicle normally responds to the striking action of the target drumstick after receiving the striking signal of the target drumstick.
S402, based on the positioning signal, the position information of the target drumstick is acquired.
Alternatively, the signal intensity of the positioning signal is acquired, the distance between the target drumstick and each communication device is determined based on the signal intensity, and the position of the target drumstick is determined based on the distance between the target drumstick and each communication device, and the position of each communication device, so as to obtain the position information of the target drumstick.
Alternatively, the arrival angle or departure angle of the positioning signal is acquired, the angle between the target drumstick and each communication device is determined according to the arrival angle or departure angle, and the position of the target drumstick is determined according to the angle between the target drumstick and each communication device, and the position of each communication device, so as to obtain the position information of the target drumstick.
S403, determining the target relative position of the target drumstick based on the position information of the target drumstick and the position information of the set reference object.
The description of step S403 may be referred to the relevant description of step S303, and will not be repeated here.
In the embodiment of the disclosure, the plurality of communication devices of the vehicle receive the positioning signals sent by the target drumsticks, acquire the position information of the target drumsticks based on the positioning signals, and determine the target relative positions of the target drumsticks based on the position information of the target drumsticks and the position information of the set reference object. According to the method and the device for determining the relative positions of the drumsticks and the knocking objects through the positioning signals, the technical scheme that the relative positions of the drumsticks and the knocking objects are determined based on the signal detection technology is achieved, the specific positions of the drumsticks and the knocking objects can be accurately determined, and therefore the relative positions of the drumsticks and the knocking objects can be accurately determined.
Fig. 5 is a flowchart of a vehicle-mounted game control method according to an embodiment of the present disclosure, on the basis of the above-described embodiment, explaining a process of acquiring position information of a target drumstick, including the steps of:
s501, acquiring the signal strength of a positioning signal.
S502, based on the signal intensity, distance information between the target drumstick and each communication device is acquired.
In general, the farther the communication distance is, the weaker the signal strength is, the nearer the communication distance is, and the stronger the signal strength is, so that the distance information between the target drumstick and each communication device can be acquired from the signal strength of the positioning signal based on the mapping relationship between the signal strength and the communication distance.
S503, based on the distance information and the position information of each communication device, the position information of the target drumstick is acquired.
In some implementations, the location information for each communication device may be obtained from a database of the vehicle.
In still other implementations, the location information for each communication device may be obtained from a cabin image of the vehicle.
In the embodiment of the present disclosure, the position information of the target drumstick may be acquired based on the distance information between the target drumstick and each communication device, and the position information of each communication device.
Exemplary, as shown in fig. 6, the vehicle includes bluetooth module 1, bluetooth module 2, bluetooth module 3, bluetooth module 4 and bluetooth module 5, wherein, bluetooth module 1, bluetooth module 2, bluetooth module 3 and bluetooth module 4 are used for fixing a position the target drumstick, distribute respectively in four corners of vehicle, bluetooth module 5 is the bluetooth module in the car machine for receive bluetooth module 1, bluetooth module 2, bluetooth module 3 and bluetooth module 4 the locating signal that sends.
After the target drumstick starts, can send locating signal to bluetooth module 1, bluetooth module 2, bluetooth module 3 and bluetooth module 4 respectively through built-in bluetooth module, bluetooth module 1, bluetooth module 2, bluetooth module 3 and bluetooth module 4 receive this locating signal after, forward this locating signal to bluetooth module 5 respectively, the car machine is through bluetooth module 5 after receiving the locating signal that bluetooth module 1, bluetooth module 2, bluetooth module 3 and bluetooth module 4 sent respectively, can parse every locating signal, so as to obtain the signal strength of every locating signal, then confirm the distance between bluetooth module 1 according to signal strength respectively, bluetooth module 2, bluetooth module 3 and bluetooth module 4 and the drumstick, and according to bluetooth module 1, bluetooth module 2, the distance between bluetooth module 3 and bluetooth module 4 and the drumstick, and bluetooth module 1, bluetooth module 2, bluetooth module 3 and bluetooth module 4's positional information, confirm the position of drumstick, so as to obtain target drumstick positional information.
In the embodiment of the disclosure, the signal strength of the positioning signal is acquired, the distance information between the target drumstick and each communication device is acquired based on the signal strength, and the position information of the target drumstick is acquired based on the distance information and the position information of each communication device. According to the embodiment of the disclosure, the target drumsticks are positioned through the plurality of communication devices, so that the positioning accuracy is improved.
Fig. 7 is a flowchart of a vehicle-mounted game control method according to an embodiment of the present disclosure, on the basis of the above embodiment, before identifying a target relative position between a target drumstick and a preset reference object in a vehicle, as shown in fig. 7, further including:
s701, analyzing the knocking signal to obtain a unique code carried by the knocking signal.
The unique code in the disclosed embodiments is the unique code of the communication component in the drumstick, alternatively the unique code of the communication component may be a physical address (Media Access Control Address, MAC).
When the communication component arranged in the drumstick sends a knocking signal to the machine of the vehicle, the communication component marks the sent knocking signal through the unique code of the communication component, so that the source of the knocking signal can be conveniently identified.
S702, determining a target drumstick which is currently knocked based on the unique code.
The source of the strike signal may be determined based on the unique code of the communication component to determine the target drumstick based on the source of the strike signal. If the unique code is the unique code of the communication component in the left drumstick, the target drumstick currently performing the knocking is the left drumstick, and if the unique code is the unique code of the communication component in the right drumstick, the target drumstick currently performing the knocking is the right drumstick.
In the embodiment of the disclosure, the knocking signal is analyzed, a unique code carried by the knocking signal is obtained, and the target drumstick which is currently knocked is determined based on the unique code. According to the method and the device for identifying the source of the knocking signal, the source of the knocking signal is identified by acquiring the unique code of the communication device carried by the knocking signal, and the target drumstick which is knocked at present can be accurately determined.
Fig. 8 is a flowchart of a vehicle-mounted game control method according to an embodiment of the present disclosure, and further explaining a determination process of a target drum sound with reference to fig. 8 on the basis of the above embodiment, including the steps of:
s801, determining the knocking direction of the target drumstick based on the target relative position.
Optionally, the target relative positions include a first relative position and a second relative position, wherein the first relative position is a left position of the preset reference, the second relative position is a right position of the preset reference, the tapping positions include a left tapping position and a right tapping position, wherein the left tapping position represents a left side of the tapping drum, and the right tapping position represents a right side of the tapping drum.
If the target relative position is the first relative position, determining that the knocking position of the target drumstick is the left knocking position, and if the target relative position is the second relative position, determining that the knocking position of the target drumstick is the right knocking position.
S802, determining the signal types of the knocking signals, wherein the signal types comprise a drumhead knocking signal and a drumhead knocking signal.
In the embodiment of the disclosure, referring to fig. 2, the pressure sensor of the target drumstick includes a first pressure sensor disposed on an end face of the first end of the drumstick and a second pressure sensor disposed on a side wall of the drumstick, the second pressure sensor being adjacent to the first pressure sensor.
Since the first pressure sensor is provided on the end face of the first end of the target drumstick, when the striking instantaneous pressure detected by the first pressure sensor is greater than or equal to the striking pressure threshold value, it can be considered that the user has struck the drumstick face with the target drumstick. Since the second pressure sensor is provided on the side wall of the target drumstick, when the striking instantaneous pressure detected by the second pressure sensor is greater than or equal to the striking pressure threshold value, it can be considered that the user struck the drumstick with the target drumstick.
In the process that a user uses a target drumstick to strike, when the striking instantaneous pressure detected by a first pressure sensor is greater than or equal to a striking pressure threshold value, the target drumstick generates a drumhead striking signal according to a first EID of the first pressure sensor and sends the drumhead striking signal to a vehicle, and when the striking instantaneous pressure detected by a second pressure sensor is greater than or equal to the striking pressure threshold value, the target drumstick generates a drumhead striking signal according to a second EID of the second pressure sensor and sends the drumhead striking signal to the vehicle.
In some implementations, the knocking signal can be analyzed to obtain an identifier of a pressure sensor carried by the knocking signal, the signal type of the knocking signal is determined according to the identifier of the pressure sensor carried by the knocking signal, and if the identifier of the pressure sensor is a first EID, the signal type of the knocking signal is a drum-edge knocking signal; if the identification of the pressure sensor is the second EID, the signal type of the knocking signal is a drumhead knocking signal.
S803, determining the target drum sound which needs to be emitted currently based on the knocking direction and the signal type.
Optionally, the target drumhead includes a left drumhead, a left head, a right drumhead and a right head.
The sound azimuth of the target drum sound may be determined according to the striking azimuth of the target drum hammer, the sound type of the target drum sound may be determined according to the signal type of the striking signal, and the target drum sound may be determined according to the sound azimuth and the sound type.
If the knocking position of the target drumstick is the left knocking position and the signal type of the knocking signal is the drumstick knocking signal, determining that the target drumstick which needs to be sent is left drumstick; if the knocking position of the target drumstick is the left knocking position and the signal type of the knocking signal is the drumhead knocking signal, determining that the target drumstick which needs to be sent is left drumstick; if the knocking position of the target drumstick is the right knocking position and the signal type of the knocking signal is the drumstick knocking signal, determining that the target drumstick which needs to be sent currently is right drumstick; if the knocking position of the target drumstick is the right knocking position and the signal type of the knocking signal is the drumhead knocking signal, determining that the target drumstick which needs to be sent is right drumstick.
That is, when the user strikes the left side of the steering wheel with the drumstick and the striking part is the steering wheel side, the vehicle sounds a left drum side; when a user uses the drumstick to strike the left side of the steering wheel and the striking part is the steering wheel surface, the vehicle emits left drum-head sound; when the user uses the drumstick to strike the right side of the steering wheel and the striking part is the edge of the steering wheel, the vehicle emits right drum edge sound; when the user uses the drumstick to strike the right side of the steering wheel and the striking position is the steering wheel surface, the vehicle emits right drum-head sound.
In the embodiment of the disclosure, based on the target relative position, the knocking position of the target drumstick is determined, the signal type of the knocking signal is determined, the signal type comprises a drum-edge knocking signal and a drum-head knocking signal, and the target drumstick which is required to be emitted currently is determined based on the knocking position and the signal type. According to the embodiment of the disclosure, the sound direction and the sound type of the drum sound can be determined according to the knocking direction and the knocking position of the drumstick, so that the knocking sound in an actual drum scene is simulated, and the sense of reality of the drum is enhanced.
Fig. 9 is a flowchart of a vehicle-mounted game control method according to an embodiment of the present disclosure, and further with reference to fig. 9, a process of playing a target drum sound based on volume is explained based on the above embodiment, including the following steps:
s901, analyzing the knocking signal to obtain the knocking instantaneous pressure carried by the knocking signal.
In the embodiment of the disclosure, when the instantaneous pressure of the hammer detected by the pressure sensor is greater than or equal to the instantaneous pressure threshold, the hammer generates a knocking signal based on the instantaneous pressure of the hammer detected by the pressure sensor and sends the knocking signal to the vehicle, so that the knocking signal can be analyzed to obtain the instantaneous pressure of the hammer detected by the pressure sensor.
S902, determining the volume of the target drum sound based on the tapping instantaneous pressure.
In an actual drum scene, the larger the knocking force is, the larger the drum sound is, the smaller the knocking force is, and the smaller the drum sound is, so that the volume during drum playing can be simulated to enhance the sense of reality of a drum playing game.
In some implementations, when the user taps the steering wheel using the target drumstick, the greater the tap transient pressure detected by the pressure sensor of the target drumstick, the greater the volume of the target drumstick, the smaller the tap transient pressure detected by the pressure sensor of the target drumstick, and the smaller the volume of the target drumstick, so the volume of the target drumstick can be determined based on the mapping relationship between the tap transient pressure and the volume of the target drumstick.
S903, based on the volume, the target drum sound is played through the speaker of the vehicle.
After determining the volume of the target drum sound, the target drum sound is played at that volume through the speakers of the vehicle.
In the embodiment of the disclosure, the knock signal is analyzed, the knock instantaneous pressure carried by the knock signal is obtained, the volume of the target drum sound is determined based on the knock instantaneous pressure, and the target drum sound is played through a loudspeaker of the vehicle based on the volume. According to the embodiment of the disclosure, when a user uses the drumstick to strike, the volume of the drumstick is determined according to the striking force of the user, so that the larger the striking force of the user is, the larger the drumstick is, the smaller the striking force of the user is, the smaller the drumstick is, the sense of reality of a drumstick game is enhanced, and the user experience is improved.
Fig. 10 is a schematic structural view of an in-vehicle game control apparatus according to an embodiment of the present disclosure, as shown in fig. 10, the in-vehicle game control apparatus 100 includes:
a receiving module 1010 for receiving a striking signal transmitted by a target drumstick;
an identification module 1020 for identifying a target relative position between a target drumstick and a preset reference in the vehicle;
a first determining module 1030, configured to determine, based on the target relative position and the tapping signal, a target drumbeat that needs to be emitted currently;
the first playing module 1040 is configured to play the target drum sound through a speaker of the vehicle.
In the embodiment of the disclosure, a knocking signal sent by a target drumstick is received, a target relative position between the target drumstick and a preset reference object in a vehicle is identified, a target drumstick which needs to be sent out currently is determined based on the target relative position and the knocking signal, and the target drumstick is played through a loudspeaker of the vehicle. The method and the device have the advantages that the knocking position of the drumstick can be determined according to the position relation between the drumstick and the knocking object, so that when a user uses the drumstick to knock the knocking object from different positions, the vehicle can emit the drumstick in the corresponding position, the drumsticks in different knocking positions in the actual drumstick scene are simulated, and the sense of reality of a drumstick game is enhanced.
It should be noted that, for details not disclosed in the vehicle-mounted game control device according to the embodiment of the present disclosure, please refer to details disclosed in the vehicle-mounted game control method according to the embodiment of the first aspect of the present disclosure, and details are not described here again.
In one embodiment of the present disclosure, the identification module 1020 is further configured to: acquiring a cabin image of a vehicle; acquiring position information of a target drumstick based on the cabin image; the target relative position is determined based on the position information of the preset reference object and the position information of the target drumstick.
In one embodiment of the present disclosure, the identification module 1020 is further configured to: receiving, by a plurality of communication devices of the vehicle, the positioning signals transmitted by the target drumsticks; acquiring position information of a target drumstick based on the positioning signal; the target relative position of the target drumstick is determined based on the position information of the target drumstick and the position information of the set reference object.
In one embodiment of the present disclosure, the identification module 1020 is further configured to: acquiring the signal intensity of a positioning signal; acquiring distance information between the target drumstick and each communication device based on the signal strength; based on the distance information and the position information of each communication device, the position information of the target drumstick is acquired.
In one embodiment of the present disclosure, as shown in fig. 10, the in-vehicle game control device 100 further includes:
the first analyzing module 1050 is configured to analyze the striking signal before identifying a target relative position between the target drumstick and a preset reference object in the vehicle, so as to obtain a unique code carried by the striking signal;
a second determining module 1060 for determining the target drumstick currently striking based on the unique code.
In one embodiment of the present disclosure, the first determining module 1030 is further configured to: determining a strike position of the target drumstick based on the target relative position; determining the signal types of the knocking signals, wherein the signal types comprise a drumhead knocking signal and a drumhead knocking signal; based on the tap location and the signal type, the target drumbeats currently required to be emitted are determined.
In one embodiment of the present disclosure, as shown in fig. 10, the in-vehicle game control device 100 further includes:
the second analyzing module 1070 is configured to analyze the knocking signal to obtain a knocking instantaneous pressure carried by the knocking signal;
a third determination module 1080 for determining a volume of the target drum sound based on the tapping instantaneous pressure;
the second playing module 1090 is configured to play the target drum sound through a speaker of the vehicle based on the volume.
In order to implement the above-mentioned embodiments, as shown in fig. 11, the present disclosure further proposes an electronic device 1100, including a memory 1110, a processor 1120, and a computer program stored on the memory 1110 and executable on the processor 1120, where the processor 1120 executes the program to implement the in-vehicle game control method according to the above-mentioned embodiments of the present disclosure.
In order to implement the above-described embodiments, the present disclosure also proposes a non-transitory computer-readable storage medium having stored thereon a computer program that is executed by a processor to implement the in-vehicle game control method proposed by the foregoing embodiments of the present disclosure.
In the description of this specification, the terms "first," "second," and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include at least one such feature. In the description of the present disclosure, the meaning of "a plurality" is at least two, such as two, three, etc., unless explicitly specified otherwise.
In the description of the present specification, a description referring to terms "one embodiment," "some embodiments," "examples," "specific examples," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present disclosure. In this specification, schematic representations of the above terms are not necessarily directed to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, the different embodiments or examples described in this specification and the features of the different embodiments or examples may be combined and combined by those skilled in the art without contradiction.
Although embodiments of the present disclosure have been shown and described above, it will be understood that the above embodiments are illustrative and not to be construed as limiting the present disclosure, and that variations, modifications, alternatives, and variations may be made to the above embodiments by one of ordinary skill in the art within the scope of the present disclosure.

Claims (10)

1. A control method of an in-vehicle game, comprising:
receiving a knocking signal sent by a target drumstick;
identifying a target relative position between the target drumstick and a preset reference object in the vehicle;
determining a target drumbeat to be sent currently based on the target relative position and the knocking signal;
and playing the target drum sound through a loudspeaker of the vehicle.
2. The method of claim 1, wherein the identifying the target relative position between the target drumstick and a predetermined reference in the vehicle comprises:
acquiring a cabin image of the vehicle;
acquiring position information of the target drumstick based on the cabin image;
and determining the target relative position based on the position information of the preset reference object and the position information of the target drumstick.
3. The method of claim 1, wherein the identifying the target relative position between the target drumstick and a predetermined reference in the vehicle comprises:
receiving, by a plurality of communication devices of the vehicle, positioning signals transmitted by the target drumsticks;
acquiring the position information of the target drumstick based on the positioning signal;
and determining a target relative position of the target drumstick based on the position information of the target drumstick and the position information of the set reference object.
4. The method according to claim 3, wherein the acquiring the positional information of the target drumstick based on the positioning signal includes:
acquiring the signal intensity of the positioning signal;
acquiring distance information between the target drumstick and each of the communication devices based on the signal strength;
and acquiring the position information of the target drumstick based on the distance information and the position information of each communication device.
5. The method of claim 1, wherein prior to said identifying the target relative position between the target drumstick and a predetermined reference in the vehicle, the method further comprises:
analyzing the knocking signal to obtain a unique code carried by the knocking signal;
based on the unique code, the target drumstick currently striking is determined.
6. The method of claim 1, wherein the determining a target drumbeat currently required to be emitted based on the target relative position and the tap signal comprises:
determining a strike position of the target drumstick based on the target relative position;
determining signal types of the knocking signals, wherein the signal types comprise a drumhead knocking signal and a drumhead knocking signal;
and determining the target drum sound which is required to be emitted currently based on the knocking position and the signal type.
7. The method according to claim 1, wherein the method further comprises:
analyzing the knocking signal to obtain knocking instantaneous pressure carried by the knocking signal;
determining a volume of the target drum sound based on the tapping instantaneous pressure;
and playing the target drum sound through a loudspeaker of the vehicle based on the volume.
8. A control device for a vehicle-mounted game, comprising:
the receiving module is used for receiving the knocking signal sent by the target drumstick;
the identification module is used for identifying the target relative position between the target drumstick and a preset reference object in the vehicle;
the determining module is used for determining the target drumbeat which is required to be sent currently based on the target relative position and the knocking signal;
and the playing module is used for playing the target drum sound through a loudspeaker of the vehicle.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the in-vehicle game control method according to any one of claims 1-7 when the program is executed.
10. A non-transitory computer-readable storage medium, wherein instructions in the storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the in-vehicle game control method of any one of claims 1-7.
CN202210662989.7A 2022-06-13 2022-06-13 Vehicle-mounted game control method and device, electronic equipment and storage medium Pending CN117258271A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210662989.7A CN117258271A (en) 2022-06-13 2022-06-13 Vehicle-mounted game control method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210662989.7A CN117258271A (en) 2022-06-13 2022-06-13 Vehicle-mounted game control method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117258271A true CN117258271A (en) 2023-12-22

Family

ID=89203170

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210662989.7A Pending CN117258271A (en) 2022-06-13 2022-06-13 Vehicle-mounted game control method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117258271A (en)

Similar Documents

Publication Publication Date Title
CN109286875B (en) Method, apparatus, electronic device and storage medium for directional sound pickup
CN112005558B (en) Localization of sound in a loudspeaker system
KR101628475B1 (en) Method for surround music play using a pluality vehicle
JP2005103240A (en) Program, information storage medium, and game system
WO2019230687A1 (en) Hammering test terminal, hammering test system, and hammering test data registration method
WO2013051342A1 (en) Game device, game device control method, program, and information storage medium
US11120780B2 (en) Emulation of at least one sound of a drum-type percussion instrument
KR20200043584A (en) Separate sound field forming apparatus used in a car and method for forming separate sound filed used in the car
KR101851360B1 (en) System for realtime-providing 3D sound by adapting to player based on multi-channel speaker system
CN117258271A (en) Vehicle-mounted game control method and device, electronic equipment and storage medium
CN117258270A (en) Vehicle-mounted game control method and device, electronic equipment and storage medium
JP2022153363A (en) Server device, information processing method, and server program
CN117258276A (en) Drumstick and vehicle-mounted game control method
US20100317441A1 (en) Handheld controller and game apparatus using same
WO2018189854A1 (en) Electronic musical instrument main body device and electronic musical instrument system
CN112477757A (en) Vehicle orientation early warning method and device, vehicle and storage medium
CN117258272A (en) Vehicle-mounted game control method and device, electronic equipment and storage medium
CN109493685B (en) Virtual percussion instrument training system based on augmented reality
CN112098930A (en) Method for searching vehicle and intelligent equipment
CN110718082A (en) Sound-based vehicle alarm method and device
CN111063369A (en) Multimedia control method and device, function key and vehicle
WO2024106267A1 (en) Hit location estimation system and hit location estimation method
KR101017578B1 (en) Virtual simulation game system and simulation game system using thereof
EP4083994B1 (en) Electronic percussion instrument, control device for electronic percussion instrument, and control method therefor
KR101615382B1 (en) System for providing three dimensional audio signal in game apparatus

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