CN114849228A - Method, device and equipment for layout of control in game and storage medium - Google Patents

Method, device and equipment for layout of control in game and storage medium Download PDF

Info

Publication number
CN114849228A
CN114849228A CN202210580208.XA CN202210580208A CN114849228A CN 114849228 A CN114849228 A CN 114849228A CN 202210580208 A CN202210580208 A CN 202210580208A CN 114849228 A CN114849228 A CN 114849228A
Authority
CN
China
Prior art keywords
control
area
target
target control
information
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.)
Pending
Application number
CN202210580208.XA
Other languages
Chinese (zh)
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.)
Netease Hangzhou Network Co Ltd
Original Assignee
Netease Hangzhou Network 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 Netease Hangzhou Network Co Ltd filed Critical Netease Hangzhou Network Co Ltd
Priority to CN202210580208.XA priority Critical patent/CN114849228A/en
Publication of CN114849228A publication Critical patent/CN114849228A/en
Pending legal-status Critical Current

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/40Processing input control signals of video game devices, e.g. signals generated by the player or derived from the environment
    • A63F13/42Processing input control signals of video game devices, e.g. signals generated by the player or derived from the environment by mapping the input signals into game commands, e.g. mapping the displacement of a stylus on a touch screen to the steering angle of a virtual vehicle
    • A63F13/426Processing input control signals of video game devices, e.g. signals generated by the player or derived from the environment by mapping the input signals into game commands, e.g. mapping the displacement of a stylus on a touch screen to the steering angle of a virtual vehicle involving on-screen location information, e.g. screen coordinates of an area at which the player is aiming with a light gun
    • 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/50Controlling the output signals based on the game progress
    • A63F13/52Controlling the output signals based on the game progress involving aspects of the displayed game scene
    • 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
    • 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/30Features 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 output arrangements for receiving control signals generated by the game device
    • A63F2300/308Details of the user interface

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application provides a method, a device, equipment and a storage medium for layout of a control in a game, and belongs to the technical field of electronic games. The method comprises the following steps: displaying an adjustable control in a graphical user interface according to initial control information of at least one adjustable control in a first game time interval, wherein the control information comprises a control position and a control area of the adjustable control; responding to the operation of the target player on the target control in the first game time interval, and acquiring actual operation information of the target control, wherein the actual operation information comprises: the position of operation, the area of operation and the target control are any one of the adjustable controls; updating the initial control information of the target control based on the actual operation information to obtain updated control information of the target control for the target player, wherein the updated control information comprises: updating the control position and updating the control area. According to the method and the device, the interface can be rapidly configured, and the configuration efficiency is improved.

Description

Method, device and equipment for layout of control in game and storage medium
Technical Field
The present application relates to the field of electronic game technologies, and in particular, to a method, an apparatus, a device, and a storage medium for layout of a control in a game.
Background
In the interface of the game, a plurality of game controls are usually provided, and different players have different requirements on the positions and sizes of the controls in the game process, so that the positions and sizes of the controls need to be adjusted.
In the prior art, the adopted adjustment method is usually based on a control selected by a player, and the player manually sets the size and the position of the control; alternatively, the selection is made by the player based on the layout of a plurality of controls that are pre-configured.
However, the methods adopted in the prior art all require a user to actively perform configuration adjustment or layout selection, which results in a complicated and complex configuration process, and further results in a large amount of time and effort consumed by a player in interface configuration and low configuration efficiency.
Disclosure of Invention
The application aims to provide a method, a device, equipment and a storage medium for layout of a control in a game, which can realize rapid configuration of an interface and improve configuration efficiency.
The embodiment of the application is realized as follows:
in one aspect of the embodiments of the present application, a method for layout of a control in a game is provided, where a graphical user interface is provided by a terminal device, and the method includes:
displaying an adjustable control in a graphical user interface according to initial control information of at least one adjustable control in a first game time interval, wherein the control information comprises a control position and a control area of the adjustable control;
responding to the operation of the target player on the target control in the first game time interval, and acquiring actual operation information of the target control, wherein the actual operation information comprises: the position of operation, the area of operation and the target control are any one of adjustable controls;
updating the initial control information of the target control based on the actual operation information to obtain updated control information of the target control for the target player, wherein the updated control information comprises: updating the control position and updating the control area.
Optionally, the method further comprises:
and responding to the operation of the target player entering the second game time interval, and displaying the target control according to the updated control information of the target control in the graphical user interface.
Optionally, updating the initial control information of the target control based on the actual operation information to obtain updated control information of the target control for the target player, including:
determining a center coordinate of the operation based on the position of the operation;
and taking the position of the center coordinate as the position of the updating control.
Optionally, the location of operation comprises a plurality; determining center coordinates of the operation based on the location of the operation, comprising:
calculating an average position coordinate according to the position coordinates of each operation;
the average position coordinate is taken as the center coordinate of the operation.
Optionally, the area of operation comprises a plurality; updating the initial control information of the target control based on the actual operation information to obtain updated control information of the target control for the target player, wherein the updated control information comprises:
an updated control area is determined based on the areas of the plurality of operations.
Optionally, determining an updated control area based on the areas of the plurality of operations comprises:
calculating an average area from the area of each operation;
an updated control area is determined based on the average area.
Optionally, determining an updated control area based on the average area comprises:
if the average area is smaller than the first area threshold, increasing the control area of the target control so that the first buffer area meets a preset condition, wherein the first buffer area is the difference between the area of the target control after the area is increased and the average area;
and taking the control area of the target control with the increased area as the updated control area.
Optionally, determining an updated control area based on the average area comprises:
if the average area is larger than the first area threshold, reducing the control area of the target control so that a second buffer area meets a preset size, wherein the second buffer area is the difference between the average area and the target control area with the reduced area;
and taking the control area of the target control with the reduced area as the updated control area.
Optionally, in response to an operation on the target control in the first game time interval, acquiring actual operation information includes:
and determining whether the operation in the first game time interval is the operation aiming at the target control, and if so, acquiring actual operation information.
Optionally, determining whether the operation in the first game time interval is an operation for a target control comprises:
judging whether the operation position is within the settable range of the target control, wherein the settable range of the target control is larger than the area of the target control;
if yes, determining that the operation in the first game time interval is the operation aiming at the target control.
Optionally, the target control corresponds to an operable hot zone, and after the actual operation information is acquired in response to the operation of the target control in the first game time interval, the method further includes:
adjusting the range of an operable hot area corresponding to the target control based on the actual operation information to obtain an adjusted hot area;
and changing the hot area corresponding to the target control into the adjusted hot area.
In another aspect of the embodiments of the present application, a layout apparatus for a control in a game is provided, where a graphical user interface is provided through a terminal device, the apparatus includes: the system comprises a control display module, a response acquisition module and a control updating module;
the control display module is used for displaying an adjustable control in the graphical user interface according to the initial control information of at least one adjustable control in a first game time interval, wherein the control information comprises a control position and a control area of the adjustable control;
a response obtaining module, configured to obtain actual operation information of the target control in response to an operation of the target control by the target player in the first game time interval, where the actual operation information includes: the position of operation, the area of operation and the target control are any one of the adjustable controls;
a control updating module, configured to update initial control information of the target control based on the actual operation information to obtain updated control information of the target control for the target player, where the updated control information includes: updating the control position and updating the control area.
Optionally, the control display module is further configured to display the target control in the graphical user interface according to the updated control information of the target control in response to an operation of the target player entering the second game time interval.
Optionally, the control update module is specifically configured to determine a center coordinate of the operation based on the position of the operation; and taking the position of the center coordinate as the position of the updating control.
Optionally, the control updating module is specifically configured to calculate an average position coordinate according to the position coordinates of each operation; the average position coordinate is taken as the center coordinate of the operation.
Optionally, the area of operation comprises a plurality; and the control updating module is specifically used for determining and updating the control area based on the areas of the plurality of operations.
Optionally, the control updating module is specifically configured to calculate an average area according to the area of each operation; an updated control area is determined based on the average area.
Optionally, the control updating module is specifically configured to increase the control area of the target control if the average area is smaller than a first area threshold, so that the first buffer area meets a preset condition, where the first buffer area is a difference between the area of the target control after the area is increased and the average area; and taking the control area of the target control with the increased area as the updated control area.
Optionally, the control updating module is specifically configured to reduce the control area of the target control if the average area is greater than the first area threshold, so that a second buffer area satisfies a preset size, where the second buffer area is a difference between the average area and the target control area after the area is reduced; and taking the control area of the target control with the reduced area as the updated control area.
Optionally, the response obtaining module is specifically configured to determine whether the operation in the first game time interval is an operation for the target control, and if so, obtain actual operation information.
Optionally, the response obtaining module is specifically configured to determine whether the position of the operation is within a settable range of the target control, where the settable range of the target control is larger than an area of the target control; if yes, determining that the operation in the first game time interval is the operation aiming at the target control.
Optionally, the control updating module is further configured to perform range adjustment on an operable hot zone corresponding to the target control based on the actual operation information, so as to obtain an adjusted hot zone; and changing the hot area corresponding to the target control into the adjusted hot area.
In another aspect of the embodiments of the present application, an electronic device is provided, which includes: the control layout method comprises a memory and a processor, wherein a computer program capable of running on the processor is stored in the memory, and when the processor executes the computer program, the steps of the control layout method in the game are realized.
In another aspect of the embodiments of the present application, a computer-readable storage medium is provided, where a computer program is stored on the storage medium, and when the computer program is executed by a processor, the steps of the method for laying out a control in a game are implemented.
The beneficial effects of the embodiment of the application include:
in the method, the device, the equipment and the storage medium for arranging the controls in the game, the adjustable controls can be displayed in the graphical user interface according to the initial control information of at least one adjustable control in the first game time interval, and further the actual operation information of the target controls can be obtained in response to the operation of the target player on the target controls in the first game time interval; specifically, the initial control information of the target control can be updated based on the actual operation information, so as to obtain the updated control information of the target control for the target player. The method comprises the steps that a control is operated in a first game time interval to realize adjustment of a non-sensory control, namely, the area, the position and other information of the control do not need to be actively set, so that the area, the position and other information of the target control are updated, the area, the position and other information of the target control are more matched with the operation habits of a player, the time and energy consumption of the player in actively setting an interface can be further avoided, and correspondingly, the efficiency of configuration of the target control can be improved; and moreover, the control in the interface can be adjusted to meet the operation requirements of the player.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained from the drawings without inventive effort.
FIG. 1 is a schematic interface diagram of a graphical user interface provided by an embodiment of the present application;
FIG. 2 is a flowchart illustrating a method for laying out controls in a game according to an embodiment of the present disclosure;
FIG. 3 is another interface diagram of a graphical user interface provided by an embodiment of the present application;
fig. 4 is a schematic flowchart illustrating a process of determining a position of a control in a method for laying out a control in a game according to an embodiment of the present application;
FIG. 5 is another schematic flowchart illustrating a process of determining a position of a control in a method for laying out a control in a game according to an embodiment of the present application;
FIG. 6 is a schematic diagram illustrating an interface change of a graphical user interface provided in an embodiment of the present application;
fig. 7 is a schematic flowchart illustrating a process of determining an area of a control in a method for laying out a control in a game according to an embodiment of the present application;
FIG. 8 is a schematic diagram of another interface variation of a graphical user interface provided by an embodiment of the present application;
fig. 9 is another schematic flowchart illustrating determining an area of a control in a method for laying out a control in a game according to an embodiment of the present application;
FIG. 10 is a schematic flowchart illustrating a determination of an area of a control in a method for laying out a control in a game according to an embodiment of the present application;
FIG. 11 is another flowchart illustrating a method for laying out controls in a game according to an embodiment of the present application;
FIG. 12 is a schematic flowchart of a method for laying out in-game controls according to an embodiment of the present disclosure;
FIG. 13 is a schematic diagram of yet another interface variation of a graphical user interface provided in an embodiment of the present application;
FIG. 14 is a schematic structural diagram of a layout apparatus for in-game controls according to an embodiment of the present disclosure;
fig. 15 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. 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 application.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
In the description of the present application, it is noted that the terms "first", "second", "third", and the like are used merely for distinguishing between descriptions and are not intended to indicate or imply relative importance.
The method for laying out the in-game control in one embodiment of the application can be run on a terminal device or a server. The terminal device may be a local terminal device. When the game display method is operated on a server, the method can be implemented and executed based on a cloud interaction system, wherein the cloud interaction system comprises the server and the client device.
In an optional embodiment, various cloud applications may be run under the cloud interaction system, for example: and (5) cloud games. Taking a cloud game as an example, a cloud game refers to a game mode based on cloud computing. In the cloud game operation mode, the game program operation main body and the game picture presentation main body are separated, the storage and operation of the game display method are completed on the cloud game server, and the client device is used for receiving and sending data and presenting the game picture, for example, the client device can be a display device with a data transmission function close to a user side, such as a mobile terminal, a television, a computer, a palm computer and the like; however, the terminal device performing the information processing is a cloud game server in the cloud. When a game is played, a player operates the client device to send an operation instruction to the cloud game server, the cloud game server runs the game according to the operation instruction, data such as game pictures and the like are encoded and compressed, the data are returned to the client device through a network, and finally the data are decoded through the client device and the game pictures are output.
In an alternative embodiment, the terminal device may be a local terminal device. Taking a game as an example, the local terminal device stores a game program and is used for presenting a game screen. The local terminal device is used for interacting with the player through a graphical user interface, namely, a game program is downloaded and installed and operated through an electronic device conventionally. The manner in which the local terminal device provides the graphical user interface to the player may include a variety of ways, for example, it may be rendered for display on a display screen of the terminal or provided to the player through holographic projection. For example, the local terminal device may include a display screen for presenting a graphical user interface including a game screen and a processor for running the game, generating the graphical user interface, and controlling display of the graphical user interface on the display screen.
In a possible implementation manner, an embodiment of the present invention provides a method for laying out a control in a game, where a graphical user interface is provided by a terminal device, where the terminal device may be the aforementioned local terminal device, and may also be the aforementioned client device in a cloud interaction system.
The following specifically explains the specific contents displayed in the above-described graphical user interface referred to in the embodiments of the present application.
Fig. 1 is an interface schematic diagram of a graphical user interface provided in an embodiment of the present application, please refer to fig. 1, the graphical user interface shown in fig. 1 may include a plurality of adjustable controls 110, and the adjustable controls may be configured at any position of the graphical user interface, for example: the specific example may be the left side or the right side in the game interface, and the like, and is not limited herein.
The initial position of each adjustable control 110 may be preconfigured in the graphical user interface, for example: four adjustable controls 110 in fig. 1 are located at the bottom right of the interface, and two adjustable controls 110 are located at the bottom left and left of the interface, each adjustable control 110 has a certain area, and the positions between the adjustable controls may not overlap.
The player may effect interface interactions based on the manipulation of the adjustable controls 110, such as: the virtual control is operated to control the use skill, movement or use of the article, etc. of the corresponding virtual character, which is not limited herein.
The following explains a specific implementation process of the in-game control layout method provided in the embodiment of the present application based on the above-described graphical user interface.
Fig. 2 is a flowchart illustrating a layout method of a control in a game according to an embodiment of the present application, please refer to fig. 2, where the method includes:
s210: in a first game time interval, the adjustable controls are displayed in the graphical user interface according to the initial control information of the at least one adjustable control.
The control information comprises a control position and a control area of the adjustable control.
Optionally, the execution subject of the method may specifically be the terminal device displaying the graphical user interface, or may also be a server in communication connection with the terminal device, which is not limited herein, and when the execution subject is the server, the server may control the terminal device to implement the method.
The terminal device may be a computer, a tablet computer, a mobile phone, a game machine, or any type of electronic device, and is not limited in particular.
Optionally, the first game time interval may be a time period when the player performs novice teaching while playing the game, or may also be a time period when any game is played, which is not particularly limited herein and may be configured according to actual requirements.
The adjustable control is the virtual control which can be set in the graphical user interface and can be changed and adjusted in position and area, and the number of the adjustable controls can be multiple.
The initial control information may be preset control information in the first game time interval, and the control information may specifically refer to a control position and a control area of the adjustable control.
Optionally, in the first game time interval, the adjustable control may be displayed in the graphical user interface based on the initial control position and the control area of the adjustable control, and if there are multiple adjustable controls, the adjustable controls may also be displayed in the same graphical user interface respectively.
S220: and responding to the operation of the target player on the target control in the first game time interval, and acquiring the actual operation information of the target control.
Wherein, the actual operation information includes: the position of operation, the area of operation, the target control is any one of adjustable controls.
Optionally, the target player may specifically be an operation performed based on the target account, and the operation on the target control may specifically be a click operation, a long-time press operation, a drag operation, and the like, which is not limited herein.
Based on the operation of the target player, the terminal device may acquire actual operation information of the target player on the operation of the target control. The operation position may be specifically a center position of touch control of the target player when the target control is operated; the operation area may be a touch area touched by the target player when operating the target control.
Optionally, after the at least one target control is displayed in the graphical user interface, the position of the operation of the target control and the area of the operation may be obtained in response to the operation of the target player on the target control in the first game time interval.
S230: and updating the initial control information of the target control based on the actual operation information to obtain the updated control information of the target control for the target player.
Wherein updating control information comprises: updating the control position and updating the control area.
Optionally, the updated control position refers to a position where the updated target control is located, and the updated control area refers to an area size of the updated target control displayed in the screen.
Updating the initial control information of the target control specifically refers to changing the position and the area of the target control.
Optionally, after the actual operation information is determined, the initial control information of the target control may be updated based on the actual operation information, so as to obtain an updated control position and an updated control area of the target control for the target player.
It should be noted that, for different players, different actual operation information may be recorded to update the initial control information of the target control, that is, the obtained updated control information is not unique, and different updated control information may be obtained for different operations performed by different players.
In the method for arranging the controls in the game, the adjustable controls can be displayed in the graphical user interface according to the initial control information of at least one adjustable control in the first game time interval, and further the actual operation information of the target controls can be obtained in response to the operation of the target player on the target controls in the first game time interval; specifically, the initial control information of the target control can be updated based on the actual operation information, so as to obtain the updated control information of the target control for the target player. The method comprises the steps that a control is operated in a first game time interval to realize adjustment of a non-sensory control, namely, the area, the position and other information of the control do not need to be actively set, so that the area, the position and other information of the target control are updated, the area, the position and other information of the target control are more matched with the operation habits of a player, the time and energy consumption of the player in actively setting an interface can be further avoided, and correspondingly, the efficiency of configuration of the target control can be improved; and moreover, the control in the interface can be adjusted to meet the operation requirements of the player.
The following specifically explains a change process of a target control in a graphical user interface provided in the embodiment of the present application.
Fig. 3 is another interface schematic diagram of a graphical user interface provided in the embodiment of the present application, please refer to fig. 3, a left sub-graph in fig. 3 is a target control corresponding to initial control information, and a right sub-graph is a target control corresponding to updated control information, in the process illustrated in fig. 3, the target control 310 updates the initial control information based on actual operation information of the target player with respect to an operation area 320 of the control, and changes the initial control information into updated control information.
Optionally, the method further comprises: and responding to the operation of the target player entering the second game time interval, and displaying the target control according to the updated control information of the target control in the graphical user interface.
The second game time interval may be a time sequence after the first game time interval, for example, a game time after a time period of novice instruction corresponding to the first game time interval, or a time period after a time period of any game play corresponding to the first game time interval, and is not limited in particular.
After the second game time interval is entered, the target control may be displayed in the graphical user interface according to the obtained updated control information, and the displayed result may be specifically as shown in the right sub-diagram in fig. 3.
The following specifically explains a specific implementation process of determining the position of the update control when determining the update control information in the embodiment of the present application.
Fig. 4 is a schematic flow chart illustrating a process of determining a control position in a method for laying out a control in a game according to an embodiment of the present application, and please refer to fig. 4, where updating initial control information of a target control based on actual operation information to obtain updated control information of the target control for a target player includes:
s410: center coordinates of the operation are determined based on the position of the operation.
Alternatively, the operation performed by the target player on the terminal device may specifically be an operation of clicking through a touch screen, that is, the operation may specifically be an operation of a shape in which a finger is in contact with a screen in a graphical user interface, and after the operation shape is determined, coordinates of a center of the operation shape may be determined, where the center may specifically be a geometric center of the shape, for example: when the contact area is a circle, the center of the operation shape is the center of the circle. And after the center of the circle is determined, taking the coordinate of the center of the circle as the center coordinate of the operation.
Alternatively, since the contact area is generally an irregular pattern, the geometric center of the geometric shape may be determined based on a pre-configured pattern center position determination, and the center coordinates of the operation may be determined in the manner described above.
S420: and taking the position of the center coordinate as the position of the updating control.
Alternatively, after determining the center coordinates, the position of the center coordinates may be used as the updated control position.
When the updated control information of the target control is displayed, the target control can be displayed by taking the center coordinate as a circle center.
Another specific implementation procedure for determining the position of the update control provided in the embodiment of the present application is specifically explained below.
Fig. 5 is another schematic flow chart illustrating a process of determining a position of a control in a layout method of a control in a game according to an embodiment of the present application, please refer to fig. 5, where the operation position includes a plurality of positions; determining center coordinates of the operation based on the location of the operation, comprising:
s510: an average position coordinate is calculated from the position coordinates of each operation.
Optionally, in the actual operation process, the target player has multiple operations on the target control, that is, there are multiple positions of the operations, and for the multiple operation positions, the average position coordinate may be calculated according to the coordinates of the respective operation positions.
Specifically, the geometric center of each operation may be determined based on the contact shape of each operation, and then a plurality of position coordinates may be obtained, an average value calculation may be performed on each position coordinate, and an average position coordinate may be obtained, and when performing the average position coordinate calculation, the determination may be specifically performed according to an average value of horizontal and vertical coordinates, for example: if there are two operations, the position coordinate of the first operation is (2, 4), and the position coordinate of the second operation is (3, 5), the average of the horizontal and vertical coordinates may be taken, that is, the average position coordinate is (2.5, 4.5).
When there are more operations, the position coordinates of all the operations may be averaged in the above manner, and an average position coordinate is obtained.
S520: the average position coordinate is taken as the center coordinate of the operation.
Alternatively, after determining the average position coordinates, the average position coordinates may be taken as the center coordinates of the above-described operation.
Specifically, in the actual implementation process, the graphical user interface may be divided into positions in a rectangular plane coordinate system, so as to represent the positions of the contact positions of the operations in the graphical user interface according to the coordinate values.
In the layout method of the control in the game provided by the embodiment of the application, the center coordinate of the operation can be determined based on the position of the operation; and then the position of the center coordinate is used as the position of the updating control. Specifically, the average position coordinate may be calculated from the position coordinates of each operation, and the average position coordinate may be used as the center coordinate of the operation. The method for calculating the average position coordinate can obtain the relatively accurate position of the central coordinate based on multiple operation results, so that the situations of position error of the central coordinate and the like caused by mistaken touch of a player are avoided, the accuracy of determining the position of the central coordinate can be improved, and the position of the updating control can be determined more accurately.
The following specifically explains a specific interface change process for determining the position of the update control based on the position of the operation in the embodiment of the present application.
Fig. 6 is a schematic diagram of an interface change of a graphical user interface provided in the embodiment of the present application, please refer to fig. 6, where a left subgraph in fig. 6 is a position of a target control 310 when the position is not changed, where a position of an operation on an operation region 320 of the target control by a target player may be a center of a circle (a circular operation region is taken as an example in fig. 6, and an operation region in an arbitrary shape may be used in an actual process). The sub-diagram on the right side in fig. 6 is the position of the target control 310 after the position is changed, wherein the dotted line indicates the position of the target control 310 when the position is not changed.
As can be seen from the change process shown in fig. 6, when the position is changed, after the average position coordinate is determined, the average position coordinate may be used as the center coordinate of the operation, and then the position of the center coordinate is used as the position of the update control, where the position of the target control 310 in the right sub-graph in fig. 6 is the position of the update control.
Optionally, the area of operation comprises a plurality; updating the initial control information of the target control based on the actual operation information to obtain updated control information of the target control for the target player, wherein the updating comprises the following steps: an updated control area is determined based on the areas of the plurality of operations.
In the actual operation process, the target player has multiple operations on the target control, that is, areas of multiple operations, and the control area can be determined and updated according to the areas of multiple operations.
The following specifically explains a specific implementation process for determining the area of the update control provided in the embodiment of the present application.
Fig. 7 is a schematic flowchart illustrating a process of determining a control area in a method for laying out a control in a game according to an embodiment of the present application, please refer to fig. 7, where determining an updated control area based on areas of a plurality of operations includes:
s710: the average area is calculated from the area of each operation.
Optionally, the area of each operation may be acquired, and when the player performs interaction based on the graphical user interface, the size of the touch area is the area of the operation, and the area of the operation may be acquired by the terminal device.
When there are multiple operation areas, an average value of all the areas may be calculated, or an average value of multiple operation areas meeting a preset requirement may be selected for calculation, which is not limited herein.
For example: if there are 4 operations in the first game time interval, the operation areas of the 4 operations may be obtained, and the average of the operation areas may be calculated to obtain the average area.
S720: an updated control area is determined based on the average area.
Optionally, the area of the updated control may be determined according to the size of the average area, and the updated control may specifically be a circular control or a square control, which is not specifically limited herein and may be set according to the requirement of actual operation.
The area of the updated control can be in a direct proportion relation with the average area, and when the average area is larger, the area of the updated control is also larger; when the average area is smaller, the area of the updated control is smaller, and in the actual setting process, the area of the updated control can be larger than the average area.
After the updated area is obtained, when the updated control is displayed on the graphical user interface, if the control is circular, the display radius can be calculated according to the area of the updated control, and then the corresponding circular control is displayed according to the display radius; if the control is rectangular, the corresponding length and width can be calculated according to the updated control area and the preset length-width ratio, and then the corresponding rectangular control is displayed according to the length and width; the display modes of the controls with other shapes are similar, and are not described herein again.
In the layout method of the control in the game provided by the embodiment of the application, the area of the control can be determined and updated based on the areas of a plurality of operations, specifically, the average area can be calculated according to the area of each operation; an updated control area is determined based on the average area. The average area calculation mode is adopted, so that the relatively accurate average area can be obtained based on multiple operation results, the situations of touch screen size induction errors and the like caused by mistaken touch of a player are avoided, the accuracy of average area determination can be improved, and the area of the updated control can be determined more accurately.
The following specifically explains a specific interface change process for determining an update control area based on an operation area in the embodiment of the present application.
Fig. 8 is another schematic diagram of interface changes of a graphical user interface provided in the embodiment of the present application, please refer to fig. 8, where a left subgraph in fig. 8 is an area size of a target control 310 when an area is not changed, where an area of an operation performed by a target player on an operation region 320 of the target control may be the area of a circle (a circle operation region is taken as an example in fig. 8, and an operation region of an arbitrary shape may be used in an actual process). The right sub-diagram in fig. 8 is the area size of the target control 310 after the area change.
As can be obtained from the variation process shown in fig. 8, when the area is changed, the area of the update control may be determined based on the average area, and the area of the target control 310 in the right sub-graph in fig. 8 is the area of the update control.
It should be noted that, in fig. 8, the area of the target control is taken as an example, and in an actual process, the area of the target control may be increased, which is not specifically limited herein.
A specific implementation process for determining the area of the control in the layout method of the control in the game in the embodiment of the present application is specifically explained below.
Fig. 9 is another schematic flow chart illustrating the determination of the area of a control in the layout method of a control in a game according to the embodiment of the present application, please refer to fig. 9, where the determination of the updated area of the control based on the average area includes:
s910: and if the average area is smaller than the first area threshold value, increasing the control area of the target control so as to enable the first buffer area to meet the preset condition.
The first buffer area is the difference between the area of the target control after the area is increased and the average area.
Alternatively, the first area threshold may be a preset area size, and may be set according to practical situations, which is not limited herein.
When determining the updated control area of the target control, after determining that the average area is smaller than the first area threshold, the control area of the target control may be increased, for example: when the control is a circular control, the radius of the circle can be increased, so that the increase of the area of the control is realized, and the area is increased until the difference between the area of the target control after the area is increased and the average area is equal to the position of the first buffer area.
It should be noted that, for the circular control, the area of the target control after the area is increased and the average area are both circular, and if the control position is not changed and only the area is changed, the first buffer area is the annular area between the area of the target control after the area is increased and the average area.
S920: and taking the control area of the target control with the increased area as the updated control area.
Optionally, after the area of the control of the target control with the increased area is obtained in the above manner, the area may be used as an updated control area for subsequent control display and other operations.
Illustratively, the average area is C, the first area threshold is D, and when C > D, it may be determined that the control area of the target control needs to be increased, where the increased area is the first buffer area M1; m1 ═ M0-C, where M0 is the update control area.
Another specific implementation process for determining the area of the control in the layout method of the control in the game in the embodiment of the present application is specifically explained below.
Fig. 10 is a schematic flowchart illustrating still another process of determining a control area in a method for laying out a control in a game according to an embodiment of the present application, please refer to fig. 10, where determining an updated control area based on an average area includes:
s1010: and if the average area is larger than the first area threshold value, reducing the control area of the target control so as to enable the second buffer area to meet the preset size.
And the second buffer area is the difference between the average area and the area of the target control with the reduced area.
Optionally, when determining the updated control area of the target control, after determining that the average area is greater than the first area threshold, the control area of the target control may be reduced, for example: when the control is a circular control, the radius of the circle can be reduced, so that the area of the control is reduced, and the area is reduced until the difference between the average area and the target control area after the area is reduced is equal to the position of the second buffer area.
It should be noted that, for the circular control, the area of the target control after the area is reduced and the average area are both circular, and if the control position is not changed and only the area is changed, the second buffer area is the annular area between the average area and the area of the target control after the area is reduced.
S1020: and taking the control area of the target control with the reduced area as the updated control area.
Optionally, after the area of the control of the target control with the reduced area is obtained in the above manner, the area may be used as an updated control area for subsequent control display and other operations.
Illustratively, the average area is C, the first area threshold is D, and when C < D, it may be determined that the control area of the target control needs to be reduced, where the reduced area is the second stroke area M2; m2 ═ C-M0, where M0 is the update control area.
According to the method for arranging the controls in the game, whether the control area of the target control is increased or decreased can be determined according to the size relation between the average area and the first area threshold, and then the corresponding updated control area can be obtained. The determination of the area of the updated control can be realized more quickly by the method, and the size of the target control can be determined more accurately based on the touch area of the player.
It should be noted that, after the position and the area of the updated control are respectively determined by the above method, the position of the center of a circle of the target control may be determined according to the position of the updated control, the radius of the target control may be determined according to the area of the updated control, and then the corresponding target control may be generated and displayed, and when the target control is displayed, the target control in the initial position and the initial area may be changed into the updated target control in a manner of a pre-configured display animation. The player does not need to frequently set the control position and size.
Optionally, in response to an operation on the target control in the first game time interval, acquiring actual operation information includes: and determining whether the operation in the first game time interval is the operation aiming at the target control, and if so, acquiring actual operation information.
It should be noted that when a player performs an operation on a target control, a final manipulated target may not be the target control but may be another control beside the target control touched by mistake or a region without an operation control touched by mistake because of various external factors.
If the operation is determined to be the operation aiming at the target control, the actual operation information can be obtained; in contrast, if it is determined that the operation is not an operation for the target control, the actual operation information does not need to be acquired.
The following specifically explains a specific implementation process of determining whether the control is an operation for a target control in the in-game control layout method provided in the embodiment of the present application.
Fig. 11 is another flowchart illustrating a method for laying out controls in a game according to an embodiment of the present application, please refer to fig. 11, where determining whether an operation in a first game time interval is an operation for a target control includes:
s1110: it is determined whether the location of the operation is within a settable range of the target control.
And the settable range of the target control is larger than the area of the target control.
Optionally, when the operation is specifically determined, the determination may be performed based on a settable range of the target control, each control has one settable range, and the settable ranges of the multiple controls may not overlap with each other, that is, for the same target control, when the increase or decrease change is performed, the change needs to be performed within the settable range corresponding to the target control, and the settable range of the target control cannot be exceeded.
When the terminal device detects an operation of the graphical user interface by a player, it can be determined whether the position of the operation is within a settable range of a certain target control.
Specifically, the determination may be made according to the size of the touch area of the actual operation, and if the areas of the touch area of the actual operation, which are larger than the preset proportion, are all within the settable range of a certain target control, the position of the operation is within the settable range of the target control.
For example: if 2/3 of the touch area of the operation of the player is within the settable range of the first target control, it can be determined that the operation is within the settable range of the first target control.
S1120: if yes, determining that the operation in the first game time interval is the operation aiming at the target control.
Alternatively, when it is determined that the position of the operation is within a settable range of a certain target control, the operation in the first game time interval may be determined as an operation for the target control; in contrast, when it is determined that the position of the operation is not within the settable range of any target control, it may be determined that the operation in the first play time interval is not an operation for the target control, that is, an invalid operation.
In the layout method of the control in the game provided by the embodiment of the application, whether the operation position is within the settable range of the target control can be judged; and when the target control is within the settable range, determining that the operation in the first game time interval is the operation aiming at the target control. The operation that the player touches by mistake or the inaccurate operation in the operation process can be eliminated by judging whether the operation position is in the settable range of the target control, so that the more accurate and effective operation is taken as the operation aiming at the target control.
Another specific implementation procedure in the layout method of the in-game control provided in the embodiment of the present application is specifically explained below.
Fig. 12 is a schematic flowchart of another process of a method for laying out a control in a game according to an embodiment of the present application, please refer to fig. 12, in which a target control corresponds to an operable hot zone, and after acquiring actual operation information in response to an operation on the target control in a first game time interval, the method further includes:
s1210: and adjusting the range of the operable hot area corresponding to the target control based on the actual operation information to obtain the adjusted hot area.
It should be noted that the operable hot area may be any one area in the graphical user interface, the area may correspond to any one control, when the user touches the operable hot area, the user correspondingly touches the control corresponding to the operable hot area, and in the initial state, the range of the operable hot area is the position where the control is located.
After the actual operation information is obtained, the range of the operable hot area can be adjusted according to the actual operation information. The operable hot area may be specifically adjusted according to a position relationship between the touch position and the operable hot area in the actual operation information.
For example: the operation corresponding to the actual operation information is in the upper right region of the operable hot zone, and it may be determined that the player needs to perform the corresponding operation on the upper right region, and then the area of the operable hot zone may be increased, specifically, the range size of the upper right region may be increased, or the range size of the entire operable hot zone may also be increased, so as to obtain the adjusted hot zone. Accordingly, the other regions operate the same, and are not limited herein.
S1220: and changing the hot area corresponding to the target control into the adjusted hot area.
Optionally, after obtaining the adjusted hot area, the hot area corresponding to the target control may be changed from the operable hot area to the adjusted hot area, that is, the display areas of the adjusted hot area and the target control may be different.
The adjusted hotspot may be larger than the target control display area range, for example: the operation corresponding to the actual operation information is in the upper right area of the operable hot area, after the operable hot area adjustment is carried out, the hot area range corresponding to the target control is enlarged, and even if the touch point of the player is out of the area displayed by the target control, the touch of the target control can be still realized.
In the layout method of the control in the game provided in the embodiment of the application, the range of the operable hot area corresponding to the target control can be adjusted based on the actual operation information, so that the adjusted hot area is obtained; and changing the hot area corresponding to the target control into the adjusted hot area. The range of the hot zone corresponding to the target control can be adjusted through the actual operation information, so that the situation that the difference exists between the operation position and the actually displayed control position due to the operation habit of a player can be avoided, and the number of invalid operations can be reduced.
The following specifically explains a change process of an interface in a process of changing a hot zone in the layout method of an in-game control according to the embodiment of the present application.
Fig. 13 is a schematic diagram of another interface change of the graphical user interface provided in the embodiment of the present application, please refer to fig. 13, where a left subgraph of fig. 13 is positions of a target control 310 and an operation region 320 of a target player for the target control when a hot zone change is not performed, where an operable hot zone corresponding to the target control 310 coincides with a display region of the target control 310, and the operable hot zone and the display region are the same; after the hot zone change is performed, since the operation region 320 is located in the upper right region of the target control 310, the operable hot zone corresponding to the target control may be increased to the upper right region, that is, the region of the adjusted hot zone 330 shown in the right sub-diagram of fig. 13, that is, within the range of the dotted line in fig. 13, in the right sub-diagram, when the user performs operations on the adjusted hot zone 330, the operations may be performed on the target control 310.
It should be noted that, in the above each interface schematic diagram, only the change of one target control is taken as an example for explanation, in an actual operation process, a plurality of target controls which need to change the size, the position, or the corresponding hot zone size may be changed in one change, and not limited to one control, each control may be changed in sequence, or a plurality of controls may be changed simultaneously, and not limited herein.
The following describes a device, equipment, and a storage medium corresponding to the method for executing the layout of the in-game control provided by the present application, where the specific implementation process and technical effects are referred to above and are not described in detail below.
Fig. 14 is a schematic structural diagram of a layout apparatus of in-game controls according to an embodiment of the present application, please refer to fig. 14, the apparatus includes: a control display module 141, a response acquisition module 142 and a control update module 143;
the control display module 141 is configured to display an adjustable control in the graphical user interface according to initial control information of at least one adjustable control in the first game time interval, where the control information includes a control position and a control area of the adjustable control;
a response obtaining module 142, configured to obtain actual operation information of the target control in response to an operation of the target control by the target player in the first game time interval, where the actual operation information includes: the position of operation, the area of operation and the target control are any one of the adjustable controls;
a control updating module 143, configured to update initial control information of the target control based on the actual operation information, to obtain updated control information of the target control for the target player, where the updated control information includes: updating the control position and updating the control area.
Optionally, the control display module 141 is further configured to, in response to an operation of the target player entering the second game time interval, display the target control in the graphical user interface according to the updated control information of the target control.
Optionally, the control updating module 143 is specifically configured to determine a center coordinate of the operation based on the position of the operation; and taking the position of the center coordinate as the position of the updating control.
Optionally, the control updating module 143 is specifically configured to calculate an average position coordinate according to the position coordinate of each operation; the average position coordinate is taken as the center coordinate of the operation.
Optionally, the area of operation comprises a plurality; the control updating module 143 is specifically configured to determine an updated control area based on the areas of the plurality of operations.
Optionally, the control updating module 143 is specifically configured to calculate an average area according to the area of each operation; an updated control area is determined based on the average area.
Optionally, the control updating module 143 is specifically configured to increase the control area of the target control if the average area is smaller than the first area threshold, so that the first buffer area meets a preset condition, where the first buffer area is a difference between the area of the target control after the area is increased and the average area; and taking the control area of the target control with the increased area as the updated control area.
Optionally, the control updating module 143 is specifically configured to reduce the control area of the target control if the average area is greater than the first area threshold, so that a second buffer area meets a preset size, where the second buffer area is a difference between the average area and the target control area after the area is reduced; and taking the control area of the target control with the reduced area as the updated control area.
Optionally, the response obtaining module 142 is specifically configured to determine whether the operation in the first game time interval is an operation for the target control, and if so, obtain actual operation information.
Optionally, the response obtaining module 142 is specifically configured to determine whether the position of the operation is within a settable range of the target control, where the settable range of the target control is larger than an area of the target control; if yes, determining that the operation in the first game time interval is the operation aiming at the target control.
Optionally, the control updating module 143 is further configured to perform range adjustment on an operable hot zone corresponding to the target control based on the actual operation information, so as to obtain an adjusted hot zone; and changing the hot area corresponding to the target control into the adjusted hot area.
The above-mentioned apparatus is used for executing the method provided by the foregoing embodiment, and the implementation principle and technical effect are similar, which are not described herein again.
These above modules may be one or more integrated circuits configured to implement the above methods, such as: one or more Application Specific Integrated Circuits (ASICs), or one or more microprocessors, or one or more Field Programmable Gate Arrays (FPGAs), etc. For another example, when one of the above modules is implemented in the form of a Processing element scheduler code, the Processing element may be a general-purpose processor, such as a Central Processing Unit (CPU) or other processor capable of calling program code. For another example, these modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).
Fig. 15 is a schematic structural diagram of an electronic device according to an embodiment of the present application, please refer to fig. 15, where the electronic device includes: the storage 151 and the processor 152, the storage 151 stores a computer program operable on the processor 152, and when the processor 152 executes the computer program, the layout method of the control in the game is implemented, for example:
displaying an adjustable control in a graphical user interface according to initial control information of at least one adjustable control in a first game time interval, wherein the control information comprises a control position and a control area of the adjustable control;
responding to the operation of the target player on the target control in the first game time interval, and acquiring actual operation information of the target control, wherein the actual operation information comprises: the position of operation, the area of operation and the target control are any one of the adjustable controls;
updating the initial control information of the target control based on the actual operation information to obtain updated control information of the target control for the target player, wherein the updated control information comprises: updating the control position and updating the control area.
Optionally, the method further comprises:
and responding to the operation of the target player entering the second game time interval, and displaying the target control according to the updated control information of the target control in the graphical user interface.
Optionally, updating the initial control information of the target control based on the actual operation information to obtain updated control information of the target control for the target player, including:
determining a center coordinate of the operation based on the position of the operation;
and taking the position of the center coordinate as the position of the updating control.
Optionally, the location of operation comprises a plurality; determining center coordinates of the operation based on the location of the operation, comprising:
calculating an average position coordinate according to the position coordinates of each operation;
the average position coordinate is taken as the center coordinate of the operation.
Optionally, the area of operation comprises a plurality; updating the initial control information of the target control based on the actual operation information to obtain updated control information of the target control for the target player, wherein the updated control information comprises:
an updated control area is determined based on the areas of the plurality of operations.
Optionally, determining an updated control area based on the areas of the plurality of operations comprises:
calculating an average area from the area of each operation;
an updated control area is determined based on the average area.
Optionally, determining an updated control area based on the average area comprises:
if the average area is smaller than the first area threshold, increasing the control area of the target control so that the first buffer area meets a preset condition, wherein the first buffer area is the difference between the area of the target control after the area is increased and the average area;
and taking the control area of the target control with the increased area as the updated control area.
Optionally, determining an updated control area based on the average area comprises:
if the average area is larger than the first area threshold, reducing the control area of the target control so that a second buffer area meets a preset size, wherein the second buffer area is the difference between the average area and the target control area with the reduced area;
and taking the control area of the target control with the reduced area as the updated control area.
Optionally, in response to an operation on the target control in the first game time interval, acquiring actual operation information includes:
and determining whether the operation in the first game time interval is the operation aiming at the target control, and if so, acquiring actual operation information.
Optionally, determining whether the operation in the first game time interval is an operation for a target control comprises:
judging whether the operation position is within the settable range of the target control, wherein the settable range of the target control is larger than the area of the target control;
if yes, determining that the operation in the first game time interval is the operation aiming at the target control.
Optionally, the target control corresponds to an operable hot zone, and after the actual operation information is acquired in response to the operation of the target control in the first game time interval, the method further includes:
adjusting the range of an operable hot area corresponding to the target control based on the actual operation information to obtain an adjusted hot area;
and changing the hot area corresponding to the target control into the adjusted hot area.
Through the implementation, the adjustable control can be displayed in the graphical user interface according to the initial control information of the at least one adjustable control in the first game time interval, and further the actual operation information of the target control can be acquired in response to the operation of the target player on the target control in the first game time interval; specifically, the initial control information of the target control can be updated based on the actual operation information, so as to obtain the updated control information of the target control for the target player. The method comprises the steps that a control is operated in a first game time interval to realize adjustment of a non-sensory control, namely, the area, the position and other information of the control do not need to be actively set, so that the area, the position and other information of the target control are updated, the area, the position and other information of the target control are more matched with the operation habits of a player, the time and energy consumption of the player in actively setting an interface can be further avoided, and correspondingly, the efficiency of configuration of the target control can be improved; and moreover, the control in the interface can be adjusted to meet the operation requirements of the player.
Optionally, the electronic device may specifically be the terminal device, or a cloud server communicatively connected to the terminal device, and is not limited specifically herein.
In another aspect of the embodiments of the present application, there is further provided a computer-readable storage medium, where a computer program is stored on the storage medium, and when executed by a processor, the computer program implements the steps of the method for laying out a control in a game, for example:
displaying an adjustable control in a graphical user interface according to initial control information of at least one adjustable control in a first game time interval, wherein the control information comprises a control position and a control area of the adjustable control;
responding to the operation of the target player on the target control in the first game time interval, and acquiring actual operation information of the target control, wherein the actual operation information comprises: the position of operation, the area of operation and the target control are any one of the adjustable controls;
updating the initial control information of the target control based on the actual operation information to obtain updated control information of the target control for the target player, wherein the updated control information comprises: updating the control position and updating the control area.
Optionally, the method further comprises:
and responding to the operation of the target player entering the second game time interval, and displaying the target control according to the updated control information of the target control in the graphical user interface.
Optionally, updating the initial control information of the target control based on the actual operation information to obtain updated control information of the target control for the target player, including:
determining a center coordinate of the operation based on the position of the operation;
and taking the position of the center coordinate as the position of the updating control.
Optionally, the location of operation comprises a plurality; determining center coordinates of the operation based on the location of the operation, comprising:
calculating an average position coordinate according to the position coordinates of each operation;
the average position coordinate is taken as the center coordinate of the operation.
Optionally, the area of operation comprises a plurality; updating the initial control information of the target control based on the actual operation information to obtain updated control information of the target control for the target player, wherein the updated control information comprises:
an updated control area is determined based on the areas of the plurality of operations.
Optionally, determining an updated control area based on the areas of the plurality of operations comprises:
calculating an average area from the area of each operation;
an updated control area is determined based on the average area.
Optionally, determining an updated control area based on the average area comprises:
if the average area is smaller than the first area threshold, increasing the control area of the target control so that the first buffer area meets a preset condition, wherein the first buffer area is the difference between the area of the target control after the area is increased and the average area;
and taking the control area of the target control with the increased area as the updated control area.
Optionally, determining an updated control area based on the average area comprises:
if the average area is larger than the first area threshold, reducing the control area of the target control so that a second buffer area meets a preset size, wherein the second buffer area is the difference between the average area and the target control area with the reduced area;
and taking the control area of the target control with the reduced area as the updated control area.
Optionally, in response to an operation on the target control in the first game time interval, acquiring actual operation information includes:
and determining whether the operation in the first game time interval is the operation aiming at the target control, and if so, acquiring actual operation information.
Optionally, determining whether the operation in the first game time interval is an operation for a target control comprises:
judging whether the operation position is within the settable range of the target control, wherein the settable range of the target control is larger than the area of the target control;
if yes, determining that the operation in the first game time interval is the operation aiming at the target control.
Optionally, the target control corresponds to an operable hot zone, and after the actual operation information is acquired in response to the operation of the target control in the first game time interval, the method further includes:
adjusting the range of an operable hot area corresponding to the target control based on the actual operation information to obtain an adjusted hot area;
and changing the hot area corresponding to the target control into the adjusted hot area.
Through the implementation, the adjustable control can be displayed in the graphical user interface according to the initial control information of the at least one adjustable control in the first game time interval, and further the actual operation information of the target control can be acquired in response to the operation of the target player on the target control in the first game time interval; specifically, the initial control information of the target control can be updated based on the actual operation information, so as to obtain the updated control information of the target control for the target player. The method comprises the steps that a control is operated in a first game time interval to realize adjustment of a non-sensory control, namely, the area, the position and other information of the control do not need to be actively set, so that the area, the position and other information of the target control are updated, the area, the position and other information of the target control are more matched with the operation habits of a player, the time and energy consumption of the player in actively setting an interface can be further avoided, and correspondingly, the efficiency of configuration of the target control can be improved; and moreover, the control in the interface can be adjusted to meet the operation requirements of the player.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, a division of a unit is merely a logical division, and an actual implementation may have another division, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
Units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
The integrated unit implemented in the form of a software functional unit may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium and includes several instructions to enable a computer device (which may be a personal computer, a server, or a network device) or a processor (processor) to execute some steps of the methods according to the embodiments of the present invention. And the aforementioned storage medium includes: a U disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
The above description is only a preferred embodiment of the present application and is not intended to limit the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (14)

1. A method for arranging control elements in a game, which provides a graphical user interface through terminal equipment, is characterized in that the method comprises the following steps:
displaying an adjustable control in the graphical user interface according to initial control information of at least one adjustable control in a first game time interval, wherein the control information comprises a control position and a control area of the adjustable control;
responding to the operation of a target player on a target control in the first game time interval, and acquiring actual operation information of the target control, wherein the actual operation information comprises: the position of operation and the area of operation, wherein the target control is any one of the adjustable controls;
updating the initial control information of the target control based on the actual operation information to obtain updated control information of the target control for the target player, wherein the updated control information comprises: updating the control position and updating the control area.
2. The method of in-game control layout of claim 1, the method further comprising:
and responding to the operation of the target player entering a second game time interval, and displaying the target control in the graphical user interface according to the updated control information of the target control.
3. The method of in-game control placement according to claim 1, wherein said updating initial control information for the target control based on the actual operation information to obtain updated control information for the target control of the target player comprises:
determining a center coordinate of the operation based on the position of the operation;
and taking the position of the center coordinate as the position of the updating control.
4. The in-game control layout method according to claim 3, wherein the position of the operation includes a plurality; determining center coordinates of an operation based on the location of the operation, comprising:
calculating an average position coordinate according to the position coordinates of each operation;
and taking the average position coordinate as a center coordinate of the operation.
5. The method of laying out in-game controls of claim 1, wherein the area of the operation comprises a plurality;
updating the initial control information of the target control based on the actual operation information to obtain updated control information of the target control for the target player, including:
determining the updated control area based on areas of a plurality of operations.
6. The in-game control layout method of claim 5, wherein said determining the updated control area based on areas of a plurality of operations comprises:
calculating an average area from the area of each operation;
determining the updated control area based on the average area.
7. The in-game control layout method of claim 6, wherein said determining the updated control area based on the average area, comprises:
if the average area is smaller than a first area threshold, increasing the control area of the target control so as to enable a first buffer area to meet a preset condition, wherein the first buffer area is the difference between the target control area after the area is increased and the average area;
and taking the control area of the target control with the increased area as the updated control area.
8. The in-game control layout method of claim 6, wherein said determining the updated control area based on the average area, comprises:
if the average area is larger than a first area threshold value, reducing the control area of the target control so as to enable a second buffer area to meet a preset size, wherein the second buffer area is the difference between the average area and the area of the target control after the area is reduced;
and taking the control area of the target control with the reduced area as the updated control area.
9. The in-game control layout method according to claim 1, wherein acquiring actual operation information in response to an operation of the target control in the first game time interval comprises:
and determining whether the operation in the first game time interval is the operation aiming at the target control, and if so, acquiring the actual operation information.
10. The method of in-game control layout of claim 9, wherein said determining whether the operation in the first play time interval is an operation for the target control comprises:
judging whether the position of the operation is within a settable range of the target control, wherein the settable range of the target control is larger than the area of the target control;
if yes, determining that the operation in the first game time interval is the operation aiming at the target control.
11. The method of claim 1, wherein the target control corresponds to an operational hotspot, and wherein after obtaining the actual operational information in response to the operation of the target control during the first game time interval, the method further comprises:
adjusting the range of the operable hot area corresponding to the target control based on the actual operation information to obtain an adjusted hot area;
and changing the hot zone corresponding to the target control into the adjusted hot zone.
12. An apparatus for arranging control elements in a game, which provides a graphical user interface through a terminal device, the apparatus comprising: the system comprises a control display module, a response acquisition module and a control updating module;
the control display module is used for displaying the adjustable control in the graphical user interface according to initial control information of at least one adjustable control in a first game time interval, wherein the control information comprises a control position and a control area of the adjustable control;
the response obtaining module is configured to obtain actual operation information of the target control in response to an operation of the target control by the target player in the first game time interval, where the actual operation information includes: the position of operation and the area of operation, wherein the target control is any one of the adjustable controls;
the control updating module is configured to update initial control information of the target control based on the actual operation information to obtain updated control information of the target control for the target player, where the updated control information includes: updating the control position and updating the control area.
13. An electronic device, comprising: memory in which a computer program is stored which is executable on the processor, a processor which, when executing the computer program, carries out the steps of the method according to any one of claims 1 to 11.
14. A computer-readable storage medium, characterized in that the storage medium has stored thereon a computer program which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 11.
CN202210580208.XA 2022-05-25 2022-05-25 Method, device and equipment for layout of control in game and storage medium Pending CN114849228A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210580208.XA CN114849228A (en) 2022-05-25 2022-05-25 Method, device and equipment for layout of control in game and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210580208.XA CN114849228A (en) 2022-05-25 2022-05-25 Method, device and equipment for layout of control in game and storage medium

Publications (1)

Publication Number Publication Date
CN114849228A true CN114849228A (en) 2022-08-05

Family

ID=82641915

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210580208.XA Pending CN114849228A (en) 2022-05-25 2022-05-25 Method, device and equipment for layout of control in game and storage medium

Country Status (1)

Country Link
CN (1) CN114849228A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024051414A1 (en) * 2022-09-05 2024-03-14 腾讯科技(深圳)有限公司 Hot area adjusting method and apparatus, device, storage medium, and program product

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024051414A1 (en) * 2022-09-05 2024-03-14 腾讯科技(深圳)有限公司 Hot area adjusting method and apparatus, device, storage medium, and program product

Similar Documents

Publication Publication Date Title
KR102602113B1 (en) Information interaction methods and related devices
CN110354489B (en) Virtual object control method, device, terminal and storage medium
WO2016202005A1 (en) Method and terminal for locking target in game scene
KR101398086B1 (en) Method for processing user gesture input in online game
JP7387758B2 (en) Interface display method, device, terminal, storage medium and computer program
CN112569611B (en) Interactive information display method, device, terminal and storage medium
CN111840988B (en) Game skill triggering method, game skill triggering device, game client and medium
US20220023760A1 (en) Virtual object selection method and apparatus, device, and storage medium
WO2023020125A1 (en) Virtual environment picture display method and device, terminal, medium, and program product
JP2023552772A (en) Virtual item switching method, device, terminal and computer program
KR20230085187A (en) Chessboard picture display method and apparatus, device, storage medium, and program product
US9229614B2 (en) Storage medium storing information processing program, information processing device, information processing system, and method for calculating specified position
US20230241499A1 (en) Position adjustment method and apparatus for operation control, terminal, and storage medium
CN114849228A (en) Method, device and equipment for layout of control in game and storage medium
JP6523378B2 (en) Game program, method for executing game program, and information processing apparatus
CN111589112B (en) Interface display method, device, terminal and storage medium
US20240100429A1 (en) Method for display control in game, computer-readable storage medium, and electronic device
US20220032188A1 (en) Method for selecting virtual objects, apparatus, terminal and storage medium
KR101398087B1 (en) Method and apparatus for compensating user input on touch-screen, Method for compensating user input in on-line game
CN113941152A (en) Virtual object control method and device, electronic equipment and storage medium
CN114931752A (en) In-game display method, device, terminal device and storage medium
CN113426099B (en) Display control method and device in game
WO2024051414A1 (en) Hot area adjusting method and apparatus, device, storage medium, and program product
JP6446149B1 (en) Program, processing apparatus, and processing method
CN117224957A (en) Method, apparatus, device and storage medium for interactive control

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