Checkpoint processing method and device in virtual scene

By analyzing the occlusion relationship and status of level operation elements in the virtual scene, and calculating the level operation difficulty parameters, the problem of inaccurate level difficulty setting is solved, more accurate and appropriate level difficulty design is achieved, and the experience of virtual scenes is improved.

CN119701329AActive Publication Date: 2025-03-28BEIJING QIMIAO KINGDOM TECHNOLOGY CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

In the prior art, the difficulty of level in virtual scenes is difficult to accurately set, resulting in poor player experience.

Method used

By analyzing the occlusion relationship and state of elements in level operations, determining the operation cost parameters of elements, and then determining the elimination of element groups and operable elements, and finally calculating the difficulty parameters of level operations to accurately set the level difficulty.

Benefits of technology

It improves the accuracy and rationality of the level difficulty, avoids the problem of poor virtual scene experience caused by unreasonable level difficulty settings, provides more accurate and appropriate level difficulty design, and improves the experience of virtual scenes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119701329A_ABST
    Figure CN119701329A_ABST
Patent Text Reader

Abstract

The invention provides a level processing method and device in a virtual scene. The method comprises the following steps: for each level operation in a target level, determining an operation cost parameter of each element of the level operation based on an element shielding relationship and an element state of each element in a plurality of elements of the level operation; for each level operation, determining an elimination element group of the level operation based on an operation cost parameter of each element of the level operation; for each level operation, determining operable elements of the level operation from an 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; and determining the level difficulty parameter of the target level based on the operation difficulty parameter of each level operation. According to the invention, the accuracy of the level difficulty can be improved.
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. Virtual scenes refer to digital scenes drawn by computers through digital communication technology. Users can interact with various virtual elements in virtual scenes to obtain feedback.

[0003] Taking a virtual scene as an elimination game as an example, the virtual scene can include multiple levels. When designing a level, the developer needs to consider the difficulty of the level to ensure the player experience. In the related art, the level difficulty can only be determined by the number and type of elements in the level, resulting in inaccurate level difficulty. Summary of the invention

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

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

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

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

[0008] For each of the level operations, based on the operation cost parameters of each of the elements of the level operation, determining an elimination element group of the level operation, wherein the elimination element group includes at least two elements of 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 of the level operations, determining an operable element of the level operation from an elimination element group of the level operation and elements associated with the elimination element group;

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

[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 also provides a level processing device in a virtual scene, including:

[0013] A first determination module is used 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 element among a plurality of elements of the level operation;

[0014] a second determining module, configured to determine, for each of the level operations, an elimination element group of 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 of 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 is used to determine, for each level operation, an operable element of the level operation from the elimination element group of the level operation and the elements associated with the elimination element group;

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

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

[0018] The present application also provides an electronic device, including:

[0019] A memory for storing computer executable instructions;

[0020] The processor is used 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] The embodiment of the present application also 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] The embodiment of the present application also 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 level processing method in the virtual scene provided by the embodiment of the present application is implemented.

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

[0024] By 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 state of each element in 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 parameter 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 parameter of the operable element of each level operation, an operation difficulty parameter of each level operation is determined; thereby, based on the operation difficulty parameter 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 influence of complex element occlusion relationship and element state on the level difficulty parameter, and improve 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 It 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 schematic diagram of the structure of an electronic device provided in an embodiment of the present application;

[0028] Figure 3A It is a flowchart of a level processing method in a virtual scene provided by an embodiment of the present application;

[0029] Figure 3B It is a flowchart of a level processing method in a virtual scene provided by an embodiment of the present application;

[0030] Figure 3C It is a flowchart of a level processing method in a virtual scene provided by an embodiment of the present application;

[0031] Figure 3D It is a flowchart of a level processing method in a virtual scene provided by an embodiment of the present application;

[0032] Figure 4 is a display schematic diagram of a level operation interface provided in an embodiment of the present application;

[0033] Figure 5 It is a display schematic diagram of a level operation interface provided in an embodiment of the present application. DETAILED DESCRIPTION

[0034] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings. The described embodiments should not be regarded as limiting the present application. All other embodiments obtained by ordinary technicians in the 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 describe 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 here can be implemented in an order other than that illustrated or described here.

