CN108031120B - Scene object control method and device, electronic equipment and storage medium - Google Patents

Scene object control method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN108031120B
CN108031120B CN201711330937.5A CN201711330937A CN108031120B CN 108031120 B CN108031120 B CN 108031120B CN 201711330937 A CN201711330937 A CN 201711330937A CN 108031120 B CN108031120 B CN 108031120B
Authority
CN
China
Prior art keywords
scene
target
current
scene object
objects
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201711330937.5A
Other languages
Chinese (zh)
Other versions
CN108031120A (en
Inventor
罗健
朱文卿
范明进
严冬
吴俊宏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201711330937.5A priority Critical patent/CN108031120B/en
Publication of CN108031120A publication Critical patent/CN108031120A/en
Application granted granted Critical
Publication of CN108031120B publication Critical patent/CN108031120B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/55Controlling game characters or game objects based on the game progress
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/60Generating or modifying game content before or while executing the game program, e.g. authoring tools specially adapted for game development or game-integrated level editor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/50Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by details of game servers
    • A63F2300/55Details of game data or player data management
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/60Methods for processing data by generating or executing the game program

Abstract

The embodiment of the invention provides a scene object control method, a scene object control device, electronic equipment and a storage medium, wherein the method comprises the following steps: responding to the operation of a user, and loading a current scene; if the current scene meets the difficulty adjustment condition, selecting a target scene object with a set number of classes from multiple classes of scene objects corresponding to the current scene; adjusting the appearance weight of each type of target scene object, and determining the adjusted target appearance weight of each type of target scene object; and determining the occurrence probability of each type of target scene object according to the target occurrence weight of each type of target scene object, and controlling each type of target scene object to appear in the current scene according to the corresponding occurrence probability. The embodiment of the invention can control the probability of the scene object appearing in the scene, improve the adjustment precision of the scene passing difficulty and reduce the perception of the user on the scene passing difficulty adjustment.

Description

Scene object control method and device, electronic equipment and storage medium
Technical Field
The invention relates to a data processing method, in particular to a scene object control method, a scene object control device, electronic equipment and a storage medium.
Background
In elimination games, flying shooting games, and other games that are based on eliminating scene objects, users achieve the passing success condition of a scene mainly by eliminating different scene objects that continuously appear in the scene. Therefore, when designing such games, different progressive scenes (scenes such as game level, game map scenes and the like) are often designed and different types of scene objects are designed, so that after a user enters a scene, several different types of scene objects are continuously generated in the scene, and the user eliminates the scene objects through operation to achieve a passing success condition of the scene.
It should be noted here that, according to the specific type of the game, the scene and the scene object referred by different games are different; for example, in an elimination game, the scene designed by the elimination game may be a level, and the scene objects of different types designed correspondingly may be pieces of different colors to be eliminated, which fall in the level; as another example, in a flight shooting game, a scene designed by the flight shooting game may be a map scene, and different types of scene objects designed correspondingly may be different types of enemies appearing in the map scene.
In the practical application process of the game, the scene passing difficulty adjustment is often needed (for example, a user can not successfully pass through one scene after being blocked for a long time, so that the user frustration is easily enhanced, the user loss is caused, and at the moment, the scene passing difficulty adjustment is needed); in the current scene, a certain amount of game props are given to a user mainly before the user enters the scene through a difficulty adjustment mode so as to help the user eliminate a scene object. The problems with this approach are: the adjustment mode is simple, a user can easily perceive that the scene is adjusted through difficulty, the adjustment granularity is too coarse, after the game props are given to the user, the situation that the scene is adjusted through difficulty too low or the user still cannot successfully pass through the scene easily occurs, and the accuracy of the adjustment effect is not ideal.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method and an apparatus for controlling a scene object, an electronic device, and a storage medium, so as to control a probability of a scene object appearing in a scene, improve accuracy of adjusting a scene passing difficulty, and reduce perception of a user on scene passing difficulty adjustment.
In order to achieve the above purpose, the embodiments of the present invention provide the following technical solutions:
a scene object control method, comprising:
responding to the operation of a user, and loading a current scene;
if the current scene meets the difficulty adjustment condition, selecting a target scene object with a set number of classes from multiple classes of scene objects corresponding to the current scene;
adjusting the appearance weight of each type of target scene object, and determining the adjusted target appearance weight of each type of target scene object;
and determining the occurrence probability of each type of target scene object according to the target occurrence weight of each type of target scene object, and controlling each type of target scene object to appear in the current scene according to the corresponding occurrence probability.
An embodiment of the present invention further provides a scene object control apparatus, including:
the scene loading module is used for responding to the operation of a user and loading the current scene;
a scene object selection module, configured to select a target scene object with a set number of classes from multiple classes of scene objects corresponding to the current scene if the current scene meets the difficulty adjustment condition;
the weight determining module is used for adjusting the appearance weights of various target scene objects and determining the adjusted target appearance weights of various target scene objects;
and the probability determining and controlling module is used for determining the occurrence probability of each type of target scene object according to the target occurrence weight of each type of target scene object and controlling each type of target scene object to appear in the current scene according to the corresponding occurrence probability.
An embodiment of the present invention further provides an electronic device, including: at least one memory and at least one processor; the memory stores a program, and the processor realizes the steps of the scene object control method when calling the program.
An embodiment of the present invention further provides a storage medium, where the storage medium stores a program suitable for being executed by a processor, and when the program is executed by the processor, the method implements the steps of the scene object control method.
Based on the above technical solution, the method for controlling a scene object provided in the embodiment of the present invention includes: responding to the operation of a user, and loading a current scene; if the current scene meets the difficulty adjustment condition, selecting a target scene object with a set number of classes from multiple classes of scene objects corresponding to the current scene; adjusting the appearance weight of each type of target scene object, and determining the adjusted target appearance weight of each type of target scene object; therefore, the occurrence probability of each type of target scene object can be determined according to the target occurrence weight of each type of target scene object, and each type of target scene object is controlled to appear in the current scene according to the corresponding occurrence probability; the method realizes the adjustment and control of the occurrence probability of the selected target scene object in the current scene, and achieves the passing difficulty adjustment of the current scene. According to the embodiment of the invention, when the difficulty of the current scene needs to be adjusted, the target scene objects with the set number are selected, and the occurrence probability of each target scene object is adjusted, so that the user can complete the adjustment of the scene passing difficulty through the adjustment of the occurrence probability of the scene objects in the process of challenging the current scene, and the perception of the user on the scene passing difficulty adjustment is greatly reduced; meanwhile, the adjustment precision of the scene passing difficulty is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of a scene object control method according to an embodiment of the present invention;
fig. 2 is another flowchart of a scene object control method according to an embodiment of the present invention;
fig. 3 is a flowchart of a scene object control method according to an embodiment of the present invention;
fig. 4 is a flowchart of a scene object control method according to an embodiment of the present invention;
FIG. 5 is a diagram of an example of a game presentation provided by an embodiment of the present invention;
FIG. 6 is a schematic diagram of a scene object control script;
fig. 7 illustrates yet another flowchart of a scene object control method provided by an embodiment of the present invention;
fig. 8 is a block diagram of a scene object control apparatus according to an embodiment of the present invention;
fig. 9 is another block diagram of a scene object control apparatus according to an embodiment of the present invention;
fig. 10 is a block diagram of still another structure of a scene object control apparatus according to an embodiment of the present invention;
fig. 11 is a block diagram of another structure of a scene object control apparatus according to an embodiment of the present invention;
fig. 12 is a block diagram of still another structure of a scene object control apparatus according to an embodiment of the present invention;
fig. 13 is a block diagram of a hardware configuration of the electronic apparatus.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a flowchart of a scene object control method provided in an embodiment of the present invention, and through the method shown in fig. 1, the embodiment of the present invention can control the occurrence probability of a scene object in a scene when a passing difficulty adjustment of the scene needs to be performed, so as to achieve the effects of improving the adjustment accuracy of the passing difficulty of the scene and reducing the perception of a user on the passing difficulty adjustment of the scene;
the scene object control method provided by the embodiment of the invention can be applied to game terminals (the form of terminal equipment can be a mobile phone, a tablet computer, a notebook computer and the like); optionally, the scene object control method provided in the embodiment of the present invention may also be applied to a game server, and particularly, when the online network game is performed, the game server may control a game terminal to perform scene object control;
referring to fig. 1, a scene object control method provided in an embodiment of the present invention may include:
and S100, responding to the operation of a user and loading the current scene.
Optionally, the current scene may be a scene that the user needs to pass through currently, such as a current level, a current map scene, and the like; the loading of the current scene may be triggered by a user operation, for example, if the user performs an operation of selecting to enter the current scene (for example, the user may select to enter any activated scene in the scene list, or the user may select to enter the next scene after successfully passing through the previous scene), the current scene may be loaded in response to the user operation.
Optionally, after the current scene is loaded, several scene objects of different types will appear continuously in the current scene, and a user needs to eliminate the scene objects through operation to achieve a passing success condition of the current scene;
optionally, as an optional example, taking an elimination game as an example, after a current scene is loaded, pieces of several colors are dropped continuously in the current scene, and a user needs to make at least 3 pieces of the same color continuously on the same connection line in the current scene be the same color through operation, so that at least 3 pieces of the same color continuously on the same connection line in the current scene are eliminated, and by calculating a score of the user for eliminating the pieces each time, a passing success condition of the current scene is achieved when the total score meets a passing requirement, or after the user eliminates all pieces in the current scene; for another example, the loaded current scene may also be a current map scene of a flight shooting game, different types of enemy planes will appear continuously in the current scene, and the user eliminates the defying enemy plane through operation and reaches the map end point, so that a passing success condition of the current scene is achieved;
obviously, depending on the specific type of the game, the manner in which the scene object appears in the current scene (e.g., in the elimination game, the manner in which the scene object appears is dropped from the scene, and in the flight shooting game, the manner in which the scene object appears is loaded at a specified position on a map) and the form in which the scene object is designed (e.g., in the elimination game, the form of the scene object is a chess piece, and in the flight shooting game, the form of the scene object is an airplane) are both adaptively adjustable, and embodiments of the present invention are not particularly limited.
Optionally, the current scene can be loaded by the game terminal, especially for the case of a stand-alone game; obviously, the game server may control the loading of the current scene.
Step S110, if the current scene accords with the difficulty adjustment condition, selecting a target scene object with a set number of classes from the multiple classes of scene objects corresponding to the current scene.
Optionally, if the current scene meets the difficulty adjustment condition, it is determined that the embodiment of the present invention needs to control and adjust the probability of the scene object appearing in the current scene, so as to implement the passing difficulty adjustment of the current scene; the current scene meets the difficulty adjustment condition, for example, the failure times of the user in the current scene reach the preset times;
for another example, if the current scene is not limited by the passing time, and if the user history does not successfully pass through the current scene and the average historical time spent by the user in challenging the current scene exceeds the predetermined time (that is, if the user history does not successfully pass through the current scene for multiple times, and the average historical time spent in challenging the current scene exceeds the predetermined time), it is determined that the user has a possibility of successfully passing through the current scene with a greater difficulty, and it may be determined that the current scene meets the difficulty adjustment condition;
the form that the current scene accords with the difficulty adjustment condition can be defined and adjusted according to the actual situation, and a unique fixed form is not provided.
Optionally, during game design, for each scene in the game, the embodiment of the present invention may predefine the scene object type (i.e. the type of the scene object) corresponding to each scene, where one scene may correspond to multiple types of scene objects, and the types of the scene objects corresponding to different scenes may be different; it can be understood that a scene object type corresponding to a scene may be considered as a type of a scene object appearing in the scene, and multiple types of scene objects may appear in a scene;
under the condition that the current scene is determined to accord with the difficulty adjustment condition, the embodiment of the invention can select the target scene object with the set number from a plurality of scene object types corresponding to the current scene predefined in the game design stage; the target scene object can be regarded as a scene object of which the occurrence probability needs to be adjusted in the current scene;
optionally, the type of the selected target scene object may be at least one type, and the value of the set number of types may be defined according to an actual situation, for example, any integer value from 1 to 3 is taken, and obviously, the numerical description here is only an example, and the specific value selection may be adjusted according to the actual situation;
optionally, the manner of selecting the target scene objects with the set number may be random, for example, the target scene objects with the set number may be randomly selected from multiple types of scene objects corresponding to the current scene.
As an example, taking an elimination game as an example, when a current level of the elimination game is loaded and it is determined that the current level meets the difficulty adjustment condition, in the pieces with a plurality of colors corresponding to the current level predefined in the game design stage, the embodiment of the present invention may randomly select a target piece with a color of a set number (the set number is 2); for example, if the chess pieces corresponding to the current level are the chess pieces with four colors of purple, red, green and blue (i.e. the current level will continuously drop the chess pieces with four colors of purple, red, green and blue), the chess pieces with 2 colors, such as the chess pieces with purple and red, can be randomly selected as the target chess pieces.
And step S120, adjusting the appearance weight of each type of target scene object, and determining the adjusted target appearance weight of each type of target scene object.
The appearance weight of the scene object is related to the appearance probability of the scene object, and the appearance weights of various scene objects in the current scene are initial values (namely initial appearance weights) during the design of the current scene.
Optionally, as an optional implementation, in the embodiment of the present invention, the target occurrence weight after adjustment of each type of target scene object may be determined according to the number of times of failure of the user in the current scene and the number of types of scene objects corresponding to the current scene.
Optionally, the embodiment of the present invention may analyze and determine in advance the occurrence weight adjustment results corresponding to the number of each failure time and the number of each scene object type, that is, analyze and determine in advance the occurrence weight adjustment results corresponding to the number of different failure times and different scene object types, and record in a table form to obtain a target table; therefore, according to the target table, the number of times of failure of the user in the current scene, the type number of the scene objects corresponding to the current scene, and the corresponding appearance weight adjustment result can be determined, and the adjusted object appearance weights of various object scene objects are obtained, wherein the target table records the appearance weight adjustment results corresponding to the number of times of failure and the type number of the scene objects.
Optionally, the embodiment of the present invention may simulate the user to challenge each scene (for example, simulate the user to challenge each level of interest through artificial intelligence), and for each scene, under the number of types of scene objects corresponding to the scene, analyze each failure frequency, and the passing rate corresponding to each occurrence weight adjustment result of the target scene object, to obtain the number of types of scene objects corresponding to each scene, each failure frequency, and the passing rate corresponding to each occurrence weight adjustment result of the target scene object, so as to summarize through data arrangement, take each failure frequency corresponding to the passing rate and the expected passing rate, and the occurrence weight adjustment result corresponding to each type of scene objects, and record the result into the target table;
optionally, as an example, table 1 below shows an optional illustration of a target table, where the table records occurrence weight adjustment results corresponding to the failure times and the types and numbers of the scene objects, and generally, the initial occurrence weight of the scene object is 1;
Figure BDA0001506628590000071
TABLE 1
As can be seen from table 1, in the case where the number of failures is 5 and the number of types of scene objects is 4, the result of the appearance weight adjustment of the target scene object is 1.5.
It should be noted that there may be a plurality of types of target scene objects, and after the processing in step S120, the appearance weight adjustment results of the various types of target scene objects may be consistent, that is, all of the results are determined based on the number of times that the user fails in the current scene and the number of types of scene objects corresponding to the current scene.
Obviously, the above-described manner of adjusting the target appearance weights of various types of target scene objects based on the appearance weight adjustment results corresponding to the failure times and the types of the scene objects recorded in the target table is only an optional manner, and the embodiment of the present invention does not exclude other implementation manners.
Step S130, determining the occurrence probability of each target scene object according to the target occurrence weight of each target scene object, and controlling each target scene object to appear in the current scene according to the corresponding occurrence probability.
Optionally, after determining the target occurrence weight of each type of target scene object, the occurrence probability of each type of target scene object may be: dividing the target appearance weight of the target scene object by the sum of appearance weights of various scene objects corresponding to the current scene;
as an example, taking an elimination game as an example, if the chess pieces corresponding to the current level are purple, red, green, and blue, the selected target chess pieces are purple and red chess pieces, and if the initial appearance weight of the chess pieces is 1 (the initial appearance weight can also be 1 multiplied by a unit value, and if the unit value is 100, the initial appearance weight is 100), the target appearance weight determined after the target chess pieces are adjusted is 2, that is, the appearance weight of the purple and red chess pieces is 2, and the unadjusted green and blue chess pieces are also the initial appearance weight 1, the appearance probability of the purple chess pieces is 2/(2+2+1+1), and correspondingly, the appearance probability of the green chess pieces as non-target chess pieces is 1(2+2+1+ 1).
Correspondingly, when the occurrence probability of each target scene object is determined, each target scene object can be controlled to appear with the corresponding occurrence probability in the current scene, so that the occurrence probability of each target scene object is adjusted, and the passing difficulty adjustment of the current scene is achieved.
The scene object control method provided by the embodiment of the invention comprises the following steps: responding to the operation of a user, and loading a current scene; if the current scene meets the difficulty adjustment condition, selecting a target scene object with a set number of classes from multiple classes of scene objects corresponding to the current scene; adjusting the appearance weight of each target scene object, and determining the adjusted target appearance weight of each target scene object; therefore, the occurrence probability of various target scene objects can be determined according to the target occurrence weight of the various target scene objects, and the various target scene objects are controlled to appear in the current scene according to the corresponding occurrence probability; the method realizes the adjustment and control of the occurrence probability of the selected target scene object in the current scene, and achieves the passing difficulty adjustment of the current scene. According to the embodiment of the invention, when the difficulty of the current scene needs to be adjusted, the target scene objects with the set number are selected, and the occurrence probability of each target scene object is adjusted, so that the user can complete the adjustment of the scene passing difficulty through the adjustment of the occurrence probability of the scene objects in the process of challenging the current scene, and the perception of the user on the scene passing difficulty adjustment is greatly reduced; meanwhile, the adjustment precision of the scene passing difficulty is improved.
Optionally, in the embodiment of the present invention, when the user history fails to pass through a certain scene for multiple times, the execution of the scene object control method provided in the embodiment of the present invention may be triggered, and fig. 2 shows another flowchart of the scene object control method provided in the embodiment of the present invention, and referring to fig. 2, the method may include:
and S200, responding to the operation of a user and loading the current scene.
Step S210, determining whether the number of times of failure of the user in the current scene reaches a predetermined number of times, if not, executing step S220, and if so, executing step S230.
After the current scene is loaded, the embodiment of the invention can acquire the failure times of the user in the current scene through the user game data such as the game log of the user and the like, and compare the failure times with the preset times;
optionally, if the historical challenge of the user fails once in the current scene (if the passing success condition of the current scene is not met), the number of times that the user fails in the current scene may be increased by one, and the number of times that the user fails in the current scene is calculated through accumulation;
the user may have failed to challenge the current scene once in history, that is, one time of failure in challenge is performed when the user does not exit the current scene; if the user exits the current scene halfway, whether the progress of the current scene completed by the user is not less than a preset progress can be judged (for example, for an elimination game, the number of steps of an elimination operation executed by the user can be judged, whether the number of steps is not less than a preset proportion of the total number of steps is judged, whether the number of steps is not less than 90% of the total number of steps is judged), if yes, the user is considered to have tried to challenge although exiting the current scene halfway, the user is considered to have failed to challenge the current scene, the failure times of the user for historically challenging the current scene can be accumulated once, if not, the user is considered to have not tried to challenge the current scene, the difficulty of the user for challenging the current scene can not be judged, and the failure times of the user for historically.
And step S220, controlling the appearance of various scene objects according to the initial appearance weight of various scene objects corresponding to the current scene.
If the failure times of the user in the current scene do not reach the preset times, the difficulty adjustment of the current scene is not needed, and the appearance control of various scene objects in the current scene can be carried out according to the initial appearance weights of various scene objects of the current scene defined in the scene design stage.
Step S230, selecting a target scene object with a set number of classes from the multiple classes of scene objects corresponding to the current scene.
If the failure times of the user in the current scene reach the preset times, the current scene is considered to be in accordance with the difficulty adjustment condition, the scene object control logic provided by the embodiment of the invention can be triggered to carry out the passing difficulty adjustment of the current scene, so that the target scene objects with the set number are selected from the multiple types of scene objects corresponding to the current scene.
Step S240, adjusting the appearance weight of each type of target scene object, and determining the adjusted target appearance weight of each type of target scene object.
Optionally, in the embodiment of the present invention, the target occurrence weight after adjustment of each type of target scene object may be determined according to the number of times of failure of the user in the current scene and the number of types of scene objects corresponding to the current scene;
the adjustment of the appearance probability of the scene object is realized based on the failure times of the user in the current scene and the type of the scene object actually appearing in the current scene, so that the adjustment of the scene passing difficulty can be matched with the actual scene condition and the user condition, and the adjustment precision of the scene passing difficulty is greatly improved.
And step S250, determining the occurrence probability of various target scene objects according to the target occurrence weight of the various target scene objects, and controlling the various target scene objects to appear in the current scene according to the corresponding occurrence probability.
Optionally, the method shown in fig. 2 provides a scheme for performing difficulty adjustment on the current scene by using the scene object control method provided in the embodiment of the present invention when the user history fails to pass through the current scene for multiple times; however, fig. 2 is only an optional example, and the condition for triggering the execution of the scene object control method provided in the embodiment of the present invention to perform the difficulty adjustment of the current scene may also be set according to an actual situation, and is not limited to that shown in fig. 2.
Optionally, the scene object control method provided in the embodiment of the present invention may be only applicable to scenes that have not successfully passed, that is, if a user challenges again after a certain scene passes successfully, the scene object control method provided in the embodiment of the present invention may not be triggered to be executed.
An application example of the scene object control method according to the embodiment of the present invention is chess piece occurrence probability control for game elimination, and optionally, fig. 3 shows another flowchart of the scene object control method according to the embodiment of the present invention, and referring to fig. 3, the method may include:
and step S300, responding to the operation of the user and loading the current level.
And S310, if the failure times of the user at the current level reach the preset times, selecting target chess pieces with set colors from the chess pieces with multiple colors which fall correspondingly at the current level.
The color types of the chess pieces falling correspondingly by each level can be designed during the design of the elimination game, so that when the current level meets the difficulty adjustment condition, the chess pieces with set number of colors can be randomly selected from the chess pieces with multiple colors falling correspondingly by the current level to serve as target chess pieces.
Step S320, adjusting the falling weight of the target chess pieces of each color, and determining the adjusted target falling weight of the target chess pieces of each color.
Optionally, in the embodiment of the present invention, according to the target table, the number of times of failure of the user at the current level, the number of colors of the chess pieces dropped by the current level, and the drop weight adjustment result are determined, so as to obtain the target drop weight of the target chess pieces of each color after adjustment; wherein, the target table records the falling weight adjustment results corresponding to the failure times and the color number of the chessmen.
Optionally, in the embodiment of the present invention, the user may simulate the challenge of each level through artificial intelligence, so as to determine the number of colors of the chess pieces dropped by each level, the number of times of failure, and the corresponding pass rate of each drop weight of the target chess piece, thereby summarizing data, and taking the drop weight adjustment result corresponding to each number of times of failure and each number of colors of the chess pieces corresponding to the pass rate and the expected pass rate, and recording the result in the target table.
And S330, determining the falling probability of the target chess pieces of each color according to the target falling weight of the target chess pieces of each color, and controlling the target chess pieces of each color to fall in the current level according to the corresponding falling probability.
As an example, in an elimination game, it is assumed that a current level can continuously drop chess pieces with 6 colors, and an initial drop weight of each color chess piece is 1, so that if a user fails to pass the current level for multiple times successfully, the user still cannot pass the current level successfully if the user performs the chess piece drop control of the current level according to the initial drop weight, and the passing difficulty of the current level needs to be adjusted; if certain game props are given to the user to help the user pass the checkpoint when the current checkpoint is started, the user perception is obvious, and after certain game props are given to the user, the situation that the user still cannot pass the checkpoint or the checkpoint is too easy exists, and the difficulty adjustment precision is too coarse;
by using the scene object control method provided by the embodiment of the invention, when a user can not pass the current level for multiple times, chessmen with two colors can be randomly selected from the chessmen with 6 colors which fall correspondingly at the current level to be used as target chessmen; according to the target table, when the failure times of the user at the current level and the falling chessmen are 6 colors, the corresponding falling weight adjustment result is determined, the falling weight of the target chessman with two selected colors is adjusted to be the falling weight adjustment result, the target falling weight of the target chessman with two colors is obtained, therefore, the falling probability of the target chessman with two colors is determined according to the target falling weight of the target chessman with two colors, the target chessman with two colors is controlled to fall in the current level with the falling probability determined correspondingly, and the difficulty adjustment of the current level is realized.
Through measurement and calculation, if the target falling weight is increased to 2, the estimated passing rate of the current level can be increased by 5% -10%, and the average passing rate can be increased by 8%, so that the passing rate of the current level can exceed 10%; if the target drop weight is increased to 3, the estimated rate of passing through the current level can be increased by 20% -50%, and can be increased by 28% on average, so that the rate of passing through the current level can exceed 30%; if the target drop weight is raised to 4, the expected rate of passing of the current level can be raised by 50% -90%, and on average, can be raised by 50%, so that the rate of passing of the current level can exceed 55%. It should be noted that what value the target drop weight is raised to may be determined according to the expected passing rate of the current level, that is, what is recorded in the target table is the drop weight adjustment result corresponding to each failure frequency and each chessman color number corresponding to the passing rate and the expected passing rate, and the expected passing rate may be adjusted according to the game operation stage.
Optionally, in order to further reduce the perception of the user on the scene through the difficulty adjustment, the embodiment of the present invention may update the target scene object cyclically in the current scene, so that the target scene object is not fixed and unchanged in the current scene, thereby reducing the situation that the user perceives that the occurrence probability of a certain scene object in the current scene is obviously adjusted, and further reducing the perception of the user on the scene through the difficulty adjustment. Optionally, fig. 4 shows another flowchart of a scene object control method provided in an embodiment of the present invention, and referring to fig. 4, the method may include:
and S400, responding to the operation of the user and loading the current scene.
Step S410, if the current scene accords with the difficulty adjustment condition, in the occurrence of the current scene objects of a cycle, selecting current target scene objects with set number of classes from multiple classes of scene objects corresponding to the current scene, and enabling the types of the target scene objects selected each time in the cycle to be different, wherein all the classes of scene objects corresponding to the current scene in the cycle can be selected as target scene objects; wherein a loop includes the occurrences of the scene object for a specified number of times.
Optionally, in order to ensure that the appearance times of various scene objects corresponding to the current scene are consistent, ensure that the appearance times of various scene objects corresponding to the current scene are consistent on the whole, and reduce the perception of a user on the scene through difficulty adjustment, the embodiment of the invention can circularly control the appearance of the scene objects, and ensure that the appearance times of various scene objects corresponding to the current scene in a cycle are consistent; in particular, a loop may consist of a specified number of scene object occurrences, a scene object occurrence being one occurrence of a scene object in the current scene, such as one drop of a pawn in the current level for an elimination game.
Optionally, for the occurrence of a scene object at any time in a cycle, in the embodiment of the present invention, step S410 may be performed, and a set number of target scene objects is selected from multiple types of scene objects corresponding to the current scene, so as to implement the selection of the target scene object at any time in a cycle, and in order to ensure that the field-outgoing times of the various types of scene objects corresponding to the current scene in a cycle have consistency, in the embodiment of the present invention, when selecting the scene objects at each time in a cycle, the types of the target scene objects selected each time in a cycle may be controlled to be different, and the various types of scene objects corresponding to the current scene in a cycle may be selected as the target scene objects.
Optionally, the occurrence of the scene objects of the specified number of times in the above-mentioned one cycle may be determined according to the number of types of the scene objects corresponding to the current scene, where if 3 types of the target scene objects are selected from 6 types of the scene objects corresponding to the current scene, 2 times of the scene objects may appear as one cycle, if 2 types of the target scene objects are selected from 5 types of the scene objects, 5 times of the scene objects may appear as one cycle, and if 3 types of the target scene objects are selected from 5 types of the scene objects, 4 times of the scene objects may appear as one cycle, and so on.
Accordingly, in the occurrence of the current-time scene object in a cycle, in the embodiments of the present invention, a current-time target scene object with a set number of classes (the current-time target scene object may be considered as the currently selected target scene object) may be selected from multiple classes of scene objects corresponding to the current scene, and the current-time target scene object is made different from the target scene objects selected in the cycle, which ensures that the types of the target scene objects selected in each cycle are different, and each class of scene objects corresponding to the current scene in a cycle may be selected as the target scene object.
Step S420, adjusting the appearance weight of each type of current target scene object, and determining the adjusted target appearance weight of each type of current target scene object.
Optionally, in the embodiment of the present invention, the target occurrence weight after the adjustment of each type of current target scene object may be determined according to the number of times of failure of the user in the current scene and the number of types of scene objects corresponding to the current scene.
And step S430, determining the occurrence probability of each type of current-time target scene object according to the target occurrence weight of each type of current-time target scene object, and controlling each type of current-time target scene object to appear in the current scene according to the corresponding occurrence probability in the current-time scene object.
Optionally, further, in the embodiments of the present invention, a sequence may be randomly generated according to multiple types of scene objects corresponding to a current scene, so as to ensure that the departure times of the various types of scene objects corresponding to the current scene have consistency, where the sequence indicates various types of scene objects that appear corresponding to the current scene, and the appearance weight of the various types of scene objects is an initial appearance weight; after the target appearance weights of various current secondary target scene objects are determined, the appearance weights of various current secondary target scene objects in the sequence can be adjusted to be target appearance weights, and the appearance weights of scene objects which are not the current secondary target scene objects in the sequence are maintained to be initial appearance weights, so that the sequence after appearance weight adjustment is obtained;
therefore, when the occurrence probability of each type of current secondary target scene object is determined, the embodiment of the invention can determine the occurrence probability of each type of current secondary target scene object in the sequence according to the occurrence weight of each type of current secondary target scene object in the sequence after the adjustment of the occurrence weight, and control each type of current secondary target scene object in the sequence to appear in the current scene according to the corresponding occurrence probability in the occurrence of the current secondary target scene object.
For convenience of understanding, taking an elimination game as an example, each time a user completes one step in the elimination game, the current level will drop the chess pieces, so that the appointed number of steps in a cycle can be determined according to the number of colors of the chess pieces dropped corresponding to the current level and the number of colors of the target chess pieces; if the target falling weight of the adjusted target chess pieces is determined to be P1 according to the color number of the chess pieces falling correspondingly to the current level and the failure times of the user at the current level, a sequence is randomly generated according to the color number of the chess pieces falling correspondingly to the current level, wherein the sequence indicates the chess pieces falling in various colors in one cycle, and the initial weight is 1; determining a target chess piece of which the falling weight needs to be adjusted in each step in the circulation, adjusting the falling weight of the target chess piece in the sequence to be P1, and the falling weight of other chess pieces is still 1, so that the falling weight of each chess piece after the falling weight is adjusted in the sequence is used for controlling the falling of the chess piece with the current step, and the circulation is continued until the current checkpoint is successfully passed or fails;
optionally, as a further example, taking four colors of a purple, a red, a green and a blue of the chess pieces dropped corresponding to the current level as an example, the purple and the red can be randomly selected as target chess pieces in the first drop of one cycle, and the drop weight is adjusted to be 2 (the initial drop weight is 1), so that the drop probability of the purple and red target chess pieces is adjusted from 1/4 to 1/3, the drop rate is improved, the chess pieces can be more easily eliminated by a user, and the level difficulty is reduced; in the second falling of a cycle, green and blue chessmen different from the last target chessman are selected as target chessmen, the falling weight of the green and blue target chessmen is adjusted to be 2, the weight of the purple and red chessmen is restored to be 1, the effect similar to the previous effect is produced, the difficulty of level crossing is reduced, and the consistency of the leaving times of the chessmen with different colors in a cycle is ensured.
Optionally, taking an elimination game as an example, if a shape of the chess pieces represents a class of chess pieces, an optional example of eliminating game performance by applying the scene object control method provided by the embodiment of the present invention may be as shown in fig. 5, which may be referred to.
Optionally, in order to further reduce the perception of the user on the scene through difficulty adjustment, an embodiment of the present invention may also provide another implementation manner, in which a scene object control script may be configured for a current scene, and the scene object control script performs adjustment control on the target occurrence weight of a target scene object in the current scene in stages;
optionally, the scene object control script may record a scene object control logic of at least one scene object control stage (stage for short), where the scene object control logic of one stage records a corresponding number of user operations that the stage starts, a number of interval operations that the stage correspondingly selects a target scene object, a number of times that the stage correspondingly selects a target scene object, and a target appearance weight after the stage correspondingly selects the target scene object is promoted;
optionally, fig. 6 shows an optional schematic of the scene object control script, as shown in fig. 6, the scene object control script records 4 stages of scene object control logics (obviously, the actual usage may not be limited to 4 stages, and the specific number of stages may be set according to the actual situation), and the control logics in one row in fig. 6 correspond to the scene object control logics in one stage; description data 1 existing in the control logic in one row in fig. 6 may represent the number of times of user operations corresponding to the start of the phase, description data 2 may represent the number of times of interval operations corresponding to the phase to select the target scene object, description data 3 may represent the number of times of selecting the target scene object corresponding to the phase, and description data 4 may represent the occurrence weight of the target after the target scene object corresponding to the phase is lifted;
for example, description data 1 in fig. 6 represents the number of user operations (e.g., the number of moving steps of the user in the game) of the scene object control logic at this stage, for example, description data 1 in the first row represents the control logic for starting the first stage when user operates 0 times, description data 1 in the second row represents the control logic for starting the second stage when user operates 3 times, description data 1 in the third row represents the control logic for starting the third stage when user operates 10 times, and description data 1 in the fourth row represents the control logic for starting the fourth stage when user operates 25 times;
description data 2 represents the number of interval operations for selecting the target scene object at the current stage (for example, the number of interval steps of a user in a game is eliminated), for example, description data 2 in the first row represents that the target scene object is selected at 1 step of the interval of the first stage, description data 2 in the second row represents that the target scene object is selected at 2 steps of the interval of the second stage, description data 2 in the third row represents that the target scene object is selected at 2 steps of the interval of the third stage, and so on;
description data 3 represents the number of the selected target scene objects (such as the number of colors of the target chess pieces selected in the game for adjusting the falling weight) at the present stage, for example, description data 3 in the first row represents that the number of the selected target scene objects in the first stage is 2, description data 3 in the second row represents that the number of the selected target scene objects in the second stage is 2, and so on;
description data 4 represents the target appearance weight after the target scene object in this stage is lifted (for example, the target falling weight after the target chess piece is adjusted in the game is eliminated), the initial appearance weight is 100, for example, description data 4 in the first row represents that the target appearance weight after the target scene object in the first stage is adjusted is 800, description data 4 in the second row represents that the target appearance weight after the target scene object in the second stage is adjusted is 500, and so on.
Optionally, fig. 7 shows yet another flowchart of a scene object control method provided in an embodiment of the present invention, and referring to fig. 7, the method may include:
and S500, responding to the operation of a user and loading the current scene.
Step S510, if the current scene meets the difficulty adjustment condition, a scene object control script is called, where the scene object control script records a scene object control logic of at least one stage, the scene object control logic of one stage records a corresponding user operation frequency for starting the stage, the interval operation frequency for selecting a target scene object in the stage, the number of the target scene objects in the stage, and a target appearance weight after the target scene object in the stage is promoted.
Step S520, determining a current stage in which the current stage is located according to the number of times of operations performed by the user, and according to the scene object control logic corresponding to the current stage, if it is determined that the number of times of interval operations between the current stage and the last selected target scene object reaches, and the number of times of interval operations between the current stage and the selected target scene object, selecting various types of current-stage target scene objects of the number corresponding to the current stage from the multiple types of scene objects corresponding to the current scene.
After determining that the current scene meets the difficulty adjustment condition and calling the scene object control script, the embodiment of the invention can determine the current stage where the current stage is according to the operation times of the user, and when determining the interval operation times of the current stage from the last selected target scene object and reaching the interval operation times of the selected target scene object recorded by the scene object control logic corresponding to the current stage, can select the target scene object corresponding to the number recorded by the scene object control logic corresponding to the current stage from the multiple types of scene objects corresponding to the current stage to obtain various current target scene objects.
Alternatively, step S520 may be considered as an alternative implementation of step S110 described above.
Step S530, according to the scene object control logic corresponding to the current stage, the appearance weight of each selected current secondary target scene object is adjusted to be the corresponding target appearance weight of the current stage.
After the currently selected target scene object is determined, the embodiment of the present invention may adjust the appearance weight of the selected target scene object from the initial appearance weight to the target appearance weight recorded by the scene object control logic corresponding to the current stage according to the scene object control logic corresponding to the current stage.
Alternatively, step S530 may be regarded as an alternative implementation of step S120 described above; in addition to determining the adjusted target appearance weights of various target scene objects according to the failure times of the user in the current scene and the type number of the scene objects corresponding to the current scene, the embodiment of the present invention may also determine the appearance weights of various target scene objects to be adjusted to the corresponding target appearance weights in the current stage through the scene object control logic corresponding to the current stage.
And S540, determining the occurrence probability of each type of current secondary target scene object according to the target occurrence weight of each type of current secondary target scene object, and controlling each type of current secondary target scene object to perform scene object occurrence at the current time of the current scene according to the corresponding occurrence probability.
Optionally, further, in the embodiment of the present invention, a sequence may also be randomly generated, where the sequence indicates various scene objects that appear corresponding to the current scene, so that after determining the target appearance weights of various current-time target scene objects, the appearance weights of various current-time target scene objects in the sequence may be adjusted to target appearance weights, and the appearance weights of scene objects in the sequence other than the current-time target scene objects are maintained as initial appearance weights, so as to obtain a sequence after appearance weight adjustment;
furthermore, when determining the occurrence probability of each type of current secondary target scene object, the embodiments of the present invention may determine the occurrence probability of each type of current secondary target scene object in the sequence according to the occurrence weight of each type of current secondary target scene object in the sequence after the adjustment of the occurrence weight, and control each type of current secondary target scene object in the sequence to appear in the current scene with the corresponding occurrence probability in the occurrence of the current secondary scene object.
Optionally, further, in a case that the current scene is formed by a plurality of rounds (for example, the current level of the elimination game may be formed by a plurality of rounds, and a round has a plurality of pieces dropped), and a round includes a plurality of scene objects appearing, the scene object control logic of each stage may further record the number of times that the appearance weight of the target scene object is adjusted to the target appearance weight in a round of each stage; further, as shown in fig. 5, the description data 5 may indicate the number of times that the appearance weight of the stage adjustment target scene object is the target appearance weight; for example, if the description data 5 in the first row indicates that the appearance weight of the adjustment target scene object exists 3 times in the first stage as the target appearance weight, the description data 5 in the second row indicates that the appearance weight of the adjustment target scene object exists 3 times in the second stage as the target appearance weight, and so on, the situation that the same-color chessman is dropped all the time in a single round is avoided, and the perception of the user on the scene through difficulty adjustment is reduced;
correspondingly, if the current scene is composed of a plurality of rounds and one round includes a plurality of occurrences of the scene object, the scene object control logic corresponding to a stage may further record the number of times of adjusting the restriction of the target occurrence weight in the one round of the stage; therefore, the embodiment of the invention can adjust the limiting times of the target appearance weight in one round according to the scene object control logic record corresponding to the current stage at the current stage, and control the times of adjusting the appearance weight of the target scene object to be the target appearance weight in each round of the current stage.
According to the embodiment of the invention, when the difficulty of the current scene needs to be adjusted, the target scene objects with the set number are selected, and the occurrence probability of each target scene object is adjusted, so that the user can complete the adjustment of the scene passing difficulty through the adjustment of the occurrence probability of the scene objects in the process of challenging the current scene, and the perception of the user on the scene passing difficulty adjustment is greatly reduced; meanwhile, the adjustment precision of the scene passing difficulty is improved. Meanwhile, the adjustment precision of the scene passing difficulty can be greatly improved.
In the following, the scene object control apparatus provided in the embodiment of the present invention is introduced, and the scene object control apparatus described below may be regarded as an electronic device, which is a program module required to implement the scene object control method provided in the embodiment of the present invention. The contents of the scene object control device described below and the contents of the scene object control method described above may be referred to in correspondence with each other.
Fig. 8 is a block diagram of a scene object control apparatus according to an embodiment of the present invention, where the scene object control apparatus is applicable to an electronic device, and referring to fig. 8, the scene object control apparatus may include:
a scene loading module 100, configured to respond to an operation of a user and load a current scene;
a scene object selecting module 200, configured to select a target scene object with a set number of classes from multiple classes of scene objects corresponding to a current scene if the current scene meets a difficulty adjustment condition;
the weight determining module 300 is configured to adjust occurrence weights of various target scene objects, and determine adjusted target occurrence weights of various target scene objects;
and a probability determination and control module 400, configured to determine occurrence probabilities of various target scene objects according to the target occurrence weights of the various target scene objects, and control the various target scene objects to appear in the current scene according to the corresponding occurrence probabilities.
Optionally, as an optional implementation, the weight determining module 300 is configured to adjust appearance weights of various target scene objects, and determine adjusted target appearance weights of various target scene objects, and specifically includes:
and determining the failure times of the user in the current scene, the type number of the scene objects corresponding to the current scene and the corresponding appearance weight adjustment result according to the occurrence weight adjustment results corresponding to the failure times and the type number of the scene objects recorded in the target table, and obtaining the adjusted target appearance weights of various target scene objects.
Optionally, fig. 9 is a block diagram of another structure of the scene object control apparatus according to the embodiment of the present invention, and with reference to fig. 8 and 9, the apparatus may further include:
the table generation recording module 500 is configured to simulate a user to challenge each scene, and for each scene, analyze each failure time and a pass rate corresponding to each occurrence weight adjustment result of the target scene object under the scene object type number corresponding to the scene, and obtain the scene object type number corresponding to each scene, each failure time and the pass rate corresponding to each occurrence weight adjustment result of the target scene object; and taking the appearance weight adjustment result corresponding to each failure frequency and each scene object type number corresponding to the passing rate and the expected passing rate, and recording the result into the target table.
Optionally, the scene object selecting module 200 is configured to select a target scene object with a set number of classes from multiple classes of scene objects corresponding to the current scene, and specifically includes:
in the occurrence of the current scene object of a cycle, selecting current target scene objects with set number of classes from multiple types of scene objects corresponding to the current scene, and enabling the types of the target scene objects selected each time in the cycle to be different, wherein all the types of the scene objects corresponding to the current scene in the cycle can be selected as the target scene objects; wherein a loop includes the occurrences of the scene object for a specified number of times.
Optionally, in another alternative implementation, fig. 10 shows another structural block diagram of the scene object control apparatus provided in the embodiment of the present invention, and in combination with fig. 8 and fig. 10, the apparatus may further include:
the script calling module 600 is configured to call a scene object control script, where the scene object control script records a scene object control logic of at least one stage, the scene object control logic of one stage records a corresponding number of user operations for starting the stage, the interval operation number for selecting a target scene object in the stage is the number of target scene objects selected in the stage, and the target occurrence weight after the target scene object in the stage is promoted is the weight.
Optionally, the scene object selecting module 200 is configured to select a target scene object with a set number of classes from multiple classes of scene objects corresponding to the current scene, and specifically includes:
and determining the current stage of the current stage according to the operated times of the user, and selecting various current-stage target scene objects of the corresponding number of the current stage from the various types of scene objects corresponding to the current stage according to the scene object control logic corresponding to the current stage if the interval operation times of the current-stage target scene objects selected last time is determined to be reached and the interval operation times of the current-stage target scene objects selected corresponding to the current stage are determined.
Optionally, the weight determining module 300 is configured to adjust appearance weights of various target scene objects, and determine the adjusted target appearance weights of various target scene objects, and specifically includes:
and adjusting the appearance weight of each selected current secondary target scene object to be the corresponding target appearance weight of the current stage according to the scene object control logic corresponding to the current stage.
Optionally, if the current scene is composed of multiple rounds, and a round includes multiple occurrences of scene objects, the scene object control logic corresponding to a stage further records the number of times of limiting the target occurrence weight obtained by adjustment in a round of the stage; correspondingly, fig. 11 shows a further structural block diagram of the scene object control apparatus according to the embodiment of the present invention, and in combination with fig. 10 and fig. 11, the apparatus may further include:
the number control module 700 is configured to, at the current stage, adjust the number of times of limiting the target appearance weight in a round according to the scene object control logic record corresponding to the current stage, and control the number of times of adjusting the appearance weight of the target scene object to the target appearance weight in each round of the current stage.
Optionally, after determining the target occurrence weights of various current secondary target scene objects, the embodiment of the present invention may determine the occurrence probability of various current secondary target scene objects and control the occurrence of the scene objects in the current scene through a randomly generated sequence;
optionally, fig. 12 is a block diagram illustrating still another structure of a scene object control apparatus according to an embodiment of the present invention, and in combination with fig. 9 and 12, the apparatus may further include:
a sequence processing module 800, configured to randomly generate a sequence, where the sequence indicates various scene objects that appear corresponding to the current scene, and the appearance weight of each scene object is an initial appearance weight; after the target appearance weights of various current secondary target scene objects are determined, the appearance weights of various current secondary target scene objects in the sequence are adjusted to be target appearance weights, and appearance weights of non-current secondary target scene objects in the sequence are maintained to be initial appearance weights, so that the sequence after appearance weight adjustment is obtained.
Alternatively, the sequence processing module 800 may be adapted to the structure shown in fig. 9.
Optionally, after obtaining the sequence after the appearance weight adjustment, the probability determining and controlling module 400 is configured to determine the appearance probability of each type of target scene object according to the target appearance weight of each type of target scene object, and specifically includes:
determining the occurrence probability of various current secondary target scene objects in the sequence according to the occurrence weights of various current secondary target scene objects in the sequence after the adjustment of the occurrence weights;
optionally, the probability determining and controlling module 400 is configured to control each type of target scene object to appear in the current scene with a corresponding appearance probability, and specifically includes:
and in the current scene object occurrence, various current target scene objects in the control sequence appear in the current scene according to the corresponding occurrence probability.
Optionally, the meeting of the difficulty adjustment condition by the current scenario may include: the failure times of the user in the current scene reach the preset times; and if the user exits the current scene in the midway and the progress of the current scene completed by the user is not less than the preset progress, accumulating the failure times of the user in the current scene once.
The scene object control apparatus provided in the embodiment of the present invention may be applied to an electronic device, and a hardware structure of the electronic device may be as shown in fig. 13, where the hardware structure includes: at least one processor 1, at least one communication interface 2, at least one memory 3 and at least one communication bus 4;
in the embodiment of the present invention, the number of the processor 1, the communication interface 2, the memory 3, and the communication bus 4 is at least one, and the processor 1, the communication interface 2, and the memory 3 complete mutual communication through the communication bus 4;
alternatively, the processor 1 may be a central processing unit CPU, or an application Specific Integrated circuit asic, or one or more Integrated circuits configured to implement embodiments of the present invention.
The memory 3 may comprise a high-speed RAM memory, and may further comprise a non-volatile memory (non-volatile memory), such as at least one disk memory.
In the embodiment of the present invention, the memory may store a program, and the processor may implement the steps of the scene object control method described above when calling the program stored in the memory.
Optionally, the program may be for:
responding to the operation of a user, and loading a current scene;
if the current scene meets the difficulty adjustment condition, selecting a target scene object with a set number of classes from multiple classes of scene objects corresponding to the current scene;
adjusting the appearance weight of each target scene object, and determining the adjusted target appearance weight of each target scene object;
and determining the occurrence probability of each target scene object according to the target occurrence weight of each target scene object, and controlling each target scene object to appear in the current scene according to the corresponding occurrence probability.
Alternatively, the detailed function and the extended function of the program may be described with reference to the corresponding sections above.
Embodiments of the present invention further provide a storage medium, such as a memory, where the storage medium may store a program suitable for being executed by a processor, and when the program is executed by the processor, the method may implement the steps of the scene object control method described above.
Optionally, the program may be for:
responding to the operation of a user, and loading a current scene;
if the current scene meets the difficulty adjustment condition, selecting a target scene object with a set number of classes from multiple classes of scene objects corresponding to the current scene;
adjusting the appearance weight of each target scene object, and determining the adjusted target appearance weight of each target scene object;
and determining the occurrence probability of each target scene object according to the target occurrence weight of each target scene object, and controlling each target scene object to appear in the current scene according to the corresponding occurrence probability.
Alternatively, the detailed function and the extended function of the program may be described with reference to the corresponding sections above.
The embodiments in the present description are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (15)

1. A scene object control method, comprising:
responding to the operation of a user, and loading a current scene;
if the current scene meets the difficulty adjustment condition, selecting a target scene object with a set number of classes from multiple classes of scene objects corresponding to the current scene;
determining the failure times of the user in the current scene and the appearance weight adjustment results corresponding to the type number of the scene objects corresponding to the current scene according to the predetermined failure times and the appearance weight adjustment results corresponding to the type number of the scene objects corresponding to the current scene, and obtaining the adjusted target appearance weights of various target scene objects;
and determining the occurrence probability of each type of target scene object according to the target occurrence weight of each type of target scene object, and controlling each type of target scene object to appear in the current scene according to the corresponding occurrence probability.
2. The scene object control method according to claim 1, wherein the occurrence weight adjustment result corresponding to each predetermined number of failures and each number of types of scene objects is recorded in a form of a target table.
3. The scene object control method according to claim 2, further comprising:
simulating a user to challenge each scene, and analyzing each failure frequency and the passing rate corresponding to each occurrence weight adjustment result of the target scene object under the scene object type number corresponding to each scene to obtain the scene object type number corresponding to each scene, each failure frequency and the passing rate corresponding to each occurrence weight adjustment result of the target scene object;
and taking the appearance weight adjustment result corresponding to each failure frequency and each scene object type number corresponding to the passing rate and the expected passing rate, and recording the result into the target table.
4. The method as claimed in claim 2, wherein said selecting a target scene object with a set number of classes from multiple classes of scene objects corresponding to the current scene comprises:
in the occurrence of the current scene object of a cycle, selecting current target scene objects with set number of classes from multiple types of scene objects corresponding to the current scene, and enabling the types of the target scene objects selected each time in the cycle to be different, wherein all the types of the scene objects corresponding to the current scene in the cycle can be selected as the target scene objects; wherein a loop includes the occurrences of the scene object for a specified number of times.
5. The method of claim 1, wherein if the current scene meets a difficulty adjustment condition, the method further comprises:
and calling a scene object control script, wherein the scene object control script records scene object control logic of at least one stage, the scene object control logic of one stage records corresponding user operation times for starting the stage, interval operation times for selecting a target scene object in the stage, the number of the selected target scene object in the stage, and the target appearance weight after the target scene object in the stage is improved.
6. The method as claimed in claim 5, wherein said selecting a target scene object with a set number of classes from multiple classes of scene objects corresponding to the current scene comprises:
determining the current stage of the current operation according to the operation times of the user, and controlling logic according to the scene object corresponding to the current stage, wherein if the interval operation times of the current operation from the last selected target scene object is determined to be reached, the interval operation times of the current stage corresponding to the selected target scene object;
then, various current secondary target scene objects of the corresponding number of the current stage are selected from the multiple types of scene objects corresponding to the current scene.
7. The method of claim 6, wherein the adjusting the appearance weights of the various types of target scene objects, and the determining the adjusted target appearance weights of the various types of target scene objects comprises:
and adjusting the appearance weight of each selected current secondary target scene object to be the corresponding target appearance weight of the current stage according to the scene object control logic corresponding to the current stage.
8. The scene object control method according to claim 5, wherein if the current scene is composed of a plurality of rounds, and a round includes a plurality of occurrences of the scene object, the scene object control logic corresponding to a stage further records a number of times of adjusting the limit of the target occurrence weight in a round of the stage; the method further comprises the following steps:
in the current stage, the limiting times of the target appearance weight are adjusted and obtained in a round according to the scene object control logic record corresponding to the current stage, and the times of adjusting the appearance weight of the target scene object to be the target appearance weight in each round of the current stage are controlled.
9. The scene object control method according to claim 4 or 6, characterized by further comprising:
randomly generating a sequence, wherein the sequence indicates various scene objects which correspondingly appear in the current scene, and the appearance weight of the various scene objects is the initial appearance weight;
after determining the target appearance weights of various current secondary target scene objects, adjusting the appearance weights of various current secondary target scene objects in the sequence to be target appearance weights, and maintaining the appearance weights of non-current secondary target scene objects in the sequence to be initial appearance weights to obtain a sequence with adjusted appearance weights;
the determining the occurrence probability of each type of target scene object according to the target occurrence weight of each type of target scene object includes:
determining the occurrence probability of various current secondary target scene objects in the sequence according to the occurrence weights of various current secondary target scene objects in the sequence after the adjustment of the occurrence weights;
the controlling of the various types of target scene objects to appear in the current scene with the corresponding probability of occurrence includes:
and in the current scene object occurrence, various current target scene objects in the control sequence appear in the current scene according to the corresponding occurrence probability.
10. The scene object control method according to claim 1, further comprising:
judging whether the failure times of the user in the current scene reach the preset times or not;
if the failure times of the user in the current scene reach the preset times, determining that the current scene meets the difficulty adjustment condition; and if the user exits the current scene in the midway and the progress of the current scene completed by the user is not less than the preset progress, accumulating the failure times of the user in the current scene once.
11. A scene object control apparatus, comprising:
the scene loading module is used for responding to the operation of a user and loading the current scene;
a scene object selection module, configured to select a target scene object with a set number of classes from multiple classes of scene objects corresponding to the current scene if the current scene meets the difficulty adjustment condition;
the weight determining module is used for determining the failure times of the user in the current scene and the appearance weight adjusting results corresponding to the type number of the scene objects corresponding to the current scene according to the predetermined failure times and the appearance weight adjusting results corresponding to the type number of the scene objects corresponding to the current scene, so as to obtain the adjusted target appearance weights of various target scene objects;
and the probability determining and controlling module is used for determining the occurrence probability of each type of target scene object according to the target occurrence weight of each type of target scene object and controlling each type of target scene object to appear in the current scene according to the corresponding occurrence probability.
12. The scene object control device according to claim 11, wherein the appearance weight adjustment result corresponding to each predetermined number of failures and each number of types of scene objects is recorded in a form of a target table.
13. The apparatus as claimed in claim 12, wherein the scene object selecting module is configured to select a target scene object with a set number of classes from multiple classes of scene objects corresponding to the current scene, and specifically includes:
in the occurrence of the current scene object of a cycle, selecting current target scene objects with set number of classes from multiple types of scene objects corresponding to the current scene, and enabling the types of the target scene objects selected each time in the cycle to be different, wherein the various types of scene objects corresponding to the current scene in the cycle can be selected as the target scene objects; wherein a loop includes the occurrences of the scene object for a specified number of times.
14. An electronic device, comprising: at least one memory and at least one processor; the memory stores a program which, when invoked by the processor, performs the steps of the scene object control method according to any one of claims 1 to 10.
15. A storage medium characterized in that the storage medium stores a program adapted to be executed by a processor, the program, when executed by the processor, implementing the steps of the scene object control method according to any one of claims 1 to 10.
CN201711330937.5A 2017-12-13 2017-12-13 Scene object control method and device, electronic equipment and storage medium Active CN108031120B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711330937.5A CN108031120B (en) 2017-12-13 2017-12-13 Scene object control method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711330937.5A CN108031120B (en) 2017-12-13 2017-12-13 Scene object control method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN108031120A CN108031120A (en) 2018-05-15
CN108031120B true CN108031120B (en) 2020-10-16

Family

ID=62102774

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711330937.5A Active CN108031120B (en) 2017-12-13 2017-12-13 Scene object control method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN108031120B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111841011A (en) * 2019-04-30 2020-10-30 北京达佳互联信息技术有限公司 Game level configuration information generation method, system, server and storage medium
CN111124582B (en) * 2019-12-26 2023-04-07 珠海金山数字网络科技有限公司 Icon calling method and device
CN113041614B (en) * 2019-12-26 2023-05-05 世熠网络科技(上海)有限公司 Game object display processing method and device in game and readable storage medium
CN113384900B (en) * 2021-07-06 2022-09-30 在线途游(北京)科技有限公司 Scene control method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105597320A (en) * 2015-12-15 2016-05-25 网易(杭州)网络有限公司 Game level configuration method and device and terminal
CN105871640A (en) * 2016-06-07 2016-08-17 腾讯科技(深圳)有限公司 Level configuration data configuration method and system and game server
US9526982B2 (en) * 2012-09-17 2016-12-27 King.Com Ltd. Method for implementing a computer game
CN106362393A (en) * 2015-07-20 2017-02-01 新游网络科技有限公司 Method, apparatus, and recording medium for controlling game
CN106730812A (en) * 2016-11-30 2017-05-31 吉林大学 A kind of game regulator control system estimated based on multi-physiological-parameter mood amount and regulation and control method
CN107376353A (en) * 2017-07-14 2017-11-24 腾讯科技(深圳)有限公司 Outpost of the tax office collocation method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9526982B2 (en) * 2012-09-17 2016-12-27 King.Com Ltd. Method for implementing a computer game
CN106362393A (en) * 2015-07-20 2017-02-01 新游网络科技有限公司 Method, apparatus, and recording medium for controlling game
CN105597320A (en) * 2015-12-15 2016-05-25 网易(杭州)网络有限公司 Game level configuration method and device and terminal
CN105871640A (en) * 2016-06-07 2016-08-17 腾讯科技(深圳)有限公司 Level configuration data configuration method and system and game server
CN106730812A (en) * 2016-11-30 2017-05-31 吉林大学 A kind of game regulator control system estimated based on multi-physiological-parameter mood amount and regulation and control method
CN107376353A (en) * 2017-07-14 2017-11-24 腾讯科技(深圳)有限公司 Outpost of the tax office collocation method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
三消游戏的难度动态调整;匿名;《三消游戏的难度动态调整》;GamesRes游资网;20150526;全文,图1,图2 *

Also Published As

Publication number Publication date
CN108031120A (en) 2018-05-15

Similar Documents

Publication Publication Date Title
CN108031120B (en) Scene object control method and device, electronic equipment and storage medium
US11123642B2 (en) Method for implementing user matching and related device
CN110062271B (en) Scene switching method, device, terminal and storage medium
CN110018799B (en) Storage pool PG (packet data) master determination method, device, equipment and readable storage medium
CN106657127B (en) Information processing method and device and server
US20170163902A1 (en) Method and electronic device for generating high dynamic range image
US20130184040A1 (en) Server device, non-transitory computer-readable storage medium, and game system
CN111111215A (en) Game matching method, device, server and readable storage medium
CN108289246B (en) Data processing method, data processing apparatus, storage medium, and electronic apparatus
CN112619158A (en) Matching method and device of virtual event, storage medium and electronic device
CN111416765A (en) Interactive message processing method and device
US20170173469A1 (en) Program and system
CN110505313B (en) Super node selection method, device and equipment
CN108014499B (en) Application parameter adjusting method and device
CN113069761B (en) Method and device for displaying virtual characters in game scene and electronic equipment
CN112148393A (en) User team forming method based on social platform mini-game
CN113648650A (en) Interaction method and related device
US10427041B2 (en) Program and system
CN113457158B (en) Virtual character configuration method and device, storage medium and electronic device
CN108449441A (en) The IP address jump method and device of software defined network SDN
CN109395380A (en) Game data processing method and system, server and computer readable storage medium
CN114404967A (en) Interaction control method and device, computer equipment and storage medium
CN110215699B (en) Game control method, device, server and readable storage medium
CN113209637A (en) Game team forming method and device, electronic equipment and storage medium
CN113769407B (en) Control instruction generation method and device, storage medium and electronic device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant