Game development control configuration method and device
The control reference identifier is obtained through the control level output identification candidate box and bound to the configuration with the game logic information, which solves the problem of low efficiency in game development and realizes efficient and accurate control configuration and use.
Patent Information
- Application Number
- CN202310892175.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-19
- Publication Date
- 2025-01-10
AI Technical Summary
During game development, the configuration efficiency of game controls is low, resulting in confusion or conflict in the logic code of the control calling, increasing labor and time costs, and reducing configuration efficiency and accuracy.
By determining the control level output identification candidate box of the game control to be configured, obtaining the matching control reference identifier, and binding it with the game logic information to configure it, generating a binding index, and realizing the storage structure between the control information and the logical information. Avoid conflicts caused by name dependencies and serialization mechanisms.
It improves the convenience and efficiency of game control configuration, ensures the accuracy of control usage, reduces development costs, and avoids name conflicts.
Smart Images

Figure CN119280831A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of game development, and in particular to a configuration method and device for game development controls. Background Art
[0002] With the rapid development of large-scale online games, the complexity of game development technology is also gradually increasing. Especially in the development process of game control binding, it is usually necessary for front-end interface developers and back-end logic code developers to work together to configure. For example, buttons with special effects need to be configured together with the unique execution logic in the game.
[0003] Since the developers of the logic code layer are different from the developers of the control presentation layer, when modifying the game controls, there may be confusion or conflict in the logic code called by the game controls, which will consume a lot of manpower and time for adjustment, increase the cost of game development, and reduce the configuration efficiency of game development controls and the accuracy of game control use. Summary of the invention
[0004] In view of this, the present invention provides a method and device for configuring a game development control, the main purpose of which is to solve the problem of low configuration efficiency of existing game development controls.
[0005] According to one aspect of the present invention, a method for configuring a game development control is provided, comprising:
[0006] Determine at least one game control to be configured, and output an identification candidate box according to the control level of the game control;
[0007] Acquire a control reference identifier that matches the control level based on the identifier candidate box, wherein the control reference identifier is used to represent a custom unique identity of the game control;
[0008] The control reference identifier is bound to the game logic information corresponding to the game control to generate a binding index of the game control, where the binding index is used to represent the storage structure between the control information of the game control and the game logic information.
[0009] Further, the determining at least one game control to be configured and outputting an identification candidate box according to the control level of the game control includes:
[0010] Searching for all the game controls to be configured from the game project, wherein the game controls include a game parent control and at least one game child control;
[0011] The control level of the game control is determined according to the control type, and a matching identification candidate box is output and displayed according to the control level, and the identification candidate box is used to enter the control reference identification corresponding to the control level.
[0012] Furthermore, the binding configuration of the control reference identifier and the game logic information corresponding to the game control to generate the binding index of the game control includes:
[0013] When it is determined that there is no duplicate reference identifier in the control reference identifier, obtaining the game logic information of the game control running the game item;
[0014] The control reference identifier is bound to the game logic information to generate the binding index, and the control reference identifier has a matching relationship with the control information corresponding to the control level.
[0015] Furthermore, the method further comprises:
[0016] When it is determined that there is an error in the entry of the control reference identifier, an entry result prompt message is output to instruct the control reference identifier to be re-entered through the identifier candidate box.
[0017] Furthermore, after binding and configuring the control reference identifier with the game logic information corresponding to the game control to generate the binding index of the game control, the method further includes:
[0018] After the control information completes the first serialization update, when a first run operation on the game control is received, first target game logic information matching the control reference identifier is searched based on the binding index, and the game control is run based on the first target game logic information; and / or,
[0019] After the game logic information completes the second serialization update, when a second run operation on the game control is received, the second target game logic information matching the control reference identifier is searched based on the binding index, and the game control is run based on the second target game logic information.
[0020] Furthermore, the method further comprises:
[0021] When a data update operation is detected for the control information, a first serialization update is performed on the control information based on a first serialization strategy, and the updated first serialization identifier is re-bound to the control reference identifier of the control information, so as to query the first game logic information based on the re-bound control reference identifier; and / or,
[0022] When a data update operation is detected on the game logic information, a second serialization update is performed on the game logic information based on a second serialization strategy, and the updated second serialization identifier is rebound to the logic path in the binding index to query the second game logic information based on the rebound logic path.
[0023] Furthermore, after binding and configuring the control reference identifier with the game logic information corresponding to the game control to generate the binding index of the game control, the method further includes:
[0024] The control reference identifier is rendered according to the control level, and the game control corresponding to the control level and the rendered control reference identifier are displayed through a control editing component.
[0025] According to another aspect of the present invention, a configuration device for a game development control is provided, comprising:
[0026] An output module, used to determine at least one game control to be configured, and output an identification candidate box according to the control level of the game control;
[0027] An acquisition module, used for acquiring a control reference identifier matching the control level based on the identifier candidate box, wherein the control reference identifier is used to represent a custom unique identity of the game control;
[0028] A configuration module is used to bind and configure the control reference identifier and the game logic information corresponding to the game control to generate a binding index of the game control, wherein the binding index is used to represent the storage structure between the control information of the game control and the game logic information.
[0029] Furthermore, the output module includes:
[0030] A search unit, used to search all the game controls to be configured from the game project, wherein the game controls include a game parent control and at least one game child control;
[0031] An output unit is used to determine the control level of the game control according to the control type, and output a matching identification candidate box according to the control level, wherein the identification candidate box is used to enter the control reference identification corresponding to the control level.
[0032] Furthermore, the configuration module includes:
[0033] An acquiring unit, configured to acquire the game logic information of the game control running the game item when it is determined that there is no duplicate reference identifier in the control reference identifier;
[0034] A generation module is used to bind and configure the control reference identifier and the game logic information to generate the binding index, and the control reference identifier has a matching relationship with the control information corresponding to the control level.
[0035] Furthermore, the output module is also used to output input result prompt information to instruct the control reference identifier to be re-entered through the identifier candidate box when it is determined that there is an error in the input of the control reference identifier.
[0036] Furthermore, the device also includes:
[0037] The first search module is further used to search for the first target game logic information matching the control reference identifier based on the binding index when the first running operation of the game control is received after the control information completes the first serialization update, and run the game control based on the first target game logic information; and / or,
[0038] The second search module is also used to search for the second target game logic information that matches the control reference identifier based on the binding index when a second run operation on the game control is received after the game logic information completes the second serialization update, and run the game control based on the second target game logic information.
[0039] Furthermore, the device also includes:
[0040] A first update module is used to perform a first serialization update on the control information based on a first serialization strategy after detecting a data update operation on the control information, and rebind the updated first serialization identifier with the control reference identifier of the control information to query the first game logic information based on the rebound control reference identifier; and / or,
[0041] The second update module is used to perform a second serialization update on the game logic information based on a second serialization strategy after detecting a data update operation on the game logic information, and rebind the updated second serialization identifier with the logical path in the binding index to query the second game logic information based on the rebound logical path.
[0042] Furthermore, the device also includes:
[0043] A display module is used to render the control reference identifier according to the control level, and display the game control corresponding to the control level and the rendered control reference identifier through a control editing component.
[0044] According to another aspect of the present invention, a storage medium is provided, wherein at least one executable instruction is stored in the storage medium, and the executable instruction enables a processor to execute operations corresponding to the configuration method of the game development control as described above.
[0045] According to another aspect of the present invention, there is provided a terminal, comprising: a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus;
[0046] The memory is used to store at least one executable instruction, and the executable instruction enables the processor to execute operations corresponding to the configuration method of the above-mentioned game development control.
[0047] By means of the above technical solution, the technical solution provided by the embodiment of the present invention has at least the following advantages:
[0048] The present invention provides a configuration method and device for game development controls. Compared with the prior art, the embodiment of the present invention determines at least one game control to be configured, and outputs an identification candidate box according to the control level of the game control; obtains a control reference identification matching the control level based on the identification candidate box, and the control reference identification is used to characterize the custom unique identity of the game control; binds the control reference identification with the game logic information corresponding to the game control, and generates a binding index of the game control, and the binding index is used to characterize the storage structure between the control information of the game control and the game logic information. The visual configuration of the control reference identification of the game control is realized, which greatly improves the convenience of configuration, thereby improving the efficiency of game control configuration. In addition, based on the control reference identification, a mutual query relationship between the presentation layer development information and the logic code layer development information of the game control is established, which gets rid of the dependence of the control information and the logic game information on the game control name, and avoids the game control name conflict caused by the serialization mechanism of control development, thereby effectively improving the accuracy of game control use.
[0049] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented according to the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Moreover, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:
[0051] Figure 1 A flow chart of a configuration method for a game development control provided by an embodiment of the present invention is shown;
[0052] Figure 2 A flow chart of another method for configuring a game development control provided by an embodiment of the present invention is shown;
[0053] Figure 3 A flow chart of a configuration method of another game development control provided by an embodiment of the present invention is shown;
[0054] Figure 4 A block diagram showing a configuration device for game development controls provided by an embodiment of the present invention is shown;
[0055] Figure 5 A schematic diagram of the structure of a terminal provided by an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0056] The exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.
[0057] In the embodiment of the present invention, the game development tool Unity is taken as an example for description, and other game development tools that can adopt this solution are not listed one by one for description.
[0058] The embodiment of the present invention provides a configuration method for game development controls, such as Figure 1 As shown, the method includes:
[0059] 101. Determine at least one game control to be configured, and output an identification candidate box according to the control level of the game control.
[0060] In an embodiment of the present invention, Unity is secondary developed to provide a game control configuration plug-in tool that can visually configure control reference identifiers for game controls. This plug-in tool provides the functions of searching, selecting, and configuring all game controls in the game, so that game developers can select any game control from all game controls as a configuration object through this plug-in tool, and configure this configuration object. When it is detected that the developer selects a game control through the game control configuration plug-in tool, that is, after determining the game control to be configured, the identification candidate box used to configure the game control is displayed in the interface of this plug-in tool according to the control level corresponding to the selected game control, so that the developer can complete the reference identification configuration of the game control by selecting the candidate options in the identification candidate box. Among them, the control level is the position of the game control in the hierarchical structure, for example, the parent level, the child level, and different control levels correspond to different identification candidate boxes. Among them, the game control is any control in the game for game players to control the game process, including but not limited to buttons, drag bars, etc. For example, buttons for skill release, character selection buttons, game information viewing buttons, etc., are not specifically limited in the embodiment of the present invention.
[0061] It should be noted that by providing an identifier candidate box for configuring the reference identifier of the game control in the visual interface of the plug-in tool, the game control configuration process based on code writing is transformed into a configuration process based on visual selection, realizing the what-you-see-is-what-you-get of the control configuration, making the configuration process of the game control more convenient and intuitive.
[0062] 102. Acquire a control reference identifier that matches the control level based on the identifier candidate box.
[0063] In an embodiment of the present invention, the developer enters the control reference identifier based on the identification candidate box, that is, the current execution end can detect that the reference identifier of a certain control entered in the identification candidate box is selected, thereby obtaining the control reference identifier from the identification candidate box. Since the identification candidate box is output according to the control hierarchy, the content entered in the identification candidate box is the control reference identifier written based on the control hierarchy, and therefore, it can be ensured that the control reference identifier entered in the identification candidate box matches the control hierarchy. Among them, the control reference identifier is used to represent a customized unique identity for the game control, that is, the control reference identifier is different from the original name of the game control, and is an alias for the game control that is customized separately. This alias has a unique corresponding relationship with the game control.
[0064] It should be noted that by configuring a control reference identifier for the game control, another identifier that is independent of the original name of the game control is obtained, which is used to uniquely represent the game control. This allows the development content of the game control to be associated with the game control based on the control reference identifier, thereby avoiding the situation where the game control is renamed at different levels of control development, which may lead to confusion or conflict in the game control calling logic code, reducing human resource consumption and game development costs, and at the same time ensuring the accuracy of the game control configuration, thereby effectively improving the efficiency of game control development.
[0065] 103. Bind and configure the control reference identifier and the game logic information corresponding to the game control to generate a binding index of the game control.
[0066] In an embodiment of the present invention, the development configuration content of the game control includes control information and game logic information. Among them, the control information is the content of the game control display level, for example, the appearance display features such as the shape, color, and position of the game control in the game interface. The logic information is the content of the logic code level, for example, the game operation triggered when the game control is clicked, the different game execution logics triggered by the combination click of different game controls and the single game control click, etc. Execution logic code or program. After completing the configuration of the control reference identifier of the game control, in order to configure the control information and the game logic information to the corresponding game control, the game logic information is bound to the control reference identifier of the game control, and the binding index of the game control is generated. Among them, the binding index is used to characterize the storage structure between the control information of the game control and the game logic information. At this time, the binding between the game logic information and the control reference identifier of the game control is bound based on the logical path of querying the game logic information. Through the binding index of the game control, the appearance display features in the control information can be matched with the logic code in the game logic information. For example, a button that is circular in shape and has a bow and arrow pattern corresponds to the logic code for the game character to shoot an arrow at the target; a button that is square in shape and has a lightning pattern corresponds to the logic code for the game character to transform time and space.
[0067] It is required to associate the control information of the game control with the game logic information through the binding index generated by the control reference identifier and the game logic information binding configuration corresponding to the game control, so as to avoid associating the control information with the game logic information based on the game control name, which is prone to game control logic call errors. In this way, the accuracy of the use of game controls is guaranteed on the basis of realizing the integration of the configuration content at the control display level and the configuration content at the game logic code level.
[0068] In another embodiment of the present invention, in order to further define and illustrate, as Figure 2As shown, the step of determining at least one game control to be configured, and outputting an identification candidate box according to the control level of the game control includes:
[0069] 201. Search for all the game controls to be configured from the game project.
[0070] 202. Determine the control level of the game control according to the control type, and output and display a matching identification candidate box according to the control level.
[0071] In an embodiment of the present invention, a game project is a game as a whole development project, for example, a mobile game named A, an online game named B, etc. The visual game control configuration plug-in tool provides a search for all game controls under the current game project, which can be used by developers to find all game controls that need to be configured. After determining the game controls to be configured, since the game controls correspond to different control levels, they can be controls of the parent level, or components of the parent level controls, i.e., sub-level controls, and different control levels correspond to different identification candidate boxes. In addition, in terms of the interface position distribution of the plug-in tool, when all configuration information is left-aligned, the identification candidate box corresponding to the parent level is to the left of the identification candidate box corresponding to the sub-level. Therefore, it is necessary to determine the control level of the game control, and then output the matching identification candidate box. Since each control level is bound to a control type, the control level can be determined according to the control type corresponding to the game control by iterative identification. For example, if the game control corresponds to only one control type, the game control is determined to be a parent-level control. If the game control corresponds to more than one control type, it indicates that the game control has its own control type and inherits the control type of the parent-level control, and the game control is determined to be a child-level control. Among them, the game control is created based on the Unity development platform. When the game control is bound to the game, the control type of the game control can be automatically identified, for example, "Transform", "C Button", "Text", "Slider", etc., and other legal and identifiable control types can also be selected through the component drop-down menu of the game control. The embodiment of the present invention does not specifically limit the method of confirming the control type.
[0072] It should be noted that by determining the control level of the game control according to the control type, and displaying the matching identifier candidate box according to the control level output, candidate boxes of control reference identifiers of multiple levels can be displayed during the configuration process, so that developers can enter control reference identifiers corresponding to different control types, and realize visual configuration of the reference identifiers of the game controls, thereby improving the accuracy of the control reference identifier configuration.
[0073] In another embodiment of the present invention, in order to further define and illustrate, as Figure 3As shown, the step of binding the control reference identifier with the game logic information corresponding to the game control to generate the binding index of the game control includes:
[0074] 301. When it is determined that there is no duplicate reference identifier in the control reference identifier, obtain the game logic information of the game control running the game project.
[0075] 302. Bind and configure the control reference identifier and the game logic information to generate the binding index.
[0076] In an embodiment of the present invention, in order to avoid duplication between the control reference identifier configured by the current game control and the control reference identifier corresponding to other game controls that have been configured, it is necessary to check the control reference identifier for duplication before binding the control reference identifier with the game logic information. Specifically, the control reference identifiers of other currently configured game controls and game controls that have been configured before can be retrieved, and the control reference identifier configured by the current game control can be compared with the other control reference identifiers to determine whether the current control reference identifier is unique and whether there are no duplicate identifiers, thereby ensuring that the game logic information can be uniquely found through the binding index.
[0077] It should be noted that since the control reference identifier and the control information corresponding to the control hierarchy have a matching relationship, and a binding index is established between the control reference identifier and the game logic information, when the control information and the game logic information are modified, the correspondence between the control information and the game logic information based on the control reference identifier still exists, and can still meet the use requirements of the game control.
[0078] In another embodiment of the present invention, for further definition and description, the steps further include:
[0079] When it is determined that there is an error in the entry of the control reference identifier, an entry result prompt message is output to instruct the control reference identifier to be re-entered through the identifier candidate box.
[0080] In an embodiment of the present invention, if during the process of checking the duplicate of the control reference identifier configured by the current game control, it is identified that the control reference identifier of the current configuration is duplicated with the control reference identifier of other game controls to be bound and configured, or the control reference identifier of the game control that has been bound and configured before, then it is determined that the currently entered control reference identifier is wrong. Then, an entry result prompt message is output in the plug-in tool to prompt the developer who entered the control reference identifier that the current control reference identifier is unavailable and a new control reference identifier needs to be re-entered. In the event that a duplicate entry of the control reference identifier is detected, the adjustment direction of the re-entry is clarified to the entry personnel by outputting the entry result prompt message, thereby improving the configuration efficiency while ensuring the accuracy of the control reference identifier configuration.
[0081] In another embodiment of the present invention, for further definition and explanation, after the step of binding the control reference identifier with the game logic information corresponding to the game control and generating the binding index of the game control, the method further includes:
[0082] After the control information completes the first serialization update, when a first run operation on the game control is received, first target game logic information matching the control reference identifier is searched based on the binding index, and the game control is run based on the first target game logic information; and / or,
[0083] After the game logic information completes the second serialization update, when a second run operation on the game control is received, the second target game logic information matching the control reference identifier is searched based on the binding index, and the game control is run based on the second target game logic information.
[0084] In the embodiment of the present invention, after completing the binding index, it will also involve further development and configuration of one or two of the control information of the game control presentation layer and the game logic information of the logic code layer. For example, the developer of the presentation layer modifies the color, shape, and three-dimensional effect of the game control, and the developer of the logic code layer modifies the trigger function corresponding to the game control, etc. The embodiment of the present invention does not specifically limit the detailed update content of the control information and the game logic information. According to the serialization mechanism of the Unity development platform, when any item of information of the game control is updated, the game control needs to be serialized and updated based on the corresponding serialization strategy to distinguish the game control of the information before and after the update. For example, when the control information is updated, a coding number is added to the back of the original name of the game control to distinguish the game control corresponding to the control information before the update. After the control information is developed and configured, that is, the first serialization update is completed, the game control is in a waiting state. When the first operation indicating that the game control runs the corresponding game function is received, the game control needs to find the logical path of the first target game logic information that matches the control reference identifier of the current game control based on the binding index, retrieve the first target game logic information based on this logical path, and execute the corresponding game function according to this logical information. For example, if the first target game logic information that matches the control reference identifier of the current game control is a logic code that instructs the character to jump, then executing this logic code causes the character in the game to jump. Similarly, after the game logic control completes the development configuration, that is, after the second serialization update is completed, the game control enters the waiting state. When a run operation that instructs the game control to run the corresponding game function, that is, the second run operation, is received, the second target game logic information of the second serialization update version is retrieved based on the binding index to execute the corresponding game function according to this logic information.
[0085] It should be noted that only one of the first serialization update and the second serialization update can occur, or both can occur. Whether to update and the timing of the update completely depend on the developer's update operation on the control information and game logic information. Regardless of whether the control information and game logic information are updated, the game control can be displayed in the game interface with the latest version of the control information based on the matching relationship of the control reference identifier; when the player issues an operation action on the game control, the game control can also find the latest development version of the game logic information based on the binding index, and execute the corresponding game function according to this logic information, thereby ensuring that the information configured by the developer is accurately implemented during the use of the game control.
[0086] In another embodiment of the present invention, for further definition and description, the steps further include:
[0087] When a data update operation is detected for the control information, a first serialization update is performed on the control information based on a first serialization strategy, and the updated first serialization identifier is re-bound to the control reference identifier of the control information, so as to query the first game logic information based on the re-bound control reference identifier; and / or,
[0088] When a data update operation is detected on the game logic information, a second serialization update is performed on the game logic information based on a second serialization strategy, and the updated second serialization identifier is rebound to the logic path in the binding index to query the second game logic information based on the rebound logic path.
[0089] In an embodiment of the present invention, the serialization strategy is a strategy for serializing and encoding based on the original name of the game control to obtain a serialization identifier for characterizing the updated version of the game control. For example, based on the update of the control information, the name of the game control "BthClose" is serialized and updated to the serialization identifier "BthClose1", or the serialization identifier "BthClose3" of the game control is updated to the serialization identifier "BthClose4". Among them, the first serialization strategy is a serialization strategy preset corresponding to the update of the control information, and the second serialization strategy is a serialization strategy preset corresponding to the update of the game logic information. In order to ensure that after the serialization identifier of the game control is updated with the update of the control information or the game logic information, the control information or the game logic information can still be queried and matched based on the control reference identifier, and the data update operation of the control information and the game logic information is detected. When the data update of the control information is detected, the control information is serialized and updated based on the first serialization strategy, that is, the first serialization update, and the updated serialization identifier (first serialization identifier) is re-bound to the control reference identifier matching the control information. When the data update of the game logic information is detected, the control information is serialized and updated based on the second serialization strategy, i.e., the second serialization update, and the updated serialization identifier (second serialization identifier) is re-bound to the logical path in the binding index. The data update of the control information and the data update of the game logic information can occur simultaneously, or only one of them can occur, i.e., which information is detected to have its data updated, and the above operation is performed on that information, which is not specifically limited in the embodiment of the present invention.
[0090] It should be noted that the first serialization strategy and the second serialization strategy can be the same or different. Developers of the presentation layer and the logic code layer can configure the serialization strategy based on their respective development habits. Since the control information and the game logic information are connected based on the control reference identifier, the corresponding serialization identifiers are isolated and there is no direct matching relationship. Therefore, the difference between the first serialization identifier and the second serialization identifier will not have any impact on the search for control information and game logic information. By rebinding the updated serialization identifier with the control reference identifier, the accuracy of the query relationship between the control information and the game logic information is guaranteed. At the same time, the control information and the game logic information continue to maintain a mutually isolated relationship, thereby ensuring the accuracy of the logic call during the use of the game control.
[0091] In another embodiment of the present invention, for further definition and explanation, after the step of binding the control reference identifier with the game logic information corresponding to the game control and generating the binding index of the game control, the method further includes:
[0092] The control reference identifier is rendered according to the control level, and the game control corresponding to the control level and the rendered control reference identifier are displayed through a control editing component.
[0093] In an embodiment of the present invention, after completing the configuration and binding of the control reference identifier, the control reference identifier is displayed in the relevant information display area of the game control of the game control configuration plug-in tool, for example, the control reference identifier is displayed in the same row, on the right, in the same row, on the left, etc. of the game control name, and the embodiment of the present invention makes specific limitations. In order to highlight the display of the control reference identifier, the control reference identifier is rendered in a special color. Specifically, different rendering colors are configured according to the different control levels of the game control corresponding to the control reference identifier, for example, the control reference identifier of the parent level is configured as dark green, and the control reference identifier of the child level is configured as light green, or the control reference identifier of the parent level is configured as blue, and the control reference identifier of the child level is configured as yellow. The rendering color of the control reference identifier is not specifically limited in the embodiment of the present invention. By displaying different colors of the control reference identifier, marking the different control levels corresponding to the control reference identifier, the display of the control reference identifier is made more intuitive and clear, thereby improving the operating experience of the plug-in tool operator.
[0094] The present invention provides a configuration method for game development controls. Compared with the prior art, the embodiment of the present invention determines at least one game control to be configured, and outputs an identification candidate box according to the control level of the game control; based on the identification candidate box, a control reference identification matching the control level is obtained, and the control reference identification is used to characterize the custom unique identity of the game control; the control reference identification is bound and configured with the game logic information corresponding to the game control, and a binding index of the game control is generated, and the binding index is used to characterize the storage structure between the control information of the game control and the game logic information. The visual configuration of the control reference identification of the game control is realized, which greatly improves the convenience of configuration, thereby improving the efficiency of game control configuration. In addition, based on the control reference identification, a mutual query relationship between the presentation layer development information and the logic code layer development information of the game control is established, which gets rid of the dependence of the control information and the logic game information on the game control name, and avoids the game control name conflict caused by the serialization mechanism of control development, thereby effectively improving the accuracy of game control use.
[0095] Furthermore, as a response to the above Figure 1 The embodiment of the present invention provides a configuration device for game development controls, such as Figure 4 As shown, the device comprises:
[0096] An output module 41, used to determine at least one game control to be configured, and output an identification candidate box according to the control level of the game control;
[0097] An acquisition module 42, configured to acquire a control reference identifier that matches the control level based on the identifier candidate box, wherein the control reference identifier is used to represent a custom unique identity of the game control;
[0098] The configuration module 43 is used to bind and configure the control reference identifier and the game logic information corresponding to the game control to generate a binding index of the game control, and the binding index is used to represent the storage structure between the control information of the game control and the game logic information.
[0099] Furthermore, the output module 41 includes:
[0100] A search unit, used to search all the game controls to be configured from the game project, wherein the game controls include a game parent control and at least one game child control;
[0101] An output unit is used to determine the control level of the game control according to the control type, and output a matching identification candidate box according to the control level, wherein the identification candidate box is used to enter the control reference identification corresponding to the control level.
[0102] Furthermore, the configuration module 43 includes:
[0103] An acquiring unit, configured to acquire the game logic information of the game control running the game item when it is determined that there is no duplicate reference identifier in the control reference identifier;
[0104] A generation module is used to bind and configure the control reference identifier and the game logic information to generate the binding index, and the control reference identifier has a matching relationship with the control information corresponding to the control level.
[0105] Furthermore, the output module 41 is further configured to output an input result prompt message when it is determined that an error exists in the input of the control reference identifier, so as to instruct the control reference identifier to be input again through the identifier candidate box.
[0106] Furthermore, the device also includes:
[0107] The first search module is further used to search for the first target game logic information matching the control reference identifier based on the binding index when the first running operation of the game control is received after the control information completes the first serialization update, and run the game control based on the first target game logic information; and / or,
[0108] The second search module is also used to search for the second target game logic information that matches the control reference identifier based on the binding index when a second run operation on the game control is received after the game logic information completes the second serialization update, and run the game control based on the second target game logic information.
[0109] Furthermore, the device also includes:
[0110] A first update module is used to perform a first serialization update on the control information based on a first serialization strategy after detecting a data update operation on the control information, and rebind the updated first serialization identifier with the control reference identifier of the control information to query the first game logic information based on the rebound control reference identifier; and / or,
[0111] The second update module is used to perform a second serialization update on the game logic information based on a second serialization strategy after detecting a data update operation on the game logic information, and rebind the updated second serialization identifier with the logical path in the binding index to query the second game logic information based on the rebound logical path.
[0112] Furthermore, the device also includes:
[0113] A display module is used to render the control reference identifier according to the control level, and display the game control corresponding to the control level and the rendered control reference identifier through a control editing component.
[0114] The present invention provides a configuration device for game development controls. Compared with the prior art, the embodiment of the present invention determines at least one game control to be configured, and outputs an identification candidate box according to the control level of the game control; obtains a control reference identification matching the control level based on the identification candidate box, and the control reference identification is used to characterize the custom unique identity of the game control; binds the control reference identification with the game logic information corresponding to the game control, and generates a binding index of the game control, and the binding index is used to characterize the storage structure between the control information of the game control and the game logic information. The visual configuration of the control reference identification of the game control is realized, which greatly improves the convenience of configuration, thereby improving the efficiency of game control configuration. In addition, based on the control reference identification, a mutual query relationship between the presentation layer development information and the logic code layer development information of the game control is established, which gets rid of the dependence of the control information and the logic game information on the game control name, and avoids the game control name conflict caused by the serialization mechanism of control development, thereby effectively improving the accuracy of game control use.
[0115] According to an embodiment of the present invention, a storage medium is provided, wherein the storage medium stores at least one executable instruction, and the computer executable instruction can execute the configuration method of the game development control in any of the above method embodiments.
[0116] Figure 5 A schematic diagram of the structure of a terminal provided according to an embodiment of the present invention is shown. The specific embodiment of the present invention does not limit the specific implementation of the terminal.
[0117] like Figure 5 As shown, the terminal may include: a processor (processor) 502 , a communication interface (Communications Interface) 504 , a memory (memory) 506 , and a communication bus 508 .
[0118] The processor 502 , the communication interface 504 , and the memory 506 communicate with each other via a communication bus 508 .
[0119] The communication interface 504 is used to communicate with other devices such as clients or other servers.
[0120] The processor 502 is used to execute the program 510, and specifically can execute the relevant steps in the above-mentioned configuration method embodiment of the game development control.
[0121] Specifically, the program 510 may include program codes, which include computer operation instructions.
[0122] The processor 502 may be a central processing unit (CPU), or an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiment of the present invention. The one or more processors included in the terminal may be processors of the same type, such as one or more CPUs; or processors of different types, such as one or more CPUs and one or more ASICs.
[0123] The memory 506 is used to store the program 510. The memory 506 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.
[0124] The program 510 may be specifically configured to enable the processor 502 to perform the following operations:
[0125] Determine at least one game control to be configured, and output an identification candidate box according to the control level of the game control;
[0126] Acquire a control reference identifier that matches the control level based on the identifier candidate box, wherein the control reference identifier is used to represent a custom unique identity of the game control;
[0127] The control reference identifier is bound to the game logic information corresponding to the game control to generate a binding index of the game control, where the binding index is used to represent the storage structure between the control information of the game control and the game logic information.
[0128] Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, and optionally, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order than here, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.
[0129] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A method for configuring a game development control, characterized in that: include: Determine at least one game control to be configured, and output an identification candidate box according to the control level of the game control; Acquire a control reference identifier that matches the control level based on the identifier candidate box, wherein the control reference identifier is used to represent a custom unique identity of the game control; The control reference identifier is bound to the game logic information corresponding to the game control to generate a binding index of the game control, where the binding index is used to represent the storage structure between the control information of the game control and the game logic information.
2. The method according to claim 1, characterized in that The determining of at least one game control to be configured and outputting an identification candidate box according to the control level of the game control comprises: Searching for all the game controls to be configured from the game project, wherein the game controls include a game parent control and at least one game child control; The control level of the game control is determined according to the control type, and a matching identification candidate box is output and displayed according to the control level, and the identification candidate box is used to enter the control reference identification corresponding to the control level.
3. The method according to claim 2, characterized in that The step of binding the control reference identifier with the game logic information corresponding to the game control to generate a binding index for the game control includes: When it is determined that there is no duplicate reference identifier in the control reference identifier, obtaining the game logic information of the game control running the game item; The control reference identifier is bound to the game logic information to generate the binding index, and the control reference identifier has a matching relationship with the control information corresponding to the control level.
4. The method according to claim 3, characterized in that The method further comprises: When it is determined that there is an error in the entry of the control reference identifier, an entry result prompt message is output to instruct the control reference identifier to be re-entered through the identifier candidate box.
5. The method according to claim 1, characterized in that After binding and configuring the control reference identifier with the game logic information corresponding to the game control to generate the binding index of the game control, the method further includes: After the control information completes the first serialization update, when a first run operation on the game control is received, first target game logic information matching the control reference identifier is searched based on the binding index, and the game control is run based on the first target game logic information; and / or, After the game logic information completes the second serialization update, when a second run operation on the game control is received, the second target game logic information matching the control reference identifier is searched based on the binding index, and the game control is run based on the second target game logic information.
6. The method according to claim 5, characterized in that The method further comprises: When a data update operation is detected for the control information, a first serialization update is performed on the control information based on a first serialization strategy, and the updated first serialization identifier is re-bound to the control reference identifier of the control information, so as to query the first game logic information based on the re-bound control reference identifier; and / or, When a data update operation is detected on the game logic information, a second serialization update is performed on the game logic information based on a second serialization strategy, and the updated second serialization identifier is rebound to the logic path in the binding index to query the second game logic information based on the rebound logic path.
7. The method according to any one of claims 1 to 6, characterized in that: After binding and configuring the control reference identifier with the game logic information corresponding to the game control to generate the binding index of the game control, the method further includes: The control reference identifier is rendered according to the control level, and the game control corresponding to the control level and the rendered control reference identifier are displayed through a control editing component.
8. A configuration device for game development controls, characterized in that: include: An output module, used to determine at least one game control to be configured, and output an identification candidate box according to the control level of the game control; An acquisition module, used for acquiring a control reference identifier matching the control level based on the identifier candidate box, wherein the control reference identifier is used to represent a custom unique identity of the game control; A configuration module is used to bind and configure the control reference identifier and the game logic information corresponding to the game control to generate a binding index of the game control, wherein the binding index is used to represent the storage structure between the control information of the game control and the game logic information.
9. A storage medium storing at least one executable instruction, wherein the executable instruction enables a processor to execute an operation corresponding to the configuration method of a game development control as described in any one of claims 1-7.
10. A terminal, comprising: A processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus; The memory is used to store at least one executable instruction, and the executable instruction enables the processor to execute an operation corresponding to the configuration method of the game development control according to any one of claims 1-7.