Game level configuration method and device, electronic equipment and storage medium
By determining the network service status on the game client and generating game levels using server-side and default data, the problem of game level loading or generation failure was solved, and the automatic generation and updating of levels under different network conditions was realized.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- SHANGHAI INGOT NETWORK TECH CO LTD
- Filing Date
- 2023-02-24
- Publication Date
- 2026-05-01
AI Technical Summary
The game levels fail to load or be generated when there is a network error or server maintenance.
By responding to the game level entry event, the client's network service status is determined. Under normal conditions, the game level configuration data is obtained from the server to generate the first target game level. Under disconnected conditions, the default level configuration data is obtained to generate the second target game level.
The game can generate target levels under different network service conditions, which solves the problem of loading or generation failure, improves the efficiency of level content update and reduces the size of game resource package.
Smart Images

Figure CN116116003B_ABST
Abstract
Description
Game level configuration methods, devices, electronic devices and storage media Technical Field
[0001] This invention relates to the field of computer technology, and in particular to a method, apparatus, electronic device, and storage medium for configuring game levels. Background Technology
[0002] As the gaming business grows, game content loading or updates are becoming more and more frequent.
[0003] Currently, during network outages or server maintenance, the game client may experience issues with game levels failing to load or be generated. Summary of the Invention
[0004] This invention provides a method, apparatus, electronic device, and storage medium for configuring game levels, in order to solve the problem of game level loading or generation failure.
[0005] According to one aspect of the present invention, a game level configuration method is provided, applied to a client, comprising:
[0006] Respond to game level entry events and determine the client's network service status;
[0007] When the client network service status is normal, the game level configuration data is obtained from the server, and the first game target level is generated based on the game level configuration data;
[0008] If the client network service is in a disconnected state, obtain the default level configuration data and generate the second game target level based on the default level configuration data.
[0009] According to another aspect of the present invention, a game level configuration device is provided, applied to a client, comprising:
[0010] The network service status determination module is used to determine the client's network service status in response to game level entry events.
[0011] The first game target level generation module is used to obtain game level configuration data from the server when the client network service status is normal, and generate the first game target level based on the game level configuration data.
[0012] The second game target level generation module is used to obtain default level configuration data and generate a second game target level based on the default level configuration data when the client network service status is disconnected.
[0013] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:
[0014] At least one processor;
[0015] and a memory communicatively connected to the at least one processor;
[0016] The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor to enable the at least one processor to execute the game level configuration method according to any embodiment of the present invention.
[0017] According to another aspect of the present invention, a computer-readable storage medium is provided, the computer-readable storage medium storing computer instructions for causing a processor to execute and implement the game level configuration method according to any embodiment of the present invention.
[0018] The technical solution of this invention determines the client's network service status by responding to a game level entry event. When the client's network service status is normal, game level configuration data is obtained from the server, and a first target game level is generated based on the game level configuration data. When the client's network service status is disconnected, default level configuration data is obtained, and a second target game level is generated based on the default level configuration data. The above technical solution can generate target game levels under different network service statuses, solving the problem of game level loading or generation failure.
[0019] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of the present invention, nor is it intended to limit the scope of the invention. Other features of the invention will become readily apparent from the following description. Attached Figure Description
[0020] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0021] Figure 1 is a flowchart of a game level configuration method according to Embodiment 1 of the present invention;
[0022] Figure 2 is a flowchart of a game level configuration method according to Embodiment 2 of the present invention;
[0023] Figure 3 is a flowchart of a game scene map data configuration method according to Embodiment 2 of the present invention;
[0024] Figure 4 is a flowchart of a game level configuration method according to Embodiment 3 of the present invention;
[0025] Figure 5 is a flowchart of a game level configuration method according to Embodiment 4 of the present invention;
[0026] Figure 6 is a structural schematic diagram of a game level configuration device provided according to Embodiment 5 of the present invention;
[0027] Figure 7 is a schematic diagram of the structure of an electronic device that implements the game level configuration method of this invention. Detailed Implementation
[0028] 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. 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.
[0029] 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.
[0030] Example 1
[0031] Figure 1 is a flowchart of a game level configuration method provided in Embodiment 1 of the present invention. This embodiment is applicable to the case of automatic game level generation. The method can be executed by a game level configuration device, which can be implemented in hardware and / or software. The game level configuration device can be configured in mobile clients such as mobile phones and tablets. As shown in Figure 1, the method includes:
[0032] S110, Respond to the game level entry event and determine the client's network service status.
[0033] In this embodiment, the game level entry event refers to a click operation that can be recognized by the client to enter a game level. The client network service status refers to the network connection status between the client and the server, which can include a normal state and a disconnected state. A normal state indicates that the network connection between the client and the server is normal and data transmission is possible; a disconnected state indicates that the network connection between the client and the server is abnormal and data transmission is impossible.
[0034] Understandably, when the client detects a user clicking or selecting a game level, it will determine the client's network service status in order to decide whether the game level configuration data can be updated based on the client's network service status.
[0035] S120. When the client network service status is normal, obtain game level configuration data from the server and generate the first game target level based on the game level configuration data.
[0036] In this embodiment, the game level configuration data can be used for updating or generating game levels, and may include, but is not limited to, level configuration content, location information of level configuration content, and the quantity of level configuration content. The level configuration content includes one or more of the following: characters, herbs to be harvested, monsters, obstacles, and harvesting tools. The location information of the level configuration content refers to its arrangement on the game map.
[0037] Specifically, when the client's network service is in a normal state, the client can download game level configuration data from the server, and then arrange the downloaded game level configuration data in the game map to form the first game target level. Here, the game map refers to the scene map of the game level, such as a mountain map, a snow map, etc.
[0038] In some embodiments, the game level configuration data can be game level update data; in other words, the game level configuration data can include the modified parts of the level, excluding the unmodified parts. Furthermore, the client's local data can be replaced based on the game level configuration data, thereby completing the dynamic update of the game level content and reducing the size of the game resource package, thus saving resources.
[0039] S130. If the client network service is in a disconnected state, obtain the default level configuration data and generate the second game target level based on the default level configuration data.
[0040] In this embodiment, the default level configuration data refers to the level configuration data located locally on the client.
[0041] Specifically, when the client's network service is disconnected, the default level configuration data can be obtained from the client's local machine, and then arranged and placed on the game map to form the second game target level.
[0042] It should be noted that the first and second target game levels are game levels generated under different network service conditions. They are the same level, but their configurations differ. For example, the first target game level can be an updated game level, while the second target game level can be the unupdated default game level.
[0043] The technical solution of this invention determines the client's network service status by responding to a game level entry event. When the client's network service status is normal, game level configuration data is obtained from the server, and a first target game level is generated based on the game level configuration data. When the client's network service status is disconnected, default level configuration data is obtained, and a second target game level is generated based on the default level configuration data. The above technical solution can generate target game levels under different network service statuses, solving the problem of game level loading or generation failure.
[0044] Example 2
[0045] Figure 2 is a flowchart of a game level configuration method provided in Embodiment 2 of the present invention. The method of this embodiment can be combined with various optional schemes in the game level configuration methods provided in the above embodiments. The game level configuration method provided in this embodiment has been further optimized. Optionally, obtaining game level configuration data from the server includes: downloading game level configuration data from the level database of the server; wherein, the server is used to receive and store the game level configuration data uploaded by the level design end.
[0046] As shown in Figure 2, the method includes:
[0047] S210, Respond to the game level entry event and determine the client's network service status.
[0048] S220. If the client network service status is normal, download game level configuration data from the server's level database and generate the first game target level based on the game level configuration data.
[0049] In this embodiment, the level design terminal is the computer equipment used by level designers to design and modify levels. The level design terminal can upload game level configuration data such as level content and location information edited by level designers to the server. The server can then receive and store the game level configuration data uploaded by the level design terminal. The game level configuration data can be stored in the level database on the server so that the client can download the game level data.
[0050] It should be noted that after the client responds to the game level entry event, the client downloads the game level configuration data from the server's level database, and then generates the first target game level based on the game level configuration data. This can reduce the size of the game resource package, thereby reducing the resource usage of the level in the package.
[0051] S230. If the client network service is in a disconnected state, obtain the default level configuration data and generate the second game target level based on the default level configuration data.
[0052] Based on the above embodiments, the method may optionally further include: in the case of an incorrect level configuration, obtaining default level configuration data and generating a second game target level based on the default level configuration data.
[0053] Among them, "level configuration error" refers to the situation where the game level configuration data download callback fails.
[0054] For example, Figure 3 is a flowchart of a game scene map data configuration method provided by an embodiment of the present invention. Specifically, level designers edit game level content, location information, and other data through a level design terminal to obtain game level configuration data, and then upload the game level configuration data to the level database on the server. Further, the client determines whether the network service between the client and the server is disconnected. If the client's network service is disconnected, the client obtains default level configuration data and then generates a target game level based on the default level configuration data. If the client's network service is normal, the client downloads game level configuration data from the server's level database and then generates a first target game level based on the game level configuration data. If the game level configuration data download callback fails, the client obtains default level configuration data and then generates a second target game level based on the default level configuration data.
[0055] The technical solution of this invention downloads game level configuration data edited or updated by level designers from the level database on the server, and then generates the target game level based on the game level configuration data. This allows users to update level content without restarting the game, improving the efficiency of level content updates and reducing the size of the game resource package, thereby reducing the occupation of the package by level resources.
[0056] Example 3
[0057] Figure 4 is a flowchart of a game level configuration method provided in Embodiment 3 of the present invention. The method of this embodiment can be combined with various optional schemes in the game level configuration methods provided in the above embodiments. The game level configuration method provided in this embodiment has been further optimized. Optionally, generating the first game target level based on the game level configuration data includes: configuring the level configuration content at the game map position corresponding to the position information of the level configuration content, and / or configuring multiple identical level configuration contents at different positions on the game map to obtain the first game target level.
[0058] As shown in Figure 4, the method includes:
[0059] S310: Respond to the game level entry event and determine the client's network service status.
[0060] S320. When the client network service is in a normal state, obtain game level configuration data from the server. The game level configuration data includes level configuration content, location information of level configuration content, and quantity of level configuration content. Configure the level configuration content at the game map location corresponding to the location information of the level configuration content, and / or configure multiple identical level configuration contents at different locations on the game map to obtain the first game target level.
[0061] S330. When the client network service is disconnected, obtain the default level configuration data and generate the second game target level based on the default level configuration data.
[0062] In some embodiments, after obtaining the game level configuration data, the client can configure one or more of the following on the game map at the corresponding location based on the location information of the level configuration content: character, medicine to be harvested, monster, obstacle, and harvesting prop, thereby obtaining the first game target level.
[0063] In some embodiments, after obtaining the game level configuration data, the client can also configure multiple identical level configurations at different locations on the game map to obtain the first target game level. For example, multiple ginseng roots can be placed at different locations on the game map for harvesting.
[0064] For example, the character could be Shennong (a legendary Chinese herbalist), the herbs to be harvested could be Amomum villosum, ginseng, Panax notoginseng, dried tangerine peel, etc., the monsters could be oxen, brown bears, etc., the obstacles could be rocks, rivers, etc., and the harvesting tools could be gloves, boots, etc. The location information of the level configuration content refers to the arrangement of the level configuration content on the game map. Specifically, when the client's network service is normal, the client can download the above game level configuration data from the server and then configure the above game level configuration data at the corresponding location on the game map, thereby generating the first game target level.
[0065] The technical solution of this invention achieves automatic generation of game levels by configuring level configuration content at the game map location corresponding to the location information of the level configuration content, and / or configuring multiple identical level configuration contents at different locations on the game map, without restarting the game, thus improving the efficiency of game generation.
[0066] Example 4
[0067] Figure 5 is a flowchart of a game level configuration method provided in Embodiment 4 of the present invention. The method of this embodiment can be combined with various optional schemes in the game level configuration methods provided in the above embodiments. The game level configuration method provided in this embodiment has been further optimized. Optionally, obtaining the default level configuration data includes: determining the game level identifier corresponding to the game level entry event; matching the game level identifier in the game resource package of the client to obtain the default level configuration data.
[0068] As shown in Figure 5, the method includes:
[0069] S410: Respond to the game level entry event and determine the client's network service status.
[0070] S420. When the client network service status is normal, obtain game level configuration data from the server and generate the first game target level based on the game level configuration data.
[0071] S430. When the client network service status is disconnected, determine the game level identifier corresponding to the game level entry event, match the game level identifier in the game resource package of the client to obtain default level configuration data, and generate a second game target level based on the default level configuration data.
[0072] In this embodiment, the game level identifier is unique and can be used to identify game levels. For example, the first level can be labeled "Level_1", and the second level can be labeled "Level_2". The game resource package body refers to the resource file package that can be used for game configuration. For example, the game resource package body can be the resource file package body of a WeChat mini-game.
[0073] For example, if the client detects that the user clicks to enter the first level, it matches the default level configuration data corresponding to the first level in the game resource package based on the Level_1 identifier, and then generates the game level corresponding to the first level based on the default level configuration data corresponding to the first level.
[0074] Based on the above embodiments, the default level configuration data includes the default level content and the location information of the default level content; correspondingly, generating a second game target level based on the default level configuration data includes: configuring the default level content at the game map location corresponding to the location information of the default level content to obtain the second game target level.
[0075] For example, when the client's network service is in a disconnected state, the client can determine the game level identifier corresponding to the game level entry event, match the game level identifier in the client's game resource package, and obtain the default level configuration data corresponding to the level. The default level configuration data includes the default level content and the location information of the default level content. Then, based on the location information of the default level content, the default level content is configured at the corresponding position on the game map, thereby generating the second game target level.
[0076] The technical solution of this invention determines the game level identifier corresponding to the game level entry event, matches the game level identifier in the game resource package of the client to obtain default level configuration data, and then generates a second game target level based on the default level configuration data. This enables the generation of game levels in the absence of network conditions, thus improving the user experience.
[0077] Example 5
[0078] Figure 6 is a schematic diagram of a game level configuration device provided in Embodiment 5 of the present invention. As shown in Figure 6, the device includes:
[0079] The network service status determination module 510 is used to determine the client's network service status in response to game level entry events;
[0080] The first game target level generation module 520 is used to obtain game level configuration data from the server when the client network service status is normal, and generate the first game target level based on the game level configuration data.
[0081] The second game target level generation module 530 is used to obtain default level configuration data and generate a second game target level based on the default level configuration data when the client network service status is disconnected.
[0082] The technical solution of this invention determines the client's network service status by responding to a game level entry event. When the client's network service status is normal, game level configuration data is obtained from the server, and a first target game level is generated based on the game level configuration data. When the client's network service status is disconnected, default level configuration data is obtained, and a second target game level is generated based on the default level configuration data. The above technical solution can generate target game levels under different network service statuses, solving the problem of game level loading or generation failure.
[0083] In some alternative implementations, the first game objective level generation module 520 is further configured to:
[0084] Download game level configuration data from the server's level database;
[0085] The server is used to receive and store game level configuration data uploaded by the level design client.
[0086] In some optional implementations, the game level configuration data includes level configuration content, location information of the level configuration content, and the quantity of the level configuration content. The level configuration content includes one or more of the following: characters, herbs to be harvested, monsters, obstacles, and harvesting tools.
[0087] In some alternative implementations, the first game objective level generation module 520 is further configured to:
[0088] The level configuration content is configured at the game map location corresponding to the location information of the level configuration content, and / or, multiple identical level configuration contents are configured at different locations on the game map to obtain the first game target level.
[0089] In some alternative implementations, the second game objective level generation module 530 is further configured to:
[0090] Determine the game level identifier corresponding to the game level entry event;
[0091] The game level identifiers are matched within the game resource package of the client to obtain the default level configuration data.
[0092] In some optional implementations, the default level configuration data includes default level content and the location information of the default level content; the second game target level generation module 530 is further used for:
[0093] The default content of the level is configured at the game map location corresponding to the location information of the default content of the level to obtain the second game target level.
[0094] In some optional implementations, the game level configuration device further includes:
[0095] The level configuration error handling module is used to obtain default level configuration data when there is a level configuration error, and generate a second game target level based on the default level configuration data.
[0096] The game level configuration device provided in this embodiment of the invention can execute the game level configuration method provided in any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0097] Example 6
[0098] Figure 7 illustrates a schematic diagram of an electronic device 10 that can be used to implement embodiments of the present invention. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital assistants, cellular phones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the invention described and / or claimed herein.
[0099] As shown in Figure 7, the electronic device 10 includes at least one processor 11 and a memory, such as a read-only memory (ROM) 12 or a random access memory (RAM) 13, communicatively connected to the at least one processor 11. The memory stores computer programs executable by the at least one processor. The processor 11 can perform various appropriate actions and processes based on the computer programs stored in the ROM 12 or loaded from storage unit 18 into the RAM 13. The RAM 13 can also store various programs and data required for the operation of the electronic device 10. The processor 11, ROM 12, and RAM 13 are interconnected via a bus 14. An I / O interface 15 is also connected to the bus 14.
[0100] Multiple components in electronic device 10 are connected to I / O interface 15, including: input unit 16, such as keyboard, mouse, etc.; output unit 17, such as various types of displays, speakers, etc.; storage unit 18, such as disk, optical disk, etc.; and communication unit 19, such as network card, modem, wireless transceiver, etc. Communication unit 19 allows electronic device 10 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.
[0101] Processor 11 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. Processor 11 performs the various methods and processes described above, such as a game level configuration method, which includes:
[0102] Respond to game level entry events and determine the client's network service status;
[0103] When the client network service status is normal, the game level configuration data is obtained from the server, and the first game target level is generated based on the game level configuration data;
[0104] If the client network service is in a disconnected state, obtain the default level configuration data and generate the second game target level based on the default level configuration data.
[0105] In some embodiments, the game level configuration method may be implemented as a computer program tangibly contained in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on electronic device 10 via ROM 12 and / or communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the game level configuration method described above may be performed. Alternatively, in other embodiments, processor 11 may be configured to execute the game level configuration method by any other suitable means (e.g., by means of firmware).
[0106] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.
[0107] Computer programs used to implement the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when executed by the processor, the computer programs cause the functions / operations specified in the flowcharts and / or block diagrams to be performed. The computer programs may be executed entirely on a machine, partially on a machine, or as a standalone software package, partially on a machine and partially on a remote machine, or entirely on a remote machine or server.
[0108] In the context of this invention, a computer-readable storage medium can be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, apparatus, or device. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination thereof. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.
[0109] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).
[0110] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data servers), or computing systems that include middleware components (e.g., application servers), or computing systems that include frontend components (e.g., user computers with graphical user interfaces or web browsers through which users can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., communication networks). Examples of communication networks include local area networks (LANs), wide area networks (WANs), blockchain networks, and the Internet.
[0111] A computing system can include clients and servers. Clients and servers are generally located far apart and typically interact through communication networks. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a hosting product within the cloud computing service system to address the shortcomings of traditional physical hosts and VPS services, such as high management difficulty and weak business scalability.
[0112] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps described in this invention can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution of this invention can be achieved, and this is not limited herein.
[0113] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.
Claims
1. A method for configuring game levels, characterized in that, Applied to the client, the system includes: responding to a game level entry event and determining the client's network service status; if the client's network service status is normal, obtaining game level configuration data from the server and generating a first target game level based on the game level configuration data; if the client's network service status is disconnected, obtaining default level configuration data and generating a second target game level based on the default level configuration data; wherein the first target game level and the second target game level are the same level, the configuration content of the first target game level and the second target game level are different, the first target game level is the updated game level, and the second target game level is the unupdated default game level; the step of obtaining from the server... Retrieving game level configuration data includes: downloading game level configuration data from the level database on the server; wherein the game level configuration data is the data of the modified part of the level and does not include the data of the unmodified part; wherein the server is used to receive and store the game level configuration data uploaded by the level design end; obtaining default level configuration data includes: determining the game level identifier corresponding to the game level entry event; the game level identifier is unique and used to identify the game level; matching the game level identifier in the game resource package of the client to obtain default level configuration data; the method further includes: in the case of level configuration error, obtaining default level configuration data and generating a second game target level based on the default level configuration data.
2. The method according to claim 1, characterized in that, The game level configuration data includes level configuration content, the location information of the level configuration content, and the quantity of the level configuration content. The level configuration content includes one or more of the following: character, medicine to be harvested, monster, obstacle, and harvesting tool.
3. The method according to claim 2, characterized in that, The step of generating the first target game level based on the game level configuration data includes: configuring the level configuration content at the game map position corresponding to the position information of the level configuration content, and / or configuring multiple identical level configuration contents at different positions on the game map to obtain the first target game level.
4. The method according to claim 1, characterized in that, The default level configuration data includes the default level content and the location information of the default level content; correspondingly, generating the second game target level based on the default level configuration data includes: configuring the default level content at the game map location corresponding to the location information of the default level content to obtain the second game target level.
5. A game level configuration device, characterized in that, Applied to the client side, the system includes: a network service status determination module, used to determine the client's network service status in response to a game level entry event; a first game target level generation module, used to obtain game level configuration data from the server and generate a first game target level based on the game level configuration data when the client's network service status is normal; and a second game target level generation module, used to obtain default level configuration data and generate a second game target level based on the default level configuration data when the client's network service status is disconnected; wherein, the first game target level and the second game target level are the same level, the configuration content of the first game target level and the second game target level are different, the first game target level is the updated game level, and the second game target level is the unupdated default game level. The game level generation module is further configured to: download game level configuration data from the level database on the server; wherein the game level configuration data is the data of the modified part of the level and does not include the data of the unmodified part; wherein the server is configured to receive and store the game level configuration data uploaded by the level design end; the second game level generation module is further configured to: determine the game level identifier corresponding to the game level entry event; the game level identifier is unique and used to identify the game level; match the game level identifier in the game resource package of the client to obtain default level configuration data; the game level configuration device further includes: a level configuration error handling module, configured to obtain default level configuration data and generate a second game target level based on the default level configuration data in the case of a level configuration error.
6. An electronic device, characterized in that, The electronic device includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores a computer program executable by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform the game level configuration method according to any one of claims 1-4.
7. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions that cause a processor to execute the game level configuration method according to any one of claims 1-4.
Citation Information
Patent Citations
Web-game running method and device
CN104065637A