Level processing method and device in virtual scene

By analyzing the occlusion relationships and states of elements in a virtual scene, the operation cost and difficulty parameters were determined, solving the problem of inaccurate level difficulty, achieving more precise level design, and improving the experience of virtual scenes.

CN119701329BActive Publication Date: 2025-10-03BEIJING QIMIAO KINGDOM TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510023546.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-01-07
Publication Date
2025-10-03
Estimated Expiration
2045-01-07

AI Technical Summary

Technical Problem

In existing technologies, the difficulty of levels in virtual scenes depends on the number and types of elements, which leads to inaccurate difficulty and affects the player experience.

Method used

By analyzing the occlusion relationships and states of elements in level operations, the operation cost parameters of elements are determined, elimination element groups and operable elements are constructed, the difficulty parameters of level operations are calculated, and finally the level difficulty parameters are determined.

Benefits of technology

It improves the accuracy and rationality of level difficulty parameters, enabling more granular control over level difficulty and enhancing the virtual scene experience and player satisfaction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119701329B_ABST
    Figure CN119701329B_ABST
Patent Text Reader

Abstract

This application provides a method and apparatus for level processing in a virtual scene. The method includes: for each level operation in a target level, determining an operation cost parameter for each element of the level operation based on the element occlusion relationship and element state of each of the multiple elements of the level operation; for each level operation, determining an elimination element group for the level operation based on the operation cost parameter of each element of the level operation; for each level operation, determining an operable element for the level operation from the elimination element group of the level operation and elements associated with the elimination element group; determining an operation difficulty parameter for each level operation based on the operation cost parameter of the operable element of each level operation; and determining a level difficulty parameter for the target level based on the operation difficulty parameter of each level operation. This application can improve the accuracy of level difficulty.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a method and device for processing levels in a virtual scene. Background Art

[0002] With the development of computer technology, electronic devices can realize richer and more vivid virtual scenes. A virtual scene refers to a digital scene outlined by a computer through digital communication technology. Users can interact with various virtual elements in the virtual scene to obtain feedback.

[0003] For example, in a virtual world like a match-3 game, multiple levels can be included. When designing a level, developers need to consider its difficulty to ensure a positive player experience. However, prior art only relies on the number and type of elements in a level to determine level difficulty, resulting in inaccurate levels. Summary of the Invention

[0004] Embodiments of the present application provide a method, device, electronic device, computer-readable storage medium, and computer program product for processing levels in a virtual scene, which can improve the accuracy of level difficulty.

[0005] The technical solution of the embodiment of the present application is implemented as follows:

[0006] The present application provides a method for processing a level in a virtual scene, including:

[0007] For each level operation in the target level, determining an operation cost parameter of each element of the level operation based on an element occlusion relationship and an element state of each element in the plurality of elements of the level operation;

[0008] For each of the level operations, determining an elimination element group for the level operation based on an operation cost parameter of each of the elements of the level operation, wherein the elimination element group includes at least two elements from the plurality of elements, and when all elements included in the elimination element group are triggered, the elimination element group is eliminated;

[0009] For each level operation, determining an operable element of the level operation from the elimination element group of the level operation and elements associated with the elimination element group;

[0010] Determining an operation difficulty parameter of each level operation based on an operation cost parameter of an operable element of each level operation;

[0011] Based on the operation difficulty parameters of each of the level operations, a level difficulty parameter of the target level is determined.

[0012] The embodiment of the present application further provides a level processing device in a virtual scene, comprising:

[0013] a first determining module configured to determine, for each level operation in a target level, an operation cost parameter of each element of the level operation based on an element occlusion relationship and an element state of each of the multiple elements of the level operation;

[0014] a second determining module configured to determine, for each level operation, an elimination element group for the level operation based on an operation cost parameter of each element of the level operation, wherein the elimination element group includes at least two elements from the plurality of elements, and when all elements included in the elimination element group are triggered, the elimination element group is eliminated;

[0015] a third determining module, configured to determine, for each level operation, an operable element of the level operation from the elimination element group of the level operation and elements associated with the elimination element group;

[0016] A fourth determining module, configured to determine an operation difficulty parameter of each level operation based on an operation cost parameter of an operable element of each level operation;

[0017] The fifth determining module is configured to determine a level difficulty parameter of the target level based on the operation difficulty parameter of each level operation.

[0018] An embodiment of the present application further provides an electronic device, including:

[0019] a memory for storing computer-executable instructions;

[0020] The processor is configured to implement the level processing method in the virtual scene provided in the embodiment of the present application when executing the computer executable instructions stored in the memory.

[0021] An embodiment of the present application further provides a computer-readable storage medium storing computer-executable instructions or a computer program. When the computer-executable instructions or the computer program are executed by a processor, the level processing method in the virtual scene provided by the embodiment of the present application is implemented.

[0022] An embodiment of the present application further provides a computer program product, including computer-executable instructions or a computer program. When the computer-executable instructions or the computer program are executed by a processor, the method for processing levels in a virtual scene provided in an embodiment of the present application is implemented.

[0023] The embodiments of the present application have the following beneficial effects:

[0024] Applying the above-mentioned embodiments of the present application, first, for each level operation in the target level, based on the element occlusion relationship and element status of each element among the multiple elements of the level operation, an operation cost parameter of each element of the level operation is determined; then, for each level operation, based on the operation cost parameters of each element of the level operation, an elimination element group of the level operation is determined; then, for each level operation, from the elimination element group of the level operation and the elements associated with the elimination element group, an operable element of the level operation is determined; then, based on the operation cost parameters of the operable elements of each level operation, an operation difficulty parameter of each level operation is determined; thereby, based on the operation difficulty parameters of each level operation, the level difficulty parameter of the target level is determined.

[0025] In this way, 1) based on the element occlusion relationship and element state of the element, the operation cost parameter of the element is determined, thereby realizing the determination of the level difficulty parameter based on the operation cost parameter of the element, which can effectively analyze the complex element occlusion relationship and the influence of the element state on the level difficulty parameter, thereby improving the accuracy and rationality of the level difficulty parameter; 2) by determining the operation difficulty parameters of each level operation in the target level, a more fine-grained level difficulty control is achieved, thereby further improving the accuracy and rationality of the level difficulty parameter. In summary, through the embodiments of the present application, the problem of poor virtual scene experience due to unreasonable level difficulty setting can be avoided, a more accurate and appropriate level difficulty design is provided, and the experience of the virtual scene is improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] Figure 1 This is a schematic diagram of the architecture of a level processing system in a virtual scene provided by an embodiment of the present application;

[0027] Figure 2 is a structural diagram of an electronic device provided in an embodiment of the present application;

[0028] Figure 3A 1 is a flow chart of a method for processing a level in a virtual scene provided by an embodiment of the present application;

[0029] Figure 3B 1 is a flow chart of a method for processing a level in a virtual scene provided by an embodiment of the present application;

[0030] Figure 3C 1 is a flow chart of a method for processing a level in a virtual scene provided by an embodiment of the present application;

[0031] Figure 3D 1 is a flow chart of a method for processing a level in a virtual scene provided by an embodiment of the present application;

[0032] Figure 4 Schematic diagram of the display of the level operation interface provided by the embodiment of the present application;

[0033] Figure 5 Schematic diagram of the display of the level operation interface provided in the embodiment of the present application. DETAILED DESCRIPTION

[0034] In order to make the purpose, technical solutions and advantages of this application clearer, the application will be further described in detail below with reference to the accompanying drawings. The described embodiments should not be regarded as limiting this application. All other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.

[0035] In the following description, reference is made to “some embodiments”, which describes a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.

[0036] In the following description, the terms "first\second\third" involved are merely used to distinguish similar objects and do not represent a specific ordering of the objects. It can be understood that "first\second\third" can be interchanged with a specific order or sequence where permitted, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein.

