Method and apparatus for updating collision box, storage medium and electronic device
By downloading and loading the collision box configuration file of virtual objects in the game application, the problem of low update efficiency caused by the lack of collision boxes for virtual objects is solved, and efficient and timely collision box updates are achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- TENCENT TECHNOLOGY (SHENZHEN) CO LTD
- Filing Date
- 2021-09-17
- Publication Date
- 2026-05-12
AI Technical Summary
In existing technologies, the lack of collision boxes for virtual objects in game scenes leads to low update efficiency, requiring the download of resource files for the entire game scene, resulting in a long time consumption.
Download and load the newly added collision box configuration file for the virtual object in the target game application, and display the collision effect when the virtual object collides with other objects. Generate configuration files and update the collision box in a timely manner by reporting missing information through the account.
This reduces data transfer volume, shortens collision box update time, improves update efficiency and timeliness, and avoids the time consumption of downloading the entire game scene resource file.
Smart Images

Figure CN115814424B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of computers, and more specifically, to a method and apparatus for updating a collision box, a storage medium, and an electronic device. Background Technology
[0002] Currently, game applications sometimes suffer from missing collision boxes for virtual objects. For example, some virtual objects in a game scene lack collision boxes, which restricts player movement or displays illogical visuals. Taking virtual walls as an example, without collision boxes, players can control their virtual characters to pass directly through such walls.
[0003] In related technologies, fixing missing collision boxes typically requires updating the entire game scene's resource file, which includes the newly added collision boxes. By downloading the aforementioned resource file for the entire game scene, the missing collision boxes can be added to the game application.
[0004] However, because updating the resource files of the entire game scene is required, the updated resource files are large, and it takes a long time to download the above resource files and load the corresponding collision boxes, resulting in a technical problem of low collision box update efficiency.
[0005] There is currently no effective solution to the above problems. Summary of the Invention
[0006] This invention provides a method and apparatus for updating a collision box, a storage medium, and an electronic device, to at least solve the technical problem of low updating efficiency of collision boxes in related technologies.
[0007] According to one aspect of the present invention, a method for updating a collision box is provided, comprising: downloading a first configuration file of a first collision box in a target game application, wherein the target game application is configured with a first game scene, the first collision box is a collision box added for a first virtual object in the first game scene, and the first collision box is used to detect whether the first virtual object is collided; loading the first collision box corresponding to the first virtual object in the first game scene in the target game application according to the first configuration file; determining that the first virtual object and the second virtual object have collided when the first collision box collides with a second collision box corresponding to a second virtual object, and displaying the game screen when the first virtual object and the second virtual object collide in the target game application.
[0008] According to another aspect of the present invention, a method for updating a collision box is provided, comprising: obtaining first missing information of a target game application, wherein the target game application is configured with a first game scene, and the first missing information is used to indicate that a first virtual object in the first game scene is missing a corresponding collision box; generating a first configuration file of the first collision box in a target editing application based on the first missing information, wherein the first collision box is a newly added collision box for the first virtual object in the first game scene, the first collision box is used to detect whether the first virtual object is collided, and the target editing application is used to generate a configuration file associated with the target game application; and uploading the first configuration file to the server of the target game application in the target editing application.
[0009] According to another aspect of the present invention, a collision box updating device is also provided, comprising: a download module, configured to download a first configuration file of a first collision box in a target game application, wherein the target game application is configured with a first game scene, and the first collision box is a collision box added for a first virtual object in the first game scene, and the first collision box is used to detect whether the first virtual object is collided; a loading module, configured to load the first collision box corresponding to the first virtual object in the first game scene in the target game application according to the first configuration file; and a display module, configured to determine that the first virtual object and the second virtual object have collided when the first collision box collides with a second collision box corresponding to a second virtual object, and to display the game screen when the first virtual object and the second virtual object collide in the target game application.
[0010] Optionally, the loading module includes: a loading unit, configured to load the first collision box located at a first position, having a first size, and a first type in the first game scene according to the first configuration file, wherein the first configuration file includes position information representing the first position, size information representing the first size, and type information representing the first type.
[0011] Optionally, the apparatus is further configured to: obtain first missing information before downloading the first configuration file of the first collision box in the target game application, wherein the first missing information is used to indicate that the first virtual object in the first game scene is missing a corresponding collision box; generate the first configuration file of the first collision box in response to the first missing information; and upload the first configuration file to the server of the target game application.
[0012] Optionally, the device is configured to generate the first configuration file of the first collision box in response to the first missing information by: acquiring position information representing the first position, size information representing the first size, and type information representing the first type; generating the first configuration file of the first collision box, wherein the first configuration file includes position information representing the first position, size information representing the first size, and type information representing the first type.
[0013] Optionally, the device is configured to acquire position information representing the first position, size information representing the first size, and type information representing the first type in the following manner: acquiring the position information, the size information, and the type information from the first missing information; or acquiring a first part of the position information, the size information, and the type information from the first missing information, and acquiring the input second part of the information, wherein the second part of the information is information other than the first part of the position information, the size information, and the type information.
[0014] Optionally, the device is configured to obtain the first missing information by obtaining the first missing information reported by the target account in the target game application.
[0015] Optionally, the device is further configured to: download a second configuration file in the target game application, wherein the target game application is configured with a second game scene, and the second configuration file is used to update the third collision box corresponding to the third virtual object that has been loaded in the second game scene; and, according to the second configuration file, load a fourth collision box corresponding to the third virtual object in the second game scene in the target game application, and replace the collision box corresponding to the third virtual object from the third collision box with the fourth collision box.
[0016] Optionally, the device is used to load the fourth collision box corresponding to the third virtual object in the second game scene in the following manner: according to the second configuration file, the fourth collision box located at a second position, having a second size, and a second type is loaded in the second game scene, wherein the second configuration file includes position information for representing the second position, size information for representing the second size, and type information for representing the second type.
[0017] Optionally, the device is further configured to: download a third configuration file in the target game application, wherein the target game application is configured with a third game scene, and the third configuration file is used to delete the fifth collision box corresponding to the fourth virtual object that has been loaded in the third game scene; and delete the fifth collision box corresponding to the fourth virtual object in the third game scene in the target game application according to the third configuration file.
[0018] Optionally, the device is configured to delete the fifth collision box corresponding to the fourth virtual object in the third game scene according to the third configuration file in the following manner: searching for the fifth collision box represented by the target collision box identifier in the second game scene, wherein the third configuration file includes the target collision box identifier; deleting the found fifth collision box in the second game scene; or when the fourth virtual object only corresponds to the loaded fifth collision box, searching for the fourth virtual object represented by the object identifier of the fourth virtual object in the second game scene, wherein the third configuration file includes the object identifier of the fourth virtual object; and deleting the fifth collision box corresponding to the fourth virtual object in the second game scene.
[0019] Optionally, the device is configured to display a game screen in the target game application when the first virtual object collides with the second virtual object in at least one of the following ways: when the first virtual object is an invisible wall in the first game scene and the first collision box is a collision box corresponding to the invisible wall, displaying a first prompt message in the target game application, wherein the first prompt message is used to indicate that the second virtual object cannot pass through the invisible wall; when the first virtual object is a visible virtual obstacle in the first game scene and the first collision box is a collision box corresponding to the virtual obstacle, displaying the second virtual object located outside the virtual obstacle in the target game application.
[0020] According to another aspect of the present invention, a collision box updating apparatus is also provided, comprising: an acquisition module, configured to acquire first missing information of a target game application, wherein the target game application is configured with a first game scene, and the first missing information is used to indicate that a first virtual object in the first game scene is missing a corresponding collision box; a generation module, configured to generate a first configuration file of the first collision box in a target editing application based on the first missing information, wherein the first collision box is a newly added collision box for the first virtual object in the first game scene, the first collision box is used to detect whether the first virtual object is collided, and the target editing application is used to generate a configuration file associated with the target game application; and an upload module, configured to upload the first configuration file to the server of the target game application in the target editing application.
[0021] Optionally, the device is configured to generate the first configuration file of the first collision box in response to the first missing information by: acquiring position information representing the first position, size information representing the first size, and type information representing the first type; generating the first configuration file of the first collision box, wherein the first configuration file includes position information representing the first position, size information representing the first size, and type information representing the first type.
[0022] Optionally, the device is configured to acquire position information representing the first position, size information representing the first size, and type information representing the first type in the following manner: acquiring the position information, the size information, and the type information from the first missing information; or acquiring a first part of the position information, the size information, and the type information from the first missing information, and acquiring the input second part of the information, wherein the second part of the information is information other than the first part of the position information, the size information, and the type information.
[0023] Optionally, the device is configured to obtain the first missing information of the target game application by obtaining the first missing information reported by the target account in the target game application.
[0024] According to another aspect of the present invention, a computer-readable storage medium is also provided, wherein a computer program is stored therein, wherein the computer program is configured to execute the above-described collision box update method when running.
[0025] According to another aspect of the embodiments of this application, a computer program product or computer program is provided, which includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the collision box update method as described above.
[0026] According to another aspect of the present invention, an electronic device is also provided, including a memory and a processor, wherein the memory stores a computer program and the processor is configured to execute the above-described collision box update method through the computer program.
[0027] In this embodiment of the invention, the configuration file for the new collision box is downloaded to the target game application, and the collision box is loaded into the corresponding game scene according to the configuration file. This allows the game screen showing the collision between the first and second virtual objects to be displayed in the target game application when virtual objects with different collision boxes collide. Since only the configuration file for the collision box is downloaded, instead of downloading the entire game scene resource file as in related technologies, the amount of data transmitted during collision box updates is reduced, the update time is shortened, and thus the technical problem of low update efficiency of collision boxes in related technologies is solved.
[0028] On the other hand, in this embodiment of the invention, the missing collision box information can be actively reported by the account in the game application. After receiving the reported missing collision box information, the above-mentioned configuration file can be generated in a timely manner, and the missing collision boxes in the game scene can be updated in a timely manner, thereby improving the timeliness of collision box updates.
[0029] On the other hand, in this embodiment of the invention, the configuration file of the collision box that needs to be replaced or deleted can be downloaded, and the collision box can be replaced or deleted in the corresponding game scene according to the configuration file, so as to realize another way of updating the collision box in the current game scene, avoiding the problem of long time consumption caused by downloading the resource files of the entire game scene when the collision box needs to be replaced or deleted, and further improving the update efficiency of the collision box. Attached Figure Description
[0030] The accompanying drawings, which are included to provide a further understanding of the invention and form part of this application, illustrate exemplary embodiments of the invention and, together with their description, serve to explain the invention and do not constitute an undue limitation thereof. In the drawings:
[0031] Figure 1 This is a schematic diagram of an application environment for an optional collision box updating method according to an embodiment of the present invention;
[0032] Figure 2This is a flowchart illustrating an optional collision box update method according to an embodiment of the present invention;
[0033] Figure 3 This is a schematic diagram of an optional collision box updating method according to an embodiment of the present invention;
[0034] Figure 4 This is a schematic diagram of another optional method for updating the collision box according to an embodiment of the present invention;
[0035] Figure 5 This is a schematic diagram of another optional method for updating the collision box according to an embodiment of the present invention;
[0036] Figure 6 This is a schematic diagram of another optional method for updating the collision box according to an embodiment of the present invention;
[0037] Figure 7 This is a schematic diagram of another optional method for updating the collision box according to an embodiment of the present invention;
[0038] Figure 8 This is a schematic diagram of another optional method for updating the collision box according to an embodiment of the present invention;
[0039] Figure 9 This is a schematic diagram of another optional method for updating the collision box according to an embodiment of the present invention;
[0040] Figure 10 This is a schematic diagram of another optional method for updating the collision box according to an embodiment of the present invention;
[0041] Figure 11 This is a schematic diagram of another optional method for updating the collision box according to an embodiment of the present invention;
[0042] Figure 12 This is a schematic diagram of another optional method for updating the collision box according to an embodiment of the present invention;
[0043] Figure 13 This is a schematic diagram of another optional method for updating the collision box according to an embodiment of the present invention;
[0044] Figure 14 This is a schematic diagram of another optional method for updating the collision box according to an embodiment of the present invention;
[0045] Figure 15 This is a schematic diagram of an optional collision box updating device according to an embodiment of the present invention;
[0046] Figure 16 This is a schematic diagram of the structure of an optional electronic device according to an embodiment of the present invention;
[0047] Figure 17 This is a schematic diagram of the structure of an optional computer product according to an embodiment of the present invention. Detailed Implementation
[0048] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.
[0049] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0050] First, some nouns or terms that appear in the description of the embodiments of this application shall be interpreted as follows:
[0051] Mobile devices: generally refers to mobile phones, including but not limited to all handheld portable gaming devices.
[0052] Shooting games: including first-person shooters, third-person shooters, and all games that use firearms for ranged attacks, including but not limited to these.
[0053] The present invention will now be described with reference to the embodiments:
[0054] According to one aspect of the present invention, a method for updating a collision box is provided. Optionally, in this embodiment, the above-described collision box updating method can be applied to, for example... Figure 1 The hardware environment shown consists of server 101 and terminal device 103. For example... Figure 1As shown, server 101 is connected to terminal 103 via a network and can be used to provide services for terminal devices or applications installed on terminal devices. Applications can be video applications, instant messaging applications, browser applications, educational applications, game applications, etc. Database 105 can be set up on the server or independently of the server to provide data storage services for server 101, such as a game data storage server. The network can include, but is not limited to, wired networks and wireless networks. The wired network includes local area networks (LANs), metropolitan area networks (MANs), and wide area networks (WANs). The wireless network includes Bluetooth, Wi-Fi, and other networks that enable wireless communication. Terminal device 103 can be a terminal configured with applications and can include, but is not limited to, at least one of the following: mobile phones (such as Android phones, iOS phones, etc.), laptops, tablets, PDAs, MIDs (Mobile Internet Devices), PADs, desktop computers, smart TVs, and other computer devices. The server can be a single server, a server cluster consisting of multiple servers, or a cloud server.
[0055] Combination Figure 1 As shown, the above-mentioned method for updating the collision box can be implemented in the terminal device 103 through the following steps:
[0056] S1, download the first configuration file of the first collision box in the target game application 107 of the terminal device 103. The target game application is configured with a first game scene. The first collision box is a collision box added for the first virtual object in the first game scene. The first collision box is used to detect whether the first virtual object is collided.
[0057] S2, in the target game application 107 of the terminal device 103, the first collision box corresponding to the first virtual object is loaded in the first game scene according to the first configuration file;
[0058] S3, when the first collision box of the terminal device 103 collides with the second collision box corresponding to the second virtual object, it is determined that the first virtual object and the second virtual object have collided, and the game screen when the first virtual object and the second virtual object collide is displayed in the target game application 107.
[0059] Optionally, in this embodiment, the above-described image display method can also be implemented via a server, for example, Figure 1 It can be implemented in server 101 shown; or it can be implemented jointly by the user terminal and the server.
[0060] The above is merely an example, and this embodiment does not impose any specific limitations.
[0061] Alternatively, as an alternative implementation method, such as Figure 2 As shown, the above-mentioned method for updating the collision box includes:
[0062] S202, Download the first configuration file of the first collision box in the target game application. The target game application is configured with a first game scene. The first collision box is a collision box added for the first virtual object in the first game scene. The first collision box is used to detect whether the first virtual object is collided with.
[0063] S204, In the target game application, according to the first configuration file, load the first collision box corresponding to the first virtual object in the first game scene;
[0064] S206, when the first collision box collides with the second collision box corresponding to the second virtual object, it is determined that the first virtual object and the second virtual object have collided, and the game screen when the first virtual object and the second virtual object collide is displayed in the target game application.
[0065] Optionally, in this embodiment, the client may include, but is not limited to, the target game application. The target game application may include, but is not limited to, shooting games, adventure games, strategy games, simulation games, etc. Among them, shooting games may include, but are not limited to, first-person shooter games, third-person shooter games, and all games that use firearms for remote attacks.
[0066] For example, the game application can be a multiplayer online battle arena (MOBA) application, or it can be a single-player game (SPG) application. The type of the aforementioned game application can include, but is not limited to, at least one of the following: two-dimensional (2D) game application, three-dimensional (3D) game application, virtual reality (VR) game application, augmented reality (AR) game application, and mixed reality (MR) game application. The above is merely an example, and this embodiment does not impose any limitations on it.
[0067] First-person shooter (FPS) games are a subgenre of action games (ACT). As the name suggests, FPS games are played from the player's subjective perspective.
[0068] Third-person shooter (TPS) games are a type of shooting game, differing from first-person shooters in that the virtual control object operated by the player is visible in the game's interface. The aforementioned games can include, but are not limited to, first-person shooters, third-person shooters, and shooters that can switch between first-person and third-person perspectives. Figure 3 This is a schematic diagram of a virtual prop operation method according to an embodiment of the present invention, such as... Figure 3 As shown, the game display interface can be divided into a first-person view display interface 301 and a third-person view display interface 303, as well as a display interface that allows switching between first-person and third-person views using a view switching button.
[0069] Optionally, in this embodiment, the first collision box may include, but is not limited to, a capsule associated with the first virtual object, and may include, but is not limited to, capsules of different shapes such as circles, rectangles, and trapezoids. The first collision box is used to detect whether the first virtual object is collided with. The first virtual object may include, but is not limited to, an invisible wall in the first game scene, or a virtual obstacle in the first game scene that is visible, such as a virtual wall, a virtual wooden board, a virtual door, or a virtual window.
[0070] Optionally, in this embodiment, the first configuration file may include, but is not limited to, a binary data packet, which records the type information, size information, and position information of the first collision box. Specifically, it may include, but is not limited to, storing the binary data packet in an XML format file.
[0071] Optionally, in this embodiment, the collision between the first collision box and the second collision box may include, but is not limited to, the first collision box and the second collision box coming into contact in the first game scene.
[0072] For example, Figure 4 This is a schematic diagram of another method for operating virtual props according to an embodiment of the present invention, such as... Figure 4 As shown, the steps may include, but are not limited to, the following:
[0073] S1, Download the first configuration file corresponding to the first collision box from the server on the terminal device where the target game application is located;
[0074] S2, based on the first configuration file, loads the first collision box in the first game scene. Figure 4 The image shows a game screen 402 before the first collision box is loaded, where the first virtual object is not configured with a first collision box. After the first virtual object collides with the second virtual object, the second virtual object will embed into the first virtual object.
[0075] S3, when the first collision box collides with the second collision box corresponding to the second virtual object, determine that the first virtual object and the second virtual object have collided, and display the game screen when the first virtual object and the second virtual object collide. Figure 4 The image shows a game screen 404 after the first collision box is loaded. In this screen, after the first virtual object collides with the second virtual object, the second virtual object does not embed into the first virtual object. That is, at this time, the first collision box and the second collision box collide.
[0076] For example, Figure 5 This is a schematic diagram of another method for operating virtual props according to an embodiment of the present invention. The aforementioned collision box can, in the first game scene, as follows: Figure 5 As shown, Figure 5 The frame enclosed by the thin white outer line is a virtual building, and the frame enclosed by the thick inner line is the collision box corresponding to the second virtual object. Of course, the collision box can be configured inside or outside the virtual building. The above is just an example, and this embodiment does not make any specific limitations.
[0077] This embodiment downloads the configuration file for the new collision boxes to be added into the target game application, and loads the collision boxes into the corresponding game scene according to the configuration file. This allows the game application to display the collision scene when virtual objects with different collision boxes collide. Since only the configuration file for the collision boxes is downloaded, instead of downloading the entire game scene resource files as in related technologies, the amount of data transmitted during collision box updates is reduced, thus shortening the update time and solving the problem of low update efficiency in related technologies.
[0078] As an optional approach, based on the first configuration file, the first collision box corresponding to the first virtual object is loaded in the first game scene, including:
[0079] According to the first configuration file, a first collision box located at a first position, with a first size and a first type is loaded in the first game scene. The first configuration file includes position information for representing the first position, size information for representing the first size, and type information for representing the first type.
[0080] Optionally, in this embodiment, the position, size, and type of the first collision box are all stored in the first configuration file. The position of the first collision box may be the same as or different from that of the first virtual object. The size of the first collision box may be associated with the model size of the first virtual object. The type of the first collision box may be associated with the type of the first virtual object.
[0081] For example, Figure 6 This is a schematic diagram of another method for operating virtual props according to an embodiment of the present invention. The aforementioned collision box can, in the first game scene, as follows: Figure 6 As shown, when the first virtual object is a cuboid stone, the first collision box is a collision box located at the first position of the stone, with a size larger than the first size of the stone, and of the first type corresponding to the stone.
[0082] This embodiment uses a first collision box, which is located at a first position, has a first size, and is of a first type, to be loaded in a first game scene according to a first configuration file. This enables the display of the game screen when the first virtual object and the second virtual object collide in the target game application, thus solving the technical problem of low update efficiency of collision boxes in related technologies.
[0083] As an optional approach, the above method further includes the following steps before downloading the first configuration file of the first collision box in the target game application:
[0084] Obtain the first missing information, wherein the first missing information is used to indicate that the first virtual object in the first game scene is missing a corresponding collision box;
[0085] In response to the first missing information, a first configuration file for the first collision box is generated;
[0086] Upload the first configuration file to the target game application's server.
[0087] Optionally, in this embodiment, the aforementioned first missing information may include, but is not limited to, missing information indicating that the first virtual object in the first game scene is missing a corresponding collision box. For example, if a virtual object in the first game scene should not be traversed or entered, but the game screen displays that it is allowed to be traversed or entered, then it can be determined that the virtual object is missing a corresponding collision box.
[0088] For example, Figure 7 This is a schematic diagram of another method for operating virtual props according to an embodiment of the present invention, such as... Figure 7 As shown, it includes: virtual stone 702 and virtual character 704. When virtual character 704 collides with virtual stone 702 in the game screen, if virtual character 704 is embedded in virtual stone 702, it can be understood that the virtual stone 702 is missing a collision box. At this time, the missing information is obtained as the first missing information, and the first configuration file of the first collision box is generated according to the first missing information.
[0089] For example, Figure 8 This is a schematic diagram of another method for operating virtual props according to an embodiment of the present invention, such as... Figure 8As shown, it includes: virtual stone 802 and virtual character 804. In the first game scene, a first collision box is added at the position where the collision box is missing. When the virtual character 804 collides with the virtual stone 802 in the game screen, the virtual character 804 will no longer be embedded in the virtual stone 802. Instead, the first collision box of the virtual stone 802 collides with the second collision box of the virtual character 804, and the virtual character 804 and the virtual stone 802 are fully displayed in the game screen respectively.
[0090] Through this embodiment, accounts in the game application can proactively report missing collision box information. Upon receiving the reported missing collision box information, the aforementioned configuration file can be generated in a timely manner, and the missing collision boxes in the game scene can be updated promptly, thus improving the timeliness of collision box updates.
[0091] As an optional approach, in response to the first missing information, a first configuration file for the first collision box is generated, including:
[0092] Obtain position information representing the first position, dimension information representing the first size, and type information representing the first type;
[0093] Generate a first configuration file for the first collision box, wherein the first configuration file includes position information for representing the first position, size information for representing the first size, and type information for representing the first type.
[0094] Optionally, in this embodiment, the acquisition of location information representing the first position, size information representing the first size, and type information representing the first type may include, but is not limited to, acquiring the location information of the first virtual object, the size information of the first virtual object, and the type information of the first virtual object as the location information of the first position, the size information of the first size, and the type information of the first type. Alternatively, the location information representing the first position, the size information representing the first size, and the type information representing the first type may be obtained by manually filling in the information.
[0095] Optionally, in this embodiment, the methods for obtaining the location information representing the first position, the size information representing the first size, and the type information representing the first type may include, but are not limited to, obtaining screenshots of display errors uploaded by players, or error information detected in social applications such as forums and chat rooms, and then obtaining the location information representing the first position, the size information representing the first size, and the type information representing the first type based on the error screenshots or error information.
[0096] For example, Figure 9 This is a schematic diagram of another method for operating virtual props according to an embodiment of the present invention, such as... Figure 9 As shown, the interface content is displayed on the user-controlled terminal device. In the first game scene, the display effect of the second virtual object differs from that of the first virtual object. Figure 9 In the case where the second virtual object is embedded in the first virtual object, the virtual button for reporting bugs in the current game screen is used on the game interface to take a screenshot of the current game interface and upload it to the game data server in order to obtain the first missing information.
[0097] For example, Figure 10 This is a schematic diagram of another method for operating virtual props according to an embodiment of the present invention, such as... Figure 10 As shown, the first configuration file for generating the first collision box in response to the first missing information includes, but is not limited to, the following:
[0098] S1, the content of this interface is displayed on the terminal device controlled by the planner. When the display effect of the second virtual object and the first virtual object in the first game scene is abnormal ( Figure 9 In the case where the second virtual object is embedded in the first virtual object, obtain the error screenshot uploaded by the user (corresponding to the aforementioned first missing information);
[0099] S2, in the configuration interface of the target game application, obtain the location information representing the first position, the size information representing the first size, and the type information representing the first type based on the error screenshot, and generate the first configuration file;
[0100] S3, upload the first configuration file to the server.
[0101] The above is merely an example, and this embodiment does not impose any specific limitations.
[0102] In this embodiment, after receiving the reported missing collision box information, the above configuration file can be generated in a timely manner based on the obtained position information representing the first position, size information representing the first size, and type information representing the first type, and the missing collision boxes in the game scene can be updated in a timely manner, thus improving the timeliness of collision box updates.
[0103] As an optional approach, obtaining position information representing a first location, dimension information representing a first size, and type information representing a first type includes:
[0104] Obtain location information, size information, and type information from the first missing information; or
[0105] The first part of the missing information is obtained from the location information, size information, and type information, and the second part of the input information is obtained. The second part of the information is the information other than the first part of the location information, size information, and type information.
[0106] Optionally, in this embodiment, the first part of the information may include, but is not limited to, the location information, size information, and type information in the first missing information uploaded by the user, and the second part of the information may include, but is not limited to, information added by the planner other than the first part of the information, such as the game map, game scene, game mode, etc. corresponding to the first missing information.
[0107] For example, Figure 11 This is a schematic diagram of another method for operating virtual props according to an embodiment of the present invention, such as... Figure 11 As shown, obtaining position information for representing the first position, dimension information for representing the first size, and type information for representing the first type may include, but is not limited to, the following:
[0108] S1, Identify the first virtual object with the missing collision box from the error screenshot to obtain its position, size, and type information;
[0109] S2, in the new collision box parameter interface, obtain the position information indicating that the new collision box should be in the first position (1,19), the type of the new collision box should be the first type of stone collision box, and the size information of the new collision box is the first size of 5, which constitute the first part of the above information, and the virtual map index number Map12 of the new collision box as the second part of the above information, and generate the first configuration file.
[0110] S3, upload the first configuration file to the server.
[0111] As an optional approach, the first missing information is obtained, including:
[0112] Obtain the first missing information reported by the target account in the target game application.
[0113] Optionally, in this embodiment, with Figure 9 For example, the missing information mentioned above can be reported in the target game application logged in by the target account through methods including but not limited to screenshots, text, and voice.
[0114] As an optional approach, the above method also includes:
[0115] Download the second configuration file in the target game application. The target game application contains a second game scene. The second configuration file is used to update the third collision box that is already loaded in the second game scene and corresponds to the third virtual object.
[0116] In the target game application, based on the second configuration file, the fourth collision box corresponding to the third virtual object is loaded in the second game scene, and the collision box corresponding to the third virtual object is replaced from the third collision box to the fourth collision box.
[0117] Optionally, in this embodiment, the third collision box may be replaced with a fourth collision box if the third collision box causes errors in the game screen.
[0118] For example, Figure 12 This is a schematic diagram of another method for operating virtual props according to an embodiment of the present invention, such as... Figure 12 As shown, the steps may include, but are not limited to, the following:
[0119] S1, download the second configuration file corresponding to the third collision box from the server on the terminal device where the target game application is located;
[0120] S2, according to the second configuration file, load the fourth collision box corresponding to the third virtual object in the second game scene, and replace the collision box corresponding to the third virtual object from the third collision box to the fourth collision box. Figure 12 The image shows a game screen 1202 where a third collision box is loaded. The third collision box configured for the third virtual object is significantly larger than the model size of the third virtual object. After the third virtual object collides with the second virtual object, the second virtual object embeds into the third virtual object. Figure 12 The image also shows a game screen 1204 after the third collision box is updated to a fourth collision box, in which the second virtual object does not embed itself into the third virtual object after the third virtual object collides with the second virtual object.
[0121] This embodiment allows for the download of configuration files for collision boxes that need to be replaced or deleted, and the replacement or deletion of collision boxes in the corresponding game scene based on the configuration files. This provides an alternative way to update collision boxes in the current game scene, avoiding the time-consuming problem caused by downloading the entire game scene's resource files when collision boxes need to be replaced or deleted, and further improving the efficiency of collision box updates.
[0122] As an optional solution, a fourth collision box corresponding to the third virtual object is loaded in the second game scene, including:
[0123] According to the second configuration file, a fourth collision box located at the second position, with the second size and the second type is loaded in the second game scene. The second configuration file includes position information for representing the second position, size information for representing the second size, and type information for representing the second type.
[0124] As an alternative approach, the method also includes:
[0125] Download the third configuration file in the target game application. The target game application contains a third game scene. The third configuration file is used to delete the fifth collision box that is already loaded in the third game scene and corresponds to the fourth virtual object.
[0126] In the target game application, based on the third configuration file, the fifth collision box corresponding to the fourth virtual object is deleted in the second game scene.
[0127] Optionally, in this embodiment, the fifth collision box corresponding to the fourth virtual object may be deleted if the fifth collision box causes an error in the game screen.
[0128] For example, Figure 13 This is a schematic diagram of another method for operating virtual props according to an embodiment of the present invention, such as... Figure 13 As shown, the steps may include, but are not limited to, the following:
[0129] S1, download the third configuration file corresponding to the fifth collision box from the server on the terminal device where the target game application is located;
[0130] S2, based on the third configuration file, delete the fifth collision box corresponding to the fourth virtual object in the third game scene. Figure 12 The image shows a game screen 1302 before the fifth collision box was removed. In this screen, the second virtual object could clearly pass the fourth virtual object to continue moving forward, but due to the presence of the fifth collision box, the second virtual object cannot pass the fourth virtual object. Figure 13 The image also shows game screen 1304 after the fifth collision box is removed, in which the second virtual object is allowed to pass through the fourth virtual object because the fourth virtual object is no longer configured with a collision box.
[0131] As an optional solution, based on the third configuration file, the fifth collision box corresponding to the fourth virtual object is deleted from the second game scene, including:
[0132] In the second game scene, locate the fifth collision box represented by the target collision box identifier, where the third configuration file includes the target collision box identifier; delete the found fifth collision box in the second game scene; or
[0133] When the fourth virtual object only corresponds to the loaded fifth collision box, search for the fourth virtual object represented by the object identifier of the fourth virtual object in the second game scene, wherein the third configuration file includes the object identifier of the fourth virtual object; delete the fifth collision box corresponding to the fourth virtual object in the second game scene.
[0134] Optionally, in this embodiment, it may include, but is not limited to, configuring a corresponding identifier for each collision box, and then replacing or deleting the collision box by retrieving the identifier of the collision box. When a virtual object is configured with only a fifth collision box, the fifth collision box can be replaced or deleted by retrieving the identifier of the virtual object.
[0135] As an optional solution, the game screen displaying the collision between the first virtual object and the second virtual object in the target game application includes one of the following:
[0136] When the first virtual object is an invisible air wall in the first game scene and the first collision box is a collision box corresponding to the air wall, a first prompt message is displayed in the target game application, wherein the first prompt message is used to indicate that the second virtual object cannot pass through the air wall;
[0137] When the first virtual object is a virtual obstacle that is visible in the first game scene, and the first collision box is a collision box corresponding to the virtual obstacle, the second virtual object located outside the virtual obstacle is displayed in the target game application.
[0138] Optionally, as an alternative implementation, the above-described method for updating the collision box further includes:
[0139] S1, obtain the first missing information of the target game application, wherein the target game application is configured with a first game scene, and the first missing information is used to indicate that the first virtual object in the first game scene is missing a corresponding collision box;
[0140] S2, based on the first missing information, generate a first configuration file of the first collision box in the target editing application, wherein the first collision box is a collision box added for the first virtual object in the first game scene, the first collision box is used to detect whether the first virtual object is collided, and the target editing application is used to generate the configuration file associated with the target game application;
[0141] S3, the first configuration file is uploaded to the server of the target game application in the target editing application.
[0142] Optionally, in this embodiment, the target editing application described above may include, but is not limited to, applications such as... Figure 10 As shown in the middle, a configuration file associated with the target game application is generated based on the first missing information mentioned above.
[0143] As an optional solution, generating the first configuration file of the first collision box in response to the first missing information includes:
[0144] Obtain position information representing the first position, size information representing the first size, and type information representing the first type;
[0145] Generate the first configuration file for the first collision box, wherein the first configuration file includes position information for representing the first position, size information for representing the first size, and type information for representing the first type.
[0146] As an optional solution, obtaining position information representing the first position, size information representing the first size, and type information representing the first type includes:
[0147] Obtain the location information, the size information, and the type information from the first missing information; or
[0148] The first part of the missing information is obtained from the location information, the size information, and the type information, and the second part of the input information is obtained, wherein the second part of the information is the location information, the size information, and the type information other than the first part of the information.
[0149] As an optional approach, obtaining the first missing information of the target game application includes:
[0150] Obtain the first missing information reported by the target account in the target game application.
[0151] The following specific examples will further explain this application:
[0152] S1, the client creates a new empty node in the local scene as the root node of the entire hotfix Box;
[0153] S2, add a hot repair box under the root node, which can only use a few predefined hot repair blocks;
[0154] S3, Adjust the position of the added heat repair block so that it is in the correct position;
[0155] S4, right-click the root node to export;
[0156] S5, configure the map IDs that need to be affected, multiple IDs can be configured, and careful verification is required;
[0157] S6, upload the exported XML to the server;
[0158] In S7, the server sends a message to players who log in again via a protocol, and when the player enters the game, the collision boxes will be automatically added to the problematic areas.
[0159] For example, Figure 14 This is a schematic diagram of another method for operating virtual props according to an embodiment of the present invention, such as... Figure 14 As shown, the steps may include, but are not limited to, the following:
[0160] S1, Start;
[0161] S2, a missing collision box was detected;
[0162] S3, determine if it is a repairable type. If the result is no, return to step S2;
[0163] S4, if the result of step S3 is yes, create a new collision box locally;
[0164] S5, determine whether the configuration is complete. If the result is no, return to step S4.
[0165] S6, If the result of step S5 is yes, export it to the server;
[0166] S7, determine if the player has logged in again. If the result is no, return to step S6;
[0167] S8, if the result of step S7 is yes, accept the new configuration and dynamically create the collision box;
[0168] S9, End.
[0169] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that the present invention is not limited to the described order of actions, because according to the present invention, some steps can be performed in other orders or simultaneously. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions and modules involved are not necessarily essential to the present invention.
[0170] According to another aspect of the present invention, an apparatus for updating a collision box for implementing the above-described collision box updating method is also provided. For example... Figure 15 As shown, the device includes:
[0171] Download module 1502 is used to download the first configuration file of the first collision box in the target game application, wherein the target game application is configured with a first game scene, the first collision box is a collision box added for the first virtual object in the first game scene, and the first collision box is used to detect whether the first virtual object is collided.
[0172] The loading module 1504 is used to load the first collision box corresponding to the first virtual object in the first game scene according to the first configuration file in the target game application.
[0173] The display module 1506 is used to determine that the first virtual object and the second virtual object collide when the first collision box and the second collision box corresponding to the second virtual object collide, and to display the game screen when the first virtual object and the second virtual object collide in the target game application.
[0174] As an optional solution, the loading module 1504 includes:
[0175] The loading unit is configured to load the first collision box located at a first position, having a first size, and a first type in the first game scene according to the first configuration file, wherein the first configuration file includes position information representing the first position, size information representing the first size, and type information representing the first type.
[0176] As an optional solution, the device is also used for:
[0177] Before downloading the first configuration file of the first collision box in the target game application, first missing information is obtained, wherein the first missing information is used to indicate that the first virtual object in the first game scene is missing a corresponding collision box;
[0178] In response to the first missing information, the first configuration file of the first collision box is generated;
[0179] Upload the first configuration file to the server of the target game application.
[0180] As an optional solution, the device is configured to generate the first configuration file of the first collision box in response to the first missing information in the following manner:
[0181] Obtain position information representing the first position, size information representing the first size, and type information representing the first type;
[0182] Generate the first configuration file for the first collision box, wherein the first configuration file includes position information for representing the first position, size information for representing the first size, and type information for representing the first type.
[0183] As an optional solution, the device is used to acquire position information representing the first position, size information representing the first size, and type information representing the first type in the following manner:
[0184] Obtain the location information, the size information, and the type information from the first missing information; or
[0185] The first part of the missing information is obtained from the location information, the size information, and the type information, and the second part of the input information is obtained, wherein the second part of the information is the location information, the size information, and the type information other than the first part of the information.
[0186] As an optional solution, the device is used to obtain the first missing information in the following manner:
[0187] Obtain the first missing information reported by the target account in the target game application.
[0188] As an optional solution, the device is also used for:
[0189] Download a second configuration file in the target game application, wherein the target game application is configured with a second game scene, and the second configuration file is used to update the third collision box that has been loaded in the second game scene and corresponds to the third virtual object;
[0190] In the target game application, according to the second configuration file, the fourth collision box corresponding to the third virtual object is loaded in the second game scene, and the collision box corresponding to the third virtual object is replaced from the third collision box with the fourth collision box.
[0191] As an optional solution, the device is used to load the fourth collision box corresponding to the third virtual object in the second game scene in the following manner:
[0192] According to the second configuration file, the fourth collision box, which is located at the second position, has the second size, and is of the second type, is loaded in the second game scene. The second configuration file includes position information for representing the second position, size information for representing the second size, and type information for representing the second type.
[0193] As an optional solution, the device is also used for:
[0194] A third configuration file is downloaded in the target game application, wherein the target game application is configured with a third game scene, and the third configuration file is used to delete the fifth collision box that is already loaded in the third game scene and corresponds to the fourth virtual object;
[0195] In the target game application, according to the third configuration file, the fifth collision box corresponding to the fourth virtual object is deleted in the third game scene.
[0196] As an optional solution, the device is used to delete the fifth collision box corresponding to the fourth virtual object in the third game scene according to the third configuration file in the following manner:
[0197] In the second game scene, locate the fifth collision box represented by the target collision box identifier, wherein the third configuration file includes the target collision box identifier; delete the found fifth collision box in the second game scene; or
[0198] When the fourth virtual object corresponds only to the loaded fifth collision box, the fourth virtual object represented by the object identifier of the fourth virtual object is searched in the second game scene, wherein the third configuration file includes the object identifier of the fourth virtual object; the fifth collision box corresponding to the fourth virtual object is deleted in the second game scene.
[0199] As an optional solution, the device is used to display the game screen when the first virtual object and the second virtual object collide in the target game application in at least one of the following ways:
[0200] When the first virtual object is an invisible air wall in the first game scene and the first collision box is a collision box corresponding to the air wall, a first prompt message is displayed in the target game application, wherein the first prompt message is used to indicate that the second virtual object cannot pass through the air wall;
[0201] When the first virtual object is a virtual obstacle that is visible in the first game scene, and the first collision box is a collision box corresponding to the virtual obstacle, the second virtual object located outside the virtual obstacle is displayed in the target game application.
[0202] According to another aspect of the present invention, an electronic device for implementing the above-described method for updating the collision box is also provided. This electronic device may be... Figure 1The terminal device or server shown. This embodiment uses this electronic device as an example for illustration. Figure 16 As shown, the electronic device includes a memory 1602 and a processor 1604. The memory 1602 stores a computer program, and the processor 1604 is configured to execute the steps of any of the above method embodiments via the computer program.
[0203] Optionally, in this embodiment, the aforementioned electronic device may be located in at least one of a plurality of network devices in a computer network.
[0204] Optionally, in this embodiment, the processor can be configured to perform the following steps via a computer program:
[0205] S1, Download the first configuration file of the first collision box in the target game application. The target game application is configured with a first game scene. The first collision box is a collision box added for the first virtual object in the first game scene. The first collision box is used to detect whether the first virtual object is collided.
[0206] S2, In the target game application, according to the first configuration file, load the first collision box corresponding to the first virtual object in the first game scene;
[0207] S3, when the first collision box collides with the second collision box corresponding to the second virtual object, determine that the first virtual object and the second virtual object have collided, and display the game screen when the first virtual object and the second virtual object collide in the target game application.
[0208] Alternatively, as those skilled in the art will understand, Figure 16 The structure shown is for illustrative purposes only. Electronic devices can also be smartphones (such as Android phones, iOS phones, etc.), tablets, PDAs, mobile internet devices (MIDs), PADs, and other terminal devices. Figure 16 This does not limit the structure of the aforementioned electronic devices or electronic equipment. For example, electronic devices or electronic equipment may also include components that are more... Figure 16 The more or fewer components shown (such as network interfaces, etc.), or having the same Figure 16 The different configurations shown.
[0209] The memory 1602 can be used to store software programs and modules, such as the program instructions / modules corresponding to the collision box update method and apparatus in this embodiment of the invention. The processor 1604 executes various functional applications and data processing by running the software programs and modules stored in the memory 1602, thereby implementing the aforementioned collision box update method. The memory 1602 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 1602 may further include memory remotely located relative to the processor 1604, and these remote memories can be connected to the terminal via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof. Specifically, the memory 1602 may be used, but is not limited to, to store information such as configuration files. As an example, such as... Figure 16 As shown, the memory 1602 may include, but is not limited to, the download module 1502, loading module 1504, and display module 1506 of the update device for the collision box. Furthermore, it may include, but is not limited to, other module units in the update device for the collision box, which will not be described in detail in this example.
[0210] Optionally, the transmission device 1606 described above is used to receive or send data via a network. Specific examples of the network described above may include wired networks and wireless networks. In one example, the transmission device 1606 includes a Network Interface Controller (NIC), which can be connected to other network devices and a router via a network cable to communicate with the Internet or a local area network. In another example, the transmission device 1606 is a Radio Frequency (RF) module, used for wireless communication with the Internet.
[0211] In addition, the aforementioned electronic device also includes: a display 1608 for displaying the game screen of the aforementioned target game application; and a connection bus 1610 for connecting the various module components in the aforementioned electronic device.
[0212] In other embodiments, the aforementioned terminal device or server can be a node in a distributed system, wherein the distributed system can be a blockchain system, which is a distributed system formed by connecting multiple nodes through network communication. The nodes can form a peer-to-peer (P2P) network, and any form of computing device, such as a server, terminal, or other electronic device, can become a node in the blockchain system by joining this peer-to-peer network.
[0213] According to one aspect of this application, a computer program product or computer program is provided, comprising computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the methods provided in various alternative implementations of the above-described collision box update aspect. The computer program is configured to execute the steps in any of the above-described method embodiments at runtime.
[0214] Optionally, in this embodiment, the computer-readable storage medium described above may be configured to store a computer program for performing the following steps:
[0215] S1, Download the first configuration file of the first collision box in the target game application. The target game application is configured with a first game scene. The first collision box is a collision box added for the first virtual object in the first game scene. The first collision box is used to detect whether the first virtual object is collided.
[0216] S2, In the target game application, according to the first configuration file, load the first collision box corresponding to the first virtual object in the first game scene;
[0217] S3, when the first collision box collides with the second collision box corresponding to the second virtual object, determine that the first virtual object and the second virtual object have collided, and display the game screen when the first virtual object and the second virtual object collide in the target game application.
[0218] Optionally, in this embodiment, those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be implemented by a program instructing the hardware related to the terminal device. The program can be stored in a computer-readable storage medium, which may include: flash drive, read-only memory (ROM), random access memory (RAM), disk or optical disk, etc.
[0219] According to one aspect of this application, a computer program product is provided, comprising a computer program / instructions containing program code for performing the methods shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network via communication section 1709, and / or installed from removable medium 1711. When the computer program is executed by central processing unit 1701, it performs various functions provided in embodiments of this application.
[0220] The sequence numbers of the above embodiments of the present invention are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.
[0221] Figure 17 A schematic block diagram of a computer system architecture for implementing an electronic device according to embodiments of the present application is shown.
[0222] It should be noted that, Figure 17 The computer system 1700 of the electronic device shown is merely an example and should not impose any limitation on the functionality and scope of use of the embodiments of this application.
[0223] like Figure 17 As shown, the computer system 1700 includes a central processing unit (CPU) 1701, which can perform various appropriate actions and processes based on programs stored in read-only memory (ROM) 1702 or programs loaded from storage section 1708 into random access memory (RAM) 1703. The RAM 1703 also stores various programs and data required for system operation. The CPU 1701, ROM 1702, and RAM 1703 are interconnected via a bus 1704. An input / output interface 1705 (I / O interface) is also connected to the bus 1704.
[0224] The following components are connected to the input / output interface 1705: an input section 1706 including a keyboard, mouse, etc.; an output section 1707 including a cathode ray tube (CRT), liquid crystal display (LCD), etc., and speakers, etc.; a storage section 1708 including a hard disk, etc.; and a communication section 1709 including a network interface card such as a local area network card, modem, etc. The communication section 1709 performs communication processing via a network such as the Internet. A drive 1170 is also connected to the input / output interface 1705 as needed. Removable media 1711, such as a disk, optical disk, magneto-optical disk, semiconductor memory, etc., are installed on the drive 1170 as needed so that computer programs read from them can be installed into the storage section 1708 as needed.
[0225] Specifically, according to embodiments of this application, the processes described in the various method flowcharts can be implemented as computer software programs. For example, embodiments of this application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via communication section 1709, and / or installed from removable medium 1711. When the computer program is executed by central processing unit 1701, it performs various functions defined in the system of this application.
[0226] The sequence numbers of the above embodiments of the present invention are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.
[0227] If the integrated units in the above embodiments are implemented as software functional units and sold or used as independent products, they can be stored in the aforementioned computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause one or more computer devices (which may be personal computers, servers, or network devices, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention.
[0228] In the above embodiments of the present invention, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.
[0229] In the several embodiments provided in this application, it should be understood that the disclosed client can be implemented in other ways. The device embodiments described above are merely illustrative; for example, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces, indirect coupling or communication connection between units or modules, and may be electrical or other forms.
[0230] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0231] Furthermore, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0232] The above description is only a preferred embodiment of the present invention. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principle of the present invention, and these improvements and modifications should also be considered within the scope of protection of the present invention.
Claims
1. A method for updating a collision box, characterized in that, include: Download the first configuration file of the first collision box in the target game application. The target game application is configured with a first game scene. The first collision box is a collision box added for the first virtual object in the first game scene. The first collision box is used to detect whether the first virtual object is collided with. In the target game application, according to the first configuration file, the first collision box corresponding to the first virtual object is loaded in the first game scene; When the first collision box collides with the second collision box corresponding to the second virtual object, it is determined that the first virtual object and the second virtual object have collided, and the game screen when the first virtual object and the second virtual object collide is displayed in the target game application; The method further includes: downloading a second configuration file in the target game application, wherein the target game application is configured with a second game scene, and the second configuration file is used to update the third collision box corresponding to the third virtual object that has been loaded in the second game scene; and loading a fourth collision box corresponding to the third virtual object in the second game scene in the target game application according to the second configuration file, and replacing the collision box corresponding to the third virtual object from the third collision box with the fourth collision box.
2. The method according to claim 1, characterized in that, The step of loading the first collision box corresponding to the first virtual object in the first game scene according to the first configuration file includes: According to the first configuration file, the first collision box located at the first position, having a first size, and a first type is loaded in the first game scene. The first configuration file includes position information representing the first position, size information representing the first size, and type information representing the first type.
3. The method according to claim 1, characterized in that, Loading the fourth collision box corresponding to the third virtual object in the second game scene includes: According to the second configuration file, the fourth collision box, which is located at the second position, has the second size, and is of the second type, is loaded in the second game scene. The second configuration file includes position information for representing the second position, size information for representing the second size, and type information for representing the second type.
4. The method according to any one of claims 1 to 2, characterized in that, The method further includes: A third configuration file is downloaded in the target game application, wherein the target game application is configured with a third game scene, and the third configuration file is used to delete the fifth collision box that is already loaded in the third game scene and corresponds to the fourth virtual object; In the target game application, according to the third configuration file, the fifth collision box corresponding to the fourth virtual object is deleted in the third game scene.
5. The method according to claim 4, characterized in that, The step of deleting the fifth collision box corresponding to the fourth virtual object in the third game scene according to the third configuration file includes: In the third game scene, locate the fifth collision box represented by the target collision box identifier, wherein the third configuration file includes the target collision box identifier; delete the found fifth collision box in the third game scene; or When the fourth virtual object corresponds only to the loaded fifth collision box, the fourth virtual object represented by the object identifier of the fourth virtual object is searched in the third game scene, wherein the third configuration file includes the object identifier of the fourth virtual object; the fifth collision box corresponding to the fourth virtual object is deleted in the third game scene.
6. The method according to any one of claims 1 to 2, characterized in that, The display of the game screen when the first virtual object and the second virtual object collide in the target game application includes one of the following: When the first virtual object is an invisible air wall in the first game scene and the first collision box is a collision box corresponding to the air wall, a first prompt message is displayed in the target game application, wherein the first prompt message is used to indicate that the second virtual object cannot pass through the air wall; When the first virtual object is a virtual obstacle that is visible in the first game scene, and the first collision box is a collision box corresponding to the virtual obstacle, the second virtual object located outside the virtual obstacle is displayed in the target game application.
7. A method for updating a collision box, characterized in that, include: Obtain first missing information of the target game application, wherein the target game application is configured with a first game scene, and the first missing information is used to indicate that a first virtual object in the first game scene is missing a corresponding collision box; Based on the first missing information, a first configuration file of the first collision box is generated in the target editing application. The first collision box is a collision box added for the first virtual object in the first game scene. The first collision box is used to detect whether the first virtual object is collided with. The target editing application is used to generate the configuration file associated with the target game application. The first configuration file is uploaded to the server of the target game application in the target editing application.
8. The method according to claim 7, characterized in that, The step of generating a first configuration file for a first collision box in the target editing application based on the first missing information includes: Obtain position information representing the first position, dimension information representing the first size, and type information representing the first type; Generate the first configuration file for the first collision box, wherein the first configuration file includes position information for representing the first position, size information for representing the first size, and type information for representing the first type.
9. The method according to claim 8, characterized in that, The step of obtaining position information representing the first position, size information representing the first size, and type information representing the first type includes: Obtain the location information, the size information, and the type information from the first missing information; or The first part of the missing information is obtained from the location information, the size information, and the type information, and the second part of the input information is obtained, wherein the second part of the information is the location information, the size information, and the type information other than the first part of the information.
10. The method according to claim 7, characterized in that, The acquisition of the first missing information of the target game application includes: Obtain the first missing information reported by the target account in the target game application.
11. A device for updating a collision box, characterized in that, include: The download module is used to download the first configuration file of the first collision box in the target game application, wherein the target game application is configured with a first game scene, the first collision box is a collision box added for the first virtual object in the first game scene, and the first collision box is used to detect whether the first virtual object is collided. A loading module is used to load the first collision box corresponding to the first virtual object in the first game scene according to the first configuration file in the target game application. The display module is used to determine that the first virtual object and the second virtual object collide when the first collision box and the second collision box corresponding to the second virtual object collide, and to display the game screen when the first virtual object and the second virtual object collide in the target game application; The device is further configured to: download a second configuration file in the target game application, wherein the target game application is configured with a second game scene, and the second configuration file is configured to update the third collision box corresponding to the third virtual object that has been loaded in the second game scene; and, according to the second configuration file, load a fourth collision box corresponding to the third virtual object in the second game scene in the target game application, and replace the collision box corresponding to the third virtual object from the third collision box with the fourth collision box.
12. The apparatus according to claim 11, characterized in that, The device is used to load the first collision box corresponding to the first virtual object in the first game scene according to the first configuration file in the following manner: According to the first configuration file, the first collision box located at the first position, having a first size, and a first type is loaded in the first game scene. The first configuration file includes position information representing the first position, size information representing the first size, and type information representing the first type.
13. The apparatus according to claim 11, characterized in that, The device is used to load the fourth collision box corresponding to the third virtual object in the second game scene in the following manner: According to the second configuration file, the fourth collision box, which is located at the second position, has the second size, and is of the second type, is loaded in the second game scene. The second configuration file includes position information for representing the second position, size information for representing the second size, and type information for representing the second type.
14. The apparatus according to any one of claims 11 to 12, characterized in that, The device is also used for: A third configuration file is downloaded in the target game application, wherein the target game application is configured with a third game scene, and the third configuration file is used to delete the fifth collision box that is already loaded in the third game scene and corresponds to the fourth virtual object; In the target game application, according to the third configuration file, the fifth collision box corresponding to the fourth virtual object is deleted in the third game scene.
15. The apparatus according to claim 14, characterized in that, The device is used to delete the fifth collision box corresponding to the fourth virtual object in the third game scene according to the third configuration file in the following manner: In the third game scene, locate the fifth collision box represented by the target collision box identifier, wherein the third configuration file includes the target collision box identifier; delete the found fifth collision box in the third game scene; or When the fourth virtual object corresponds only to the loaded fifth collision box, the fourth virtual object represented by the object identifier of the fourth virtual object is searched in the third game scene, wherein the third configuration file includes the object identifier of the fourth virtual object; the fifth collision box corresponding to the fourth virtual object is deleted in the third game scene.
16. The apparatus according to any one of claims 11 to 12, characterized in that, The device is used to display a game screen in the target game application when the first virtual object and the second virtual object collide, including one of the following: When the first virtual object is an invisible air wall in the first game scene and the first collision box is a collision box corresponding to the air wall, a first prompt message is displayed in the target game application, wherein the first prompt message is used to indicate that the second virtual object cannot pass through the air wall; When the first virtual object is a virtual obstacle that is visible in the first game scene, and the first collision box is a collision box corresponding to the virtual obstacle, the second virtual object located outside the virtual obstacle is displayed in the target game application.
17. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a stored program, wherein the program can be executed by a terminal device or computer at runtime as described in any one of claims 1 to 6.
18. A computer program product comprising a computer program / instructions, characterized in that, When the computer program / instructions are executed by the processor, they implement the steps of the method described in any one of claims 1 to 6.
19. An electronic device comprising a memory and a processor, characterized in that, The memory stores a computer program, and the processor is configured to execute the method described in any one of claims 1 to 6 through the computer program.