Development method and device of vehicle-mounted game

By combining vehicle sports information to develop in-vehicle games, the problem of driver distraction caused by the development of existing in-vehicle H5 games is solved, the close interaction between the game and driving behavior is achieved, and driving safety and driving experience are improved.

CN119937991APending Publication Date: 2025-05-06FULSCIENCE AUTOMOTIVE ELECTRONICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510010600.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-03
Publication Date
2025-05-06

AI Technical Summary

Technical Problem

The development of existing in-car H5 games mainly focuses on increasing the appeal and interactivity of the game, resulting in drivers paying too much attention to the game during driving, ignoring the road conditions and traffic safety, and increasing the risk of traffic accidents.

Method used

By combining vehicle sports and driving information to develop on-board games, design resource collection mechanisms and interaction restriction logic, we ensure that the game interacts closely with driving behavior, taking into account entertainment and driving safety.

Benefits of technology

It achieves a close combination of on-board games and driving behavior, improves drivers' attention concentration, reduces the risk of traffic accidents, and improves the driving experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119937991A_ABST
    Figure CN119937991A_ABST
Patent Text Reader

Abstract

The invention provides a development method and device for a vehicle-mounted game. The development method comprises the steps that a target game development engine needed by vehicle-mounted game development is determined; according to the target communication protocol, controlling a target game development engine to establish communication connection with a vehicle machine in a to-be-deployed vehicle applied by the vehicle-mounted game; transmitting motion driving information of a to-be-deployed vehicle to the target game development engine; according to the motion driving information of the to-be-deployed vehicle, designing a resource collection mechanism and interaction limitation logic of a vehicle-mounted game in a target game development engine, and performing game logic writing in the target game development engine by using a target development language; and testing and debugging the compiled initial vehicle-mounted game to obtain a target vehicle-mounted game compatible with the vehicle-mounted machine system. Therefore, the vehicle-mounted game is developed by combining the vehicle movement driving information, and the vehicle-mounted game combined with the driving behavior can be developed, so that entertainment and driving safety can be compatible at the same time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of in-vehicle games, and in particular to a method and device for developing in-vehicle games. Background Art

[0002] In-car games refer to electronic games that run in the in-car entertainment system. These games are designed for use in vehicles such as cars. In-car games can be presented in different forms, such as built-in games, applications, or web games played through the browser of the in-car system (such as H5 games). Among them, in-car H5 games have become the most widely used game form in in-car entertainment systems due to their advantages such as light weight, cross-platform, low development cost, and low hardware requirements.

[0003] However, the development of existing in-car H5 games is mostly focused on how to increase the attractiveness, interactivity and richness of the games, which may cause drivers to focus too much on the games and ignore road conditions, traffic signals, pedestrians or other vehicles. This distraction may lead to slower reaction speed and increase the risk of traffic accidents. And if the driver tries to operate the game while driving, it is easy to make mistakes in the vehicle operation, causing the vehicle to deviate from the lane or cause other accidents. Summary of the invention

[0004] In view of this, the purpose of this application is to provide a method and device for developing in-vehicle games. By developing in-vehicle games in combination with vehicle motion and driving information, an in-vehicle game combined with driving behavior can be developed, which can be compatible with entertainment and driving safety at the same time, thereby improving the driving experience.

[0005] The embodiment of the present application provides a method for developing an in-vehicle game, the method comprising:

[0006] Determine the target game development engine required for in-vehicle game development;

[0007] According to the target communication protocol, controlling the target game development engine to establish a communication connection with a vehicle computer in the vehicle to be deployed where the in-vehicle game is applied;

[0008] Transmitting the movement and driving information of the to-be-deployed vehicle to the target game development engine;

[0009] According to the movement and driving information of the vehicle to be deployed, design the resource collection mechanism and interaction restriction logic of the in-vehicle game in the target game development engine, and write the game logic in the target game development engine using the target development language;

[0010] The compiled initial in-vehicle game is tested and debugged to obtain a target in-vehicle game compatible with the vehicle system; wherein the target in-vehicle game is an in-vehicle game combined with driving behavior.