[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 with 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, obtain the informed consent or separate consent of the personal information subject, and carry out subsequent data use and processing 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 may be in real time or have a set delay. Unless otherwise specified, there is no restriction on the order of execution of the multiple operations executed.

[0043] 3) Level operation interface, which is used to display the elements of the current situation of the 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 plane), an eye movement detection interface (an interface controlled by detecting the user's line of sight), a holographic interface (a three-dimensional hologram formed by projecting images through holographic projection technology, and a stereoscopic image can be seen without wearing special glasses), a multimodal interface (an interface that combines multiple interaction methods, such as touch, vision, hearing, etc.), a brain-machine interface (BMI) interface, etc.

[0044] 4) TileMatch: When the player clicks on an element (tile) in the operation area, the element will move to the display area. When there are three elements of the same pattern in the display area, elimination is triggered. The player needs to continue clicking until all elements in the operation area are eliminated to achieve the goal of passing the level. The operation area is the element stacking area, that is, the area where the player can click to move the element; the display area is the target area for the element to move, and the final elimination also occurs here.

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

[0046] 6) Element occlusion relationship: refers to the fact that an element is affected by the visibility of its upper-layer elements or by the obstruction elements, and has different degrees of recognition, which are divided into fully visible, partially visible, and fully occluded. The element occlusion relationship indicates at least one occluding element of the occluding element.

[0047] The embodiments of the present application provide a method, device, electronic device, computer-readable storage medium and computer program product for processing a level in a virtual scene, which can improve the accuracy of the 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 a level processing system in a virtual scene provided by an embodiment of the present application. Figure 1 , Figure 1 1 is a schematic diagram of the architecture of a level processing system in a virtual scene provided by an embodiment of the present application. To support an exemplary application, the level processing system 100 in the virtual scene includes: a server 200, a network 300, and a terminal 400. The terminal 400 is connected to the server 200 via the network 300. The network 300 can be a wide area network or a local area network, or a combination of the two, and a wireless or wired link is used to realize data transmission.

[0049] Here, the terminal 400 (for example, a client running a virtual scene support) is used to send a level difficulty determination request of a target level of the virtual scene to the server 200, wherein the virtual scene includes an operation interface of a level operation of the target level, and the operation interface displays multiple elements of the level operation;

[0050] The server 200 is used to receive a level difficulty determination request of a target level sent by the terminal 400; in response to the level difficulty determination request, obtain the element occlusion relationship and element state of each element of each level operation in the target level; for each level operation, determine the operation cost parameter of each element of the level operation based on the element occlusion relationship and element state of each element in the multiple elements of the level operation; for each level operation, determine the elimination element group of the level operation based on the operation cost parameter of each element of the level operation, the elimination element group includes at least two elements of the multiple elements, and when all the elements included in the elimination element group are triggered, the elimination element group is eliminated; 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; determine the operation difficulty parameter of each level operation based on the operation cost parameter of the operable elements of each level operation; determine the level difficulty parameter of the target level based on the operation difficulty parameter of each level operation; return the level difficulty parameter of the target level to the terminal 400;

[0051] The terminal 400 is further used 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, it can also be implemented by a server alone, or it can be implemented by a terminal and a server in collaboration. The electronic device for implementing 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, or 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 (Content Delivery Network, CDN), and big data and artificial intelligence platforms. The terminal (such as terminal 400) can be a laptop, a tablet computer, a desktop computer, a smart phone, an intelligent voice interaction device (such as a smart speaker), a smart home appliance (such as a smart TV), a smart watch, a vehicle-mounted terminal, a wearable device, a virtual reality (Virtual Reality, VR) device, an aircraft, etc., but is not limited thereto. The terminal and the server can be directly or indirectly connected by 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 commands, machine instructions or software instructions at the microprogram level. 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 through a bus system 540. It can be understood that the bus system 540 is used to realize the 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 used in the following examples. 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 located away from the processor 510. The memory 550 includes a volatile memory or a non-volatile memory, and may also include both a volatile memory and a 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 exemplarily described below.

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

