Game entity slot transformation method and device, electronic equipment and storage medium
By uniformly managing the slot structure tree and accessory identification of game entities in the game server, the problem of inconsistent slot data structures of different types of game entities is solved, and the effect of reducing maintenance costs is achieved.
Patent Information
- Application Number
- CN202411636580.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-15
- Publication Date
- 2025-03-07
AI Technical Summary
In the prior art, slots of different types of game entities are implemented through different data structures, resulting in inconsistent design ideas, lack of unified maintenance and development standards, and high maintenance costs.
By storing the slot structure tree, multiple accessories and the identification of each accessory corresponding to each game entity in the server, the slot transformation instructions are obtained, and the slot configuration information and the identification of the accessory are obtained from the server based on the target game entity, the slot to be modified, and the target accessory, and the modification instructions are executed to transform the slot.
Maintaining slots of different types of game entities through a unified slot structure tree avoids the need for different personnel to maintain different data structures and reduces maintenance costs.
Smart Images

Figure CN119565153A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of game technology, and in particular to a method, device, electronic device and storage medium for transforming a physical game slot. Background Art
[0002] For a game, players can operate different types of game entities. Each game entity is equipped with multiple slots that can accommodate various entities or virtual elements, including but not limited to weapon models, special effect particles, composites, and virtual components for logical queries and data scheduling. These entities or virtual elements may be presented in the form of actual rendering, or they may only be used to perform specific logical functions without being visually displayed.
[0003] In the prior art, slots for different types of game entities are implemented through different data structures, which may lead to inconsistent design ideas among different designers when designing slots for different types of game entities. The data structures of slots for different game entities lack unified maintenance and development standards. Therefore, different personnel are required to maintain different data structures, resulting in high maintenance costs. Summary of the invention
[0004] The purpose of the present invention is to provide a method, device, electronic device and storage medium for transforming a physical game slot to solve the problem of high maintenance cost.
[0005] In a first aspect, the present invention provides a method for modifying a game entity slot, which is applied to an electronic device, wherein the electronic device is connected to a server for communication, and the server stores a slot structure tree corresponding to each game entity, a plurality of accessories, and an identifier corresponding to each of the accessories, wherein the slot structure tree includes a plurality of slots and configuration information of each slot, and the method includes:
[0006] Obtain a slot modification instruction; the modification instruction includes a target game entity, a slot to be modified, and a target accessory; the slot to be modified is a slot of the target game entity;
[0007] Acquire, from the server according to the target game entity, the slot to be modified and the target accessory, the configuration information of the slot to be modified in the slot to be modified structure tree of the target game entity and the identifier of the target accessory;
[0008] The transformation instruction is executed according to the configuration information of the slot to be transformed and the identifier of the target accessory to transform the slot to be transformed.
[0009] In an optional implementation, executing the modification instruction according to the configuration information of the slot to be modified and the identifier of the target accessory to modify the slot to be modified includes:
[0010] If the slot modification instruction is to insert the target accessory into the slot to be modified, the identifier of the target accessory is written into the configuration information of the slot to be modified so that the target accessory can function according to the configuration information of the slot to be modified.
[0011] In an optional implementation manner, the configuration information of the slot to be modified includes the types of accessories supported for insertion, and the step of writing the identifier of the target accessory into the configuration information of the slot to be modified includes:
[0012] Determine whether the type of the target accessory matches the type of the supported insertion accessory;
[0013] If the type of the target accessory matches the type of the supported insertion accessory, the identifier of the target accessory is written into the configuration information of the slot to be modified.
[0014] In an optional implementation, executing the modification instruction according to the configuration information of the slot to be modified and the identifier of the target accessory to modify the slot to be modified includes:
[0015] If the slot modification instruction is to remove the target accessory from the slot to be modified, the identifier of the target accessory is deleted from the configuration information of the slot to be modified.
[0016] In an optional embodiment, the target game entity is a spaceship body; the configuration information of the slot to be modified is to superimpose the function of the target accessory to the target game entity after inserting the target accessory, and to remove the function of the target accessory from the target game entity after removing the target accessory.
[0017] In an optional embodiment, the target game entity is a spaceship;
[0018] If the slot to be modified is a first spaceship slot type, the configuration information of the slot to be modified is that after the target accessory is inserted, the target accessory is displayed at the position corresponding to the slot to be modified on the target game entity, the target accessory moves with the target game entity, and the function of the target accessory to control the target game entity is enabled; after the target accessory is removed, the target accessory is removed from the target game entity;
[0019] If the slot to be modified is a second spaceship slot type, the configuration information of the slot to be modified is to display the target accessory at the position corresponding to the slot to be modified on the target game entity after inserting the target accessory, and the inserted accessory moves with the target game entity; after removing the target accessory, the target accessory is removed from the target game entity.
[0020] In an optional embodiment, the target game entity is a character;
[0021] If the slot to be modified is a first character slot type, the configuration information of the slot to be modified is to add the attributes of the target accessory to the attributes of the target game entity after the target accessory is inserted; and to remove the attributes of the target accessory added to the target game entity after the target accessory is removed;
[0022] If the slot to be modified is a second character slot type, the configuration information of the slot to be modified is to superimpose the hit bounding box of the target accessory to the target game entity after inserting the target accessory; and to remove the hit bounding box of the target accessory from the target game entity after removing the target accessory.
[0023] In a second aspect, the present invention provides a game entity slot transformation device, which is applied to an electronic device, wherein the electronic device is connected to a server for communication, wherein the server stores a slot structure tree corresponding to each game entity, a plurality of accessories, and an identifier corresponding to each of the accessories, wherein the slot structure tree includes a plurality of slots and configuration information of each slot, and the device includes:
[0024] A slot modification instruction acquisition module is used to acquire a slot modification instruction; the modification instruction includes a target game entity, a slot to be modified, and a target accessory; the slot to be modified is a slot of the target game entity;
[0025] A transformation information acquisition module, used for acquiring, from the server, the configuration information of the slot to be transformed in the slot structure tree to be transformed of the target game entity and the identification of the target accessory according to the target game entity, the slot to be transformed and the target accessory;
[0026] The transformation module is used to execute the transformation instruction according to the configuration information of the slot to be transformed and the identifier of the target accessory, so as to transform the slot to be transformed.
[0027] In a third aspect, the present invention provides an electronic device, comprising a processor and a memory, wherein the memory stores a computer program that can be executed by the processor, and the computer program executable by the processor is used to implement the game entity slot transformation method described in any of the aforementioned embodiments.
[0028] In a fourth aspect, the present invention provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the game entity slot transformation method as described in any one of the aforementioned embodiments is implemented.
[0029] The game entity slot transformation method, device, electronic device and storage medium provided by the embodiment of the present invention are applied to electronic devices, the electronic device is connected to a server in communication, the server stores a slot structure tree corresponding to each game entity, multiple accessories and an identification corresponding to each accessory, the slot structure tree includes multiple slots and configuration information of each slot, the method includes: obtaining a slot transformation instruction, the transformation instruction includes a target game entity, a slot to be transformed and a target accessory, the slot to be transformed is the slot of the target game entity, according to the target game entity, the slot to be transformed and the target accessory, the configuration information of the slot to be transformed in the slot structure tree to be transformed of the target game entity and the identification of the target accessory are obtained from the server, the transformation instruction is executed according to the configuration information of the slot to be transformed and the identification of the target accessory, and the slot to be transformed is transformed. The slots of different types of game entities are maintained through a unified slot structure tree, so different personnel are not required to perform maintenance, thereby reducing maintenance costs. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention 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 creative work.
[0031] Figure 1 A schematic diagram showing a process of a method for transforming and generating a game entity slot provided by an embodiment of the present invention is shown;
[0032] Figure 2 A schematic diagram of a slot structure tree provided by an embodiment of the present invention is shown;
[0033] Figure 3 A module block diagram of a game entity slot transformation and generation device provided by an embodiment of the present invention is shown;
[0034] Figure 4 A block diagram of an electronic device provided by an embodiment of the present invention is shown.
[0035] Icons: 100 electronic device; 110 - memory; 120 - processor; 130 - communication module; 200 - game entity slot transformation device; 210 - slot transformation instruction acquisition module; 220 - transformation information acquisition module; 230 - transformation module. DETAILED DESCRIPTION
[0036] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Generally, the components of the embodiments of the present invention described and shown in the drawings here can be arranged and designed in various different configurations.
[0037] Therefore, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the invention claimed for protection, but merely represents selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0038] It should be noted that relational terms such as "first" and "second" are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprises" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0039] See also Figure 1 , Figure 1 A schematic flow chart of a method for modifying a game entity slot provided by an embodiment of the present invention is shown. The method for modifying a game entity slot can be applied to an electronic device, which is connected to a server for communication. The server stores a slot structure tree corresponding to each game entity, a plurality of accessories, and an identifier corresponding to each accessory. The slot structure tree includes a plurality of slots and configuration information of each slot. The specific flow of this embodiment is described below by taking an electronic device as an example. Figure 1 The process shown is described in detail, and the game entity slot transformation method can specifically include the following steps:
[0040] Step 110: Get slot transformation instructions.
[0041] Among them, the transformation instruction includes the target game entity, the slot to be transformed and the target accessory; the slot to be transformed is the slot of the target game entity, that is, the slot to be transformed is the slot in the slot structure tree corresponding to the target game entity.
[0042] In some embodiments, a game can be run in an electronic device, and a user can perform a modification operation on a slot to be modified of a target game entity in the game, and the electronic device can respond to the modification operation and obtain a slot modification instruction. The user can modify the slot of the game entity to install, remove, and replace accessories. The accessories can be characters, mechas, spaceships, weapons, equipment, and decorations.
[0043] In some embodiments, Figure 2 As shown, the slot structure tree includes multiple slots and configuration information of each slot.
[0044] In some embodiments, the slots in the slot structure tree corresponding to the target game entity may include non-modifiable slots. The non-modifiable slots have been configured with accessories when configuring the slot structure tree corresponding to the target game, and users cannot modify the non-modifiable slots.
[0045] Step 120: According to the target game entity, the slot to be modified and the target accessory, the configuration information of the slot to be modified in the slot to be modified structure tree of the target game entity and the identifier of the target accessory are obtained from the server.
[0046] In some embodiments, the electronic device stores a correspondence between slots and slot identifiers, and a structure tree of slots to be modified includes the identifier of each slot. The electronic device can determine the structure tree of slots to be modified based on the target game entity, and then obtain the identifier of the slot to be modified based on the slot to be modified and the correspondence between the slot and the slot identifier, obtain the configuration information of the slot to be modified from the structure tree of slots to be modified based on the identifier of the slot to be modified, and obtain the identifier of the target accessory from the server based on the target accessory.
[0047] Step 130: Execute the transformation instruction according to the configuration information of the slot to be transformed and the identifier of the target accessory to transform the slot to be transformed.
[0048] In some embodiments, the user can modify the slot structure tree corresponding to each game entity in the server. If the operating logic of the slot needs to be modified, there is no need to change other files. Only the configuration file corresponding to the slot needs to be modified to achieve the modification of the operating logic of the slot. Therefore, development efficiency and scalability can be improved.
[0049] The game entity slot transformation method provided by the embodiment of the present invention obtains a slot transformation instruction, the transformation instruction includes a target game entity, a slot to be transformed and a target accessory, the slot to be transformed is the slot of the target game entity, the configuration information of the slot to be transformed in the slot structure tree of the target game entity and the identification of the target accessory are obtained from the server according to the target game entity, the slot to be transformed and the target accessory, the transformation instruction is executed according to the configuration information of the slot to be transformed and the identification of the target accessory, and the slot to be transformed is transformed. The slots of different types of game entities are maintained through a unified slot structure tree, so different personnel do not need to perform maintenance, thereby reducing maintenance costs.
[0050] In some embodiments, the slot modification instruction may be to insert an accessory into the slot, and step 130 specifically also includes the following steps: if the slot modification instruction is to insert a target accessory into the slot to be modified, then the identifier of the target accessory is written into the configuration information of the slot to be modified, so that the target accessory implements its function according to the configuration information of the slot to be modified.
[0051] For example, the slot to be modified is slot 1 of character 1, the target accessory is weapon 1, and the identifier of weapon 1 is A1. If the slot modification instruction is to insert weapon 1 into slot 1, then the identifier A1 of weapon 1 is written into the configuration information of the slot to be modified (slot 1).
[0052] In some embodiments, the configuration information of the slot to be modified includes the types of accessories supported for insertion, and the electronic device can determine whether the type of the target accessory matches the type of accessories supported for insertion; if the type of the target accessory matches the type of accessories supported for insertion, the identifier of the target accessory is written into the configuration information of the slot to be modified; if the type of the target accessory does not match the type of accessories supported for insertion, the identifier of the target accessory is not written into the location information.
[0053] For example, the slot to be modified is seat 1 of spaceship 1, and the configuration information of seat 1 includes the supported insertion accessory type as role type. If the target accessory is role 1 and the type of role 1 is role type, then the type of the target accessory matches the supported insertion accessory type, and the identifier B1 of role 1 is written into the configuration information of seat 1; if the target accessory is equipment 1 and the type of equipment 1 is equipment type, then the type of the target accessory does not match the supported insertion accessory type, and the identifier C1 of equipment 1 is not written into the configuration information of seat 1.
[0054] In some implementations, the slot modification instruction may also be to remove the accessory from the slot, and step 130 specifically includes the following steps: if the slot modification instruction is to remove the target accessory from the slot to be modified, the identifier of the target accessory is deleted from the configuration information of the slot to be modified.
[0055] It is understandable that when the inserted target accessory needs to be removed from the slot to be modified, the configuration information of the slot to be modified includes the identifier of the target accessory. Therefore, when executing the modification instruction, the identifier of the target accessory is deleted from the configuration information of the slot to be modified.
[0056] In some implementations, game entities may include spaceships, mechas, and characters, etc., which are not limited here.
[0057] When the target game entity is the spaceship body, the configuration information of the slot to be modified is to superimpose the function of the target accessory to the target game entity after the target accessory is inserted, and to remove the function of the target accessory from the target game entity after the target accessory is removed.
[0058] For example, the target game entity is the spaceship body, the slot to be modified is weapon slot 1, and the target accessory is a shield generator. If the slot modification instruction is to insert the shield generator (target accessory) into weapon slot 1 (slot to be modified), the identifier of the shield generator (target accessory) is written into the configuration information of weapon slot 1 (slot to be modified), and the function of the shield generator (target accessory) is superimposed on the spaceship body (target game entity) to enhance the protection performance of the spaceship body; if the slot modification instruction is to remove the shield generator (target accessory) from weapon slot 1 (slot to be modified), the identifier of the shield generator (target accessory) is deleted from the configuration information of weapon slot 1 (slot to be modified), and the function of the shield generator (target accessory) is removed from the spaceship body (target game entity), and the spaceship body (target game entity) is restored to the state before the shield generator (target accessory) is inserted.
[0059] When the target game entity is a spaceship, the slots to be transformed have different spaceship slot types, and the configuration information of the slots of different spaceship slot types is different.
[0060] In some embodiments, if the slot to be modified is a first spaceship slot type, the configuration information of the slot to be modified is to display the target accessory at a position corresponding to the slot to be modified on the target game entity after the target accessory is inserted, the target accessory moves with the target game entity, and the function of the target accessory to control the target game entity is opened; and the target accessory is removed from the target game entity after the target accessory is removed.
[0061] For example, the target game entity is a spaceship, the target accessory is character 1, the first spaceship slot type is a driving type, the slot to be modified is a driving seat, and the type of the driving seat is a driving type. After inserting character 1 (target accessory), the game interface displays the position of character 1 (target accessory) corresponding to the driving seat (slot to be modified) on the spaceship (target game entity), and character 1 (target accessory) moves according to the spaceship (target game entity) and remains at the position corresponding to the driving seat (slot to be modified), and character 1 (target accessory) can control the flight of the spaceship; after removing character 1 (target accessory), character 1 (target accessory) is removed from the spaceship (target game entity), and the game interface displays that character 1 (target accessory) is not at the position corresponding to the driving seat (slot to be modified) on the spaceship (target game entity).
[0062] In some embodiments, if the slot to be modified is a second spaceship slot type, the configuration information of the slot to be modified is to display the target accessory at the position corresponding to the slot to be modified on the target game entity after the target accessory is inserted, and the inserted accessory moves with the target game entity; after the target accessory is removed, the target accessory is removed from the target game entity.
[0063] For example, the target game entity is a spaceship, the target accessory is character 2, the first spaceship slot type is the riding type, the slot to be modified is the riding seat, and the type of the riding seat is the riding type. After inserting character 2 (target accessory), the game interface displays the position of character 2 (target accessory) corresponding to the riding seat (slot to be modified) on the spaceship (target game entity), and character 2 (target accessory) moves according to the spaceship (target game entity) and remains at the position corresponding to the driving seat (slot to be modified); after removing character 2 (target accessory), character 2 (target accessory) is removed from the spaceship (target game entity), and the game interface displays that character 2 (target accessory) is not at the position corresponding to the riding seat (slot to be modified) on the spaceship (target game entity).
[0064] When the target game entity is a character, the slot structure tree to be modified includes slots of multiple character slot types, and the configuration information of slots of different character slot types is different.
[0065] In some embodiments, if the slot to be modified is a first character slot type, the configuration information of the slot to be modified is to add the attributes of the target accessory to the attributes of the target game entity after the target accessory is inserted, and to remove the attributes of the target accessory added to the target game entity after the target accessory is removed.
[0066] For example, the target accessory is a sword, the attribute of the sword is 5 attack power, the attribute of the character (target game entity) is 8 attack power, the slot to be modified is an attack equipment slot, the first character slot type is attack type, and the attack equipment slot is attack type. After inserting the sword (target accessory), the 5 attack power of the sword (target accessory) is added to the 8 attack power of the character (target game entity), and the current attribute of the character (target game entity) is 13 attack power (5+8); after removing the sword (target accessory), the 5 attack power added to the character (target game entity) by the sword (target accessory) is removed, and the current attribute of the character (target game entity) is 8 attack power.
[0067] In some embodiments, if the slot to be modified is a second character slot type, the configuration information of the slot to be modified is to superimpose the hit bounding box of the target accessory to the target game entity after inserting the target accessory, and to remove the hit bounding box of the target accessory from the target game entity after removing the target accessory.
[0068] It should be noted that the hit bounding box is a virtual collision area used in the game to detect whether the character is attacked.
[0069] For example, the target accessory is a large armor, the slot to be modified is a defense equipment slot, the first character slot type is a defense type, and the defense equipment slot is a defense type. After inserting the large armor (target accessory), the hit bounding box of the large armor (target accessory) is superimposed on the hit bounding box of the character (target game entity), and the virtual collision area of the character (target game entity) currently under attack increases; after removing the large armor (target accessory), the hit bounding box of the large armor (target accessory) superimposed on the character (target game entity) is removed, and the virtual collision area of the character (target game entity) currently under attack will be restored to the state before the large armor (target accessory) was inserted.
[0070] If the slot to be modified is a third character slot type, the configuration information of the slot to be modified is to add the data provided by the target accessory to the target game entity after the accessory is inserted; and to delete the data provided by the target accessory from the target game entity after the target accessory is removed.
[0071] For example, the target accessory is an attack skill, the slot to be modified is a skill slot, the first character slot type is a skill type, and the skill slot is a skill type. After inserting the attack skill (target accessory), the data provided by the attack skill (target accessory) is superimposed on the character (target game entity), and the character (target game entity) can use the attack skill (target accessory); after removing the attack skill (target accessory), the data provided by the attack skill (target accessory) is deleted from the character (target game entity), and the character (target game entity) cannot use the attack skill (target accessory).
[0072] In order to execute the corresponding steps in the above embodiments and various possible methods, a method for implementing a game entity slot transformation device is provided below. Figure 3 , FIG. 1 is a functional module diagram of a game entity slot transformation device provided by an embodiment of the present invention. It should be noted that the basic principle and technical effects of the game entity slot transformation device provided by this embodiment are the same as those of the above embodiments. For the sake of brief description, for the parts not mentioned in this embodiment, reference can be made to the corresponding contents in the above embodiments. The game entity slot transformation device 200 includes: a slot transformation instruction acquisition module 210, a transformation information acquisition module 220 and a transformation module 230, wherein:
[0073] The slot modification instruction acquisition module 210 is used to acquire slot modification instructions; the modification instruction includes a target game entity, a slot to be modified, and a target accessory; the slot to be modified is the slot of the target game entity.
[0074] The transformation information acquisition module 220 is used to obtain the configuration information of the slot to be transformed in the slot to be transformed structure tree of the target game entity and the identification of the target accessory from the server according to the target game entity, the slot to be transformed and the target accessory.
[0075] The transformation module 230 is used to execute the transformation instruction according to the configuration information of the slot to be transformed and the identification of the target accessory, so as to transform the slot to be transformed.
[0076] Furthermore, the transformation module 230 is specifically used to write the identifier of the target accessory into the configuration information of the slot to be transformed if the slot transformation instruction is to insert the target accessory into the slot to be transformed, so that the target accessory can realize the function according to the configuration information of the slot to be transformed.
[0077] Furthermore, the configuration information of the slot to be modified includes the types of accessories supported for insertion, and the modification module 230 is specifically used to determine whether the type of the target accessory matches the type of accessories supported for insertion; if the type of the target accessory matches the type of accessories supported for insertion, the identifier of the target accessory is written into the configuration information of the slot to be modified.
[0078] Furthermore, the transformation module 230 is specifically configured to delete the identifier of the target accessory from the configuration information of the slot to be transformed if the slot transformation instruction is to remove the target accessory from the slot to be transformed.
[0079] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices and modules can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here.
[0080] In several embodiments provided by the present invention, the coupling between modules may be electrical, mechanical or other forms of coupling.
[0081] In addition, each functional module in each embodiment of the present invention may be integrated into one processing module, or each module may exist physically separately, or two or more modules may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of software functional modules.
[0082] Please refer to Figure 4 , is a block diagram of an electronic device 100 provided in an embodiment of the present invention. The electronic device 100 includes a memory 110, a processor 120, and a communication module 130. The memory 110, the processor 120, and the communication module 130 are electrically connected to each other directly or indirectly to achieve data transmission or interaction. For example, these components can be electrically connected to each other through one or more communication buses or signal lines.
[0083] The memory 110 is used to store programs or data. The memory 110 may be, but is not limited to, a random access memory (RAM), a read only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), etc.
[0084] The processor 120 is used to read / write data or programs stored in the memory and execute corresponding functions. For example, when the computer program stored in the memory 110 is executed by the processor 120, the game entity slot transformation method disclosed in the above embodiments can be implemented.
[0085] The communication module 130 is used to establish a communication connection between the electronic device 100 and a server through a network, and to send and receive data through the network.
[0086] It should be understood that Figure 4 The structure shown is only a schematic diagram of the structure of the electronic device. The electronic device may also include Figure 4 More or fewer components may be shown. Figure 4 Each component shown in the figure can be implemented by hardware, software or a combination thereof.
[0087] An embodiment of the present invention further provides a computer-readable storage medium, in which a computer program is stored. When the computer program can be executed by a processor, the game entity slot transformation method described in the above method embodiment is implemented.
[0088] The computer-readable storage medium may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read-only memory), an EPROM, a hard disk, or a ROM. Optionally, the computer-readable storage medium includes a non-transitory computer-readable storage medium. The computer-readable storage medium has storage space for program codes that execute any of the method steps in the above method. These program codes can be read from or written to one or more computer program products. The program code can be compressed, for example, in an appropriate form.
[0089] In several embodiments provided by the present invention, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely schematic. For example, the flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products according to multiple embodiments of the present invention. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of the code, and a module, a program segment or a part of the code contains one or more executable instructions for implementing the specified logical functions. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.
[0090] If the function is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods of each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.
[0091] The above are only preferred embodiments of the present invention and are 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 transforming a physical game slot, characterized in that: The method is applied to an electronic device, wherein the electronic device is connected to a server for communication, wherein the server stores a slot structure tree corresponding to each game entity, a plurality of accessories, and an identifier corresponding to each of the accessories, wherein the slot structure tree includes a plurality of slots and configuration information of each slot, and wherein the method includes: Obtain a slot modification instruction; the modification instruction includes a target game entity, a slot to be modified, and a target accessory; the slot to be modified is a slot of the target game entity; Acquire, from the server according to the target game entity, the slot to be modified and the target accessory, the configuration information of the slot to be modified in the slot to be modified structure tree of the target game entity and the identifier of the target accessory; The transformation instruction is executed according to the configuration information of the slot to be transformed and the identifier of the target accessory to transform the slot to be transformed.
2. The method according to claim 1, characterized in that The executing the transformation instruction according to the configuration information of the slot to be transformed and the identifier of the target accessory to transform the slot to be transformed includes: If the slot modification instruction is to insert the target accessory into the slot to be modified, the identifier of the target accessory is written into the configuration information of the slot to be modified so that the target accessory can function according to the configuration information of the slot to be modified.
3. The method according to claim 2, characterized in that The configuration information of the slot to be modified includes the types of accessories supported for insertion, and the step of writing the identifier of the target accessory into the configuration information of the slot to be modified includes: Determine whether the type of the target accessory matches the type of the supported insertion accessory; If the type of the target accessory matches the type of the supported insertion accessory, the identifier of the target accessory is written into the configuration information of the slot to be modified.
4. The method according to claim 1, characterized in that The executing the transformation instruction according to the configuration information of the slot to be transformed and the identifier of the target accessory to transform the slot to be transformed includes: If the slot modification instruction is to remove the target accessory from the slot to be modified, the identifier of the target accessory is deleted from the configuration information of the slot to be modified.
5. The method according to any one of claims 1 to 4, characterized in that: The target game entity is the spacecraft body; the configuration information of the slot to be modified is to superimpose the function of the target accessory to the target game entity after the target accessory is inserted, and to remove the function of the target accessory from the target game entity after the target accessory is removed.
6. The method according to any one of claims 1 to 4, characterized in that: The target game entity is a spaceship; If the slot to be modified is a first spaceship slot type, the configuration information of the slot to be modified is that after the target accessory is inserted, the target accessory is displayed at the position corresponding to the slot to be modified on the target game entity, the target accessory moves with the target game entity, and the function of the target accessory to control the target game entity is enabled; after the target accessory is removed, the target accessory is removed from the target game entity; If the slot to be modified is a second spaceship slot type, the configuration information of the slot to be modified is to display the target accessory at the position corresponding to the slot to be modified on the target game entity after inserting the target accessory, and the inserted accessory moves with the target game entity; after removing the target accessory, the target accessory is removed from the target game entity.
7. The method according to claims 1-4, characterized in that: The target game entity is a character; If the slot to be modified is a first character slot type, the configuration information of the slot to be modified is to add the attributes of the target accessory to the attributes of the target game entity after the target accessory is inserted; and to remove the attributes of the target accessory added to the target game entity after the target accessory is removed; If the slot to be modified is a second character slot type, the configuration information of the slot to be modified is to superimpose the hit bounding box of the target accessory to the target game entity after inserting the target accessory; and to remove the hit bounding box of the target accessory from the target game entity after removing the target accessory.
8. A game entity slot transformation device, characterized in that: The device is applied to an electronic device, wherein the electronic device is connected to a server for communication, wherein the server stores a slot structure tree corresponding to each game entity, a plurality of accessories, and an identifier corresponding to each of the accessories, wherein the slot structure tree includes a plurality of slots and configuration information of each slot, and wherein the device includes: A slot modification instruction acquisition module is used to acquire a slot modification instruction; the modification instruction includes a target game entity, a slot to be modified, and a target accessory; the slot to be modified is a slot of the target game entity; A transformation information acquisition module, used for acquiring, from the server, the configuration information of the slot to be transformed in the slot structure tree to be transformed of the target game entity and the identification of the target accessory according to the target game entity, the slot to be transformed and the target accessory; The transformation module is used to execute the transformation instruction according to the configuration information of the slot to be transformed and the identifier of the target accessory, so as to transform the slot to be transformed.
9. An electronic device, characterized in that: It comprises a processor and a memory, wherein the memory stores a computer program that can be executed by the processor, and the computer program executable by the processor is used to implement the game entity slot transformation method described in any one of claims 1-7.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the game entity slot transformation method as described in any one of claims 1-7 is implemented.
Citation Information
Patent Citations
Virtual object assembly updating method and device and computer equipment
CN117707582A
Game role reloading method, device and terminal
CN117959714A
Assignment template and assignment bundle in a gaming configuration and download system
US20090131163A1