[0011] Optionally, designing a resource collection mechanism for the in-vehicle game in the target game development engine according to the movement and driving information of the vehicle to be deployed includes:

[0012] Determining at least one key driving parameter of the vehicle to be deployed according to the motion driving information of the vehicle to be deployed;

[0013] For each key driving parameter, designing a resource change strategy corresponding to the key driving parameter in the target game development engine;

[0014] Complete the design and development of the resource collection mechanism based on the resource change strategy corresponding to all key driving parameters.

[0015] Optionally, designing the interaction restriction logic of the in-vehicle game in the target game development engine according to the movement and driving information of the vehicle to be deployed includes:

[0016] Determine at least one target operating state of the vehicle to be deployed according to the movement and driving information of the vehicle to be deployed; wherein the target operating state includes parking and driving;

[0017] For each target operating state, determine the interaction mode corresponding to the target operating state;

[0018] The interaction restriction logic of the in-vehicle game is determined according to the interaction modes corresponding to all target operating states.

[0019] Optionally, the target in-vehicle game is an in-vehicle H5 game. After obtaining the target in-vehicle game compatible with the vehicle system, the development method further includes:

[0020] Determine the deployment position of the target in-vehicle game in the vehicle computer of the vehicle to be deployed;

[0021] According to the deployment requirements of the deployment location, the target in-vehicle game is deployed on the vehicle computer of the vehicle to be deployed.

[0022] Optionally, after deploying the target in-vehicle game on the vehicle to be deployed, the development method further includes:

[0023] When the target vehicle-mounted game is started, the current driving information of the target vehicle is obtained;

[0024] Determine the current running state of the target vehicle according to the current driving information;

[0025] When the current running state is driving, the target in-vehicle game is controlled to enter an automatic collection mode; wherein, in the automatic collection mode, the resource update processing of the target in-vehicle game is performed according to the resource collection mechanism based on the current driving information of the target vehicle, and the player is prohibited from operating the target in-vehicle game.

[0026] Optionally, when the current operating state is parking, the development method further includes:

[0027] Enable the operation permissions of all operation buttons of the target in-vehicle game, and display the warning information through the vehicle display interface.

[0028] Optionally, the target communication protocol is the WebSocket communication protocol.

[0029] The embodiment of the present application also provides a development device for an in-vehicle game, the development device comprising:

[0030] A determination module, used to determine a target game development engine required for in-vehicle game development;

[0031] A control module, used for controlling the target game development engine to establish a communication connection with a vehicle computer in a to-be-deployed vehicle in which the in-vehicle game is applied, according to a target communication protocol;

[0032] A transmission module, used for transmitting the movement and driving information of the vehicle to be deployed to the target game development engine;

[0033] A design module, for designing a resource collection mechanism and interaction restriction logic of the vehicle-mounted game in the target game development engine according to the movement and driving information of the vehicle to be deployed, and writing game logic in the target game development engine using a target development language;

[0034] The testing and debugging module is used to test and debug the initially written in-vehicle game to obtain a target in-vehicle game compatible with the vehicle system; wherein the target in-vehicle game is an in-vehicle game combined with driving behavior.

[0035] Optionally, when the design module is used to design a resource collection mechanism of the in-vehicle game in the target game development engine according to the movement and driving information of the vehicle to be deployed, the design module is used to:

[0036] Determining at least one key driving parameter of the vehicle to be deployed according to the motion driving information of the vehicle to be deployed;

[0037] For each key driving parameter, designing a resource change strategy corresponding to the key driving parameter in the target game development engine;

[0038] Complete the design and development of the resource collection mechanism based on the resource change strategy corresponding to all key driving parameters.

[0039] Optionally, when the design module is used to design the interaction restriction logic of the in-vehicle game in the target game development engine according to the movement and driving information of the vehicle to be deployed, the design module is used to:

[0040] Determine at least one target operating state of the vehicle to be deployed according to the movement and driving information of the vehicle to be deployed; wherein the target operating state includes parking and driving;

