Virtual object layout method and device, electronic equipment and storage medium
By displaying layout controls and recommended layout identifiers on the graphical user interface, an intuitive and efficient virtual object layout method is provided, which solves the problems of inefficiency and error-prone traditional layout methods, achieves more efficient and convenient layout operations, and improves the gaming experience.
Patent Information
- Application Number
- CN202510506199.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-21
- Publication Date
- 2025-06-06
AI Technical Summary
The traditional virtual object layout method relies on the players' subjective judgment and cumbersome operations, resulting in low layout efficiency and error-prone, making it difficult to meet the high requirements of game experience and operation convenience.
Provides an intuitive and efficient way to layout virtual objects by displaying layout controls and recommended layout identifiers on the graphical user interface. Players can drag the target virtual object to the first target area through simple movement operations and automatically display the recommended layout position in the battle area.
The layout process is simplified, the operation threshold is lowered, and the layout accuracy and efficiency is improved. Players can quickly build a layout plan that meets the game strategy and tactical needs, improving the game experience and operation convenience.
Smart Images

Figure CN120094208A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer application technology, and in particular to a layout method, device, electronic device and storage medium for virtual objects. Background Art
[0002] In strategy or turn-based games based on a graphical user interface (GUI), the layout and position of virtual objects often have a significant impact on the outcome of the game. Players need to arrange the positions of virtual objects (such as chess pieces, characters, etc.) in the battle area based on multiple factors such as game strategy, enemy layout, and virtual object properties.
[0003] However, the traditional layout method has many shortcomings. The traditional layout method often relies on the subjective judgment of players and cumbersome operations, resulting in inefficient and error-prone layout, which is difficult to meet the high requirements for gaming experience and operational convenience. Summary of the invention
[0004] In view of this, embodiments of the present application provide a virtual object layout method, device, electronic device, and storage medium, which can improve the layout efficiency of virtual objects.
[0005] The technical solution of the embodiment of the present application is implemented as follows:
[0006] In a first aspect, an embodiment of the present application provides a method for arranging virtual objects, wherein a preparation area and a battle area are displayed on a graphical user interface, wherein virtual objects located in the preparation area are preparation virtual objects, and virtual objects located in the battle area are battle virtual objects, and the method comprises:
[0007] Displaying a layout control on the graphical user interface; wherein the layout control corresponds to a first target area;
[0008] In response to a movement operation on a target virtual object, controlling the target virtual object to follow the movement operation and move toward the first target area; wherein the target virtual object is the battle preparation virtual object or the battle virtual object;
[0009] In response to the target virtual object being located at or partially located at the first target area, displaying a first recommended layout identifier in the battle area; wherein the first recommended layout identifier is used to indicate a first recommended layout position of the target virtual object in the battle area;
[0010] In response to a first triggering operation of the target virtual object in the first target area, the target virtual object is placed at the first recommended layout position.
[0011] In a second aspect, an embodiment of the present application further provides a layout device for virtual objects, which displays a preparation area and a battle area on a graphical user interface, wherein virtual objects located in the preparation area are preparation virtual objects, and virtual objects located in the battle area are battle virtual objects, and the device comprises:
[0012] A first display module, configured to display a layout control on the graphical user interface; wherein the layout control corresponds to a first target area;
[0013] A control module, configured to respond to a movement operation on a target virtual object and control the target virtual object to follow the movement operation and move toward the first target area; wherein the target virtual object is the battle preparation virtual object or the battle virtual object;
[0014] A second display module is used to display a first recommended layout mark in the battle area in response to the target virtual object being located or partially located in the first target area; wherein the first recommended layout mark is used to indicate a first recommended layout position of the target virtual object in the battle area;
[0015] The placement module is configured to place the target virtual object at the first recommended layout position in response to a first triggering operation of the target virtual object in the first target area.
[0016] In a third aspect, an embodiment of the present application further provides an electronic device, comprising: a processor, a storage medium and a bus, wherein the storage medium stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor communicates with the storage medium through the bus, and the processor executes the machine-readable instructions to execute the virtual object layout method described in any one of the first aspects.
[0017] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the method for laying out virtual objects described in any one of the first aspects is executed.
[0018] The embodiments of the present application have the following beneficial effects:
[0019] Through the layout controls and recommended layout logos on the graphical user interface, an intuitive and efficient virtual object layout method is provided. The embodiment of the present application allows the target virtual object to be dragged to the first target area through a simple move operation, and the recommended layout position is automatically displayed in the battle area. This not only simplifies the layout process and lowers the operating threshold, but also improves the accuracy and efficiency of the layout. Players only need to trigger the operation in the first target area to accurately place the target virtual object in the recommended layout position, thereby quickly building a layout plan that meets the game strategy and tactical requirements. This method greatly improves the player's gaming experience and operational convenience, and improves the layout efficiency of virtual objects. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0021] Figure 1 It is a flowchart of steps S101-S104 provided in an embodiment of the present application;
[0022] Figure 2a This is one of the layout interface diagrams of the virtual object provided in the embodiment of the present application;
[0023] Figure 2b This is the second layout interface diagram of the virtual object provided in the embodiment of the present application;
[0024] Figure 3 It is a flowchart of steps S301-S302 provided in an embodiment of the present application;
[0025] Figure 4 It is a flowchart of steps S401-S402 provided in an embodiment of the present application;
[0026] Figure 5 This is the third layout interface diagram of the virtual object provided in the embodiment of the present application;
[0027] Figure 6a This is one of the overall layout adjustment interface diagrams provided in the embodiment of the present application;
[0028] Figure 6b This is the second overall layout adjustment interface diagram provided in the embodiment of the present application;
[0029] Figure 6c This is the third overall layout adjustment interface diagram provided by the embodiment of the present application.
[0030] Figure 7 is a schematic diagram of the structure of a layout device for virtual objects provided in an embodiment of the present application;
[0031] Figure 8 It is a schematic diagram of the composition structure of the electronic device provided in the embodiment of the present application. DETAILED DESCRIPTION
[0032] To make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. It should be understood that the drawings in the present application only serve the purpose of explanation and description and are not used to limit the scope of protection of the present application. In addition, it should be understood that the schematic drawings are not drawn in real proportion. The flowchart used in this application shows the operations implemented according to some embodiments of the present application. It should be understood that the operations of the flowchart can be implemented out of sequence, and the steps without logical context can be reversed in order or implemented simultaneously. In addition, those skilled in the art can add one or more other operations to the flowchart under the guidance of the content of the present application, or remove one or more operations from the flowchart.
[0033] In the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.
[0034] In addition, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.
[0035] In the following description, the terms "first\second\third" involved are merely used to distinguish similar objects and do not represent a specific ordering of the objects. It can be understood that "first\second\third" can be interchanged with a specific order or sequence where permitted, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein.
[0036] It should be noted that the term "comprising" will be used in the embodiments of the present application to indicate the existence of the features declared thereafter, but does not exclude the addition of other features.
[0037] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are for the purpose of describing the embodiments of this application and are not intended to limit this application.
[0038] See also Figure 1 , Figure 1 It is a flow chart of steps S101-S104 of the virtual object layout method provided in an embodiment of the present application, wherein a preparation area and a battle area are displayed on a graphical user interface, virtual objects located in the preparation area are preparation virtual objects, and virtual objects located in the battle area are battle virtual objects, and the method includes steps S101-S104.
[0039] In step S101, a layout control is displayed on the graphical user interface; wherein the layout control corresponds to a first target area.
[0040] In some embodiments, the layout control is an interactive element, such as a button, a slider, or a drag area, used to guide the user to move the virtual object from one area to another area. The position and size of the control can be designed according to the overall layout of the graphical user interface and the user's operating habits to ensure easy discovery and operation. The first target area corresponding to the layout control is the destination to which the user intends to move the virtual object. This area can be a highlighted area or have a specific color or shape for easy user recognition.
[0041] For examples, see Figure 2a , Figure 2a This is one of the layout interface diagrams of the virtual object provided in the embodiment of the present application, such as Figure 2a As shown, a battle preparation area 201 and a battle area 202 are displayed on the graphical user interface. The virtual objects located in the battle preparation area 201 are battle preparation virtual objects, and the virtual objects located in the battle area 202 are battle virtual objects. A layout control 203 is also displayed in the graphical user interface. In the embodiment of the present application, the layout control 203 corresponds to a circular "smart area".
[0042] In step S102, in response to a movement operation on a target virtual object, the target virtual object is controlled to move toward the first target area following the movement operation; wherein the target virtual object is the preparation virtual object or the battle virtual object.
[0043] In some embodiments, the movement operation can be dragging, sliding, or any other form of user input to indicate the movement path of the virtual object. When the user starts to move the virtual object, the graphical user interface provides dynamic feedback, such as a cursor, a trailing shadow, or a movement path following the mouse or finger, to indicate that the virtual object is moving.
[0044] For examples, please see Figure 2a ,like Figure 2a As shown, the user can move the target virtual object 204 through a touch screen gesture. In the embodiment of the present application, the moving direction of the target virtual object 204 is the direction of the arrow.
[0045] In step S103, in response to the target virtual object being located at or partially located at the first target area, a first recommended layout identifier is displayed in the battle area; wherein the first recommended layout identifier is used to indicate a first recommended layout position of the target virtual object in the battle area.
[0046] In some embodiments, the recommended layout identifier can be an icon, a text prompt, or a visual indicator, which is used to display one or more recommended layout positions in the battle area. The recommended layout position can be determined based on tactical considerations, attributes of the virtual object, or battle information. The system intelligently calculates and displays the recommended layout identifier based on these factors, and as the user moves the virtual object or the situation in the battle area changes, the recommended layout identifier will be dynamically updated to reflect the new optimal layout position.
[0047] For examples, see Figure 2b , Figure 2b This is the second layout interface diagram of the virtual object provided in the embodiment of the present application, such as Figure 2b As shown, when the target virtual object is located in the first target area corresponding to the layout control 203, the first recommended layout mark will be displayed in the battle area 202, indicating that the target virtual object is in the first recommended layout position 205 of the battle area. The first recommended layout mark can be a highlight display effect, an indicator mark, a prompt message, etc. for the first recommended layout position 205. Figure 2b In FIG. 1 , the first recommended layout identifier is indicated by hatching.
[0048] In step S104, in response to a first triggering operation of the target virtual object in the first target area, the target virtual object is placed at the first recommended layout position.
[0049] In some embodiments, the triggering operation may be releasing a mouse button, clicking a confirmation button, or any other form of user input to indicate that the virtual object should be placed at the recommended layout position. After successful placement, the system provides visual or auditory feedback, such as highlighting, animation, or sound effects, to confirm that the virtual object has been successfully placed at the recommended layout position.
[0050] Please continue to see Figure 2b ,like Figure 2bAs shown, when the user releases the grip and the target virtual object is located at or partially located at the first target area, the target virtual object 204 will be placed in the first recommended layout position 205 of the battle area 202 .
[0051] The above method simplifies user operations and improves the convenience and efficiency of layout adjustment; at the same time, through intelligent recommendation of layout positions, it enhances game strategy and enriches the player experience.
[0052] In some embodiments, see Figure 3 , Figure 3 It is a flow chart of steps S301-S302 provided in an embodiment of the present application. When the target virtual object is controlled to follow the movement operation to move toward the first target area, the method further includes steps S301-S302, which will be described in combination with each step.
[0053] In step S301, in response to the target virtual object moving in a direction close to the first target area, a second target area is displayed; wherein the second target area is obtained by enlarging the first target area.
[0054] In step S302, the first target area is updated based on the second target area.
[0055] Here, when the target virtual object starts to move in a direction close to the first target area, the action of displaying the second target area is triggered. The second target area is obtained by enlarging the first target area, so the second target area is visually larger than the first target area, so that the user can more easily move the target virtual object into the second target area. The second target area can be displayed in a pop-up window, magnifying glass effect, dynamic zoom or other visual enhancement forms, and its position and size are designed based on the overall layout of the graphical user interface and the user's operating habits to ensure that it does not block important information or interfere with the user's operation.
[0056] While or after displaying the second target area, the system will update the first target area based on the information of the second target area. The update process can be dynamic, that is, as the target virtual object continues to move toward the first target area, the second target area may continue to be enlarged or adjusted, thereby driving the continuous update of the first target area.
[0057] In the above manner, when the target virtual object is controlled to move toward the first target area, the accuracy of the layout and the user experience can be significantly enhanced by displaying the enlarged second target area and updating the first target area based on the enlarged second target area.
[0058] In some embodiments, see Figure 4 , Figure 4It is a flowchart of steps S401-S402 provided in an embodiment of the present application. The method also includes steps S401-S402, which will be described in combination with each step.
[0059] In step S401, if the first recommended layout position is occupied, the first recommended layout identifier and the second recommended layout identifier are displayed simultaneously in the battle area; wherein the second recommended layout identifier is different from the display state of the first recommended layout identifier, and the second recommended layout identifier is used to indicate that the target virtual object is at the second recommended layout position in the battle area, and the recommendation degree of the second recommended layout position is less than or equal to the first recommended layout position.
[0060] In step S402, in response to a first triggering operation of the target virtual object in the first target area, the target virtual object is placed at the second recommended layout position.
[0061] Here, after displaying the first recommended layout identifier, the system will detect whether the position is occupied by other virtual objects. Occupancy may mean that there are already one or more virtual objects at the position, or the position conflicts with the layout of existing virtual objects.
[0062] If the first recommended layout position is occupied, the system will display the first recommended layout logo and the second recommended layout logo in the battle area at the same time. The two logos are different in display status, such as color, brightness, border or animation effect, so that users can distinguish them.
[0063] The second recommended layout identifier is used to indicate an alternative layout position whose recommendation level is less than or equal to the first recommended layout position, because the second position is tactically inferior or due to other factors such as space limitations.
[0064] At this time, although the first recommended layout position is occupied, the user can still perform the first trigger operation in the first target area. At this time, the system will respond to this operation, but place the target virtual object in the second recommended layout position instead of the first recommended layout position.
[0065] For examples, see Figure 5 , Figure 5 This is the third layout interface diagram of the virtual object provided in the embodiment of the present application, such as Figure 5As shown, the first recommended layout position 205 has been occupied by the virtual object 206. At this time, the first recommended layout identifier and the second recommended layout identifier will be displayed in the battle area 202 at the same time, and the prompt message "The optimal position is occupied, automatically select the suboptimal position" will be displayed. The second recommended layout identifier indicates the second recommended layout position 207. In the embodiment of the present application, the first recommended layout identifier and the second recommended layout identifier are distinguished by hatching lines in different directions. The optimal position is the first recommended layout position 205, and the suboptimal position is the second recommended layout position 207.
[0066] When the user releases the grip, and the target virtual object is located at or partially located at the first target area, the target virtual object 204 will be placed at the second recommended layout position 207 of the battle area 202 instead of the first recommended layout position 205 .
[0067] The above approach further enhances the flexibility of virtual object layout and user experience by introducing a function for handling the situation where a recommended layout position is occupied and providing an alternative recommended layout position.
[0068] In some embodiments, the first recommended layout position is determined by:
[0069] Acquire current battle information, and determine at least one battle feature based on the current battle information; wherein each of the at least one battle feature represents a factor affecting the layout position of the target virtual object, and the at least one battle feature includes at least one of the virtual object attributes of the enemy / our side, the layout information of the enemy / our side, the resource information of the enemy / our side, the tactical information, the game progress feature, and the game rule feature;
[0070] The first recommended layout position is determined based on the at least one battle feature.
[0071] Here, the system will collect various key information in the battle in real time or on demand. This information forms the basis for layout decisions. The collected information covers the virtual object attributes (bonds, star ratings) of both sides, layout information (such as the layout position of the battle virtual objects), resource information (such as currency amount), tactical information (such as expected bonds, lineups), as well as game progress characteristics and game rule characteristics (such as venue gain, stage gain). Based on the collected battle information, the system will extract a series of battle features, which are specific manifestations of battle information and are used to guide layout decisions. Each battle feature reflects an important factor that affects the layout position of the target virtual object.
[0072] The system will analyze the characteristics of the battle and calculate the first recommended layout position based on it. This position aims to maximize the effectiveness of the target virtual object in the battle, while taking into account multiple dimensions such as tactical requirements, resource allocation, and enemy threats. It should be noted that the recommended position may not be the only one, and the system may provide multiple feasible layout solutions and rank them according to their pros and cons.
[0073] The above method determines the first recommended layout position by comprehensively considering the current battle information and multiple battle characteristics, which significantly improves the intelligence level and tactical flexibility of layout decisions.
[0074] In some embodiments, determining the first recommended layout position based on the at least one battle feature includes:
[0075] Determine, based on historical battle data, the historical frequency and / or historical winning rate of the target virtual object being located at each layout position in the battle area under the at least one battle feature;
[0076] The first recommended layout position is determined from each layout position based on the historical frequency and / or historical winning rate.
[0077] Here, the system will collect and store a large amount of historical battle data, which covers the performance of the target virtual object in each layout position in the battle area under different battle characteristics. Historical data includes the historical frequency (i.e., the number of times the position has been selected) and the historical win rate (i.e., the proportion of wins achieved at this position) of each layout position. The system will extract the characteristics of the current battle and match them with the characteristics in the historical data. Through matching, the system can filter out historical battle data that is similar or identical to the current battle characteristics for subsequent analysis. For the filtered historical data, the system will calculate the historical frequency and / or historical win rate of the target virtual object in each layout position. These indicators reflect the popularity and success probability of each layout position under similar battle characteristics.
[0078] Based on the calculated historical frequency and / or historical win rate, the system will sort or score all layout positions, and the sorting or scoring results will be used to determine the first recommended layout position. Usually, the position with the highest historical win rate or the highest historical frequency (when the win rates are similar) will be selected as the first recommended layout position.
[0079] The above method determines the first recommended layout position by combining the historical performance of the target virtual object under specific battle characteristics, which not only improves the intelligence level of the layout, but also enhances the adaptability and efficiency of the decision-making.
[0080] In some embodiments, the second recommended layout position is determined by:
[0081] The layout position closest to the first recommended layout position is determined as the second recommended layout position.
[0082] Here, in the battle area, the system defines a distance metric to calculate the distance between different layout positions. This metric can be based on Euclidean distance, Manhattan distance, or other metric methods suitable for the scenario.
[0083] Once the first recommended layout position is determined, the system will traverse all other layout positions in the battle area and calculate the distance between them and the first recommended layout position. During the traversal process, the system will record the layout position closest to the first recommended layout position. After searching and calculating, the system will determine the layout position closest to the first recommended layout position as the second recommended layout position. This position is used as an alternative and can be used to place the target virtual object when the first recommended layout position is occupied or unavailable.
[0084] The above-mentioned manner provides a simple, effective and highly adaptable alternative solution determination strategy by determining the layout position closest to the first recommended layout position as the second recommended layout position.
[0085] In some embodiments, determining the layout position closest to the first recommended layout position as the second recommended layout position includes:
[0086] determining a layout position that is closest to the first recommended layout position and located in the same row as the second recommended layout position;
[0087] If there is no layout position that can be laid out in the same row, determine a second recommended layout position that is closest to the first recommended layout position from adjacent rows; wherein the adjacent rows are determined based on the object type of the target virtual object, when the object type is a first type, the adjacent row is the row after the row where the first recommended layout position is located, and when the object type is a second type, the adjacent row is the row before the row where the first recommended layout position is located, and the first type is different from the second type.
[0088] Here, the system first checks whether there are other positions that can be laid out (i.e., positions that are not occupied and meet the layout rules) in the row where the first recommended layout position is located. If such positions exist, the system determines the one of these positions that is closest to the first recommended layout position as the second recommended layout position.
[0089] If there are no other positions available for layout in the row where the first recommended layout position is located, the system will turn to the adjacent rows for searching. The adjacent rows are determined based on the type of the target virtual object. For different types of virtual objects, the selection of adjacent rows is different. For example, when the target virtual object is an offensive type, the adjacent row may be selected as the row after the row where the first recommended layout position is located, so as to carry out subsequent attacks or support; and when the target virtual object is a defensive type, the adjacent row may be selected as the previous row, so as to better defend or cover.
[0090] After determining the adjacent row, the system will traverse all possible layout positions of the row, calculate their distances from the first recommended layout position, and select a position closest to the first recommended layout position as the second recommended layout position.
[0091] The above method provides an alternative solution determination strategy that takes into account the close distance requirements and combines the row structure and virtual object type by determining the layout position that is closest to the first recommended layout position and is located in the same row (if possible) or in an adjacent row determined based on the virtual object type as the second recommended layout position.
[0092] In some embodiments, the method further comprises:
[0093] In response to a second trigger operation on the first target area, if the number of the virtual fighting objects in the fighting area has reached an upper limit, placing the virtual fighting objects in the fighting area according to a first layout rule; wherein the first layout rule represents a first overall recommended layout position of the virtual fighting objects;
[0094] If the number of the combat virtual objects in the combat area has not reached an upper limit, a specific virtual object in the preparation area is determined as a combat virtual object, and the combat virtual object is placed in the combat area according to a first layout rule; wherein the specific virtual object is a recommended virtual object.
[0095] Here, when the user or the system automatically triggers the second trigger operation related to the first target area (for example, clicking a button or meeting a specific condition), the system will start processing the placement logic of the virtual object.
[0096] The system will check whether the number of current combat virtual objects in the combat area has reached the preset upper limit. This upper limit is determined based on the size of the combat area, game rules, or other factors. If the number of combat virtual objects has reached the upper limit, the system will place new combat virtual objects in the combat area according to the first layout rule. The first layout rule here is a preset overall recommended layout plan designed to maximize combat effectiveness or meet specific tactical needs. When placing, the system will consider factors such as the location, type, and attributes of existing combat virtual objects to ensure that the newly placed virtual objects can effectively cooperate with other virtual objects.
[0097] If the number of virtual objects in the battle has not reached the upper limit, the system will first select a specific virtual object from the preparation area as the virtual object for the battle. This specific virtual object is a recommended virtual object determined based on factors such as historical win rate and match characteristics. After selecting a specific virtual object, the system will place it in the appropriate position in the battle area according to the first layout rule.
[0098] The above method can simplify the operational complexity of the overall layout. The user does not need to move virtual objects one by one, thereby improving the layout efficiency.
[0099] For examples, see Figure 6a , Figure 6a This is one of the overall layout adjustment interface diagrams provided in the embodiment of the present application, such as Figure 6a As shown, when the user clicks on the first target area 203, the battle virtual object 208 will be automatically laid out according to the first layout rule. The first layout rule here can be a preset scheme or can be determined based on the battle information. The method for determining the first layout rule can refer to the determination scheme of the first recommended layout position in the above embodiment, and is obtained through at least one of the enemy's / our own virtual object attributes, the enemy's / our own layout information, the enemy's / our own resource information, tactical information, game progress characteristics, and game rule characteristics, and with reference to historical battle data.
[0100] In some embodiments, after responding to a second trigger operation on the first target area, the method further includes:
[0101] In response to a third trigger operation for the first target area, the virtual combat object is placed in the combat area according to a second layout rule; wherein the second layout rule represents a second overall recommended layout position of the virtual combat object, and a recommendation degree of the second overall recommended layout position is less than that of the second overall recommended layout position.
[0102] Here, after triggering the third trigger operation related to the first target area, the system will use the second layout rule to place the virtual objects for the battle. The second layout rule represents an overall recommended layout position that is different from the first layout rule. The priority or recommendation level of the layout position recommended by the second layout rule is lower than the layout position recommended by the first layout rule. This means that, when possible, the system will first try to layout according to the first layout rule, and only when certain conditions (such as the third trigger operation) are met will the second layout rule be considered. According to the second layout rule, the system will select a suitable location in the battle area to place the virtual objects for the battle. These positions are not optimal, but they can still meet basic tactical needs or user requirements.
[0103] The above approach can support richer tactical choices and user preferences by providing multiple layout rules. Users can select different layout rules by triggering different operations, thereby adjusting the layout strategy according to the current battle situation or personal preferences.
[0104] For examples, see Figure 6b and Figure 6c , Figure 6b This is the second overall layout adjustment interface diagram provided by the embodiment of the present application. Figure 6c This is the third overall layout adjustment interface diagram provided by the embodiment of the present application, such as Figure 6a As shown, a prompt message "Click to switch to the recommended position and click again to change" will be displayed near the first target area. When the user clicks the first target area 203 for the first time, the overall layout will be performed according to the first layout rule (that is, position plan 1), and the layout position of each virtual object in the battle will be set. When the user clicks the first target area 203 for the second time, the overall layout will be performed according to the second layout rule (that is, position plan 2). When the user clicks the first target area 203 for the third time, the overall layout will be performed according to the third layout rule (that is, position plan 3).
[0105] In some embodiments, the first layout rule and the second layout rule are cyclically applied when triggered to the first target area.
[0106] Here, the triggering condition for the cyclic application is related to the first target area. For example, when the user interacts with an interface element (button, menu item or area) (such as clicking, selecting or meeting specific conditions), the cyclic application mechanism is triggered. When the triggering condition is met, the system will choose to apply the first layout rule or the second layout rule according to the current loop state. For example, if it is the first trigger, the system may apply the first layout rule; if it is the second trigger, the second layout rule is applied; the first layout rule is applied again when the third trigger is triggered, and so on, forming a loop. In an embodiment of the present application, station plan 1, station plan 2, and station plan 3 will be applied cyclically, and the number of layout rules can be flexibly set based on user needs.
[0107] In the above-mentioned manner, by cyclically applying different layout rules, the user can preview different overall layout strategies, making it convenient for the player to make low-cost adjustments to the overall layout that does not meet expectations.
[0108] In some embodiments, the method is applied to a mobile terminal device, the graphical user interface is displayed by the mobile terminal device, and the graphical user interface is displayed in a vertical version.
[0109] The embodiments of the present application are particularly suitable for situations where the graphical user interface is displayed in vertical format. When displayed in vertical format, considering that users are accustomed to operating with one hand, a specific problem encountered by players when operating with one hand is: when the player tries to move a chess piece (or a virtual object in battle) from the battle area to the target position, the distance between the battle area and the target position is too far, thereby increasing the difficulty and inconvenience of the operation.
[0110] Through the embodiments of the present application, the user only needs to move the target virtual object to the first target area to achieve the placement of the target virtual object, or directly perform the second or third trigger operation on the first target area to achieve one-click quick deployment and adjustment of the overall layout position.
[0111] In summary, the embodiments of the present application have the following beneficial effects:
[0112] (1) The embodiment of the present application analyzes the current battle information and provides players with recommended layout positions based on this information. These recommended positions are displayed on the graphical user interface in the form of intuitive logos, allowing players to quickly identify the most suitable positions for placing chess pieces. This not only solves the confusion faced by players when laying out the chess pieces, but also improves the accuracy and efficiency of the layout, thereby enhancing the playability and fun of the game.
[0113] (2) The embodiment of the present application introduces layout controls and a first target area, allowing the player to drag the chess piece to an area closer to the target position through a simple move operation, thereby greatly reducing the difficulty of one-handed operation. In addition, when the chess piece is located in or partially located in the first target area, the system will automatically display the recommended layout position, further simplifying the operation process.
[0114] (3) The embodiments of the present application provide the functions of recommending layout positions and quickly changing positions, so that players can quickly place chess pieces in appropriate positions in a short period of time, thereby improving the response speed of the game and the overall experience.
[0115] (4) The embodiment of the present application provides a flexible position change mechanism. When a player is not satisfied with the current position, he can quickly switch to other recommended layout positions through a simple trigger operation, thereby realizing rapid adjustment and optimization of the position plan. This method not only improves the flexibility and adaptability of the player, but also enhances the interactivity and playability of the game.
[0116] In summary, the embodiments of the present application provide a more convenient, efficient and intelligent gaming experience, which not only reduces the operation threshold and learning cost, but also improves the playability and fun of the game.
[0117] Based on the same inventive concept, an embodiment of the present application also provides a layout device for virtual objects corresponding to the layout method for virtual objects in the first embodiment. Since the principle of solving the problem by the device in the embodiment of the present application is similar to the above-mentioned layout method for virtual objects, the implementation of the device can refer to the implementation of the method, and the repeated parts will not be repeated.
[0118] like Figure 7 As shown, Figure 7 7 is a structural diagram of a layout device 700 of virtual objects provided in an embodiment of the present application. A preparation area and a battle area are displayed on a graphical user interface. Virtual objects located in the preparation area are preparation virtual objects, and virtual objects located in the battle area are battle virtual objects. The layout device 700 of virtual objects includes:
[0119] A first display module 701, configured to display a layout control on the graphical user interface; wherein the layout control corresponds to a first target area;
[0120] The control module 702 is used to respond to a movement operation on a target virtual object and control the target virtual object to move toward the first target area following the movement operation; wherein the target virtual object is the battle preparation virtual object or the battle virtual object;
[0121] The second display module 703 is used to display a first recommended layout mark in the battle area in response to the target virtual object being located or partially located in the first target area; wherein the first recommended layout mark is used to indicate a first recommended layout position of the target virtual object in the battle area;
[0122] The placement module 704 is configured to place the target virtual object at the first recommended layout position in response to a first triggering operation of the target virtual object in the first target area.
[0123] Those skilled in the art should understand that Figure 7 The implementation functions of each unit in the virtual object layout device 700 shown can be understood by referring to the relevant description of the aforementioned virtual object layout method. Figure 7 The functions of the various units in the virtual object layout device 700 shown may be implemented by a program running on a processor, or may be implemented by a specific logic circuit.
[0124] In a possible implementation manner, when controlling the target virtual object to follow the movement operation to move toward the first target area, the control module 702 further includes:
[0125] In response to the target virtual object moving in a direction close to the first target area, displaying a second target area; wherein the second target area is obtained by enlarging the first target area;
[0126] The first target area is updated based on the second target area.
[0127] In one possible implementation, the second display module 703 further includes:
[0128] If the first recommended layout position is occupied, displaying the first recommended layout identifier and the second recommended layout identifier in the battle area at the same time; wherein the second recommended layout identifier has a different display state from the first recommended layout identifier, and the second recommended layout identifier is used to indicate that the target virtual object is at a second recommended layout position in the battle area, and the recommendation degree of the second recommended layout position is less than or equal to the first recommended layout position;
[0129] In response to a first triggering operation of the target virtual object in the first target area, the target virtual object is placed at the second recommended layout position.
[0130] In a possible implementation manner, the first recommended layout position is determined in the following manner:
[0131] Acquire current battle information, and determine at least one battle feature based on the current battle information; wherein each of the at least one battle feature represents a factor affecting the layout position of the target virtual object, and the at least one battle feature includes at least one of the virtual object attributes of the enemy / our side, the layout information of the enemy / our side, the resource information of the enemy / our side, the tactical information, the game progress feature, and the game rule feature;
[0132] The first recommended layout position is determined based on the at least one battle feature.
[0133] In a possible implementation manner, the second display module 703 determines the first recommended layout position based on the at least one battle feature, including:
[0134] Determine, based on historical battle data, the historical frequency and / or historical winning rate of the target virtual object being located at each layout position in the battle area under the at least one battle feature;
[0135] The first recommended layout position is determined from each layout position based on the historical frequency and / or historical winning rate.
[0136] In a possible implementation manner, the second recommended layout position is determined by:
[0137] The layout position closest to the first recommended layout position is determined as the second recommended layout position.
[0138] In a possible implementation manner, the second display module 703 determines the layout position closest to the first recommended layout position as the second recommended layout position, including:
[0139] determining a layout position that is closest to the first recommended layout position and located in the same row as the second recommended layout position;
[0140] If there is no layout position that can be laid out in the same row, determine a second recommended layout position that is closest to the first recommended layout position from adjacent rows; wherein the adjacent rows are determined based on the object type of the target virtual object, when the object type is a first type, the adjacent row is the row after the row where the first recommended layout position is located, and when the object type is a second type, the adjacent row is the row before the row where the first recommended layout position is located, and the first type is different from the second type.
[0141] In a possible implementation, the placement module 704 further includes:
[0142] In response to a second trigger operation on the first target area, if the number of the virtual fighting objects in the fighting area has reached an upper limit, placing the virtual fighting objects in the fighting area according to a first layout rule; wherein the first layout rule represents a first overall recommended layout position of the virtual fighting objects;
[0143] If the number of the combat virtual objects in the combat area has not reached an upper limit, a specific virtual object in the preparation area is determined as a combat virtual object, and the combat virtual object is placed in the combat area according to a first layout rule; wherein the specific virtual object is a recommended virtual object.
[0144] In a possible implementation, after responding to the second trigger operation on the first target area, the placement module 704 further includes:
[0145] In response to a third trigger operation for the first target area, the virtual combat object is placed in the combat area according to a second layout rule; wherein the second layout rule represents a second overall recommended layout position of the virtual combat object, and a recommendation degree of the second overall recommended layout position is less than that of the second overall recommended layout position.
[0146] In a possible implementation manner, the first layout rule and the second layout rule are cyclically applied when the first target area is triggered.
[0147] In a possible implementation, the method is applied to a mobile terminal device, and the graphical user interface is displayed by the mobile terminal device, and the graphical user interface is displayed in a vertical version.
[0148] The above virtual object layout device has the following beneficial effects:
[0149] (1) The embodiment of the present application analyzes the current battle information and provides players with recommended layout positions based on this information. These recommended positions are displayed on the graphical user interface in the form of intuitive logos, allowing players to quickly identify the most suitable positions for placing chess pieces. This not only solves the confusion faced by players when laying out the chess pieces, but also improves the accuracy and efficiency of the layout, thereby enhancing the playability and fun of the game.
[0150] (2) The embodiment of the present application introduces layout controls and a first target area, allowing the player to drag the chess piece to an area closer to the target position through a simple move operation, thereby greatly reducing the difficulty of one-handed operation. In addition, when the chess piece is located in or partially located in the first target area, the system will automatically display the recommended layout position, further simplifying the operation process.
[0151] (3) The embodiments of the present application provide the functions of recommending layout positions and quickly changing positions, so that players can quickly place chess pieces in appropriate positions in a short period of time, thereby improving the response speed of the game and the overall experience.
[0152] (4) The embodiment of the present application provides a flexible position change mechanism. When a player is not satisfied with the current position, he can quickly switch to other recommended layout positions through a simple trigger operation, thereby realizing rapid adjustment and optimization of the position plan. This method not only improves the flexibility and adaptability of the player, but also enhances the interactivity and playability of the game.
[0153] In summary, the embodiments of the present application provide a more convenient, efficient and intelligent gaming experience, which not only reduces the operation threshold and learning cost, but also improves the playability and fun of the game.
[0154] like Figure 8 As shown, Figure 8 The present invention provides a schematic diagram of the structure of an electronic device 800 according to an embodiment of the present invention. The electronic device 800 includes:
[0155] A processor 801, a storage medium 802, and a bus 803. The storage medium 802 stores machine-readable instructions executable by the processor 801. When the electronic device 800 is running, the processor 801 communicates with the storage medium 802 via the bus 803. The processor 801 executes the machine-readable instructions to perform the following method:
[0156] Displaying a layout control on the graphical user interface; wherein the layout control corresponds to a first target area;
[0157] In response to a movement operation on a target virtual object, controlling the target virtual object to follow the movement operation and move toward the first target area; wherein the target virtual object is the battle preparation virtual object or the battle virtual object;
[0158] In response to the target virtual object being located at or partially located at the first target area, displaying a first recommended layout identifier in the battle area; wherein the first recommended layout identifier is used to indicate a first recommended layout position of the target virtual object in the battle area;
[0159] In response to a first triggering operation of the target virtual object in the first target area, the target virtual object is placed at the first recommended layout position.
[0160] In a possible implementation manner, when controlling the target virtual object to move toward the first target area following the movement operation, the processor 801 further includes:
[0161] In response to the target virtual object moving in a direction close to the first target area, displaying a second target area; wherein the second target area is obtained by enlarging the first target area;
[0162] The first target area is updated based on the second target area.
[0163] In a possible implementation manner, the processor 801 further includes:
[0164] If the first recommended layout position is occupied, displaying the first recommended layout identifier and the second recommended layout identifier in the battle area at the same time; wherein the second recommended layout identifier has a different display state from the first recommended layout identifier, and the second recommended layout identifier is used to indicate that the target virtual object is at a second recommended layout position in the battle area, and the recommendation degree of the second recommended layout position is less than or equal to the first recommended layout position;
[0165] In response to a first triggering operation of the target virtual object in the first target area, the target virtual object is placed at the second recommended layout position.
[0166] In a possible implementation manner, the first recommended layout position is determined in the following manner:
[0167] Acquire current battle information, and determine at least one battle feature based on the current battle information; wherein each of the at least one battle feature represents a factor affecting the layout position of the target virtual object, and the at least one battle feature includes at least one of the virtual object attributes of the enemy / our side, the layout information of the enemy / our side, the resource information of the enemy / our side, the tactical information, the game progress feature, and the game rule feature;
[0168] The first recommended layout position is determined based on the at least one battle feature.
[0169] In a possible implementation manner, the processor 801 determines the first recommended layout position based on the at least one battle feature, including:
[0170] Determine, based on historical battle data, the historical frequency and / or historical winning rate of the target virtual object being located at each layout position in the battle area under the at least one battle feature;
[0171] The first recommended layout position is determined from each layout position based on the historical frequency and / or historical winning rate.
[0172] In a possible implementation manner, the second recommended layout position is determined by:
[0173] The layout position closest to the first recommended layout position is determined as the second recommended layout position.
[0174] In a possible implementation manner, the processor 801 determines the layout position closest to the first recommended layout position as the second recommended layout position, including:
[0175] determining a layout position that is closest to the first recommended layout position and located in the same row as the second recommended layout position;
[0176] If there is no layout position that can be laid out in the same row, determine a second recommended layout position that is closest to the first recommended layout position from adjacent rows; wherein the adjacent rows are determined based on the object type of the target virtual object, when the object type is a first type, the adjacent row is the row after the row where the first recommended layout position is located, and when the object type is a second type, the adjacent row is the row before the row where the first recommended layout position is located, and the first type is different from the second type.
[0177] In a possible implementation manner, the processor 801 further includes:
[0178] In response to a second trigger operation on the first target area, if the number of the virtual fighting objects in the fighting area has reached an upper limit, placing the virtual fighting objects in the fighting area according to a first layout rule; wherein the first layout rule represents a first overall recommended layout position of the virtual fighting objects;
[0179] If the number of the combat virtual objects in the combat area has not reached an upper limit, a specific virtual object in the preparation area is determined as a combat virtual object, and the combat virtual object is placed in the combat area according to a first layout rule; wherein the specific virtual object is a recommended virtual object.
[0180] In a possible implementation, after responding to a second trigger operation on the first target area, the processor 801 further includes:
[0181] In response to a third trigger operation for the first target area, the virtual combat object is placed in the combat area according to a second layout rule; wherein the second layout rule represents a second overall recommended layout position of the virtual combat object, and a recommendation degree of the second overall recommended layout position is less than that of the second overall recommended layout position.
[0182] In a possible implementation manner, the first layout rule and the second layout rule are cyclically applied when the first target area is triggered.
[0183] In a possible implementation, the method is applied to a mobile terminal device, and the graphical user interface is displayed by the mobile terminal device, and the graphical user interface is displayed in a vertical version.
[0184] In actual application, the components in the electronic device 800 are coupled together via bus 803. It is understood that bus 803 is used to realize the connection and communication between these components. Bus 803 includes not only a data bus, but also a power bus, a control bus and a status signal bus. However, for the sake of clarity, Figure 8 Various buses are labeled as bus 803.
[0185] The electronic device has the following beneficial effects:
[0186] (1) The embodiment of the present application analyzes the current battle information and provides players with recommended layout positions based on this information. These recommended positions are displayed on the graphical user interface in the form of intuitive logos, allowing players to quickly identify the most suitable positions for placing chess pieces. This not only solves the confusion faced by players when laying out the chess pieces, but also improves the accuracy and efficiency of the layout, thereby enhancing the playability and fun of the game.
[0187] (2) The embodiment of the present application introduces layout controls and a first target area, allowing the player to drag the chess piece to an area closer to the target position through a simple move operation, thereby greatly reducing the difficulty of one-handed operation. In addition, when the chess piece is located in or partially located in the first target area, the system will automatically display the recommended layout position, further simplifying the operation process.
[0188] (3) The embodiments of the present application provide the functions of recommending layout positions and quickly changing positions, so that players can quickly place chess pieces in appropriate positions in a short period of time, thereby improving the response speed of the game and the overall experience.
[0189] (4) The embodiment of the present application provides a flexible position change mechanism. When a player is not satisfied with the current position, he can quickly switch to other recommended layout positions through a simple trigger operation, thereby realizing rapid adjustment and optimization of the position plan. This method not only improves the flexibility and adaptability of the player, but also enhances the interactivity and playability of the game.
[0190] In summary, the embodiments of the present application provide a more convenient, efficient and intelligent gaming experience, which not only reduces the operation threshold and learning cost, but also improves the playability and fun of the game.
[0191] The embodiment of the present application further provides a computer-readable storage medium, wherein the storage medium stores executable instructions. When the executable instructions are executed by at least one processor 801, the following method is implemented:
[0192] Displaying a layout control on the graphical user interface; wherein the layout control corresponds to a first target area;
[0193] In response to a movement operation on a target virtual object, controlling the target virtual object to follow the movement operation and move toward the first target area; wherein the target virtual object is the battle preparation virtual object or the battle virtual object;
[0194] In response to the target virtual object being located at or partially located at the first target area, displaying a first recommended layout identifier in the battle area; wherein the first recommended layout identifier is used to indicate a first recommended layout position of the target virtual object in the battle area;
[0195] In response to a first triggering operation of the target virtual object in the first target area, the target virtual object is placed at the first recommended layout position.
[0196] In a possible implementation, when controlling the target virtual object to move toward the first target area following the movement operation, the method further includes:
[0197] In response to the target virtual object moving in a direction close to the first target area, displaying a second target area; wherein the second target area is obtained by enlarging the first target area;
[0198] The first target area is updated based on the second target area.
[0199] In a possible implementation, the method further includes:
[0200] If the first recommended layout position is occupied, displaying the first recommended layout identifier and the second recommended layout identifier in the battle area at the same time; wherein the second recommended layout identifier has a different display state from the first recommended layout identifier, and the second recommended layout identifier is used to indicate that the target virtual object is at a second recommended layout position in the battle area, and the recommendation degree of the second recommended layout position is less than or equal to the first recommended layout position;
[0201] In response to a first triggering operation of the target virtual object in the first target area, the target virtual object is placed at the second recommended layout position.
[0202] In a possible implementation manner, the first recommended layout position is determined in the following manner:
[0203] Acquire current battle information, and determine at least one battle feature based on the current battle information; wherein each of the at least one battle feature represents a factor affecting the layout position of the target virtual object, and the at least one battle feature includes at least one of the virtual object attributes of the enemy / our side, the layout information of the enemy / our side, the resource information of the enemy / our side, the tactical information, the game progress feature, and the game rule feature;
[0204] The first recommended layout position is determined based on the at least one battle feature.
[0205] In a possible implementation, determining the first recommended layout position based on the at least one battle feature includes:
[0206] Determine, based on historical battle data, the historical frequency and / or historical winning rate of the target virtual object being located at each layout position in the battle area under the at least one battle feature;
[0207] The first recommended layout position is determined from each layout position based on the historical frequency and / or historical winning rate.
[0208] In a possible implementation manner, the second recommended layout position is determined by:
[0209] The layout position closest to the first recommended layout position is determined as the second recommended layout position.
[0210] In a possible implementation manner, determining the layout position closest to the first recommended layout position as the second recommended layout position includes:
[0211] determining a layout position that is closest to the first recommended layout position and located in the same row as the second recommended layout position;
[0212] If there is no layout position that can be laid out in the same row, determine a second recommended layout position that is closest to the first recommended layout position from adjacent rows; wherein the adjacent rows are determined based on the object type of the target virtual object, when the object type is a first type, the adjacent row is the row after the row where the first recommended layout position is located, and when the object type is a second type, the adjacent row is the row before the row where the first recommended layout position is located, and the first type is different from the second type.
[0213] In a possible implementation, the method further includes:
[0214] In response to a second trigger operation on the first target area, if the number of the virtual fighting objects in the fighting area has reached an upper limit, placing the virtual fighting objects in the fighting area according to a first layout rule; wherein the first layout rule represents a first overall recommended layout position of the virtual fighting objects;
[0215] If the number of the combat virtual objects in the combat area has not reached an upper limit, a specific virtual object in the preparation area is determined as a combat virtual object, and the combat virtual object is placed in the combat area according to a first layout rule; wherein the specific virtual object is a recommended virtual object.
[0216] In a possible implementation manner, after responding to a second trigger operation on the first target area, the method further includes:
[0217] In response to a third trigger operation for the first target area, the virtual combat object is placed in the combat area according to a second layout rule; wherein the second layout rule represents a second overall recommended layout position of the virtual combat object, and a recommendation degree of the second overall recommended layout position is less than that of the second overall recommended layout position.
[0218] In a possible implementation manner, the first layout rule and the second layout rule are cyclically applied when the first target area is triggered.
[0219] In a possible implementation, the method is applied to a mobile terminal device, and the graphical user interface is displayed by the mobile terminal device, and the graphical user interface is displayed in a vertical version.
[0220] In some embodiments, the storage medium can be a magnetic random access memory (FRAM), a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a flash memory, a magnetic surface storage, an optical disk, or a compact disc read-only memory (CD ROM); it can also be various devices including one or any combination of the above memories.
[0221] In some embodiments, executable instructions may be in the form of a program, software, software module, script or code, written in any form of programming language (including compiled or interpreted languages, or declarative or procedural languages), and may be deployed in any form, including as a stand-alone program or as a module, component, subroutine or other unit suitable for use in a computing environment.
[0222] As an example, executable instructions may, but do not necessarily, correspond to a file in a file system, may be stored as part of a file that stores other programs or data, for example, in one or more scripts in a HyperText Markup Language (HTML) document, in a single file dedicated to the program in question, or in multiple coordinated files (for example, files storing one or more modules, subroutines, or code portions).
[0223] By way of example, executable instructions may be deployed to be executed on one computing device, or on multiple computing devices located at one site, or on multiple computing devices distributed across multiple sites and interconnected by a communication network.
[0224] The computer-readable storage medium has the following advantages:
[0225] (1) The embodiment of the present application analyzes the current battle information and provides players with recommended layout positions based on this information. These recommended positions are displayed on the graphical user interface in the form of intuitive logos, allowing players to quickly identify the most suitable positions for placing chess pieces. This not only solves the confusion faced by players when laying out the chess pieces, but also improves the accuracy and efficiency of the layout, thereby enhancing the playability and fun of the game.
[0226] (2) The embodiment of the present application introduces layout controls and a first target area, allowing the player to drag the chess piece to an area closer to the target position through a simple move operation, thereby greatly reducing the difficulty of one-handed operation. In addition, when the chess piece is located in or partially located in the first target area, the system will automatically display the recommended layout position, further simplifying the operation process.
[0227] (3) The embodiments of the present application provide the functions of recommending layout positions and quickly changing positions, so that players can quickly place chess pieces in appropriate positions in a short period of time, thereby improving the response speed of the game and the overall experience.
[0228] (4) The embodiment of the present application provides a flexible position change mechanism. When a player is not satisfied with the current position, he can quickly switch to other recommended layout positions through a simple trigger operation, thereby realizing rapid adjustment and optimization of the position plan. This method not only improves the flexibility and adaptability of the player, but also enhances the interactivity and playability of the game.
[0229] In summary, the embodiments of the present application provide a more convenient, efficient and intelligent gaming experience, which not only reduces the operation threshold and learning cost, but also improves the playability and fun of the game.
[0230] In the several embodiments provided in the present application, it should be understood that the disclosed methods and electronic devices can be implemented in other ways. The device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.
[0231] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0232] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0233] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium that is executable by a processor. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a platform server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard drives, ROM, RAM, magnetic disks, or optical disks.
[0234] The above are only specific implementations of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A method for layout of virtual objects, characterized in that: Displaying a battle preparation area and a battle area on a graphical user interface, wherein a virtual object located in the battle preparation area is a battle preparation virtual object, and a virtual object located in the battle area is a battle virtual object, the method comprising: Displaying a layout control on the graphical user interface; wherein the layout control corresponds to a first target area; In response to a movement operation on a target virtual object, controlling the target virtual object to follow the movement operation and move toward the first target area; wherein the target virtual object is the battle preparation virtual object or the battle virtual object; In response to the target virtual object being located at or partially located at the first target area, displaying a first recommended layout identifier in the battle area; wherein the first recommended layout identifier is used to indicate a first recommended layout position of the target virtual object in the battle area; In response to a first triggering operation of the target virtual object in the first target area, the target virtual object is placed at the first recommended layout position.
2. The method according to claim 1, characterized in that When controlling the target virtual object to follow the movement operation to move toward the first target area, the method further includes: In response to the target virtual object moving in a direction close to the first target area, displaying a second target area; wherein the second target area is obtained by enlarging the first target area; The first target area is updated based on the second target area.
3. The method according to claim 1, characterized in that: The method further comprises: If the first recommended layout position is occupied, displaying the first recommended layout identifier and the second recommended layout identifier in the battle area at the same time; wherein the second recommended layout identifier has a different display state from the first recommended layout identifier, and the second recommended layout identifier is used to indicate that the target virtual object is at a second recommended layout position in the battle area, and the recommendation degree of the second recommended layout position is less than or equal to the first recommended layout position; In response to a first triggering operation of the target virtual object in the first target area, the target virtual object is placed at the second recommended layout position.
4. The method according to claim 1, characterized in that The first recommended layout position is determined by: Acquire current battle information, and determine at least one battle feature based on the current battle information; wherein each of the at least one battle feature represents a factor affecting the layout position of the target virtual object, and the at least one battle feature includes at least one of the virtual object attributes of the enemy / our side, the layout information of the enemy / our side, the resource information of the enemy / our side, the tactical information, the game progress feature, and the game rule feature; The first recommended layout position is determined based on the at least one battle feature.
5. The method according to claim 4, characterized in that The determining the first recommended layout position based on the at least one battle feature includes: Determine, based on historical battle data, the historical frequency and / or historical winning rate of the target virtual object being located at each layout position in the battle area under the at least one battle feature; The first recommended layout position is determined from each layout position based on the historical frequency and / or historical winning rate.
6. The method according to claim 3, characterized in that The second recommended layout position is determined by: The layout position closest to the first recommended layout position is determined as the second recommended layout position.
7. The method according to claim 6, characterized in that The step of determining the layout position closest to the first recommended layout position as the second recommended layout position includes: determining a layout position that is closest to the first recommended layout position and located in the same row as the second recommended layout position; If there is no layout position that can be laid out in the same row, determine a second recommended layout position that is closest to the first recommended layout position from adjacent rows; wherein the adjacent rows are determined based on the object type of the target virtual object, when the object type is a first type, the adjacent row is the row after the row where the first recommended layout position is located, and when the object type is a second type, the adjacent row is the row before the row where the first recommended layout position is located, and the first type is different from the second type.
8. The method according to claim 1, characterized in that The method further comprises: In response to a second trigger operation on the first target area, if the number of the virtual fighting objects in the fighting area has reached an upper limit, placing the virtual fighting objects in the fighting area according to a first layout rule; wherein the first layout rule represents a first overall recommended layout position of the virtual fighting objects; If the number of the combat virtual objects in the combat area has not reached an upper limit, a specific virtual object in the preparation area is determined as a combat virtual object, and the combat virtual object is placed in the combat area according to a first layout rule; wherein the specific virtual object is a recommended virtual object.
9. The method according to claim 8, characterized in that After responding to a second trigger operation on the first target area, the method further includes: In response to a third trigger operation for the first target area, the virtual combat object is placed in the combat area according to a second layout rule; wherein the second layout rule represents a second overall recommended layout position of the virtual combat object, and a recommendation degree of the second overall recommended layout position is less than that of the second overall recommended layout position.
10. The method according to claim 9, characterized in that The first layout rule and the second layout rule are cyclically applied when triggered to the first target area.
11. The method according to claim 1, characterized in that: The method is applied to a mobile terminal device, and the graphical user interface is displayed by the mobile terminal device, wherein the graphical user interface is displayed in a vertical version.
12. A virtual object layout device, characterized in that: A battle preparation area and a battle area are displayed on a graphical user interface, a virtual object located in the battle preparation area is a battle preparation virtual object, and a virtual object located in the battle area is a battle virtual object, and the device comprises: A first display module, configured to display a layout control on the graphical user interface; wherein the layout control corresponds to a first target area; A control module, configured to respond to a movement operation on a target virtual object and control the target virtual object to follow the movement operation and move toward the first target area; wherein the target virtual object is the battle preparation virtual object or the battle virtual object; A second display module is used to display a first recommended layout mark in the battle area in response to the target virtual object being located or partially located in the first target area; wherein the first recommended layout mark is used to indicate a first recommended layout position of the target virtual object in the battle area; The placement module is configured to place the target virtual object at the first recommended layout position in response to a first triggering operation of the target virtual object in the first target area.
13. An electronic device, characterized in that: include: A processor, a storage medium and a bus, wherein the storage medium stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor communicates with the storage medium via the bus, and the processor executes the machine-readable instructions to execute the virtual object layout method as described in any one of claims 1 to 11.
14. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method for laying out virtual objects according to any one of claims 1 to 11 is executed.