Game control processing method and device, terminal device and readable storage medium

文档序号:1944461 发布日期:2021-12-10 浏览:21次 中文

阅读说明:本技术 游戏控件的处理方法、装置、终端设备和可读存储介质 (Game control processing method and device, terminal device and readable storage medium ) 是由 刘奕凡 韩晓雪 于 2021-09-15 设计创作,主要内容包括:本申请提供一种游戏控件的处理方法、装置、终端设备和可读存储介质,其中,该方法包括:从所述游戏控件中确定一目标游戏控件,基于所述第一位置,在所述图形用户界面的第二位置显示调整控件,响应于针对所述目标游戏控件的位移控制指令,控制所述目标游戏控件在所述图形用户界面上移动,在所述目标游戏控件的移动结束时,根据所述目标游戏控件的移动结束位置确定所述调整控件的显示位置,以使所述调整控件和所述目标游戏控件在所述图形用户界面上显示时互不遮挡。该技术方案中,通过控制调整控件相对于目标游戏控件的位置变化而变化,使得调整控件不会遮挡住游戏控件,影响玩家对该游戏控件的布局,提高布局效果。(The application provides a game control processing method, a game control processing device, terminal equipment and a readable storage medium, wherein the method comprises the following steps: determining a target game control from the game controls, displaying an adjusting control at a second position of the graphical user interface based on the first position, responding to a displacement control instruction aiming at the target game control, controlling the target game control to move on the graphical user interface, and determining the display position of the adjusting control according to the movement ending position of the target game control when the movement of the target game control is ended, so that the adjusting control and the target game control are not shielded when being displayed on the graphical user interface. In the technical scheme, the position of the adjusting control relative to the target game control is controlled to change, so that the adjusting control cannot shield the game control, the layout of a player on the game control is influenced, and the layout effect is improved.)

1. A processing method of game controls is characterized in that a graphical user interface is obtained through terminal equipment, the graphical user interface comprises the game controls, and the method comprises the following steps:

determining a target game control from the game controls, wherein the target game control is displayed at a first position of the graphical user interface;

displaying an adjusting control at a second position of the graphical user interface based on the first position, wherein the adjusting control is used for adjusting the attribute parameters of the target game control according to the received control instruction;

controlling the target game control to move on the graphical user interface in response to a displacement control instruction for the target game control;

and when the movement of the target game control is finished, determining the display position of the adjusting control according to the movement finishing position of the target game control, so that the adjusting control and the target game control are not mutually shielded when being displayed on the graphical user interface.

2. The method of claim 1, wherein prior to the step of determining a target game control from the game controls, the method comprises:

and responding to a preset trigger instruction, and entering a game control editing mode.

3. The method of claim 2, wherein the step of determining a target game control from the game controls comprises:

obtaining a first game control with the highest use frequency in the game controls, and determining the first game control as the target game control; or

In response to a selection operation directed to a first one of the game controls, determining that the first game control is the target game control.

4. The method of claim 3, wherein after the step of determining that the first game control is the target game control, the method comprises:

in response to a selection operation directed to a second one of the game controls, determining that the second game control is the target game control.

5. The method of claim 1, wherein the step of displaying an adjustment control at a second location of the graphical user interface based on the first location comprises:

acquiring a first display area corresponding to the first position in the graphical user interface;

determining a second display area in the graphical user interface according to the first display area;

and determining a second position in the second display area, and displaying the adjusting control at the second position.

6. The method of claim 5, wherein the graphical user interface includes a left area and a right area, and wherein displaying an adjustment control at a second location of the graphical user interface based on the first location comprises:

if the first position is in a left area in the graphical user interface, determining the second position in the right area, and displaying the adjusting control at the second position;

and if the first position is in the right area in the graphical user interface, determining a second position in the left area, and displaying the adjusting control at the second position.

7. The method of claim 5, wherein when the target game control moves on the graphical user interface, the method further comprises:

when the target game control moves to the second display area, controlling an adjusting control which is hidden and displayed in the second display area;

and when the target game control leaves the second display area, controlling the adjustment control to resume displaying in the second display area.

8. The method of claim 5, wherein the step of controlling the target game control to move on the graphical user interface in response to a displacement control instruction for the target game control comprises:

responding to the dragging operation acted on the target game control to generate the displacement control instruction;

and responding to the displacement control instruction, hiding an adjusting control displayed on the graphical user interface, and controlling the target game control to move on the graphical user interface.

9. The method of claim 8, wherein determining the display position of the adjustment control according to the movement ending position of the target game control at the end of the movement of the target game control comprises:

when the movement ending position is located in a second display area corresponding to the second position, displaying the adjusting control at a third position outside the second display area;

and when the movement ending position is positioned outside a second display area corresponding to the second position, the adjustment control is displayed at the second position again.

10. The method of claim 5, wherein before the step of determining the display position of the adjustment control according to the movement ending position of the target game control at the end of the movement of the target game control, further comprising:

determining the real-time moving position of the target game control in the moving process of the target game control;

and updating the display position of the adjusting control according to the real-time moving position so that the adjusting control and the target game control are not shielded when displayed on the graphical user interface.

11. The method of claim 1, wherein after adjusting the property parameters of the target game control according to the received control instruction, further comprising:

and responding to a first click operation acting on a target area in the graphical user interface, and controlling the adjustment control to disappear from the graphical user interface, wherein the target area is an area outside the first position and the second position in the graphical user interface.

12. The method of claim 11, wherein after controlling the adjustment control to disappear from the graphical user interface, further comprising:

in response to a selection operation for a first game control of the game controls, determining that the first game control is a target game control;

determining the display position of the adjusting control in the graphical user interface according to the position of the first game control in the graphical user interface;

displaying the adjustment control at the display position.