[0041] For each target operating state, determine the interaction mode corresponding to the target operating state;

[0042] The interaction restriction logic of the in-vehicle game is determined according to the interaction modes corresponding to all target operating states.

[0043] Optionally, the target in-vehicle game is an in-vehicle H5 game, and the development device further includes a deployment module, and the deployment module is used to:

[0044] After obtaining a target in-vehicle game that is compatible with the in-vehicle system, determining a deployment position of the target in-vehicle game in the in-vehicle system of the vehicle to be deployed;

[0045] According to the deployment requirements of the deployment location, the target in-vehicle game is deployed on the vehicle computer of the vehicle to be deployed.

[0046] Optionally, the development device further includes an operation module, and the operation module is used to:

[0047] After the target in-vehicle game is deployed on the vehicle computer of the vehicle to be deployed, when the target in-vehicle game is started, the current driving information of the target vehicle is obtained;

[0048] Determine the current running state of the target vehicle according to the current driving information;

[0049] When the current running state is driving, the target in-vehicle game is controlled to enter an automatic collection mode; wherein, in the automatic collection mode, the resource update processing of the target in-vehicle game is performed according to the resource collection mechanism based on the current driving information of the target vehicle, and the player is prohibited from operating the target in-vehicle game.

[0050] Optionally, the operation module is further used for:

[0051] When the current running state is parking, the operation permissions of all operation buttons of the target in-vehicle game are enabled, and warning information is displayed through the vehicle display interface.

[0052] Optionally, the target communication protocol is the WebSocket communication protocol.

[0053] An embodiment of the present application also provides an electronic device, comprising: a processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the memory communicate via the bus, and when the machine-readable instructions are executed by the processor, the steps of the development method described above are performed.

[0054] An embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the development method described above are executed.

[0055] The embodiment of the present application provides a method and device for developing an in-vehicle game. The development method includes: determining a target game development engine required for in-vehicle game development; controlling the target game development engine to establish a communication connection with the vehicle computer in the vehicle to be deployed in which the in-vehicle game is applied according to the target communication protocol; transmitting the motion driving information of the vehicle to be deployed to the target game development engine; designing the resource collection mechanism and interaction restriction logic of the in-vehicle game in the target game development engine according to the motion driving information of the vehicle to be deployed, and using the target development language to write the game logic in the target game development engine; testing and debugging the written initial in-vehicle game to obtain a target in-vehicle game compatible with the vehicle computer system; wherein the target in-vehicle game is an in-vehicle game combined with driving behavior.

[0056] In this way, the present application develops an in-car game by combining vehicle motion and driving information, and can develop an in-car game that combines driving behavior, so that it can be compatible with entertainment and driving safety at the same time, thereby improving the driving experience.

[0057] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0058] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0059] Figure 1 A flowchart of a method for developing an in-car game provided in an embodiment of the present application;

[0060] Figure 2 One of the structural schematic diagrams of a vehicle-mounted game development device provided in an embodiment of the present application;

[0061] Figure 3 The second structural diagram of a vehicle-mounted game development device provided in an embodiment of the present application;

[0062] Figure 4 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0063] To make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all of the embodiments. The components of the embodiments of the present application usually described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, each other embodiment obtained by those skilled in the art without making creative work belongs to the scope of protection of the present application.

[0064] In-car games refer to electronic games that run in the in-car entertainment system. These games are designed for use in vehicles such as cars. In-car games can be presented in different forms, such as built-in games, applications, or web games played through the browser of the in-car system (such as H5 games). Among them, in-car H5 games have become the most widely used game form in in-car entertainment systems due to their advantages such as light weight, cross-platform, low development cost, and low hardware requirements.

[0065] However, the development of existing in-car H5 games is mostly focused on how to increase the attractiveness, interactivity and richness of the games, which may cause drivers to focus too much on the games and ignore road conditions, traffic signals, pedestrians or other vehicles. This distraction may lead to slower reaction speed and increase the risk of traffic accidents. And if the driver tries to operate the game while driving, it is easy to make mistakes in the vehicle operation, causing the vehicle to deviate from the lane or cause other accidents.