[0037] In the embodiments of the present application, the term "module" or "unit" refers to a computer program or a part of a computer program that has a predetermined function and works together with other related parts to achieve a predetermined goal, and can be implemented in whole or in part by using software, hardware (such as processing circuits or memories) or a combination thereof. Similarly, a processor (or multiple processors or memories) can be used to implement one or more modules or units. In addition, each module or unit can be part of an overall module or unit that includes the functions of the module or unit.

[0038] Unless otherwise defined, all technical and scientific terms used in the embodiments of the present application have the same meanings as those commonly understood by those skilled in the art. The terms used in the embodiments of the present application are only for the purpose of describing the embodiments of the present application and are not intended to limit the present application.

[0039] The relevant data collection and processing in the embodiments of this application should be strictly in accordance with the requirements of relevant laws and regulations when applied in examples, and the informed consent or separate consent of the personal information subject should be obtained. Subsequent data use and processing should be carried out within the scope of authorization of laws and regulations and the personal information subject.

[0040] Before further describing the embodiments of the present application in detail, the nouns and terms involved in the embodiments of the present application are explained. The nouns and terms involved in the embodiments of the present application are subject to the following interpretations.

[0041] 1) Client: an application running in an electronic device to provide various services, such as a client that supports virtual scenes (such as a game client).

[0042] 2) In response, it is used to indicate the conditions or states on which the executed operations depend. When the dependent conditions or states are met, one or more operations executed can be real-time or have a set delay. Unless otherwise specified, there is no restriction on the order in which the multiple operations executed are executed.

[0043] 3) Level operation interface: An interface used to display elements of the current level. For example, it can be displayed through a graphical user interface (GUI), such as an augmented reality (AR) interface, a virtual reality (VR) interface, a voice user interface (VUI), an interactive projection interface (using projection technology to display information on a flat surface), an eye movement detection interface (an interface controlled by detecting the user's line of sight), a holographic interface (using holographic projection technology to project images into a three-dimensional hologram, allowing stereoscopic images to be viewed without wearing special glasses), a multimodal interface (an interface that combines multiple interaction methods, such as touch, vision, and hearing), and a brain-machine interface (BMI).

[0044] 4) TileMatch: When players click on an element (tile) in the action area, it moves to the display area. When three identical tiles appear in the display area, a tile is removed. Players must continue clicking until all tiles in the action area are removed to complete the level. The action area is where the tiles are stacked, where players can click to move them; the display area is where the tiles are moved to, and where the final removal occurs.

[0045] 5) Tile: an element in the game that can be clicked and moved.

[0046] 6) Element Occlusion: This refers to how an element is affected by the visibility of its parent element or by an obstructing element, with varying degrees of visibility, including fully visible, partially visible, and fully obscured. An element occlusion relationship indicates at least one obscuring element that obscures the element.

[0047] The embodiments of the present application provide a method, apparatus, electronic device, computer-readable storage medium, and computer program product for processing levels in a virtual scene, which can improve the accuracy of level difficulty. Next, based on the above description of the nouns and terms involved in the embodiments of the present application, the embodiments of the present application are described in detail.

[0048] The following describes the level processing system in the virtual scene provided by the embodiment of the present application. Figure 1 , Figure 1 This is a schematic diagram of the architecture of a level processing system in a virtual environment, provided by an embodiment of the present application. To support an exemplary application, the level processing system 100 in the virtual environment includes a server 200, a network 300, and a terminal 400. Terminal 400 is connected to server 200 via network 300. Network 300 can be a wide area network (WAN), a local area network (LAN), or a combination of both, using either wireless or wired links for data transmission.

[0049] Here, the terminal 400 (e.g., running a client supporting a virtual scene) is used to send a request to determine the level difficulty of a target level in the virtual scene to the server 200. The virtual scene includes an operation interface for level operations of the target level, and the operation interface displays multiple elements related to the level operations.

[0050] The server 200 is configured to receive a request for determining the level difficulty of a target level sent by the terminal 400; in response to the request for determining the level difficulty, obtain an element occlusion relationship and an element state of each element of each level operation in the target level; determine, for each level operation, an operation cost parameter of each element of the level operation based on the element occlusion relationship and the element state of each element in the multiple elements of the level operation; determine, for each level operation, an elimination element group for the level operation based on the operation cost parameter of each element in the level operation, the elimination element group including at least two elements from the multiple elements, and when all elements included in the elimination element group are triggered, the elimination element group is eliminated; determine, for each level operation, an operable element for the level operation from the elimination element group of the level operation and elements associated with the elimination element group; determine an operation difficulty parameter for each level operation based on the operation cost parameter of the operable element of each level operation; determine a level difficulty parameter for the target level based on the operation difficulty parameter of each level operation; and return the level difficulty parameter of the target level to the terminal 400;

[0051] The terminal 400 is further configured to receive the level difficulty parameter of the target level returned by the server 200 ; and display the level difficulty parameter of the target level.

[0052] The level processing method in the virtual scene provided in the embodiment of the present application is implemented by an electronic device. For example, it can be implemented by a terminal alone, by a server alone, or by a terminal and a server in collaboration. The electronic device that implements the level processing method in the virtual scene provided in the embodiment of the present application can be various types of terminals or servers. Among them, the server (such as server 200) can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers. It can also be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDNs), and big data and artificial intelligence platforms. The terminal (such as terminal 400) can be a laptop, tablet computer, desktop computer, smartphone, intelligent voice interaction device (such as a smart speaker), smart home appliance (such as a smart TV), smart watch, vehicle terminal, wearable device, virtual reality (VR) device, aircraft, etc., but is not limited to these. The terminal and server can be directly or indirectly connected via wired or wireless communication, and the embodiment of the present application does not limit this.

[0053] In some embodiments, the terminal or server can implement the level processing method in the virtual scene provided by the embodiment of the present application by running various computer executable instructions or computer programs. For example, computer executable instructions can be microprogram-level commands, machine instructions or software instructions. The computer program can be a native program or software module in the operating system; it can be a local (Native) application (Application, APP), that is, a program that needs to be installed in the operating system to run, such as a client that supports virtual scenes (such as a game client); it can also be a small program that can be embedded in any APP, that is, a program that can be run only by downloading it to a browser environment. In short, the above-mentioned computer executable instructions can be instructions in any form, and the above-mentioned computer program can be an application, module or plug-in in any form.

[0054] The following describes an electronic device for implementing a level processing method in a virtual scene provided by an embodiment of the present application. Figure 2 , Figure 2 Schematic diagram of the structure of the electronic device provided in the embodiment of the present application. The electronic device 500 provided in the embodiment of the present application can be a terminal or a server. Figure 2As shown, the electronic device 500 includes: at least one processor 510, a memory 550, at least one network interface 520 and a user interface 530. The various components in the electronic device 500 are coupled together via a bus system 540. It is understood that the bus system 540 is used to achieve connection and communication between these components. In addition to the data bus, the bus system 540 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, the bus system 540 is not described in detail. Figure 2 Various buses are labeled as bus system 540 .

[0055] The processor 510 can be an integrated circuit chip with signal processing capabilities, such as a general-purpose processor, a digital signal processor (DSP), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc., where the general-purpose processor can be a microprocessor or any conventional processor, etc.

[0056] The user interface 530 includes one or more output devices 531 that enable presentation of media content, including one or more speakers and / or one or more visual display screens. The user interface 530 also includes one or more input devices 532, including user interface components that facilitate user input, such as a keyboard, mouse, microphone, touch screen display, camera, other input buttons and controls.