13. The method of claim 1, wherein the adjustment controls comprise at least a first button for adjusting the size of the target game control, the transparency of the target game control, and a second button for adjusting the position of the target game control.

14. The method of claim 13, wherein adjusting the property parameters of the target game control according to the received control instruction comprises:

adjusting the size of the target game control in response to a first sliding operation of the first key by a player;

and responding to the second sliding operation of the player on the first key, and adjusting the transparency of the target game control.

15. The method of claim 13, wherein adjusting the property parameters of the target game control according to the received control instruction comprises:

and responding to the first touch operation of the player on the second key, and adjusting the position of the target game control in the graphical user interface.

16. The method of claim 13, wherein after adjusting the property parameters of the target game control according to the received control instruction, further comprising:

and responding to a second touch operation of the player on the first key, and displaying a preset option box on the graphical user interface, wherein the preset option box is used for instructing the player to save the attribute parameters after adjustment or discard the attribute parameters after adjustment or restore the attribute parameters to preset default values.

17. A processing apparatus for game controls, comprising:

the control determining module is used for determining a target game control from the game controls, wherein the target game control is displayed at a first position of the graphical user interface;

the control display module is used for displaying an adjusting control at a second position of the graphical user interface based on the first position, and the adjusting control is used for adjusting the attribute parameters of the target game control according to the received control instruction;

the control moving module is used for responding to a displacement control instruction aiming at the target game control and controlling the target game control to move on the graphical user interface;

and the position determining module is used for determining the display position of the adjusting control according to the movement ending position of the target game control when the movement of the target game control is ended, so that the adjusting control and the target game control are not shielded when displayed on the graphical user interface.

18. A terminal device comprising a memory and at least one processor;

the memory stores computer-executable instructions;

the at least one processor executing the computer-executable instructions stored by the memory causes the at least one processor to perform the method of any one of claims 1-16.

19. A readable storage medium having stored therein computer instructions, which when executed by a processor, are adapted to implement the method of any one of claims 1-16.

20. A program product comprising computer instructions, characterized in that the computer instructions, when executed by a processor, implement the method of any of claims 1-16.

Technical Field

The present application relates to the field of game development technologies, and in particular, to a method and an apparatus for processing a game control, a terminal device, and a readable storage medium.

Background

When a player plays a game, the player usually needs a corresponding game control to control a virtual character in the game to perform a corresponding operation, for example, the player controls the virtual character to squat by clicking a squat control on a game interface. For a game with more complex operation, many different types of game controls are displayed on the game interface, and the controls need to be reasonably arranged on the game interface so as to be convenient for a player to operate.

In the prior art, when the game controls displayed in the game interface are laid out, a fixed operation panel is usually displayed on the game interface, and the player lays out the game controls in turn by adjusting parameters on the operation panel.

However, in the prior art, the operation panel occupies a large display area in the game interface, and the game control displayed in the game interface is easily blocked, which affects the overall layout experience of the player, and causes poor layout effect of the game control.

Disclosure of Invention

The application provides a game control processing method and device, terminal equipment and a readable storage medium, which are used for solving the problem that the existing game control is poor in layout effect.

In a first aspect, an embodiment of the present application provides a method for processing a game control,

obtaining a graphical user interface through a terminal device, wherein the graphical user interface comprises a game control, and the method comprises the following steps:

determining a target game control from the game controls, wherein the target game control is displayed at a first position of the graphical user interface;

displaying an adjusting control at a second position of the graphical user interface based on the first position, wherein the adjusting control is used for adjusting the attribute parameters of the target game control according to the received control instruction;

controlling the target game control to move on the graphical user interface in response to a displacement control instruction for the target game control;

and when the movement of the target game control is finished, determining the display position of the adjusting control according to the movement finishing position of the target game control, so that the adjusting control and the target game control are not mutually shielded when being displayed on the graphical user interface.

In one possible design of the first aspect, the step of determining a target game control from the game controls is preceded by the method comprising:

and responding to a preset trigger instruction, and entering a game control editing mode.

In another possible design of the first aspect, the step of determining a target game control from the game controls includes:

obtaining a first game control with the highest use frequency in the game controls, and determining the first game control as the target game control; or

In response to a selection operation directed to a first one of the game controls, determining that the first game control is the target game control.

In yet another possible design of the first aspect, after the step of determining that the first game control is the target game control, the method includes:

in response to a selection operation directed to a second one of the game controls, determining that the second game control is the target game control.

In yet another possible design of the first aspect, the displaying an adjustment control at a second location of the graphical user interface based on the first location includes:

acquiring a first display area corresponding to the first position in the graphical user interface;

determining a second display area in the graphical user interface according to the first display area;

and determining a second position in the second display area, and displaying the adjusting control at the second position.

In yet another possible design of the first aspect, the graphical user interface includes a left area and a right area, and the step of displaying an adjustment control at a second location of the graphical user interface based on the first location includes:

if the first position is in a left area in the graphical user interface, determining the second position in the right area, and displaying the adjusting control at the second position;

and if the first position is in the right area in the graphical user interface, determining a second position in the left area, and displaying the adjusting control at the second position.

In yet another possible design of the first aspect, when the target game control moves on the graphical user interface, the method further includes:

when the target game control moves to the second display area, controlling an adjusting control which is hidden and displayed in the second display area;

and when the target game control leaves the second display area, controlling the adjustment control to resume displaying in the second display area. In yet another possible design of the first aspect, the controlling the target game control to move on the graphical user interface in response to the displacement control instruction for the target game control includes:

responding to the dragging operation acted on the target game control to generate the displacement control instruction;

and responding to the displacement control instruction, hiding an adjusting control displayed on the graphical user interface, and controlling the target game control to move on the graphical user interface.

In yet another possible design of the first aspect, the step of determining the display position of the adjustment control according to the movement ending position of the target game control at the end of the movement of the target game control includes:

when the movement ending position is located in a second display area corresponding to the second position, displaying the adjusting control at a third position outside the second display area;

and when the movement ending position is positioned outside a second display area corresponding to the second position, the adjustment control is displayed at the second position again.

In yet another possible design of the first aspect, before the step of determining the display position of the adjustment control according to the movement end position of the target game control when the movement of the target game control ends, the method further includes:

determining the real-time moving position of the target game control in the moving process of the target game control;

and updating the display position of the adjusting control according to the real-time moving position so that the adjusting control and the target game control are not shielded when displayed on the graphical user interface.

In yet another possible design of the first aspect, after the adjusting the property parameter of the target game control according to the received control instruction, the method further includes:

and responding to a first click operation acting on a target area in the graphical user interface, and controlling the adjustment control to disappear from the graphical user interface, wherein the target area is an area outside the first position and the second position in the graphical user interface.

In yet another possible design of the first aspect, after the controlling the adjustment control to disappear from the graphical user interface, the method further includes:

in response to a selection operation for a first game control of the game controls, determining that the first game control is a target game control;

determining the display position of the adjusting control in the graphical user interface according to the position of the first game control in the graphical user interface;

displaying the adjustment control at the display position.

In yet another possible design of the first aspect, the adjustment controls include at least a first button for adjusting the size of the target game control, the transparency of the target game control, and a second button for adjusting the position of the target game control.

In yet another possible design of the first aspect, the adjusting the property parameter of the target game control according to the received control instruction includes:

adjusting the size of the target game control in response to a first sliding operation of the first key by a player;

and responding to the second sliding operation of the player on the first key, and adjusting the transparency of the target game control.

In yet another possible design of the first aspect, the adjusting the property parameter of the target game control according to the received control instruction includes:

and responding to the first touch operation of the player on the second key, and adjusting the position of the target game control in the graphical user interface.

In yet another possible design of the first aspect, after the adjusting the property parameter of the target game control according to the received control instruction, the method further includes:

and responding to a second touch operation of the player on the first key, and displaying a preset option box on the graphical user interface, wherein the preset option box is used for instructing the player to save the attribute parameters after adjustment or discard the attribute parameters after adjustment or restore the attribute parameters to preset default values.

In a second aspect, an embodiment of the present application provides a processing apparatus for a game control, including:

the control determining module is used for determining a target game control from the game controls, wherein the target game control is displayed at a first position of the graphical user interface;

the control display module is used for displaying an adjusting control at a second position of the graphical user interface based on the first position, and the adjusting control is used for adjusting the attribute parameters of the target game control according to the received control instruction;

the control moving module is used for responding to a displacement control instruction aiming at the target game control and controlling the target game control to move on the graphical user interface;

and the position determining module is used for determining the display position of the adjusting control according to the movement ending position of the target game control when the movement of the target game control is ended, so that the adjusting control and the target game control are not shielded when displayed on the graphical user interface.

In a third aspect, an embodiment of the present application provides a terminal device, including a memory and at least one processor;

the memory stores computer-executable instructions;

the at least one processor executes computer-executable instructions stored by the memory, causing the at least one processor to perform the method as described above.

In a fourth aspect, the present application provides a readable storage medium, in which computer instructions are stored, and when executed by a processor, the computer instructions are used to implement the method as described above.

In a fifth aspect, the present application provides a program product including computer instructions, which when executed by a processor implement the method described above.

According to the game control processing method and device, the terminal device and the readable storage medium provided by the embodiment of the application, when a player needs to perform layout adjustment on a certain game control, the adjustment control is triggered and displayed on the graphical user interface, and the position change of the adjustment control relative to the game control is controlled to change, so that the adjustment control cannot shield the game control, the layout of the game control by the player is influenced, and the layout effect is improved.

Drawings

The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application;

fig. 1 is a schematic view of a scene of a processing method of a game control according to an embodiment of the present application;

fig. 2 is a schematic flowchart of a processing method of a game control according to an embodiment of the present application;

FIG. 3 is a schematic interface diagram of a graphical user interface provided by an embodiment of the present application;

FIG. 4 is a schematic diagram illustrating a region partition of a graphical user interface according to an embodiment of the present disclosure;

FIG. 5 is a schematic diagram of a layout of game controls of a graphical user interface provided in an embodiment of the present application;

FIG. 6 is a schematic diagram illustrating a zoom of a game control provided in an embodiment of the present application;

FIG. 7 is a schematic diagram illustrating position adjustment of a game control according to an embodiment of the present disclosure;

FIG. 8 is a diagram illustrating an option box in an adjustment control according to an embodiment of the present disclosure;

fig. 9 is a schematic structural diagram of a processing device of a game control according to an embodiment of the present application;

fig. 10 is a schematic structural diagram of a terminal device according to an embodiment of the present application.

With the above figures, there are shown specific embodiments of the present application, which will be described in more detail below. These drawings and written description are not intended to limit the scope of the inventive concepts in any manner, but rather to illustrate the inventive concepts to those skilled in the art by reference to specific embodiments.

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. 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.

Fig. 1 is a scene schematic diagram of a processing method of a game control according to an embodiment of the present application, and as shown in fig. 1, an application scene according to the embodiment of the present application may be a mobile terminal 10. The player needs to rely on these controls on the interface to realize different operations during the game, such as shooting, running, curing, door opening, riding, left probe and right probe, etc. The size, transparency, and position of these controls on the interface are adjustable via the parameter panel 11. Different players can perform custom layout adjustment on the controls according to personal game habits of the players, and game experience is improved.