[0060] A network communication module 552, used to reach other electronic devices via one or more (wired or wireless) network interfaces 520, exemplary network interfaces 520 include: Bluetooth, Wireless Compatibility Certification (WiFi), and Universal Serial Bus (USB), etc.;

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

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

[0063] In some embodiments, the level processing device in the virtual scene provided in the embodiments of the present application can be implemented in a software manner. Figure 2 A level processing device 555 in a virtual scene stored in a memory 550 is shown, which may 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 therefore may be arbitrarily combined or further split according to the functions implemented. The functions of each module will be described 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 subject of each step will not be repeatedly described below. Figure 3A , Figure 3A : is a flow chart of a level processing method in a virtual scene provided in an embodiment of the present application. The level processing method in a virtual scene provided in 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 embodiment of the present application can be a digital environment constructed in an elimination game, and 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 operate elements to complete elimination tasks. 2) Visual Design: Including the background, foreground, design and animation effects of the virtual scene, as well as the use of light, shadow and color, aiming to create an attractive visual experience. 3) Interactive Interface: Provides a way for players to interact with the game, such as touch screen sliding, clicking or keyboard and mouse operation, for controlling the elements in the game. 4) Game Elements: That is, 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, and players need to match and eliminate them 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 goal, such as reaching a certain score, clearing all specific elements, completing a certain number of eliminations, eliminating all elements in the level, etc. 6) Narrative: In some games, virtual scenes will be integrated with story elements to provide players with game background and plot development. 7) Sound and Music: Virtual scenes are usually accompanied by music and sound effects to increase the game atmosphere and interactivity. Therefore, the definition of the virtual scene provided in the embodiment of the present application is: a digital environment designed for elimination games, which 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, and the at least one level is sequential. Usually, a player needs to pass a level before entering the next level of the level. Figure 4 , Figure 4: is a display schematic diagram of the level operation interface provided by the embodiment of the present application. Here, for each level, a corresponding level operation interface is provided, and the level operation interface includes an operation area and a display area. The operation area displays elements to be eliminated, and the player can operate the element in the operation area (such as clicking the element). After the player operates the element in the operation area, the operated element will move from the operation area to the display area. When the element in the display area meets the element elimination condition (such as the elements with the same identification (such as pattern, color, etc.) reach the target number (such as 3)), the element that meets the element elimination condition is eliminated from the level operation interface. For example, when there are 3 elements with the same identification (such as pattern, color, etc.) in the display area, since the 3 elements with the same identification meet the element elimination condition, the 3 elements with the same identification are eliminated from the level operation interface. In one example, the display area may 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, and 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. Each specific 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 executing the level operation.

[0069] For 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 element in the multiple elements of the level operation are obtained, and then the operation cost parameter of each element in the level operation is determined based on the element occlusion relationship and element state of each element in the multiple elements of the level operation. The operation cost parameter of the element indicates the number of operations (such as click operations on the element covering the element, move operations, etc.) required to control the element to be in an operable state (i.e., a state where the player can directly click and perform other operations) .

[0070] In some embodiments, see Figure 3B, before determining the operation cost parameters of each element of the level operation based on the element occlusion relationship and element status of each element in the multiple elements of the level operation for each level operation in the target level, the following steps 201-204 may also be performed: Step 201, simulating the operation process of the target level multiple times to obtain a level simulation result of each simulation; Step 202, evaluating each level simulation result to obtain an evaluation index value of each level simulation result; Step 203, selecting a target level simulation result whose evaluation index value meets the fourth selection condition from the multiple level simulation results; Step 204, obtaining 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 parameter of the target level, the operation process of the target level (i.e., the level operations sequentially executed in the target level) can be simulated, so as to analyze the level difficulty parameter of the target level based on the level simulation result. Therefore, for step 201, the operation process of the target level is first simulated multiple times to obtain the level simulation result of each simulation. Among them, the number of simulations can be a set number pre-set according to experience, or it can be the number of simulations when the simulation end condition (such as the simulation duration reaches a preset duration) is reached. In practical applications, the simulation process can be implemented using a Monte Carlo algorithm. During the simulation, the level rules of the target level can be added to speed up the simulation process and improve the simulation efficiency. The level simulation result of each simulation is the operation process simulated for the target level, that is, the level operations sequentially executed in the target level.