[0057] The memory 550 may be removable, non-removable, or a combination thereof. The memory 550 may include one or more storage devices physically remote from the processor 510. The memory 550 includes volatile memory or non-volatile memory, or may include both volatile memory and non-volatile memory. The non-volatile memory may be a read-only memory (ROM), and the volatile memory may be a random access memory (RAM). The memory 550 described in the embodiments of the present application is intended to include any suitable type of memory.

[0058] In some embodiments, the memory 550 can store data to support various operations, examples of which include programs, modules, and data structures, or a subset or superset thereof, as exemplified below.

[0059] Operating system 551, including system programs for processing various basic system services and performing hardware-related tasks, such as the framework layer, core library layer, driver layer, etc., for implementing various basic services and processing hardware-based tasks;

[0060] A network communication module 552 for reaching other electronic devices via one or more (wired or wireless) network interfaces 520 , exemplary network interfaces 520 including Bluetooth, Wi-Fi, and Universal Serial Bus (USB);

[0061] a presentation module 553 for enabling presentation of information via one or more output devices 531 (e.g., a display screen, a speaker, etc.) associated with the user interface 530 (e.g., a user interface for operating peripheral devices and displaying content and information);

[0062] The input processing module 554 is configured to detect one or more user inputs or interactions from one of the one or more input devices 532 and to translate the detected inputs or interactions.

[0063] In some embodiments, the level processing device in the virtual scene provided by the embodiments of the present application can be implemented in software. Figure 2 A level processing device 555 in a virtual scene stored in a memory 550 is shown. The level processing device 555 can be software in the form of a program or plug-in, and includes the following software modules: a first determination module 5551, a second determination module 5552, a third determination module 5553, a fourth determination module 5554, and a fifth determination module 5555. These modules are logical and can be arbitrarily combined or further split according to the functions implemented. The functions of each module will be explained below.

[0064] The following describes the level processing method in the virtual scene provided by the embodiment of the present application. As mentioned above, the level processing method in the virtual scene provided by the embodiment of the present application is implemented by an electronic device, for example, it can be implemented by a server or a terminal alone, or it can be implemented by a server and a terminal in collaboration. Therefore, the execution body of each step will not be repeated below. Figure 3A , Figure 3A : is a flow chart of a method for processing a level in a virtual scene provided by an embodiment of the present application. The method for processing a level in a virtual scene provided by an embodiment of the present application includes:

[0065] Step 101: For each level operation in the target level, based on the element occlusion relationship and element state of each element in the multiple elements of the level operation, determine the operation cost parameter of each element of the level operation.

[0066] In actual applications, electronic devices can run computer programs that support virtual scenes. The computer program can be a client that needs to be installed in the operating system to run, or it can be a small program that can be embedded in any client, that is, a program that only needs to be downloaded to the browser environment to run, or it can be a web application that runs in the browser through the Internet.

[0067] In practical applications, the virtual scene provided by the embodiments of the present application can be a digital environment constructed in an elimination game. The virtual scene generally includes one or more of the following features: 1) Game Grid: This is the core component of the virtual scene, usually composed of a series of cells arranged in rows and columns, in which players manipulate elements to complete elimination tasks. 2) Visual Design: This includes the design and animation effects of the background, foreground, and elements of the virtual scene, as well as the use of light, shadow, and color, aiming to create an attractive visual experience. 3) Interactive Interface: This provides players with ways to interact with the game, such as swiping and clicking on a touch screen or using a keyboard and mouse to control the elements in the game. 4) Game Elements: The elements in this article refer to various operable objects in the game, such as gems, fruits, or other symbols of different colors and shapes, which players need to match and eliminate according to the rules of the game. 5) Objective Setting: The virtual scene includes at least one level, and each level may have a specific objective, such as reaching a certain score, clearing all specific elements, completing a certain number of eliminations, or eliminating all elements in the level. 6) Narrative: In some games, virtual scenes incorporate story elements to provide players with game context and plot development. 7) Sound and Music: Virtual scenes are often accompanied by music and sound effects to enhance the game's atmosphere and interactivity. Therefore, the definition of a virtual scene provided in the embodiments of this application is: a digital environment designed for elimination games that combines visual art, interactive design, and game mechanics to create an interactive experience in which players can perform matching and elimination operations.

[0068] It should be noted that the above virtual scene includes at least one level, which is sequential. Usually, a player needs to pass a level before entering the next level. Figure 4 , Figure 4: This is a display diagram of the level operation interface provided by an embodiment of the present application. Here, for each level, a corresponding level operation interface is provided, which includes an operation area and a display area. The operation area displays elements to be eliminated. Players can operate elements in the operation area (such as clicking on elements). After the player operates an element in the operation area, the operated element will move from the operation area to the display area. When the elements in the display area meet the element elimination conditions (such as the number of elements with the same identifier (such as pattern, color, etc.) reaches the target number (such as 3)), the elements that meet the element elimination conditions will be eliminated from the level operation interface. For example, when there are 3 elements with the same identifier (such as pattern, color, etc.) in the display area, since the 3 elements with the same identifier meet the element elimination conditions, the 3 elements with the same identifier are eliminated from the level operation interface. In one example, the display area can include a set number (such as 6) of element display positions, each element display position is used to display an element moved from the operation area. When the element display positions in the display area are all occupied, the level fails. Each operation performed by the player in a level is a level operation. To pass a level, the player needs to perform multiple level operations in sequence in the level operation interface. Specifically, each level operation is an operation on an element (such as clicking). Each level operation is completed under the current situation of the level operation interface. Therefore, the multiple elements of the level operation are: the multiple elements that exist in the current situation for performing the level operation.