In the prior art, a fixed position parameter panel 11 is usually displayed in the interface, and the player selects a control in the interface by himself and then correspondingly adjusts the parameter in the parameter panel 11. However, in this prior art, the parameter panel 11 is fixed and always displayed in the interface, and occupies a large part of the whole interface, which affects the overall layout experience of the player and causes interference. To address this problem, the prior art also provides another way to fix and display the parameter panel at the edge of the interface in a resident manner, so as to avoid occupying the area in the interface as much as possible and affecting the player layout. However, in this method, since the system setting options and the like are generally set at the edge of the interface, the system options are easily touched by mistake when the parameter panel is clicked, which is inconvenient for the player to adjust.

In order to solve the above problem, embodiments of the present application provide a method and an apparatus for processing a game control, a terminal device, and a readable storage medium. The target game control is determined from the game controls, the adjusting control is displayed at the second position of the graphical user interface based on the first position of the target game control, and after the target game control is displaced, the adjusting control can follow the displacement end point of the target game control to automatically change the display position, so that the phenomenon that the adjusting control is fixedly resident in the interface to influence the overall layout feeling of a player can be avoided, and the layout effect of the game control is improved.

The technical solution of the present application will be described in detail below with reference to specific examples. It should be noted that the following specific embodiments may be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.

It should be noted that the processing method of the game control in one embodiment of the present disclosure may be executed on a local terminal device or a server. When the processing method of the game control runs on the 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 running mode of the cloud game, the running main body of the game program and the game picture presenting main body are separated, the storage and the running of the processing method of the game control are finished on a cloud game server, and the client equipment is used for receiving and sending data and presenting the game picture, for example, the client equipment can be display equipment 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; but the cloud game server which performs information processing is a 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 optional implementation manner, 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 processing a game control, 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.

Fig. 2 is a schematic flowchart of a processing method of a game control according to an embodiment of the present application, where the method may be applied to a terminal device, where a graphical user interface may be obtained through the terminal device, where the graphical user interface includes the game control, and for example, the graphical user interface may be a game interface or a setting interface of a customized game control. The graphical user interface includes game controls.

As shown in fig. 2, the method may specifically include the following steps:

s201, determining a target game control from the game controls.

Wherein the target game control is displayed at a first location of the graphical user interface. The game control included in the graphical user interface is a plurality of, and the target game may be a shooting control, for example.

For example, game controls may differ from game application to game application, and may be graphically displayed on the display interface. For example, for a shooting-type game application, the game control can include a shooting control, and the player controls a character in the game to shoot by clicking on the shooting control. Optionally, the game controls may also include a crouch control, a jump control, and the like.

The player can control the role in the game to squat by clicking the squat control, and control the role in the game to jump by clicking the jump control.

For example, a player may determine a target game control from the game controls by long-time pressing, that is, after the player clicks one of the game controls in the graphical user interface for a preset time period, it is determined that the clicked game control is the target game control.

In this embodiment, the game control needs to occupy a part of the area of the graphical user interface, and when the size of the game control is adjusted subsequently, the larger the adjustment of the game control is, the more the occupied area is.

And S202, displaying an adjusting control at a second position of the graphical user interface based on the first position.

And the adjusting control is used for adjusting the attribute parameters of the target game control according to the received control instruction. Exemplary attribute parameters include the size, transparency, position in the graphical user interface, etc. of the target game control.

In this embodiment, the first position and the second position are two non-overlapping positions in the graphical user interface. The target game control and the adjusting control are respectively displayed in different areas of the graphical user interface, so that the condition that the adjusting control blocks the target game control and influences the parameter adjustment of the player on the target game control is avoided.

For example, the second position at which the adjustment control is displayed may be a predefined area, such as a region in which the developer divides the graphical user interface into a first target area and a second target area, and the adjustment control is displayed in the second target area when the player picks the target game control to be in the first target area. When the target game control is in the second target area, the adjustment control is displayed in the first target area.

For example, when the target game control is in the first target area, the adjustment control may be displayed in the center of the second target area, i.e., the center of the second target area is the second position. When the target game control is in the second target area, the adjustment control may be displayed in the center of the first target area, i.e., the center of the first target area is the second position.

It should be noted that the target game control may be located at any position in the first target area, that is, any position in the first target area may be used as the first position.

For example, the graphical user interface may be divided into a left side and a right side, where the left side is used as the first target area and the right side is used as the second target area, or the right side is used as the first target area and the left side is used as the second target area.

Optionally, in some embodiments, there may be a symmetric relationship between the first location and the second location, for example, a center point or a central axis of the graphical user interface, and the location of the second location in the graphical user interface may be determined according to the first location and the center point or the first location and the central axis.

For example, the transparency of the adjustment control when displayed at the second position may be preset, for example, the transparency of the adjustment control may be set to a minimum threshold value for better providing a layout effect.

For example, the adjustment control may include different keys or buttons, and the like, and the player may adjust the attribute parameters of the target game control through the keys/buttons.

Fig. 3 is an interface schematic diagram of a graphical user interface provided in the embodiment of the present application, and as shown in fig. 3, the graphical user interface displayed on the display of the mobile terminal 30 may include a plurality of game controls, such as a game control 32, a game control 33, and a game control 34. When the player needs to adjust the property parameters of one of the game controls, the player can click on the game control, for example, game control 32, and then the adjustment control 31 is displayed at the second position of the graphical user interface.

Illustratively, the adjustment control 31 includes four second buttons oriented in different directions and a first button that can slide. The player may adjust the position of game control 32 in the graphical user interface by clicking a second button in a different direction. The player may adjust the size and transparency of game controls 32 by sliding the first button.

And S203, responding to the displacement control instruction aiming at the target game control, and controlling the target game control to move on the graphical user interface.

In this embodiment, the target game control may be moved in the graphical user interface. Specifically, the player may generate a displacement control instruction by dragging the target game control to control the movement thereof. The displacement control command can also be generated in a mode of inputting a displacement track to control the movement of the displacement control command.

When the player controls the target game control to move by dragging the target game control, a starting position (usually, a first position) of dragging and an ending position of dragging can be determined. The end position of the drag will typically be in the graphical user interface because the target game control needs to be displayed at the end position of the drag.