[0072] For step 202, each level simulation result is evaluated to obtain the evaluation index value of each level simulation result. Here, the evaluation index for evaluating the level simulation result can be pre-set. For example, the evaluation index may include but is not limited to whether the level is passed, whether the level is won, the level difficulty parameter, the level score, etc. Based on the evaluation index, each level simulation result is evaluated to obtain the evaluation index value of each level simulation result. For example, taking the evaluation index as the level difficulty parameter, the level difficulty parameter of each level simulation result can be determined according to the method provided in the embodiment of the present application, and the level difficulty parameter is the evaluation index value of each level simulation result.

[0073] For step 203, according to the evaluation index value of each level simulation result, a target level simulation result whose evaluation index value meets the fourth selection condition can be selected from multiple level simulation results. For example, taking the evaluation index as the level score as an example, 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 as an example, the fourth selection condition can be selecting the level simulation result with the smallest level difficulty parameter as the target level simulation result; in practical applications, the level difficulty parameter can be represented by the selection clarity of the level, and the selection clarity indicates the difficulty of selecting the element to be operated (such as the element to be clicked) when the player performs the level operation in the level, and the higher the selection clarity, the lower the difficulty of selecting the element to be operated, so that: the higher the selection clarity, the lower the level difficulty parameter, so selecting the level simulation result with the smallest level difficulty parameter as the target level simulation result is: selecting the level simulation result with the highest selection clarity as the target level simulation result.

[0074] For step 204, after the target level simulation result is selected, 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 of each level operation in the target level are obtained from the target level simulation result, and the steps 101 to 105 provided in the embodiment of the present application are performed for the obtained element occlusion relationship and element state of each element of each level operation in the target level to obtain the level difficulty parameter of the target level.

[0075] Based on the above steps 201 to 204, the target level is simulated multiple times, and the target level simulation result that meets the fourth selection condition is selected based on the level simulation result, so that the difficulty of the target level is analyzed based on the target level simulation result. In this way, by simulating the level operation of each step in the target level multiple times, the difficulty of each level operation in the operation process (i.e., the level operation of each step in the target level) can be dynamically adjusted based on the elimination path of the element (i.e., the level operation of each step that has been executed) and the current situation of the level operation interface, so that the level is more adaptable, and a more fine-grained and multi-dimensional level difficulty control is achieved, thereby improving the challenge and fun of the virtual scene and enhancing the user's immersion in the virtual scene. In addition, the efficiency of determining the level difficulty parameter can be improved through multiple simulations, and the developer does not need to actually experience the difficulty after generating the level and then modify the level, thereby improving the level development efficiency, reducing the trial and error time and cycle when designing the level, and optimizing and improving 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 , for each of the multiple elements of the level operation, steps 301 to 303 can be performed respectively to obtain the operation cost parameters of each element: step 301, determining the element identification of each occluding element of the element, and for each element identification, retaining a target occluding element with the element identification 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. An 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 parameter of an element, first determine the element identifier of each occluding element of the element. The element identifier is a sub-condition of the element elimination condition, that is, when the element satisfies the element elimination condition, the element is eliminated from the current situation of the level operation interface. The element that satisfies the element elimination condition must satisfy the sub-condition of having the same element identifier, that is, when the elements with the same element identifier are satisfied in the element elimination condition (such as the number of elements with the same element identifier is a set number (such as 3)), the element is eliminated from the current situation of the level operation interface. The element identifier may include but is not limited to the element pattern of the element (such as fruit pattern, animal pattern, food pattern, etc.), element color (such as red, yellow, purple, blue, etc.), element shape (such as triangle, circle, square, etc.), etc. Then, for each element identifier, retain a target occluding element with the element identifier from at least one occluding element, so that a target occluding element with the element identifier is retained for each element identifier.

[0078] For 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] For step 303, the element state of the element is obtained, so that 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 operating cost parameters is realized based on the element's element occlusion relationship and element status, so that the calculation of the level difficulty parameters can be realized based on the element's operating cost parameters. The influence of complex element occlusion relationships and element status on the level difficulty parameters can be effectively analyzed, and the accuracy and rationality of the level difficulty parameters are improved, 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.