[0066] Based on this, an embodiment of the present application provides a method and device for developing in-vehicle games. By developing in-vehicle games in combination with vehicle motion and driving information, an in-vehicle game that combines driving behavior can be developed, thereby being compatible with both entertainment and driving safety.

[0067] See also Figure 1 , Figure 1This is a flow chart of a method for developing an in-car game provided in an embodiment of the present application. Figure 1 As shown in, the development method provided in the embodiment of the present application includes:

[0068] S101. Determine a target game development engine required for in-vehicle game development.

[0069] S102: According to a target communication protocol, control the target game development engine to establish a communication connection with a vehicle computer in a to-be-deployed vehicle in which the in-vehicle game is applied.

[0070] S103: Transmit the movement and driving information of the vehicle to be deployed to the target game development engine.

[0071] S104. Design a resource collection mechanism and interaction restriction logic of the in-vehicle game in the target game development engine according to the movement and driving information of the vehicle to be deployed, and write the game logic in the target game development engine using a target development language.

[0072] S105 , testing and debugging the compiled initial in-vehicle game to obtain a target in-vehicle game that is compatible with the vehicle system.

[0073] Wherein, the target in-vehicle game is an in-vehicle game combined with driving behavior.

[0074] With respect to step S101, the in-vehicle game refers to a game applied to a vehicle computer, and specifically may be an in-vehicle H5 game.

[0075] Reference factors for determining the target game development engine include, but are not limited to, the following: development requirements, target platform, performance requirements, familiarity of the development team, and other factors.

[0076] For example, the target game development engine determined in this application may be: egret engine.

[0077] Among them, egret engine is an open source game engine based on HTML5 technology, mainly used to develop cross-platform 2D and simple 3D games. It provides a complete set of development tools and frameworks suitable for HTML5 platform, enabling developers to create games that can run on web pages, mobile devices and desktop applications.

[0078] With respect to step S102, the target communication protocol may be the WebSocket communication protocol.

[0079] For example, this step may include: according to the WebSocket communication protocol, setting up a communication connection between the target game development engine and a vehicle computer in the vehicle in which the in-vehicle game is applied, so that the target game development engine can obtain the vehicle's motion driving information from the vehicle computer system.

[0080] Here, when the target game development engine establishes a connection with the vehicle's onboard computer, it may establish a communication connection with the onboard computer of at least one vehicle. Furthermore, when the target game development engine establishes a connection with the vehicle's onboard computer, specifically, the target game development engine establishes a connection with the vehicle's onboard computer system.

[0081] In-Car Infotainment System (ICIS) refers to a multimedia infotainment system installed in a car, which mainly integrates a variety of in-car entertainment, navigation, communication, control and other functions to enhance the driving experience of drivers and passengers. It is an embedded system, usually composed of hardware (such as display, processor, sensor, control unit, etc.) and software (operating system, application, etc.), supporting the interaction between the vehicle and external devices.

[0082] Regarding step S103, in this step, the movement and driving information of the vehicle to be deployed is transmitted to the target game development engine through the communication link between the vehicle computer and the target game development engine.

[0083] Here, the movement and driving information of at least one vehicle to be deployed can be transmitted to the target game development engine, so that the developed in-vehicle game can use multiple vehicles, thereby increasing the applicable scope of the in-vehicle game. Alternatively, the movement and driving information of only one vehicle to be deployed can be transmitted to the target game development engine, so that the developed in-vehicle game is more targeted.

[0084] The motion driving information of the to-be-deployed vehicle transmitted during the development phase may include the type of driving parameters and the numerical limit range of each driving parameter.

[0085] Regarding step S104, in this step, according to the vehicle's motion driving data (such as speed, acceleration, direction, etc.), the resource collection mechanism, interaction restriction logic and other game logic of the in-vehicle game are designed and implemented in the target game development engine. In this way, by associating the game behavior with the dynamic information of the vehicle, the game is not only a static entertainment content, but can interact in real time according to the driving behavior.