For example, the end position of the drag may be outside the graphical user interface, which, if so, indicates that the player wants to cancel the displacement of the target game control, and the target game control will return to the original position (i.e., the start position of the drag).

Optionally, when the target game control moves, the adjustment control may also move in the graphical user interface correspondingly according to the above-mentioned symmetry relationship.

S204, when the movement of the target game control is finished, determining the display position of the adjusting control according to the movement finishing position of the target game control, so that the adjusting control and the target game control are not shielded when displayed on the graphical user interface.

In this embodiment, when the target game control is moved to a new position, the adjustment control needs to be repositioned in the graphical user interface and displayed at that position.

According to the method and the device, the adjusting control is displayed at the second position of the graphical user interface based on the first position of the target game control, and after the target game control is displaced, the adjusting control can follow the displacement end point of the target game control, the display position is automatically changed, the adjusting control can be prevented from being fixedly resident in the interface, the overall layout feeling of a player is influenced, and the layout effect of the game control is improved.

In some embodiments, before the step S201, the following steps may be further included:

and responding to a preset trigger instruction, and entering a game control editing mode.

In this embodiment, in addition to determining the target game control by long-press operation, a control setting button may be set in the graphical user interface, and when the player clicks the control setting button, a preset trigger instruction is generated, and the game control editing mode is entered.

It should be noted that, a player may enter a game control editing mode in a game, and after entering the game control editing mode, the player clicks a game control, and corresponding operation will not be implemented.

For example, when the player clicks the shooting control after entering the game control editing mode, it means that the player selects the shooting control as the target game control, and the virtual character in the game does not generate the shooting action.

Further, on the basis of the foregoing embodiments, in some embodiments, the step S201 may be specifically implemented by the following steps:

acquiring a first game control with the highest use frequency in the game controls, and determining the first game control as a target game control; or

In response to a selection operation directed to a first one of the game controls, the first game control is determined to be a target game control.

In this embodiment, if no selection operation is detected, the terminal device automatically selects a first game control with the highest player use frequency as the target game control. Of course, the player may also select himself or herself to select a first game control from the game controls as the target game control.

For example, when a player is detected to click on a first game control, it may be determined that the player selected the first game control as the target game control.

Further, in some embodiments, after determining the target game control, the method for processing the game control may further include:

in response to a selection operation directed to a second one of the game controls, the second game control is determined to be a target game control.

In this embodiment, the player may change the target game control before the player does not input the displacement control instruction, for example, when the player selects the first game control as the target game control, the player may change the second game control to the target game control by performing a selection operation on the second game control. At this point, the first game control will no longer be the target game control.

For example, the player may initially click the shooting control as the target game control through a click operation, and before the player inputs the displacement control instruction, the player may click the squat control again, at which point the squat control will be used as the target game control, and the original shooting control is no longer used as the target game control.

In some embodiments, step S202 may be specifically implemented by the following steps:

acquiring a first display area corresponding to a first position in a graphical user interface;

determining a second display area in the graphical user interface according to the first display area;

a second position within the second display area is determined and an adjustment control is displayed at the second position.

In this embodiment, the graphical user interface may be divided into a first display area and a second display area. When the first position is in the first display area (i.e., the target game control is displayed in the first display area), the adjustment control may be displayed in a second position in the second display area.

Specifically, a default position may be preset in the second display area as the second position. When any game control in the first display area is selected and confirmed as the target game control, the adjusting control is correspondingly displayed at the default position.

For example, the default position may be a center point of the second display area.

Further, in some embodiments, the first display area may be a left/right area of the graphical user interface and the second display area may be a right/left area of the graphical user interface. The step S202 can be specifically realized by the following steps:

if the first position is in the left area in the graphical user interface, determining a second position in the right area, and displaying an adjusting control at the second position;

and if the first position is in the right area in the graphical user interface, determining a second position in the left area, and displaying the adjusting control at the second position.

Wherein the first position may be any one position of the left/right regions, and the second position may be a center point of the right/left region.

Alternatively, the second position may also be determined according to the first position, for example, by using a mirror relationship, that is, taking the left area and the right area as two areas that are mirror images of each other, and determining the second position that is mirror image of the first position by the mirror relationship.

For example, the default position may be a center point, and fig. 4 is a schematic diagram illustrating a region division of a graphical user interface provided by an embodiment of the present application. As shown in fig. 4, the graphic user interface is divided into a left area (i.e., the first display area 40) and a right area (i.e., the second display area 41), a center point of the second display area 41 is a default position, and a center point of the first display area 40 may also be the default position. The first display area 40 has game controls 42, 43, and 44 displayed therein, and the second display area 41 has game controls 45 displayed therein. When the game control 42 is a target game control, the adjustment control 46 may be displayed at a default position in the second display area 41 on the right side. When the game control 45 is a target game control, the adjustment control 46 may be displayed at a default position in the first display area 40.

Illustratively, the game control 42 in the first display area 40 and the game control 45 in the second display area 41 may be of different types, and the game control 42 in the first display area 40 may also be shifted to the second display area 41 under the drag of the player.

On the basis of the above embodiments, in some embodiments, when the target game widget moves on the graphical user interface, the processing method of the game widget may further include the steps of:

when the target game control moves to the second display area, controlling to hide the adjusting control displayed in the second display area;

and when the target game control leaves the second display area, controlling the adjustment control to resume displaying in the second display area.

In this embodiment, the adjustment controls may remain displayed in the graphical user interface as the target game control moves. However, if the target game control moves to a display area close to the adjustment control, the adjustment control needs to be hidden at this time, so as to avoid blocking the target game control and influencing the operation of the player; when the target game control is far away from the display area of the adjustment control, the adjustment control can be displayed again.