[0081] In some embodiments, based on the element state of the element, the basic operating cost parameter of the element can be adjusted by executing the following steps to obtain the operating cost parameter of the element: if the element state characterizes that the element is bound to at least one binding element, based on the number of binding elements, the basic operating cost parameter of the element is adjusted to obtain the operating cost parameter of the element; if the element state characterizes that the element enters an operable state when adjacent elements of the element 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 characterizes 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 characterizes 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 characterizes 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 = the basic operation cost parameter + 1; similarly, the operation cost parameter of another binding element = the 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 parameters 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 parameters 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, for elements such as bushes and chains in elimination games, 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 elements with the same identification (such as pattern, color, etc.) reach 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, it is no longer necessary to operate the element, 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 parameter is 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, and the first value may be infinite, so that 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 infinity.

[0086] (5) If the element state characterizes 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 may be preset, and the processing priority of the element may also be preset. 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 may be preset, 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 operating cost parameter of the element is determined as the operating cost parameter of the element.

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

[0089] Step 102: For each level operation, based on the operation cost parameter of each element of the level operation, determine an elimination element group 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] For step 102, for each level operation, the following processing is performed respectively: according to the operation cost parameter of each element of the level operation, an elimination element group of the level operation is determined from multiple elements of the level operation. The elimination element group includes at least two elements of the multiple elements; when each element in the elimination element group is triggered, for example, 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, 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, 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] For step 401, firstly, the visible elements in the visible state are determined from the multiple elements of the level operation, that is, only the elements in the visible state can be added to the elimination element group; the visible state includes a fully visible state and a partially visible state, and the number of the visible elements is multiple; then the visible elements are divided, that is, the same visible elements are divided into the same visible element group, so as to obtain at least one visible element group. Each visible element group includes at least one visible element.

[0094] For step 402, the number of visible elements in each visible element group is determined, so as to determine a first visible element group from at least one visible element group based on the number of visible elements in each 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 may be preset, for example, the target number may 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 visible elements of the target number and 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, the 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, select the target number of visible elements with the highest sorting as the 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 associated with the selected visible elements are preferentially selected as the 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] For 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 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, the element operation weights and the operation cost parameters being negatively correlated, and the element operation weights indicating the possibility of the visible elements being triggered; summing up 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; 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.

[0098] Here, first, according to 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, and there is a negative correlation between the element operation weight and the operation cost parameter, that is, the higher the operation cost parameter, the smaller the element operation weight. The element operation weight indicates the possibility of the visible element being triggered. The larger the element operation weight, the higher the possibility of the visible element being triggered, that is, when the player is operating, he can choose the element operation weight with the largest operation. A mapping relationship can be pre-set between the operation cost parameters of the visible elements and the corresponding element operation weights, 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 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. Thus, based on the group operation weight of the second visible element group, the target second visible element group whose group operation weight meets the 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. 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] For step 103, for each level operation, the following processing is performed respectively: first, determine the elements associated with the elimination element group, specifically, the elements associated with the elimination element group are: the elements associated with the elements in the elimination element group. Here, association means that if multiple elements have a common dependent element, then the multiple elements are associated, for example, the dependent element can be a common occluding element of multiple elements. Then, determine the operable elements of the level operation 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: taking the elements in the elimination element group and the elements associated with the elimination element group as candidate operable elements; determining the element operation weight of the candidate operable element based on the operation cost parameter of the candidate operable element, the element operation weight and the operation cost parameter being negatively correlated, and the element operation weight indicating the possibility of the candidate operable element being selected as the operable element; from the candidate operable elements, selecting the target candidate operable element whose element operation weight satisfies the third selection condition, and selecting the target candidate operable element as the operable element.