[0069] In step 101, the following processing is performed for each level operation in the target level: first, the element occlusion relationship and element state of each of the multiple elements of the level operation are obtained, and then, based on the element occlusion relationship and element state of each of the multiple elements of the level operation, an operation cost parameter of each element of the level operation is determined. The operation cost parameter of an element indicates the number of operations (such as click operations on the element's covered elements, move operations, etc.) required to control the element to be in an operable state (i.e., a state where the player can directly click on it).

[0070] In some embodiments, see Figure 3BBefore determining the operation cost parameters of each element of the level operation in the target level based on the element occlusion relationship and element status of each element in the multiple elements of the level operation, the following steps 201-204 may be further performed: Step 201, simulate the operation process of the target level multiple times to obtain a level simulation result for each simulation; Step 202, evaluate each level simulation result to obtain an evaluation index value for each level simulation result; Step 203, select a target level simulation result whose evaluation index value meets the fourth selection condition from the multiple level simulation results; Step 204, obtain the element occlusion relationship and element status of each element of each level operation in the target level from the target level simulation result.

[0071] Here, when determining the level difficulty parameters of the target level, the target level's operational process (i.e., the level operations sequentially executed in the target level) can be simulated, thereby analyzing the target level's level difficulty parameters based on the level simulation results. Therefore, in step 201, the target level's operational process is first simulated multiple times to obtain the level simulation results for each simulation. The number of simulations can be a set number pre-set based on experience, or it can be a number of simulations performed when a simulation end condition is met (e.g., the simulation duration reaches a preset duration). In practical applications, the simulation process can be implemented using a Monte Carlo algorithm. During the simulation, the target level's level rules can be incorporated to accelerate the simulation process and improve simulation efficiency. The level simulation results for each simulation are the simulated operational process for the target level, i.e., the level operations sequentially executed in the target level.

[0072] In step 202, each level simulation result is evaluated to obtain an evaluation index value for each level simulation result. Here, evaluation indexes for evaluating the level simulation results can be pre-set. For example, such evaluation indexes may include, but are not limited to, whether the level is passed, whether the level is won, level difficulty parameters, level scores, and the like. Based on the evaluation indexes, each level simulation result is evaluated to obtain an evaluation index value for each level simulation result. For example, taking the level difficulty parameter as the evaluation index, the level difficulty parameter for each level simulation result can be determined according to the method provided in the embodiments of this application. The level difficulty parameter is the evaluation index value for each level simulation result.

[0073] In step 203, based on the evaluation index values ​​of each level simulation result, a target level simulation result whose evaluation index value satisfies a fourth selection condition can be selected from the multiple level simulation results. For example, taking the evaluation index as the level score, the fourth selection condition can be selecting the level simulation result with the highest level score as the target level simulation result. For example, taking the evaluation index as the level difficulty parameter, the fourth selection condition can be selecting the level simulation result with the lowest level difficulty parameter as the target level simulation result. In practical applications, the level difficulty parameter can be represented by the level selection clarity. The selection clarity indicates the difficulty of selecting the element to be operated (e.g., the element to be clicked) when the player performs a level operation in the level. The higher the selection clarity, the lower the difficulty of selecting the element to be operated. Therefore, the higher the selection clarity, the lower the level difficulty parameter. Therefore, selecting the level simulation result with the lowest level difficulty parameter as the target level simulation result is equivalent to selecting the level simulation result with the highest selection clarity as the target level simulation result.

[0074] In step 204, after the target level simulation result is selected and obtained, the level difficulty parameter of the target level is determined based on the target level simulation result. Therefore, the element occlusion relationship and element state of each element in each level operation in the target level are obtained from the target level simulation result. Then, steps 101 to 105 provided in the embodiment of the present application are executed based on the obtained element occlusion relationship and element state of each element in each level operation in the target level to obtain the level difficulty parameter of the target level.

[0075] Based on steps 201-204 above, multiple simulations are performed on the target level, and target level simulation results that meet the fourth selection condition are selected based on the level simulation results. The target level difficulty is then subsequently analyzed based on the target level simulation results. By simulating each level operation in the target level multiple times, the difficulty of each level operation during the operation process (i.e., each level operation in the target level) can be dynamically adjusted based on the element elimination path (i.e., each level operation that has been executed) and the current state of the level operation interface. This makes the level more adaptable, achieves more granular and multi-dimensional level difficulty control, increases the challenge and fun of the virtual scene, and enhances the user's immersion in the virtual scene. Multiple simulations also improve the efficiency of determining level difficulty parameters, eliminating the need for developers to actually experience the difficulty of the generated level before modifying it. This improves level development efficiency, reduces the trial-and-error time and cycle time during level design, and optimizes and improves the efficiency of level generation and updating.

[0076] In some embodiments, the element occlusion relationship of the element indicates at least one occluding element of the occluding element; based on this, based on the element occlusion relationship and element state of each element in the plurality of elements of the level operation, the operation cost parameter of each element of the level operation can be determined by performing the following steps: Figure 3C , steps 301 to 303 can be performed for each of the multiple elements of the level operation to obtain the operation cost parameter of each element: step 301, determining the element identifier of each occluding element of the element, and for each element identifier, retaining a target occluding element with the element identifier from at least one occluding element; step 302, determining the number of target occluding elements as the basic operation cost parameter of the element; step 303, adjusting the basic operation cost parameter of the element based on the element state of the element to obtain the operation cost parameter of the element.

[0077] For step 301, since the element occlusion relationship of the element indicates at least one occluding element that occludes the element, at least one occluding element that occludes the element can be determined based on the element occlusion relationship of the element. For example, the element occlusion relationship of each element can be analyzed layer by layer from the highest layer downward to obtain an occlusion element set for each element. The occlusion element set of an element includes: at least one occlusion element that occludes the element and is indicated by the element occlusion relationship of the element. For example, for element A, if element A is directly occluded by element B, element B is added to the occlusion element set of element A, and all occlusion elements of element B are also added to the occlusion element set of element A, and finally the occlusion element set of element A is obtained. When determining the operating cost parameters of an element, the element identifiers of each occluding element are first determined. This element identifier serves as a sub-condition of the element removal condition. Specifically, when an element satisfies the element removal condition, it is removed from the current state of the level operation interface. Elements that satisfy the element removal condition must also satisfy the sub-condition of having the same element identifier. Specifically, if other sub-conditions of the element removal condition (e.g., a set number of elements with the same element identifier (e.g., three)) are also met, the element is removed from the current state of the level operation interface. This element identifier may include, but is not limited to, the element's pattern (e.g., fruit, animal, or food), color (e.g., red, yellow, purple, or blue), shape (e.g., triangle, circle, or square), and so on. Then, for each element identifier, a target occluding element with that element identifier is retained from at least one occluding element. Thus, for each element identifier, a target occluding element with that element identifier is retained.

[0078] In step 302, the number of target occlusion elements is determined, and the number of target occlusion elements is determined as the basic operation cost parameter of the element. For example, if the number of target occlusion elements is 3, then the basic operation cost parameter of the element is 3.

[0079] In step 303 , the element state of the element is obtained, and the basic operation cost parameter of the element is adjusted according to the element state of the element to obtain the operation cost parameter of the element.

[0080] Based on the above steps 301 to 303, the calculation of the element's operation cost parameters is realized based on the element's element occlusion relationship and element status, so that the level difficulty parameters can be calculated based on the element's operation cost parameters in the future. It can effectively analyze the complex element occlusion relationship and the influence of the element status on the level difficulty parameters, improve the accuracy and rationality of the level difficulty parameters, thereby avoiding the problem of poor virtual scene experience due to unreasonable level difficulty setting, providing a more accurate and appropriate level difficulty design, and improving the experience of the virtual scene.

[0081] In some embodiments, based on the element state of the element, the basic operating cost parameter of the element can be adjusted by performing the following steps to obtain the operating cost parameter of the element: if the element state represents that the element is bound to at least one bound element, based on the number of bound elements, the basic operating cost parameter of the element is adjusted to obtain the operating cost parameter of the element; if the element state represents that the element enters an operable state when its adjacent elements are eliminated, based on the operating cost parameters of the adjacent elements, the basic operating cost parameter of the element is adjusted to obtain the operating cost parameter of the element; if the element state represents that the element is in a state to be eliminated, the basic operating cost parameter of the element is adjusted to a first value, and the first value is determined as the operating cost parameter of the element; if the element state represents that the target level fails when the element is triggered, the basic operating cost parameter of the element is adjusted to a second value, and the second value is determined as the operating cost parameter of the element; if the element state represents that the processing priority of the element is higher than the target priority, the basic operating cost parameter of the element is adjusted to a third value, and the third value is determined as the operating cost parameter of the element.

[0082] Here, (1) if the element state represents that the element is bound to at least one binding element, then based on the number of binding elements, the basic operation cost parameter of the element is adjusted to obtain the operation cost parameter of the element. It should be noted that when an element is bound to at least one binding element, if you want to operate (such as click, move) the element, at least one binding element bound to the element must also be in an operable state (such as a movable state, a clickable state). Therefore, the operation cost parameter of the element can be: the sum of the basic operation cost parameter and the number of binding elements. For example, if an element is forcibly bound to one binding element (that is, two elements are forcibly bound), then the operation cost parameter of the element = basic operation cost parameter + 1; similarly, the operation cost parameter of another binding element = basic operation cost parameter + 1.

[0083] (2) If the element state represents that the element enters an operable state when its adjacent elements are eliminated, then the basic operation cost parameter of the element is adjusted based on the operation cost parameter of the adjacent elements. It should be noted that when an element needs to enter an operable state (such as a movable state or a clickable state) after its adjacent elements are eliminated, then the basic operation cost parameter of the element is adjusted based on the operation cost parameter of the adjacent elements to obtain the operation cost parameter of the element. The operation cost parameter of the element can be: the sum of the basic operation cost parameter of the element and the operation cost parameter of the adjacent elements. For example, in an elimination game, such as grass, chains, etc., the element can only be unlocked (i.e., enter an operable state) after its adjacent elements are eliminated. Then, when operating the element in this element state, the operation cost parameter of the adjacent elements needs to be considered. Therefore, the operation cost parameter of the element in the element state = the basic operation cost parameter of the element + the operation cost parameter of the adjacent elements.

[0084] (3) If the element state characterizes that the element is in a state to be eliminated, the basic operation cost parameter of the element is adjusted to a first value, and the first value is determined as the operation cost parameter of the element. Since the level operation interface includes an operation area and a display area, and when the elements in the display area meet the element elimination conditions (for example, the number of elements with the same identification (such as pattern, color, etc.) reaches the target number (such as 3)), the elements that meet the element elimination conditions are eliminated from the level operation interface. Therefore, when the element is in the display area, it is considered that the element is in a state to be eliminated. When the element is in a state to be eliminated, there is no need to operate the element anymore, so the basic operation cost parameter of the element is adjusted to a first value, and the first value can be 0, so that the first value is determined as the operation cost parameter of the element. In this way, the operation cost parameters are also calculated for the elements in the display area, which can facilitate unified management during subsequent processing.

[0085] (4) If the element state represents that the target level fails when the element is triggered, the basic operation cost parameter of the element is adjusted to a second value, and the second value is determined as the operation cost parameter of the element. If operating an element causes the target level to fail, the basic operation cost parameter of the element is adjusted to a second value. The first value can be infinite, and the second value is determined as the operation cost parameter of the element. That is, if the movement of an element causes the level to fail, the operation cost parameter of the element is set to infinite.

[0086] (5) If the element state represents that the processing priority of the element is higher than the target priority, the basic operating cost parameter of the element is adjusted to a third value, and the third value is determined as the operating cost parameter of the element. The target priority can be pre-set, and the processing priority of the element can also be pre-set. If the processing priority of the element is higher than the target priority, such as a virtual bomb element that is about to explode, a virtual wooden door element that is about to close, a double-sided card element that is about to flip, etc., then the basic operating cost parameter of the element needs to be adjusted to a third value, such as the minimum value of the operating cost parameter, which can be pre-set, and then the third value is determined as the operating cost parameter of the element.

[0087] (6) If the element state characterizing the element does not belong to the element state described in (1)-(5) above, then the basic operation cost parameter of the element is determined as the operation cost parameter of the element.

[0088] In this way, by determining the operation cost parameters of the elements according to the element states of the elements, it is convenient to expand the element states of the levels in the virtual scene, improve the scalability and flexibility of the level design in the virtual scene, thereby improving the development efficiency of the levels in the virtual scene and reducing the development cost.

[0089] Step 102: For each level operation, determine an elimination element group of the level operation based on the operation cost parameter of each element of the level operation.

[0090] The elimination element group includes at least two elements among the multiple elements, and when all the elements included in the elimination element group are triggered, the elimination element group is eliminated.

[0091] In step 102, for each level operation, the following processing is performed: based on the operation cost parameters of each element of the level operation, an elimination element group for the level operation is determined from multiple elements of the level operation. The elimination element group includes at least two elements from the multiple elements; when each element in the elimination element group is triggered, for example, when each element in each elimination element group is clicked and moved to the display area of ​​the level operation interface, each element in the elimination element group is eliminated from the level operation interface.

[0092] In some embodiments, see Figure 3D Based on the operation cost parameters of each element of the level operation, the elimination element group of the level operation can be determined by executing steps 401 to 404: Step 401, determining visible elements in a visible state from multiple elements of the level operation, and dividing the same visible elements into the same visible element group to obtain at least one visible element group; Step 402, determining a first visible element group from the at least one visible element group, and the number of visible elements in the first visible element group is greater than or equal to a target number; Step 403, constructing a second visible element group based on the operation cost parameters of the visible elements in the first visible element group, and the number of visible elements in the second visible element group is equal to the target number; Step 404, determining the elimination element group of the level operation from the second visible element group based on the operation cost parameters of the visible elements in the second visible element group.

[0093] In step 401, first, visible elements in a visible state are determined from the multiple elements of the level operation. That is, only elements in a visible state can be added to the elimination element group. The visible state includes a fully visible state and a partially visible state. There are multiple visible elements. Then, the visible elements are divided. That is, the same visible elements are divided into the same visible element group, thereby obtaining at least one visible element group. Each visible element group includes at least one visible element.

[0094] In step 402, the number of visible elements in each visible element group is determined, and based on the number of visible elements in each visible element group, a first visible element group is determined from the at least one visible element group, wherein the number of visible elements in the first visible element group is greater than or equal to a target number. The number of the first visible element group is at least one. The target number can be preset, for example, the target number can be 3.

[0095] For step 403, after obtaining the first visible element group, for each first visible element group, a second visible element group corresponding to the first visible element group is created. Specifically, based on the operation cost parameters of the visible elements in the first visible element group, a second visible element group corresponding to the first visible element group is constructed, and the number of visible elements in the second visible element group is equal to the target number. In some embodiments, step 403 "constructing the second visible element group based on the operation cost parameters of the visible elements in the first visible element group" can be achieved by performing the following steps: if the number of visible elements in the first visible element group is equal to the target number, the first visible element group is determined as the second visible element group; if the number of visible elements in the first visible element group is greater than the target number, the target number of target visible elements whose operation cost parameters meet the first selection condition are selected from the first visible element group, and the target visible elements are combined to obtain the second visible element group.

[0096] Here, if the number of visible elements in the first visible element group is equal to the target number, the first visible element group can be directly determined as the second visible element group; if the number of visible elements in the first visible element group is greater than the target number, then the target number of target visible elements whose operation cost parameters meet the first selection condition are selected from the first visible element group. For example, the visible elements in the first visible element group can be sorted in ascending order according to the operation cost parameter to obtain an ascending sorting result, then the first selection condition can be: based on the ascending sorting result, the target number of visible elements that are ranked first are selected as target visible elements. It should be noted that if it is found that the operation cost parameters of multiple visible elements are the same during the selection process (for example, there are 3 visible elements ranked second), then the visible elements that are associated with the selected visible elements are preferentially selected as target visible elements. The association here means that the two visible elements have a common dependent element, for example, the dependent element can be a common occluding element of the two visible elements.

[0097] Regarding step 404, after the second visible element group is constructed, an elimination element group for the level operation is determined from the second visible element group based on the operation cost parameters of the visible elements in the second visible element group. In some embodiments, step 404, "Determining the elimination element group for the level operation from the second visible element group based on the operation cost parameters of the visible elements in the second visible element group," can be implemented by performing the following steps: determining element operation weights of the visible elements in the second visible element group based on the operation cost parameters of the visible elements in the second visible element group, wherein the element operation weights and the operation cost parameters are negatively correlated, and the element operation weights indicate the likelihood of the visible elements being triggered; summing the element operation weights of the visible elements in the second visible element group to obtain a group operation weight for the second visible element group; and selecting, from the second visible element group, a target second visible element group whose group operation weight meets a second selection condition, and using the target second visible element group as the elimination element group.

[0098] Here, first, based on the operation cost parameters of the visible elements in the second visible element group, the element operation weights of the visible elements in the second visible element group are determined. The element operation weights and the operation cost parameters are negatively correlated, meaning that the higher the operation cost parameter, the smaller the element operation weight. The element operation weights indicate the likelihood of a visible element being triggered; the larger the element operation weight, the higher the likelihood of the visible element being triggered. This means that when a player operates, they can select the element with the highest element operation weight. A mapping relationship can be pre-set between the operation cost parameters of the visible elements and their corresponding element operation weights, such that the element operation weights and the operation cost parameters are negatively correlated. This mapping relationship can be pre-set as needed and is not limited here. After obtaining the element operation weights of the visible elements in the second visible element group, the element operation weights of the visible elements in the second visible element group are summed to obtain the group operation weight of the second visible element group. Based on the group operation weights of the second visible element group, a target second visible element group whose group operation weights meet the second selection condition is selected from the second visible element group, and the target second visible element group is selected as the elimination element group. For example, the second selection condition may be: selecting the second visible element group with the largest group operation weight as the target second visible element group.

[0099] Based on the above steps 401 to 404, based on the operation cost parameters of each element of the level operation, the selection of the element group is eliminated, so as to facilitate the subsequent determination of the operable elements of the level operation and the calculation of the level difficulty parameters, thereby improving the accuracy and rationality of the level difficulty parameters, thereby avoiding the problem of poor virtual scene experience due to unreasonable level difficulty settings, providing a more accurate and appropriate level difficulty design, and improving the experience of the virtual scene.

[0100] Step 103: For each level operation, determine the operable elements of the level operation from the elimination element group of the level operation and the elements associated with the elimination element group.

[0101] In step 103, the following process is performed for each level operation: First, the elements associated with the elimination element group are determined. Specifically, the elements associated with the elimination element group are the elements associated with the elements in the elimination element group. Association here means that if multiple elements share a common dependent element, then these multiple elements are associated. For example, the dependent element may be a common occluding element for multiple elements. Then, the operable elements for the level operation are determined from the elements in the elimination element group and the elements associated with the elimination element group.

[0102] In some embodiments, the operable elements of the level operation can be determined from the elimination element group of the level operation and the elements associated with the elimination element group by performing the following steps: the elements in the elimination element group and the elements associated with the elimination element group are taken as candidate operable elements; based on the operation cost parameters of the candidate operable elements, the element operation weight of the candidate operable elements is determined, and there is a negative correlation between the element operation weight and the operation cost parameter, and the element operation weight indicates the possibility of the candidate operable element being selected as the operable element; from the candidate operable elements, a target candidate operable element whose element operation weight meets the third selection condition is selected, and the target candidate operable element is used as the operable element.

[0103] Here, first, for the sake of convenience of description, the elements in the element group and the elements associated with the element group are eliminated as candidate operable elements; then, based on the operation cost parameters of the candidate operable elements, the element operation weight of the candidate operable elements is determined, and the element operation weight and the operation cost parameter are negatively correlated, that is, the higher the operation cost parameter, the smaller the element operation weight. The element operation weight indicates the possibility of the candidate operable element being selected as an operable element (i.e., the triggered element). The larger the element operation weight, the higher the possibility of the candidate operable element being selected as an operable element. A mapping relationship can be pre-set between the operation cost parameters of the candidate operable elements and the corresponding element operation weight, and the mapping relationship can make the element operation weight and the operation cost parameter negatively correlated. The mapping relationship can be pre-set as needed and is not limited here. After obtaining the element operation weight of the candidate operable element, based on the element operation weight of the candidate operable element, a target candidate operable element whose element operation weight meets the third selection condition is selected from the candidate operable elements, and the target candidate operable element is used as the operable element. For example, the third selection condition may be: selecting a candidate operable element with the largest group operation weight as the target candidate operable element.

[0104] It should be noted that the operable elements of the level operation are the elements to be operated in this level operation. A level operation is completed by operating an operable element (for example, the operable element with the largest operable element operation weight).

[0105] Step 104: Determine the operation difficulty parameter of each level operation based on the operation cost parameter of the operable elements of each level operation.

[0106] In step 104, for each level operation, the following processing is performed: according to the operation cost parameter of the operable element of the level operation, an operation difficulty parameter of the level operation is determined. The operation difficulty parameter indicates the difficulty of the level operation.

[0107] In some embodiments, there are multiple operable elements for each level operation; based on this, based on the operation cost parameters of the operable elements for each level operation, the operation difficulty parameters of each level operation can be determined by executing the following steps: for each level operation, the following processing is performed respectively: based on the operation cost parameters of each operable element for the level operation, the element operation weight of each operable element is determined, and there is a negative correlation between the element operation weight and the operation cost parameter, and the element operation weight indicates the possibility of the operable element being triggered; determine the weight difference between the element operation weights; based on the weight difference, determine the operation difficulty parameter of the level operation, and there is a negative correlation between the operation difficulty parameter and the weight difference.

[0108] Here, each level operation has multiple operable elements. Thus, when determining the operational difficulty parameter for each level operation, the following process is performed for each level operation: First, based on the operational cost parameter of each operable element in the level operation, an element operation weight is determined for each operable element. The element operation weight and the operation cost parameter are negatively correlated, i.e., the higher the operation cost parameter, the smaller the element operation weight. The element operation weight indicates the likelihood of the operable element being triggered. The larger the element operation weight, the higher the likelihood of the operable element being triggered. In other words, when operating, the player can select the element with the highest operation weight. A mapping relationship can be pre-set between the operation cost parameters of the operable elements and the corresponding element operation weights. This mapping relationship can be configured to create a negative correlation between the element operation weight and the operation cost parameter. This mapping relationship can be pre-set as needed and is not limited here. Then, a weight difference between the element operation weights is determined. Based on this weight difference, the operational difficulty parameter for the level operation is determined. The operational difficulty parameter and the weight difference are negatively correlated, i.e., the larger the weight difference, the smaller the operation difficulty parameter.

[0109] In some embodiments, the operation difficulty parameter can also be represented by the selection clarity of the level operation. The selection clarity indicates the difficulty of the player selecting the operable elements to be operated (such as the elements to be clicked) when performing the level operation. The higher the selection clarity, the lower the difficulty of selecting the operable elements to be operated. Therefore, the higher the selection clarity, the lower the operation difficulty parameter.

[0110] For example, see Figure 5 , Figure 5The following is a schematic diagram of a level operation interface provided by an embodiment of the present application. Here, for each element in the current state of the level operation interface, its element operation weight is labeled, such as 53, 40, 52, and so on. The element operation weight indicates the likelihood of a visible element being triggered. The larger the element operation weight, the higher the likelihood of the visible element being triggered. In other words, when operating, the player can select the element with the highest operation weight.

[0111] Step 105: Determine the level difficulty parameter of the target level based on the operation difficulty parameters of each level operation.

[0112] In step 105, the operation difficulty parameters of each level operation in the target level may be added together to obtain the level difficulty parameter of the target level. Alternatively, a corresponding level operation weight may be set for each level operation, and then based on the level operation weight of each level operation, the operation difficulty parameters of each level operation in the target level may be weighted to obtain the level difficulty parameter of the target level. The level difficulty parameter indicates the difficulty of the target level.

[0113] In some embodiments, when the operation difficulty parameter is represented by the selection clarity of the level operation, the selection clarity of each level operation in the target level can be added to obtain the level selection clarity of the target level, and then the level difficulty parameter of the target level can be determined based on the level selection clarity. That is, there is a negative correlation between the level difficulty parameter and the level selection clarity. The higher the level selection clarity, the lower the level difficulty parameter.

[0114] Applying the above-mentioned embodiments of the present application, first, for each level operation in the target level, based on the element occlusion relationship and element status of each element among the multiple elements of the level operation, an operation cost parameter of each element of the level operation is determined; then, for each level operation, based on the operation cost parameters of each element of the level operation, an elimination element group of the level operation is determined; then, for each level operation, from the elimination element group of the level operation and the elements associated with the elimination element group, an operable element of the level operation is determined; then, based on the operation cost parameters of the operable elements of each level operation, an operation difficulty parameter of each level operation is determined; thereby, based on the operation difficulty parameters of each level operation, the level difficulty parameter of the target level is determined.

[0115] In this way, 1) based on the element occlusion relationship and element state of the element, the operation cost parameter of the element is determined, thereby realizing the determination of the level difficulty parameter based on the operation cost parameter of the element, which can effectively analyze the complex element occlusion relationship and the influence of the element state on the level difficulty parameter, thereby improving the accuracy and rationality of the level difficulty parameter; 2) by determining the operation difficulty parameters of each level operation in the target level, a more fine-grained level difficulty control is achieved, thereby further improving the accuracy and rationality of the level difficulty parameter. In summary, through the embodiments of the present application, the problem of poor virtual scene experience due to unreasonable level difficulty setting can be avoided, a more accurate and appropriate level difficulty design is provided, and the experience of the virtual scene is improved.