[0086] Resource collection mechanism refers to the player (such as the driver) collecting resources or rewards in the game through certain behaviors during vehicle driving. Interaction restriction logic refers to the restriction of certain interactive behaviors in the game.

[0087] The target development language is determined according to the target game development engine.

[0088] The writing of game logic needs to be implemented in the game development engine through the target development language based on the collection mechanism and interaction restrictions designed above.

[0089] In addition, the target game development engine also includes other writing processes for in-vehicle games, such as writing scenes and game levels.

[0090] For example, in one embodiment provided in the present application, designing a resource collection mechanism of the in-vehicle game in the target game development engine according to the movement and driving information of the vehicle to be deployed includes:

[0091] S10411. Determine at least one key driving parameter of the vehicle to be deployed according to the motion driving information of the vehicle to be deployed.

[0092] S10412. For each key driving parameter, a resource change strategy corresponding to the key driving parameter is designed in the target game development engine.

[0093] S10413. Complete the design and development of the resource collection mechanism based on the resource change strategy corresponding to all key driving parameters.

[0094] Regarding step S10411, the step includes: extracting key driving parameters that affect the game behavior from the vehicle's motion driving information. These parameters usually include values ​​or variables related to the vehicle's motion state, which can reflect the current dynamic characteristics of the vehicle. In this way, through these key parameters, the game system can dynamically adjust the resource collection mechanism to ensure close interaction between the game and the driving behavior.

[0095] For example, the key driving parameters include but are not limited to: vehicle speed, acceleration, braking status, steering angle, mileage, fuel / battery power, etc.

[0096] Regarding step S10412, this step includes: designing a corresponding resource change strategy for each parameter.

[0097] For example, the efficiency of resource collection can be controlled according to the change of vehicle speed. For example, a higher vehicle speed may increase the frequency of resource drops or unlock higher-value resources; a lower vehicle speed may mean low resource collection efficiency, encouraging the driver to speed up.

[0098] Set up the generation of dynamic resources based on the acceleration state. For example, when a vehicle accelerates quickly, generate "acceleration props" or "acceleration rewards".

[0099] Set the drop of specific resources based on the braking state.

[0100] Depending on the direction of the vehicle, the distribution area of ​​the resources can be changed.

[0101] In addition, when designing resource change strategies, in addition to driving parameters, resource collection speed can also be set according to environmental parameters, such as weather type.

[0102] Regarding step S10413, this step includes: integrating the previously designed resource change strategy into the game development engine and completing the implementation of the overall resource collection mechanism.

[0103] For example, in another embodiment provided in the present application, the interactive restriction logic of the in-vehicle game is designed in the target game development engine according to the movement and driving information of the vehicle to be deployed, including:

[0104] S10421. Determine at least one target operating state of the vehicle to be deployed according to the movement and driving information of the vehicle to be deployed.

[0105] S10422. For each target operating state, determine the interaction mode corresponding to the target operating state.

[0106] S10423. Determine the interaction restriction logic of the in-vehicle game according to the interaction modes corresponding to all target operating states.

[0107] Regarding step S10421, the target operating state includes parking and driving.

[0108] By reading the vehicle's motion information (such as speed, acceleration, accelerator pedal pressure, etc.), it is possible to determine whether the vehicle is currently in a parked state or a driving state.

[0109] For example, when the vehicle speed is 0 and the acceleration is 0, the game determines that the vehicle is in a "parked state". When the vehicle speed is greater than 0 and the acceleration has a positive value, the vehicle is determined to be in a "driving" state.

[0110] Regarding step S10422, in this step, according to the target operating state of the vehicle (parked or driving), an appropriate interaction method is designed for each state.

[0111] Among them, the design of the interaction method should take driving safety into consideration to ensure that the driver will not be distracted or in danger due to the interaction with the game.

[0112] For example, when the car is parked, the driver can perform complex operations in the game more freely; while driving, game operations are prohibited.