[0103] Here, first, for the 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 may 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, the 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, an 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] For step 104, for each level operation, the following processing is performed respectively: according to the operation cost parameter of the operable element of the level operation, the 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, the number of operable elements for each level operation is multiple. In this way, when determining the operation difficulty parameters of each level operation, the following processing is performed for each level operation: first, based on the operation cost parameters of each operable element of the level operation, the element operation weight of each operable element is determined. 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 operable element being triggered. The larger the element operation weight, the higher the possibility of the operable element being triggered. That is, when the player is operating, he can choose the element operation weight with the largest operation weight. A mapping relationship can be pre-set between the operation cost parameter of the operable element and the corresponding element operation weight. 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. Then determine the weight difference between the element operation weights, so as to determine the operation difficulty parameter of the level operation based on the weight difference. The operation difficulty parameter and the weight difference are negatively correlated, that is, the larger the weight difference, the smaller the operation difficulty parameter.

[0109] In some embodiments, the operation difficulty parameter can also be characterized by the selection clarity of the level operation, which 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 5: is a display diagram of the level operation interface provided by the embodiment of the present application. Here, for each element in the current situation of the level operation interface, the element operation weight of the element is marked, such as 53, 40, 52, etc. The element operation weight indicates the possibility of the visible element being triggered. The larger the element operation weight, the higher the possibility of the visible element being triggered. That is, when operating, the player can choose the element with the largest operation weight to operate.

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

[0112] For 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; 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 characterized 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 is determined according to the level selection clarity, that is, there is a negative correlation between the level difficulty parameter and the level selection clarity, and the higher the level selection clarity, the lower the level difficulty parameter.

[0114] By 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 state of each element in 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 parameter 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 parameter of the operable element of each level operation, an operation difficulty parameter of each level operation is determined; thereby, based on the operation difficulty parameter 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 influence of complex element occlusion relationship and element state on the level difficulty parameter, and improve 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 is a description of an exemplary structure of a level processing device 555 in a virtual scene provided by an embodiment of the present application implemented as a software module. In some embodiments, 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 of the elements 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; and 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 used to, if the element state represents that the element has at least one bound element bound to it, adjust the basic operation cost parameter of the element based on the number of the bound elements to obtain the operation cost parameter of the element; if the element state represents 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 represents 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 represents 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 represents 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 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 an 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, the element operation weights and the operation cost parameters being negatively correlated, and the element operation weights indicating the possibility of the visible elements being triggered; summing up 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, the element operation weight and the operation cost parameter are negatively correlated, 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 of the level operations; the fourth determination module 5554 is further used to perform the following processing for each of the level operations: determining an element operation weight of each of the operable elements based on an operation cost parameter of the level operation, wherein the element operation weight and the operation cost parameter are negatively correlated, and the element operation weight indicates the possibility of the operable element being triggered; determining a weight difference between each of the element operation weights; and determining an operation difficulty parameter of the level operation based on the weight difference, wherein the operation difficulty parameter and the weight difference are negatively correlated.

[0124] In some embodiments, the first determination module 5551 is further used to simulate the operation process of the target level multiple times to obtain a level simulation result of each simulation before determining the operation cost parameters of each element of the level operation for each 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 of each of the level simulation results; select the target level simulation result whose evaluation index value meets the fourth selection condition from the multiple level simulation results; and obtain the element occlusion relationship and element status of each of the elements of each of the level operations in the target level from the target level simulation result.

[0125] It should be noted that the description of the device embodiment in this application is similar to the description of the method embodiment above, and has similar beneficial effects as the method embodiment, and will not be repeated here. The unfinished technical details of the level processing device in the virtual scene provided by the embodiment of this application can be understood based on the description of the technical details in the method embodiment above.

[0126] The embodiment of the present application also provides a computer program product, which includes computer executable instructions or computer programs, and the computer executable instructions or computer programs are stored in a computer-readable storage medium. The processor of the electronic device reads the computer executable instructions or computer programs from the computer-readable storage medium, and the processor executes the computer executable instructions or computer programs, so that the electronic device executes the level processing method in the virtual scene provided in the embodiment of the present application.

[0127] An embodiment of the present application also provides a computer-readable storage medium, in which computer-executable instructions or a computer program are stored. 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 in 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 coordinated files (e.g., files storing one or more modules, subroutines, or code portions).

[0131] As an 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 at multiple sites and interconnected by a communication network.