Specifically, the target game control is located at a first position in the first display area before the target game control moves, the adjustment control can be hidden when the target game control moves to the second display area, and the adjustment control can be displayed again when the target game control leaves the second display area.

Optionally, when the target game control moves, the adjustment control may be kept displayed at the second position, but when the target game control moves, a linear distance from the second position is within a preset distance threshold range, and at this time, the adjustment control needs to be hidden.

Fig. 5 is a schematic diagram of a layout of game controls of a graphical user interface according to an embodiment of the present disclosure, and as shown in fig. 5, a player may select a game control 52 displayed in a first display area 53 of the graphical user interface as a target game control, and at this time, a trigger adjustment control 51 is displayed in a second display area 50 of the graphical user interface. The player may control the game controls 52 to move on the graphical user interface by dragging or sliding, among other operations.

When the game control 52 moves from the first display area 53 to the second display area 50, and the straight-line distance between the game control 52 and the adjustment control 51 is short, the adjustment control 51 will be hidden and not displayed in the graphical user interface.

For example, in some embodiment modes, when the target game control moves to the second display area, the adjustment control may switch to the first display area to be displayed, and when the target game control moves to the first display area, the adjustment control may switch back to the second display area to continue to be displayed. I.e., to keep the adjustment control in the displayed state for a long period of time, rather than in the hidden state.

On the basis of the foregoing embodiments, in some embodiments, the step S203 may specifically be implemented by the following steps:

responding to the dragging operation acted on the target game control to generate a displacement control instruction;

and responding to the displacement control instruction, hiding the adjusting control displayed on the graphical user interface, and controlling the target game control to move on the graphical user interface.

In this embodiment, when the target game control is dragged at the beginning and displaced, the adjustment control may be switched to a hidden state, that is, not displayed on the graphical user interface. And when the target game control is dragged to be finished and the displacement is finished, the control is adjusted to be restored to the display state.

Further, on the basis of the foregoing embodiments, in some embodiments, the step S204 may specifically include the following steps:

when the movement ending position is located in a second display area corresponding to the second position, displaying an adjusting control at a third position outside the second display area;

and when the movement ending position is positioned outside the second display area corresponding to the second position, the adjustment control is restored to be displayed at the second position.

In this embodiment, if the adjustment control is in the hidden state during the movement of the target game control, after the movement of the target game control is finished, the adjustment control needs to be restored to the display state, but at this time, the display position of the adjustment control needs to be determined again.

Specifically, when the adjustment space enters the hidden state, if the adjustment space is in the second display area, the adjustment control needs to be restored to the display state in the other area outside the second display area when the target game control moves to the second display area. And if the target game control is not moved to the second display area, the adjustment control is still displayed in the second display area after the movement of the target game control is finished.

On the basis of the foregoing embodiment, in some embodiments, before step S204, the method for processing the game control further includes the following steps:

determining the real-time moving position of the target game control in the moving process of the target game control;

and updating the display position of the adjusting control according to the real-time moving position so that the adjusting control and the target game control are not shielded when displayed on the graphical user interface.

In this embodiment, if the adjustment control is kept in the display state during the movement of the target game control, the real-time movement position of the target game control may be acquired during the movement of the target game control, and then the display position of the adjustment control is updated in real time.

In some embodiments, after the player has adjusted the property parameters of the target game control through the adjustment control, the method for processing the game control may further include the following steps:

and controlling the adjustment control to disappear from the graphical user interface in response to a first click operation on a target area in the graphical user interface.

The target area is an area outside the first position and the second position in the graphical user interface. Illustratively, the first click operation may be a player clicking a blank, i.e., target, area of the graphical user interface.

Further, in some embodiments, the processing method of the game control may further include the following steps:

in response to a selection operation for a first game control of the game controls, determining that the first game control is a target game control;

determining the display position of the adjustment control in the graphical user interface according to the position of the first game control in the graphical user interface;

an adjustment control is displayed at the display location.

In this embodiment, after the player has set the attribute parameters of a certain target game control, the player may continue to set the attribute parameters of other game controls, but before this, the player may first make the adjustment control disappear from the graphical user interface by the first click operation, so as to avoid the adjustment control overlapping with other game controls to affect the player's selection.

After the adjustment control disappears, if the player determines another target game control that needs to be adjusted, the player may perform a selection operation, for example, click a first game control of the game controls, as another target game control. At this time, the adjustment control is displayed at the corresponding display position according to the position of the other target game control in the graphical user interface.

In some embodiments, the adjustment control may specifically include a first button for adjusting the size and transparency of the target game control, and a second button for adjusting the position of the target game control.

For example, fig. 6 is a schematic zoom view of a game control provided in an embodiment of the present application, and as shown in fig. 6, an adjustment control 61 includes four square second buttons and a circular first button. The first key can slide, and the position of the second key is fixed.

In this embodiment, the size and the transparency of the game control 62 can be adjusted correspondingly by performing different sliding operations on the first button, and the position of the game control 62 can be adjusted by clicking different square second buttons, so as to achieve fine adjustment of the position.

Further, in some embodiments, the control instruction may be generated by a first sliding operation, for example, the first sliding operation may refer to sliding the first key to the left or to the right. The processing method of the game control can comprise the following steps:

responding to a first sliding operation of a player on a first key, and adjusting the size of a target game control;

and responding to the second sliding operation of the player on the first key, and adjusting the transparency of the target game control.

Illustratively, referring to FIG. 6, the first sliding action refers to sliding the first button to the left, at which time the target game control 62 will zoom out. Correspondingly, if the first button is slid to the right, the target game control 62 is enlarged.

Illustratively, the zoom size may be determined based on a sliding distance to the left or right. For example, when the player drags the first button a distance to the left, the selected game control 62 may zoom out to 40% of the default size, and when the player drags the first button a distance to the right, the selected game control may zoom in to 90% of the default size.

Optionally, the first key may slide up and down in addition to sliding left and right. The second sliding operation refers to sliding the first key up or down. The transparency of the target game control may increase when sliding upwards and decrease when sliding downwards. The transparency adjustment value may also be determined according to the upward or downward sliding distance, which is similar to the size adjustment and is not described herein again.

According to the embodiment of the application, through sliding operation, a player can drag the sliding button in the whole graphical user interface range, the sliding distance can be larger, the transparency and the size of the game control can be adjusted more accurately correspondingly, and the parameter adjusting effect is improved.

Further, in some embodiments, the control command may be generated by a first touch operation, for example, clicking a second key with a different square shape. The processing method of the game control can comprise the following steps:

and responding to the first touch operation of the player on the second key, and adjusting the position of the target game control in the graphical user interface.

In this embodiment, the first touch operation may be a click operation on any one of the second buttons, for example, one of the second buttons is clicked, so that the target game control is controlled to move downward. For example, the first touch operation may be a discontinuous click operation, that is, each click operation is performed, the target game control is correspondingly displaced by a preset distance.

For example, the first touch operation may also be a continuous click operation (i.e., pressing any one of the second buttons for a long time), and the distance that the target game control should be displaced may be determined according to the key pressing duration.

For example, fig. 7 is a schematic diagram illustrating position adjustment of a game control provided by an embodiment of the present application, and as shown in fig. 7, the second button in the adjustment control 71 is triangular, and there is one second button in each direction, and when the player clicks the second button below, the selected game control 72 will move downward.

According to the embodiment of the application, the first key and the second key are arranged in the adjusting control, so that a player can conveniently perform position fine adjustment, size zooming and transparency adjustment on the game control, and the layout effect is improved. Meanwhile, the key functions in the adjusting control are very concentrated (for example, the first key can be adjusted in size and transparency), and compared with the parameter panel in the prior art, the adjusting control has the advantages that a plurality of keys are arranged, and a large graphical user interface is occupied.

On the basis of the foregoing embodiments, in some embodiments, the processing method of the game control may include the following steps:

and responding to a second touch operation of the player on the first key, and displaying a preset option frame on the graphical user interface.

The preset option box is used for instructing the player to save the attribute parameters after adjustment or discard the attribute parameters after adjustment or restore the attribute parameters to preset default values.

For example, the second touch operation may be a single click on the first key, a double click on the first key, or a long press on the first key.

For example, fig. 8 is a schematic diagram of a option box in an adjustment control provided in the embodiment of the present application, and as shown in fig. 8, after the game control 80 is selected as a target game control and the adjustment control 81 is invoked, when a player clicks or double-clicks a first button of the adjustment control 81, a preset option box will be displayed.

Illustratively, the preset option boxes include save, exit, and restore default option boxes. After the default box is displayed, the player may click on one of the options, for example, when the player clicks "save," the parameters that were previously adjusted for the game control will be saved. When the player clicks "resume default," the parameters that were previously adjusted for the game control are discarded. When the player clicks 'exit', the three option boxes disappear from the graphical user interface, and the adjustment control returns to the original state.

According to the embodiment of the application, the response type preset option frame is arranged, on the basis of meeting the functional requirements, the graphical user interface occupied by the adjusting control can be effectively reduced, and the condition that the adjusting control blocks the game control in the graphical user interface is avoided.

The following are embodiments of the apparatus of the present application that may be used to perform embodiments of the method of the present application. For details which are not disclosed in the embodiments of the apparatus of the present application, reference is made to the embodiments of the method of the present application.

Fig. 9 is a schematic structural diagram of a processing device of a game control according to an embodiment of the present application, where the processing device may be integrated in a terminal device, or may be independent of the terminal device and cooperate with the terminal device to implement the present solution. As shown in fig. 9, the processing device 90 of the game control includes a control determination module 91, a control display module 92, a control movement module 93, and a position determination module 94.

The control determination module 91 is configured to determine a target game control from the game controls. The control display module 92 is configured to display an adjustment control at a second location of the graphical user interface based on the first location. The control moving module 93 is configured to control the target game control to move on the graphical user interface in response to the displacement control instruction for the target game control. The position determining module 94 is configured to determine, when the movement of the target game control is finished, a display position of the adjustment control according to the movement finished position of the target game control, so that the adjustment control and the target game control are not occluded with each other when displayed on the graphical user interface.

The target game control is displayed at a first position of the graphical user interface, and the adjusting control is used for adjusting the attribute parameters of the target game control according to the received control instruction.

In some embodiments, the processing apparatus further includes an editing module, configured to enter a game control editing mode in response to a preset trigger instruction.

In some embodiments, the control determination module 91 may be specifically configured to:

acquiring a first game control with the highest use frequency in the game controls, and determining the first game control as a target game control; or

In response to a selection operation directed to a first one of the game controls, the first game control is determined to be a target game control.

In some embodiments, the processing apparatus further includes a selection determining module configured to: in response to a selection operation directed to a second one of the game controls, the second game control is determined to be a target game control.

In some embodiments, the control display module may be specifically configured to:

acquiring a first display area corresponding to a first position in a graphical user interface;

determining a second display area in the graphical user interface according to the first display area;

a second position within the second display area is determined and an adjustment control is displayed at the second position.

In some embodiments, if the graphical user interface includes a left area and a right area, the control display module may be specifically configured to:

if the first position is in the left area in the graphical user interface, determining a second position in the right area, and displaying an adjusting control at the second position;

and if the first position is in the right area in the graphical user interface, determining a second position in the left area, and displaying the adjusting control at the second position.

In some embodiments, when the target game control moves on the graphical user interface, the processing apparatus further includes a hiding module configured to:

when the target game control moves to the second display area, controlling to hide the adjusting control displayed in the second display area;