[0113] With respect to step S10423, in this step, a specific interaction restriction logic is designed according to the interaction modes corresponding to all target operating states (parking and driving) of the vehicle.

[0114] In this way, the interaction restriction logic can ensure that the player's interaction behavior is reasonable, safe, and meets the needs of actual driving under different driving conditions.

[0115] For step S105, illustratively, the test includes: functional test, performance test, user experience test and compatibility test, etc.

[0116] The debugging includes: bug fixing and optimization, etc.

[0117] In addition, after obtaining the target in-vehicle game that is compatible with the vehicle-computer system, the development method also includes: determining the deployment position of the target in-vehicle game in the vehicle-computer of the vehicle to be deployed; and deploying the target in-vehicle game in the vehicle-computer of the vehicle to be deployed according to the deployment requirements of the deployment position.

[0118] Here, the deployment location refers to the game's operating environment or "storage" location in the vehicle's computer (in-vehicle infotainment system).

[0119] Deployment requirements refer to the specific conditions and steps that need to be met in order for in-vehicle games to run smoothly, including hardware, software, and user experience requirements.

[0120] In this way, the developed in-car game is successfully deployed on the car computer.

[0121] After the deployment is completed, in another implementation manner provided in the present application, the development method further includes:

[0122] S201. After the target vehicle-mounted game is started, current driving information of the target vehicle is obtained.

[0123] S202: Determine the current running state of the target vehicle according to the current driving information.

[0124] S203: When the current running state is driving, control the target in-vehicle game to enter an automatic collection mode.

[0125] With respect to step S201, after the in-vehicle game is started, real-time driving information of the vehicle is obtained, which usually comes from an in-vehicle sensor or an interface of an in-vehicle system (such as OBD-II, an in-vehicle sensor network, etc.), and the information is transmitted to the target in-vehicle game.

[0126] With respect to step S202, it is determined whether the target vehicle is parked or moving based on the current driving information.

[0127] Regarding step S203, in the automatic collection mode, the resource update process of the target vehicle game is performed according to the resource collection mechanism based on the current driving information of the target vehicle, and the player is prohibited from operating the target vehicle game.

[0128] Here, when the vehicle is in motion, the game automatically enters automatic collection mode.

[0129] In addition, when entering the automatic collection mode, a game interface prompt may be provided, wherein the prompt message may be: "The vehicle is in operation, operation is prohibited".

[0130] In another embodiment provided in the present application, when the current operating state is parking, the development method further includes: enabling the operation permissions of all operation buttons of the target in-vehicle game, and displaying warning information through the vehicle display interface.

[0131] Here, the warning information may be exemplified as: Game is prohibited, please focus on driving.

[0132] In this way, the present application develops an in-car game by combining vehicle motion and driving information, and can develop an in-car game that combines driving behavior, so that it can be compatible with entertainment and driving safety at the same time, thereby improving the driving experience.

[0133] Based on the same inventive concept, a development device corresponding to the development method is also provided in the embodiment of the present application. Since the principle of solving the problem by the device in the embodiment of the present application is similar to the above-mentioned development method in the embodiment of the present application, the implementation of the device can refer to the implementation of the method, and the repeated parts will not be repeated.

[0134] See also Figure 2 , Figure 3 , Figure 2 This is one of the structural schematic diagrams of a vehicle-mounted game development device provided in an embodiment of the present application. Figure 3 This is a second structural diagram of a vehicle-mounted game development device provided in an embodiment of the present application. Figure 2 As shown in , the development device 200 includes:

[0135] A determination module 210 is used to determine a target game development engine required for in-vehicle game development;

[0136] The control module 220 is used to control the target game development engine to establish a communication connection with the vehicle computer in the vehicle to be deployed in which the in-vehicle game is applied according to the target communication protocol;

[0137] A transmission module 230, used for transmitting the movement and driving information of the vehicle to be deployed to the target game development engine;

[0138] A design module 240 is used to design the resource collection mechanism and interaction restriction logic of the vehicle-mounted game in the target game development engine according to the movement and driving information of the vehicle to be deployed, and to write the game logic in the target game development engine using a target development language;