[0132] The above is only an embodiment of the present application and is not intended to limit the protection scope of the present application. Any modifications, equivalent substitutions and improvements made within the spirit and scope of the present application are included in the protection scope 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, based on an element occlusion relationship and an element state of each of the multiple elements of the level operation, determining an operation cost parameter of each of the elements of the level operation; For each of the level operations, based on the operation cost parameters of each of the elements of the level operation, determining an elimination element group of the level operation, wherein the elimination element group includes at least two elements of the plurality of elements, and when all elements included in the elimination element group are triggered, the elimination element group is eliminated; For each of the level operations, determining an operable element of the level operation from an elimination element group of the level operation and elements associated with the elimination element group; Determining an operation difficulty parameter of each of the level operations based on an operation cost parameter of an operable element of each of the level operations; 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, characterized in that The element occlusion relationship of the element indicates at least one occlusion element that occludes the element; and determining the operation cost parameter of each of the elements of the level operation based on the element occlusion relationship and the element state of each of the multiple elements of the level operation includes: For each of the multiple elements of the level operation, the following processing is performed 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; Determine the number of the target occluded elements as a basic operation cost parameter of the element; Based on the element state of the element, a basic operation cost parameter of the element is adjusted to obtain an operation cost parameter of the element.

3. The method according to claim 2, characterized in that The step of adjusting the basic operation cost parameter of the element based on the element state to obtain the operation cost parameter of the element includes: If the element state indicates that the element has at least one bound element, based on the number of the bound elements, adjusting the basic operation cost parameter of the element to obtain the operation cost parameter of the element; If the element state represents that the element enters an operable state when the adjacent elements of the element are eliminated, adjusting 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, adjusting the basic operation cost parameter of the element to a first value, and determining 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, adjusting the basic operation cost parameter of the element to a second value, and determining the second value as the operation cost parameter of the element; If the element status 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.

4. The method according to claim 1, characterized in that The determining of the elimination element group of the level operation based on the operation cost parameter of each element of the level operation comprises: Determine visible elements in a visible state from the 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; 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 the operation cost parameters of the visible elements in the second visible element group.

5. The method according to claim 4, characterized in that 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 satisfy 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.

6. The method according to claim 4, characterized in that The step of 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 comprises: 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 elements being triggered; summing up 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.

7. The method according to claim 1, characterized in that The step of determining the operable element of the level operation from the elimination element group of the level operation and the elements associated with the elimination element group includes: taking elements in the elimination element group and elements associated with the elimination element group as candidate operable elements; Determine an element operation weight of the candidate operable element based on an operation cost parameter of the candidate operable 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 operable element being selected as the operable 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.

8. The method according to claim 1, characterized in that The number of operable elements of 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 of each level operation includes: For each of the above mentioned level operations, the following processing is performed respectively: Determining an element operation weight of each of the operable elements based on an operation cost parameter of each of the operable elements of the level operation, wherein there is a negative correlation between the element operation weight and the operation cost parameter, and the element operation weight indicates a likelihood of the operable element being triggered; Determining the weight difference between the operation weights of each of the elements; 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.

9. The method according to any one of claims 1 to 8, characterized in that 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 of each simulation; Evaluating each of the level simulation results to obtain an evaluation index value of each of the level simulation results; From the plurality of level simulation results, select a target level simulation result where the evaluation index value meets a fourth selection condition; 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 are obtained.

10. A level processing device in a virtual scene, characterized in that: The device comprises: A first determination module is used 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 element among a plurality of elements of the level operation; a second determining module, configured to determine, for each of the level operations, an elimination element group of 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 of 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 is used to determine, for each level operation, an operable element 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, configured to determine an operation difficulty parameter of each of the level operations based on an operation cost parameter of an operable element of each of the level operations; The fifth determining module is used to determine the level difficulty parameter of the target level based on the operation difficulty parameter of each of the level operations.

Citation Information

Patent Citations

  • Method and device for controlling game difficulty, electronic equipment and medium

    CN111841009A

  • Game level difficulty assessment method and system

    CN116212396A

  • Game level generation method and system, electronic equipment and storage medium

    CN116328311A

  • Game level configuration method and device, equipment and medium

    CN116328314A

  • Controlling a user interface of a computer device

    US20140370950A1