[0116] The following continues to describe the exemplary structure of the level processing device 555 in the virtual scene provided by the embodiment of the present application implemented as a software module. In some embodiments, such as Figure 2 As shown, the software modules in the level processing device 555 in the virtual scene stored in the memory 550 may include: a first determining module 5551, for determining, for each level operation in the target level, an operation cost parameter of each element of the level operation based on the element occlusion relationship and element state of each of the multiple elements of the level operation; a second determining module 5552, for determining, for each level operation, an elimination element group of the level operation based on the operation cost parameter of each element of the level operation, the elimination element group including at least one of the multiple elements. two elements, when all the elements included in the elimination element group are triggered, the elimination element group is eliminated; a third determination module 5553 is used to determine, for each level operation, the operable elements of the level operation from the elimination element group of the level operation and the elements associated with the elimination element group; a fourth determination module 5554 is used to determine the operation difficulty parameters of each level operation based on the operation cost parameters of the operable elements of each level operation; a fifth determination module 5555 is used to determine the level difficulty parameters of the target level based on the operation difficulty parameters of each level operation.

[0117] In some embodiments, the element occlusion relationship of the element indicates at least one occluding element that occludes the element; the first determination module 5551 is also used to perform the following processing for each of the multiple elements of the level operation: determine the element identifier of each of the occluding elements of the element, and for each of the element identifiers, retain a target occluding element with the element identifier from the at least one occluding element; determine the number of the target occluding elements as the basic operation cost parameter of the element; adjust the basic operation cost parameter of the element based on the element state of the element to obtain the operation cost parameter of the element.