[0139] The testing and debugging module 250 is used to test and debug the compiled initial in-vehicle game to obtain a target in-vehicle game compatible with the vehicle system; wherein the target in-vehicle game is an in-vehicle game combined with driving behavior.

[0140] Optionally, when the design module 240 is used to design the resource collection mechanism of the in-vehicle game in the target game development engine according to the movement and driving information of the vehicle to be deployed, the design module 240 is used to:

[0141] Determining at least one key driving parameter of the vehicle to be deployed according to the motion driving information of the vehicle to be deployed;

[0142] For each key driving parameter, designing a resource change strategy corresponding to the key driving parameter in the target game development engine;

[0143] Complete the design and development of the resource collection mechanism based on the resource change strategy corresponding to all key driving parameters.

[0144] Optionally, when the design module 240 is used to design the interaction restriction logic of the in-vehicle game in the target game development engine according to the movement and driving information of the vehicle to be deployed, the design module 240 is used to:

[0145] Determine at least one target operating state of the vehicle to be deployed according to the movement and driving information of the vehicle to be deployed; wherein the target operating state includes parking and driving;

[0146] For each target operating state, determine the interaction mode corresponding to the target operating state;

[0147] The interaction restriction logic of the in-vehicle game is determined according to the interaction modes corresponding to all target operating states.

[0148] Optionally, the target in-vehicle game is an in-vehicle H5 game, such as Figure 3 As shown, the development device 200 further includes a deployment module 260, and the deployment module 260 is used to:

[0149] After obtaining a target in-vehicle game that is compatible with the in-vehicle system, determining a deployment position of the target in-vehicle game in the in-vehicle system of the vehicle to be deployed;

[0150] According to the deployment requirements of the deployment location, the target in-vehicle game is deployed on the vehicle computer of the vehicle to be deployed.

[0151] Optionally, the development device 200 further includes an operation module 270, and the operation module 270 is used to:

[0152] After the target in-vehicle game is deployed on the vehicle computer of the vehicle to be deployed, when the target in-vehicle game is started, the current driving information of the target vehicle is obtained;

[0153] Determine the current running state of the target vehicle according to the current driving information;

[0154] When the current running state is driving, the target in-vehicle game is controlled to enter an automatic collection mode; wherein, in the automatic collection mode, the resource update processing of the target in-vehicle game is performed according to the resource collection mechanism based on the current driving information of the target vehicle, and the player is prohibited from operating the target in-vehicle game.

[0155] Optionally, the operation module 270 is further used for:

[0156] When the current running state is parking, the operation permissions of all operation buttons of the target in-vehicle game are enabled, and warning information is displayed through the vehicle display interface.

[0157] Optionally, the target communication protocol is the WebSocket communication protocol.

[0158] See also Figure 4 , Figure 4 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Figure 4 As shown in , the electronic device 400 includes a processor 410 , a memory 420 and a bus 430 .

[0159] The memory 420 stores machine-readable instructions executable by the processor 410. When the electronic device 400 is running, the processor 410 communicates with the memory 420 via the bus 430. When the machine-readable instructions are executed by the processor 410, the above-mentioned Figure 1 The specific implementation of the steps in the method embodiment shown can be found in the method embodiment, and will not be repeated here.

[0160] The present application also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the computer program can execute the above-mentioned Figure 1 The specific implementation of the steps in the method embodiment shown can be found in the method embodiment, and will not be repeated here.

[0161] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0162] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of devices or units can be electrical, mechanical or other forms.

[0163] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0164] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0165] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium that is executable by a processor. Based on this understanding, the technical solution of the present application can essentially be embodied in the form of a software product, or in other words, the part that contributes to the prior art or the part of the technical solution. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0166] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present application, which are used to illustrate the technical solutions of the present application, rather than to limit them. The protection scope of the present application is not limited thereto. Although the present application is described in detail with reference to the above-mentioned embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-mentioned embodiments within the technical scope disclosed in the present application, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.