and when the target game control leaves the second display area, controlling the adjustment control to resume displaying in the second display area.

In some embodiments, the control moving module may be specifically configured to:

responding to the dragging operation acted on the target game control to generate a displacement control instruction;

and responding to the displacement control instruction, hiding the adjusting control displayed on the graphical user interface, and controlling the target game control to move on the graphical user interface.

In some embodiments, the location determination module may be specifically configured to:

when the movement ending position is located in a second display area corresponding to the second position, displaying an adjusting control at a third position outside the second display area;

and when the movement ending position is positioned outside the second display area corresponding to the second position, the adjustment control is restored to be displayed at the second position.

In some embodiments, the processing apparatus further includes an update module configured to:

determining the real-time moving position of the target game control in the moving process of the target game control;

and updating the display position of the adjusting control according to the real-time moving position so that the adjusting control and the target game control are not shielded when displayed on the graphical user interface.

In some embodiments, the processing apparatus further comprises a disappearance module configured to:

and controlling the adjustment control to disappear from the graphical user interface in response to a first click operation on a target area in the graphical user interface.

The target area is an area outside the first position and the second position in the graphical user interface.

In some embodiments, the processing apparatus further includes a recovery module configured to:

in response to a selection operation for a first game control of the game controls, determining that the first game control is a target game control;

determining the display position of the adjustment control in the graphical user interface according to the position of the first game control in the graphical user interface;

an adjustment control is displayed at the display location.

In some embodiments, the adjustment control comprises at least a first button for adjusting the size of the target game control, the transparency of the target game control, and a second button for adjusting the position of the target game control.

In some embodiments, the processing apparatus further includes a first operation module configured to:

responding to a first sliding operation of a player on a first key, and adjusting the size of a target game control;

and responding to the second sliding operation of the player on the first key, and adjusting the transparency of the target game control.

In some embodiments, the processing apparatus further includes a second operation module configured to:

and responding to the first touch operation of the player on the second key, and adjusting the position of the target game control in the graphical user interface.

In some embodiments, the processing apparatus further includes a determining module configured to:

and responding to a second touch operation of the player on the first key, and displaying a preset option frame on the graphical user interface.

The preset option box is used for instructing the player to save the attribute parameters after adjustment or discard the attribute parameters after adjustment or restore the attribute parameters to preset default values.

The apparatus provided in the embodiment of the present application may be used to execute the method in the above embodiments, and the implementation principle and the technical effect are similar, which are not described herein again.

It should be noted that the division of the modules of the above apparatus is only a logical division, and the actual implementation may be wholly or partially integrated into one physical entity, or may be physically separated. And these modules can be realized in the form of software called by processing element; or may be implemented entirely in hardware; and part of the modules can be realized in the form of calling software by the processing element, and part of the modules can be realized in the form of hardware. For example, the control determination module may be a processing element that is set up separately, or may be implemented by being integrated in a chip of the apparatus, or may be stored in a memory of the apparatus in the form of program code, and a processing element of the apparatus calls and executes the function of the control determination module. Other modules are implemented similarly. In addition, all or part of the modules can be integrated together or can be independently realized. The processing element here may be an integrated circuit with signal processing capabilities. In implementation, each step of the above method or each module above may be implemented by an integrated logic circuit of hardware in a processor element or an instruction in the form of software.

For example, the 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 (DSPs), or one or more Field Programmable Gate Arrays (FPGAs), among others. For another example, when some of the above modules are 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 that can call program code. As another example, these modules may be integrated together, implemented in the form of a system-on-a-chip (SOC).

In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. The procedures or functions according to the embodiments of the present application are all or partially generated when the computer program instructions are loaded and executed on a computer. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by wire (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wirelessly (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.

Fig. 10 is a schematic structural diagram of a terminal device according to an embodiment of the present application. As shown in fig. 10, the terminal apparatus 1000 includes: at least one processor 1001, memory 1002, bus 1003, and display 1004.

Wherein: the processor 1001, the display 1004 and the memory 1002 communicate with each other via the bus 1003.

The display 1004 is used to display a graphical user interface of the terminal device 1000.

The processor 1001 is configured to execute the computer instructions stored in the memory 1002, and may specifically execute the relevant steps in the method described in the foregoing embodiment.

The processor may be a central processing unit, or an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits configured to implement an embodiment of the present invention. The terminal device comprises one or more processors, which can be the same type of processor, such as one or more CPUs; or may be different types of processors such as one or more CPUs and one or more ASICs.

A memory for storing programmed computer instructions. The memory may comprise high speed RAM memory and may also include non-volatile memory, such as at least one disk memory.

The present embodiment also provides a readable storage medium, in which computer instructions are stored, and when at least one processor of the terminal device executes the computer instructions, the terminal device executes the method for controlling game play provided in the above various embodiments.

The present embodiments also provide a program product comprising computer instructions stored in a readable storage medium. The computer instructions can be read from a readable storage medium by at least one processor of the terminal device, and the computer instructions can be executed by the at least one processor to enable the terminal device to implement the processing method of the game control provided by the various embodiments.

In the present application, "at least one" means one or more, "a plurality" means two or more. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone, wherein A and B can be singular or plural. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship; in the formula, the character "/" indicates that the preceding and following related objects are in a relationship of "division". "at least one of the following" or similar expressions refer to any combination of these items, including any combination of the singular or plural items. For example, at least one (one) of a, b, or c, may represent: a, b, c, a-b, a-c, b-c, or a-b-c, wherein a, b, c may be single or multiple.

It is to be understood that the various numerical references referred to in the embodiments of the present application are merely for convenience of description and distinction and are not intended to limit the scope of the embodiments of the present application. In the embodiment of the present application, the sequence numbers of the above-mentioned processes do not mean the execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiment of the present application.

Finally, it should be noted that: the above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present application.

26页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种游戏机摇杆

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类