[0118] In some embodiments, the first determination module 5551 is further configured to, if the element state indicates that the element is bound to at least one bound element, adjust the basic operation cost parameter of the element based on the number of bound elements to obtain the operation cost parameter of the element; if the element state indicates that the element enters an operable state when its adjacent elements are eliminated, adjust the basic operation cost parameter of the element based on the operation cost parameters of the adjacent elements to obtain the operation cost parameter of the element; if the element state indicates that the element is in a state to be eliminated, adjust the basic operation cost parameter of the element to a first value, and determine the first value as the operation cost parameter of the element; if the element state indicates that the target level fails when the element is triggered, adjust the basic operation cost parameter of the element to a second value, and determine the second value as the operation cost parameter of the element; if the element state indicates that the processing priority of the element is higher than the target priority, adjust the basic operation cost parameter of the element to a third value, and determine the third value as the operation cost parameter of the element.

[0119] In some embodiments, the second determination module 5552 is further used to determine visible elements in a visible state from multiple elements of the level operation, and divide the same visible elements into the same visible element group to obtain at least one visible element group; determine a first visible element group from the at least one visible element group, and the number of visible elements in the first visible element group is greater than or equal to a target number; construct a second visible element group based on the operation cost parameters of the visible elements in the first visible element group, and the number of visible elements in the second visible element group is equal to the target number; determine the elimination element group of the level operation from the second visible element group based on the operation cost parameters of the visible elements in the second visible element group.