Claims

1. A method for developing an in-car game, characterized in that: The development method comprises: Determine the target game development engine required for in-vehicle game development; According to the target communication protocol, controlling the target game development engine to establish a communication connection with a vehicle computer in the vehicle to be deployed where the in-vehicle game is applied; Transmitting the movement and driving information of the to-be-deployed vehicle to the target game development engine; According to the movement and driving information of the vehicle to be deployed, design the resource collection mechanism and interaction restriction logic of the in-vehicle game in the target game development engine, and write the game logic in the target game development engine using the target development language; The compiled initial in-vehicle game is tested and debugged to obtain a target in-vehicle game compatible with the vehicle system; wherein the target in-vehicle game is an in-vehicle game combined with driving behavior.

2. The development method according to claim 1, characterized in that: The step of designing a resource collection mechanism for the vehicle-mounted game in the target game development engine according to the movement and driving information of the vehicle to be deployed includes: Determining at least one key driving parameter of the vehicle to be deployed according to the motion driving information of the vehicle to be deployed; For each key driving parameter, designing a resource change strategy corresponding to the key driving parameter in the target game development engine; Complete the design and development of the resource collection mechanism based on the resource change strategy corresponding to all key driving parameters.

3. The development method according to claim 1, characterized in that: The step of designing the interaction restriction logic of the in-vehicle game in the target game development engine according to the movement and driving information of the vehicle to be deployed includes: Determine at least one target operating state of the vehicle to be deployed according to the movement and driving information of the vehicle to be deployed; wherein the target operating state includes parking and driving; For each target operating state, determine the interaction mode corresponding to the target operating state; The interaction restriction logic of the in-vehicle game is determined according to the interaction modes corresponding to all target operating states.

4. The development method according to claim 1, characterized in that: The target in-vehicle game is an in-vehicle H5 game. After obtaining the target in-vehicle game compatible with the vehicle system, the development method further includes: Determine the deployment position of the target in-vehicle game in the vehicle computer of the vehicle to be deployed; According to the deployment requirements of the deployment location, the target in-vehicle game is deployed on the vehicle computer of the vehicle to be deployed.

5. The development method according to claim 4, characterized in that: After the target in-vehicle game is deployed on the vehicle computer of the vehicle to be deployed, the development method further includes: When the target vehicle-mounted game is started, the current driving information of the target vehicle is obtained; Determine the current running state of the target vehicle according to the current driving information; When the current running state is driving, the target in-vehicle game is controlled to enter an automatic collection mode; wherein, in the automatic collection mode, the resource update processing of the target in-vehicle game is performed according to the resource collection mechanism based on the current driving information of the target vehicle, and the player is prohibited from operating the target in-vehicle game.

6. The development method according to claim 5, characterized in that: When the current operating state is parking, the development method further includes: Enable the operation permissions of all operation buttons of the target in-vehicle game, and display the warning information through the vehicle display interface.

7. The development method according to claim 1, characterized in that: The target communication protocol is the WebSocket communication protocol.

8. A device for developing an in-car game, characterized in that: The development device comprises: A determination module, used to determine a target game development engine required for in-vehicle game development; A control module, used for controlling the target game development engine to establish a communication connection with a vehicle computer in a to-be-deployed vehicle in which the in-vehicle game is applied, according to a target communication protocol; A transmission module, used for transmitting the movement and driving information of the vehicle to be deployed to the target game development engine; A design module, for designing a resource collection mechanism and interaction restriction logic of the vehicle-mounted game in the target game development engine according to the movement and driving information of the vehicle to be deployed, and writing game logic in the target game development engine using a target development language; The testing and debugging module is used to test and debug the initially written in-vehicle game to obtain a target in-vehicle game compatible with the vehicle system; wherein the target in-vehicle game is an in-vehicle game combined with driving behavior.

9. An electronic device, characterized in that: include: A processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the memory communicate via the bus, and the machine-readable instructions are executed by the processor to execute the steps of the development method as described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the development method according to any one of claims 1 to 7 are executed.