[0120] In some embodiments, the second determination module 5552 is further used to determine the first visible element group as the second visible element group if the number of visible elements in the first visible element group is equal to the target number; if the number of visible elements in the first visible element group is greater than the target number, select the target number of target visible elements from the first visible element group and the operation cost parameters satisfying the first selection condition, and combine the target visible elements to obtain the second visible element group.

[0121] In some embodiments, the second determination module 5552 is further used to determine the element operation weights of the visible elements in the second visible element group based on the operation cost parameters of the visible elements in the second visible element group, where the element operation weights and the operation cost parameters are negatively correlated, and the element operation weights indicate the possibility of the visible elements being triggered; summing the element operation weights of the visible elements in the second visible element group to obtain the group operation weight of the second visible element group; and selecting, from the second visible element group, a target second visible element group whose group operation weight meets the second selection condition, and using the target second visible element group as the elimination element group.

[0122] In some embodiments, the third determination module 5553 is also used to take the elements in the elimination element group and the elements associated with the elimination element group as candidate operable elements; determine the element operation weight of the candidate operable element based on the operation cost parameter of the candidate operable element, and there is a negative correlation between the element operation weight and the operation cost parameter, and the element operation weight indicates the possibility of the candidate operable element being selected as the operable element; from the candidate operable elements, select the target candidate operable element whose element operation weight meets the third selection condition, and use the target candidate operable element as the operable element.

[0123] In some embodiments, there are multiple operable elements for each level operation; the fourth determination module 5554 is further used to perform the following processing for each level operation: based on the operation cost parameter of each operable element of the level operation, determine the element operation weight of each operable element, there is a negative correlation between the element operation weight and the operation cost parameter, and the element operation weight indicates the possibility of the operable element being triggered; determine the weight difference between each element operation weight; based on the weight difference, determine the operation difficulty parameter of the level operation, there is a negative correlation between the operation difficulty parameter and the weight difference.

[0124] In some embodiments, the first determination module 5551 is further configured to simulate the operation process of the target level multiple times to obtain a level simulation result for each simulation, before determining the operation cost parameters of each element of the level operation in the target level based on the element occlusion relationship and element status of each of the multiple elements of the level operation; evaluate each of the level simulation results to obtain an evaluation index value for each of the level simulation results; select, from the multiple level simulation results, a target level simulation result whose evaluation index value satisfies a fourth selection condition; and obtain, from the target level simulation result, the element occlusion relationship and element status of each of the elements of each of the level operations in the target level.

[0125] It should be noted that the description of the device embodiments in this application is similar to the description of the method embodiments described above, and has similar beneficial effects as the method embodiments, and therefore is not further elaborated here. Any unfinished technical details of the level processing device in the virtual scene provided in the embodiments of this application can be understood based on the description of the technical details in the method embodiments described above.

[0126] The present application also provides a computer program product, comprising computer-executable instructions or a computer program stored in a computer-readable storage medium. A processor of an electronic device reads the computer-executable instructions or the computer program from the computer-readable storage medium and executes the computer-executable instructions or the computer program, causing the electronic device to execute the level processing method in a virtual scene provided in the present application.

[0127] An embodiment of the present application further provides a computer-readable storage medium, which stores computer-executable instructions or a computer program. When the computer-executable instructions or the computer program are executed by a processor, the processor will execute the level processing method in the virtual scene provided by the embodiment of the present application.

[0128] In some embodiments, the computer-readable storage medium may be a memory such as RAM, ROM, flash memory, magnetic surface memory, optical disk, or CD-ROM; or may be various devices including one or any combination of the above memories.

[0129] In some embodiments, computer-executable instructions may be in the form of a program, software, software module, script, or code, written in any form of programming language (including compiled or interpreted languages, or declarative or procedural languages), and may be deployed in any form, including as a stand-alone program or as a module, component, subroutine, or other unit suitable for use in a computing environment.

[0130] As an example, computer-executable instructions may, but need not, correspond to a file in a file system, may be stored as part of a file that stores other programs or data, such as in one or more scripts in a HyperText Markup Language (HTML) document, in a single file dedicated to the program in question, or in multiple coordinating files (e.g., files storing one or more modules, subroutines, or code portions).

[0131] By way of example, computer-executable instructions may be deployed to be executed on one electronic device, or on multiple electronic devices located at one site, or on multiple electronic devices distributed across multiple sites and interconnected by a communication network.

[0132] The above description is merely an embodiment of the present application and is not intended to limit the scope of protection of the present application. Any modifications, equivalent replacements, and improvements made within the spirit and scope of the present application are included in the scope of protection of the present application.

Claims

1. A level processing method in a virtual scene, characterized in that: The method comprises: For each level operation in the target level, determining a basic operation cost parameter of each element of the level operation based on an element occlusion relationship of each of the multiple elements of the level operation; For each element of each level operation, if the element state of the element indicates that the element is bound to at least one bound element, based on the number of the bound elements, the basic operation cost parameter of the element is adjusted to obtain the operation cost parameter of the element; if the element state of the element indicates that the element enters an operable state when its adjacent elements are eliminated, based on the operation cost parameters of the adjacent elements, the basic operation cost parameter of the element is adjusted to obtain the operation cost parameter of the element; if the element state of the element indicates that the element is in a pending elimination state, the basic operation cost parameter of the element is adjusted to a first value, and the first value is determined as the operation cost parameter of the element; if the element state of the element indicates that the target level fails when the element is triggered, the basic operation cost parameter of the element is adjusted to a second value, and the second value is determined as the operation cost parameter of the element; if the element state of the element indicates that the processing priority of the element is higher than the target priority, the basic operation cost parameter of the element is adjusted to a third value, and the third value is determined as the operation cost parameter of the element; For each of the level operations, determining an elimination element group for the level operation based on an operation cost parameter of each of the elements of the level operation, wherein the elimination element group includes at least two elements from the plurality of elements, and when all elements included in the elimination element group are triggered, the elimination element group is eliminated; For each level operation, determining an operable element of the level operation from the elimination element group of the level operation and elements associated with the elimination element group; Determining an operation difficulty parameter of each level operation based on an operation cost parameter of an operable element of each level operation; Based on the operation difficulty parameters of each of the level operations, a level difficulty parameter of the target level is determined.

2. The method according to claim 1, wherein The element occlusion relationship of the element indicates at least one occluding element that occludes the element; and determining a basic operation cost parameter of each of the elements of the level operation based on the element occlusion relationship of each of the multiple elements of the level operation includes: For each of the multiple elements of the level operation, perform the following processing respectively: Determine an element identifier of each of the occluding elements of the element, and for each of the element identifiers, retain a target occluding element having the element identifier from the at least one occluding element; The number of the target occluded elements is determined as a basic operation cost parameter of the element.

3. The method according to claim 1, wherein The determining, based on the operation cost parameter of each element of the level operation, a group of elimination elements for the level operation, comprises: Determining visible elements in a visible state from the multiple elements of the level operation, and grouping the same visible elements into the same visible element group to obtain at least one visible element group; determining a first visible element group from the at least one visible element group, wherein the number of visible elements in the first visible element group is greater than or equal to a target number; constructing a second visible element group based on operation cost parameters of the visible elements in the first visible element group, wherein the number of visible elements in the second visible element group is equal to the target number; An elimination element group for the level operation is determined from the second visible element group based on operation cost parameters of the visible elements in the second visible element group.

4. The method according to claim 3, wherein The constructing a second visible element group based on the operation cost parameters of the visible elements in the first visible element group includes: If the number of visible elements in the first visible element group is equal to the target number, determining the first visible element group as the second visible element group; If the number of visible elements in the first visible element group is greater than the target number, target visible elements of the target number and whose operation cost parameters meet a first selection condition are selected from the first visible element group, and the target visible elements are combined to obtain the second visible element group.

5. The method according to claim 3, wherein The determining, based on the operation cost parameters of the visible elements in the second visible element group, the elimination element group for the level operation from the second visible element group includes: determining, based on an operation cost parameter of the visible elements in the second visible element group, an element operation weight of the visible elements in the second visible element group, wherein the element operation weight and the operation cost parameter are negatively correlated, and the element operation weight indicates a likelihood of the visible element being triggered; summing the element operation weights of the visible elements in the second visible element group to obtain a group operation weight of the second visible element group; A target second visible element group whose group operation weight satisfies a second selection condition is selected from the second visible element group, and the target second visible element group is used as the elimination element group.

6. The method according to claim 1, wherein The determining, from the elimination element group of the level operation and the elements associated with the elimination element group, the operable elements of the level operation, includes: taking elements in the elimination element group and elements associated with the elimination element group as candidate operable elements; determining an element operation weight of the candidate actionable element based on an operation cost parameter of the candidate actionable element, wherein the element operation weight and the operation cost parameter are negatively correlated, and the element operation weight indicates a likelihood of the candidate actionable element being selected as the actionable element; A target candidate operable element whose element operation weight satisfies a third selection condition is selected from the candidate operable elements, and the target candidate operable element is used as the operable element.

7. The method according to claim 1, wherein The number of operable elements in each level operation is multiple; and determining the operation difficulty parameter of each level operation based on the operation cost parameter of the operable elements in each level operation includes: For each level operation, perform the following processing respectively: determining an element operation weight of each operable element based on an operation cost parameter of each operable element of the level operation, wherein the element operation weight and the operation cost parameter are negatively correlated, and the element operation weight indicates a likelihood of the operable element being triggered; Determining the weight difference between the operation weights of each element; Based on the weight difference, an operation difficulty parameter of the level operation is determined, and there is a negative correlation between the operation difficulty parameter and the weight difference.

8. The method according to any one of claims 1 to 7, wherein: Before determining, for each level operation in the target level, an operation cost parameter of each element of the level operation based on an element occlusion relationship and an element state of each of the multiple elements of the level operation, the method further includes: Simulating the operation process of the target level multiple times to obtain a level simulation result for each simulation; Evaluating each of the level simulation results to obtain an evaluation index value for each of the level simulation results; Selecting, from the plurality of level simulation results, a target level simulation result whose evaluation index value satisfies a fourth selection condition; From the target level simulation result, the element occlusion relationship and element status of each element of each level operation in the target level are obtained.

9. A level processing device in a virtual scene, characterized in that: The device comprises: A first determining module is configured to determine, for each level operation in a target level, a basic operation cost parameter of each element of the level operation based on an element occlusion relationship of each of the multiple elements of the level operation; The first determining module is further configured to, for each element of each level operation, if the element state of the element indicates that the element is bound to at least one bound element, adjust the basic operation cost parameter of the element based on the number of bound elements to obtain the operation cost parameter of the element; if the element state of the element indicates that the element enters an operable state when its adjacent elements are eliminated, adjust the basic operation cost parameter of the element based on the operation cost parameters of the adjacent elements to obtain the operation cost parameter of the element; if the element state of the element indicates that the element is in a pending elimination state, adjust the basic operation cost parameter of the element to a first value and determine the first value as the operation cost parameter of the element; if the element state of the element indicates that the target level fails when the element is triggered, adjust the basic operation cost parameter of the element to a second value and determine the second value as the operation cost parameter of the element; if the element state of the element indicates that the processing priority of the element is higher than the target priority, adjust the basic operation cost parameter of the element to a third value and determine the third value as the operation cost parameter of the element; a second determining module configured to determine, for each level operation, an elimination element group for the level operation based on an operation cost parameter of each element of the level operation, wherein the elimination element group includes at least two elements from the plurality of elements, and when all elements included in the elimination element group are triggered, the elimination element group is eliminated; a third determining module, configured to determine, for each level operation, an operable element of the level operation from the elimination element group of the level operation and elements associated with the elimination element group; A fourth determining module, configured to determine an operation difficulty parameter of each level operation based on an operation cost parameter of an operable element of each level operation; The fifth determining module is configured to determine a level difficulty parameter of the target level based on the operation difficulty parameter of each level operation.