Game control processing method and device, computer equipment and storage medium
By responding to player operations in the game control editing interface and adjusting the control position to maintain target spacing, the complex problem of custom adjustment of game controls is solved and the game interaction efficiency is improved.
Patent Information
- Application Number
- CN202411949955.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-26
- Publication Date
- 2025-03-04
AI Technical Summary
In the prior art, when players adjust the display position in the custom game control interface, it is easy to cause the game control to overlap and stack, resulting in complex and cumbersome operations and affecting the game interaction efficiency.
By providing a control editing interface in the graphical user interface, in response to the player's movement of the game control, the control position is adjusted so that the spacing between it and other controls is not lower than the pre-set target spacing.
Simplifies the custom adjustment operation of game controls, saves adjustment time, and improves game interaction efficiency and operation consistency.
Smart Images

Figure CN119548815A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of game technology, and in particular to a method, device, computer equipment and storage medium for processing game controls, wherein the storage medium is a computer storage medium. Background Art
[0002] In order to meet people's pursuit of spiritual life, entertainment games that can be operated on terminals have emerged, such as role-playing games, tactical competitive games, shooting competitive games or massively multiplayer online role-playing games developed based on client or server architecture. In the game, players can manipulate the virtual characters on the screen to play the game, and can perform related operations such as walking, running, jumping, picking up props and fighting in the game scene based on the first or third perspective of the characters operated by the players, so that players can experience the visual impact brought by the game in an immersive way, greatly enhancing the initiative and realism of the game.
[0003] At present, games configure multiple game controls for players to provide players with multiple game functions. Some players will selectively choose some game controls to use due to personal habits, and adjust the display position of the game controls in the custom control interface. However, in the prior art, when players adjust the display position of game controls in the custom control interface, there will be a situation where a large number of game controls overlap and stack on the graphical user interface. Displaying a large number of overlapping and stacked game controls in the custom editing interface will cause the player to perform complicated and cumbersome operations to adjust the key positions of the custom controls. Players need to spend time manually arranging the positions of the key positions of each game control, resulting in complicated steps for customizing the position of the game controls, which takes a long time, and the game controls cannot be adjusted quickly, resulting in low game interaction efficiency. Summary of the invention
[0004] The embodiments of the present application provide a method, apparatus, computer device, and storage medium for processing game controls, which can improve game interaction efficiency.
[0005] In a first aspect, an embodiment of the present application provides a method for processing a game control, wherein a graphical user interface is provided through a terminal device, and the method comprises:
[0006] In response to the control editing instruction, displaying a control editing interface on the graphical user interface, wherein the control editing interface includes at least a first game control and a second game control;
[0007] In response to a move operation on a first game control, a position of the first game control in the control editing interface is adjusted so that a distance between the first game control and the second game control is not less than a target distance; wherein the target distance is a preset minimum distance value between two game controls.
[0008] In a second aspect, an embodiment of the present application provides a device for processing game controls, which provides a graphical user interface through a terminal device, including:
[0009] A display unit, configured to display a control editing interface on the graphical user interface in response to a control editing instruction, wherein the control editing interface includes at least a first game control and a second game control;
[0010] An adjustment unit is used to adjust the position of the first game control in the control editing interface in response to a move operation on the first game control, so that the distance between the first game control and the second game control is not less than a target distance; wherein the target distance is a preset minimum distance value between two game controls.
[0011] In a third aspect, an embodiment of the present application further provides a computer device, including a memory storing a plurality of instructions; a processor loads instructions from the memory to execute the steps of any game control processing method provided in the embodiment of the present application.
[0012] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, which stores a plurality of instructions suitable for loading by a processor to execute the steps of any game control processing method provided in the embodiment of the present application.
[0013] In a fifth aspect, an embodiment of the present application further provides a computer program product, including a computer program or instructions, which, when executed by a processor, implements the steps in any game control processing method provided in the embodiment of the present application.
[0014] By adopting the scheme of the embodiment of the present application, when adjusting the key positions of game controls, each game control can be controlled to maintain the required target spacing between each other, which simplifies the operating steps of custom adjusting the positions of game controls, saves the adjustment time of game controls, and makes the player's adjustment operation of the position arrangement of the game control keys smoother, allowing the player to quickly adjust the game controls, improving the continuity of the player's game operation, thereby improving the game interaction efficiency and the game interaction efficiency in the game. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0016] Figure 1 It is a scene schematic diagram of a processing system of a game control provided in an embodiment of the present application;
[0017] Figure 2 This is a flowchart of an embodiment of a method for processing game controls provided in an embodiment of the present application;
[0018] Figure 3 This is a schematic diagram of a scenario of a method for processing game controls provided in an embodiment of the present application;
[0019] Figure 4 This is another scenario schematic diagram of the method for processing game controls provided in an embodiment of the present application;
[0020] Figure 5 This is another scenario schematic diagram of the method for processing game controls provided in an embodiment of the present application;
[0021] Figure 6 This is another scenario schematic diagram of the method for processing game controls provided in an embodiment of the present application;
[0022] Figure 7 This is another scenario schematic diagram of the method for processing game controls provided in an embodiment of the present application;
[0023] Figure 8 This is another scenario schematic diagram of the method for processing game controls provided in an embodiment of the present application;
[0024] Fig. 9 This is another scenario schematic diagram of the method for processing game controls provided in an embodiment of the present application;
[0025] Fig.10 This is another scenario schematic diagram of the method for processing game controls provided in an embodiment of the present application;
[0026] Fig.11 This is another scenario schematic diagram of the method for processing game controls provided in an embodiment of the present application;
[0027] Fig.12 is a structural schematic diagram of a processing device for a game control provided in an embodiment of the present application;
[0028] Fig.13 It is a schematic diagram of the structure of the computer device provided in the embodiment of the present application. DETAILED DESCRIPTION
[0029] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without making creative work are within the scope of protection of the present application. At the same time, in the description of the embodiments of the present application, the terms "first", "second", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more features. In the description of the embodiments of the present application, the meaning of "multiple" is two or more, unless otherwise clearly and specifically defined.
[0030] The embodiments of the present application provide a method, device, computer device, and computer-readable storage medium for processing game controls. Specifically, the present embodiment will be described from the perspective of a processing device for game controls, and the processing device for game controls can be specifically integrated in a computer device, that is, the method for processing game controls in the embodiments of the present application can be executed by a computer device, and optionally, the computer device may include: a terminal device. The terminal device may be a mobile phone, a tablet computer, a smart Bluetooth device, a laptop computer, a game console, or a personal computer (PC) and the like.
[0031] The method for processing game controls provided in the embodiments of the present application can be applied to a processing system for game controls. The processing system for game controls may include a player terminal device and a server, and the terminal may be a device including both receiving and transmitting hardware, that is, a device having receiving and transmitting hardware capable of performing two-way communication on a two-way communication link. The player terminal device and the server may perform two-way communication via a network.
[0032] Optionally, the server may be an independent server, or a server network or server cluster composed of servers, including but not limited to a computer, a network host, a single network server, a plurality of network server sets or a cloud server composed of multiple servers. The cloud server is composed of a large number of computers or network servers based on cloud computing.
[0033] In one embodiment of the present disclosure, the method for processing game controls can be run on a local terminal device or a server. When the method for processing game controls is run on a server, the method can be implemented and executed based on a cloud interaction system, wherein the cloud interaction system includes a server and a client device.
[0034] For example, when the processing method of the game control runs on a terminal, the terminal device stores a game application and is used to present a virtual scene in the game screen. The terminal device is used to interact with the user through a graphical user interface, for example, by downloading and installing a game application through the terminal device and running it. The terminal device may provide the graphical user interface to the user in a variety of ways, for example, it may be rendered and displayed on a display screen of the terminal device, or the graphical user interface may be presented through holographic projection. For example, the terminal device may include a touch display screen and a processor, the touch display screen is used to present a graphical user interface and receive operation instructions generated by a user acting on the graphical user interface, the graphical user interface includes a game screen, and the processor is used to run the game, generate a graphical user interface, respond to operation instructions, and control the display of the graphical user interface on the touch display screen.
[0035] For example, when the processing method of the game control runs on the server, it can be a cloud game. Cloud gaming refers to a gaming method based on cloud computing. In the operation mode of cloud gaming, the operating body of the game application and the game screen presentation body are separated, and the storage and operation of the processing method of the game control are completed on the cloud gaming server. The game screen presentation is completed on the client of the cloud gaming. The cloud gaming client is mainly used for receiving and sending game data and presenting the game screen. For example, the cloud gaming client can be a display device with data transmission function close to the user side, such as a mobile terminal, a TV, a computer, a handheld computer, a personal digital assistant, etc., but the terminal device for processing game data is a cloud gaming server in the cloud. When playing the game, the user operates the cloud gaming client to send an operation instruction to the cloud gaming server. The cloud gaming server runs the game according to the operation instruction, encodes and compresses the game screen and other data, and returns it to the cloud gaming client through the network. Finally, the cloud gaming client decodes and outputs the game screen.
[0036] See also Figure 1 , Figure 1A scene diagram of a processing system for a game control provided by an embodiment of the present application. The system may include at least one terminal, at least one server, at least one database, and a network. The terminal held by the user can be connected to the server of different games through the network. The terminal is any device with computing hardware that can support and execute software products corresponding to the game. In addition, when the system includes multiple terminals, multiple servers, and multiple networks, different terminals can be connected to each other through different networks and different servers. The network can be a wireless network or a wired network, such as a wireless network such as a wireless local area network (WLAN), a local area network (LAN), a cellular network, a 2G network, a 3G network, a 4G network, a 5G network, etc. In addition, different terminals can also use their own Bluetooth network or hotspot network to connect to other terminals or to servers, etc. For example, multiple users can be online through different terminals and connected and synchronized with each other through appropriate networks to support multi-player games. In addition, the system may include multiple databases, multiple databases are coupled to different servers, and information related to the game environment can be continuously stored in the database when different users are online for multi-player games.
[0037] The embodiment of the present application provides a method for processing game controls, which can be executed by a terminal or a server. The embodiment of the present application takes the method for processing game controls executed by a terminal as an example for explanation. Among them, the terminal may include a touch display screen and a processor (of course, the terminal may also use peripherals such as a mouse and a keyboard as input devices, and only the touch display screen is used as an example for explanation here), and the touch display screen is used to present a graphical user interface and receive operation instructions generated by the user acting on the graphical user interface. When the user operates the graphical user interface through the touch display screen, the graphical user interface can control the local content of the terminal by responding to the received operation instructions, and can also control the content of the opposite server by responding to the received operation instructions. For example, the operation instructions generated by the user acting on the graphical user interface include instructions for starting a game application, and the processor is configured to start the game application after receiving the instructions for starting the game application provided by the user. In addition, the processor is configured to render and draw a graphical user interface associated with the game on the touch display screen. The touch display screen is a multi-touch sensitive screen that can sense touch or sliding operations performed simultaneously by multiple points on the screen. The user uses a finger to perform a touch operation on the graphical user interface, and when the graphical user interface detects the touch operation, different virtual objects in the graphical user interface of the game are controlled to perform actions corresponding to the touch operation.
[0038] It should be noted that Figure 1The scenario diagram of the game control processing system shown is merely an example. The game control processing system and scenario described in the embodiment of the present application are intended to more clearly illustrate the technical solution of the embodiment of the present application, and do not constitute a limitation on the technical solution provided in the embodiment of the present application. A person of ordinary skill in the art can appreciate that with the emergence of new business scenarios, the technical solution provided in the embodiment of the present application is also applicable to similar technical problems.
[0039] The embodiment of the present application provides a method for processing a game control, which can be executed by a terminal or a server. The embodiment of the present application takes the method for processing a game control executed by a terminal as an example for explanation, and a graphical user interface can be provided by a terminal device, and the graphical user interface includes at least part of a virtual scene and a controlled virtual object located in the virtual scene and controlled by the terminal device. The graphical user interface, virtual scene, and virtual object are explained below.
[0040] The game scene (or virtual scene) is a virtual scene displayed (or provided) when the application is running on a terminal or server. Optionally, the virtual scene is a simulation environment of the real world, or a semi-simulation and semi-fictitious virtual environment, or a purely fictitious virtual environment. The virtual scene is any one of a two-dimensional virtual scene and a three-dimensional virtual scene, and the virtual environment can be the sky, land, ocean, etc., wherein the land includes environmental elements such as deserts and cities. Among them, the virtual scene is a scene with complete game logic of virtual objects such as user control. For example, for sandbox 3D shooting games, the virtual scene is a 3D game world for players to control virtual objects to fight. Example virtual scenes may include: at least one element of mountains, plains, rivers, lakes, oceans, deserts, skies, plants, buildings, and vehicles; for example, for 2D card games, the virtual scene is a scene for displaying released cards or displaying virtual objects corresponding to cards. Example virtual scenes may include: an arena, a decisive battlefield, or other "field" elements or other elements that can display the status of card battles; for 2D or 3D multiplayer online tactical competitive games, the virtual scene is a 2D or 3D terrain scene for virtual objects to fight. Example virtual scenes may include: canyon-style mountains, lines, rivers, classrooms, tables and chairs, podiums and other elements.
[0041] The graphical user interface is obtained by executing a software application on a processor of a mobile terminal or other terminal and rendering it on a display, and can be a display screen interface of a terminal device. The graphical user interface can present the entire game scene, or only a part of the game scene. The game scene includes multiple static virtual objects, specifically including ground, mountains, rocks, vegetation, buildings, etc. When the game scene is relatively large, only the local content of the game scene is displayed on the graphical user interface of the terminal device during the game. Optionally, the game scene contains game characters, which can be game characters controlled by players, or NPCs (abbreviation of non-player characters, which is a type of character in the game, meaning non-player characters), which is not limited in this exemplary embodiment. The graphical user interface can include a UI interface and a game screen for players to interact. In an optional embodiment, the UI interface can include game controls (such as skill controls, mobile controls, function controls, etc.), indicator signs (such as direction indicator signs, role indicator signs, etc.), information display areas (such as the number of kills, game time, etc.), or game setting controls (such as system settings, stores, gold coins, etc.). In an optional implementation, the game screen is a display screen corresponding to a virtual scene displayed by a terminal device, and the game screen may include virtual objects such as game characters, NPC characters, AI characters, etc. that execute game logic in the virtual scene.
[0042] A game object (or virtual object, game character) refers to a dynamic object that can be controlled in a virtual scene. Optionally, the dynamic object can be a virtual character, a virtual animal, a cartoon character, etc. The virtual object is a character controlled by a player through an input device, or an artificial intelligence (AI) set in a virtual environment battle through training, or a non-player character (NPC) set in a virtual scene battle. Optionally, the virtual object is a virtual character competing in a virtual scene. Optionally, the number of virtual objects in the virtual scene battle is preset, or is dynamically determined according to the number of clients joining the battle, and the embodiment of the present application does not limit this. In a possible implementation, the user can control the virtual object to move in the virtual scene, for example, control the virtual object to run, jump, crawl, etc., and can also control the virtual object to use the skills, virtual props, etc. provided by the application to fight with other virtual objects. (Game) props refer to props that can be used by virtual objects in a virtual environment, including but not limited to firearms, cold weapons, grenades, shields, springboards, puppets, etc., which can be used by virtual objects to speed up their own attributes, assist in combat, or launch damage to other virtual objects. Virtual props can also be supply props such as bullets, and can also be equipped on designated virtual weapons for accessories such as extended magazines, aiming scopes, flash suppressors, and stocks. The virtual camera is a necessary component for the game scene screen, which is used to present the game scene screen. A game scene corresponds to at least one virtual camera. According to actual needs, there can be two or more virtual cameras, which serve as the game rendering window to capture and present the game world's screen content to the player. By setting the parameters of the virtual camera, the player's perspective of viewing the game world can be adjusted, such as the first-person perspective and the third-person perspective.
[0043] The following is a detailed description in conjunction with the accompanying drawings. In this embodiment, the execution subject is a terminal device as an example. It should be noted that the description order of the following embodiments is not intended to limit the preferred order of the embodiments. Although the logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in an order different from that shown in the accompanying drawings.
[0044] See also Figure 2 , Figure 2 A flowchart of a method for processing a game control provided in an embodiment of the present application is provided. The specific process of the method for processing the game control may be as follows: Step 101 to Step 102:
[0045] 101. In response to a control editing instruction, display a control editing interface on a graphical user interface, wherein the control editing interface includes at least a first game control and a second game control.
[0046] Among them, the game control can be a control that can realize a certain game function in the target game after a trigger operation is performed on the game control. The game control can be a game attack control, a game direction control, a game interaction control, and a game weapon control. For example, the game attack control can be used to control the main virtual character in the game battle to use virtual weapons or virtual props in the virtual scene to control, or to attack the game, or to release game skills; the game direction control can be used to control the main virtual character in the game battle to move in the virtual scene. Various game interactive behaviors can be performed in the game battle through the game interaction control, such as riding a virtual vehicle, rescuing a friendly virtual character, dragging virtual items, and other interactive behaviors.
[0047] The first game control and the second game control may be two different game controls on the control editing interface.
[0048] In the embodiment of the present application, a graphical user interface may be provided by a terminal device, and the graphical user interface displays at least part of a game scene, wherein the game scene includes a controlled virtual object controlled by the terminal device and a plurality of game controls corresponding to the controlled virtual character. Figure 3 As shown, the computer device can provide a graphical user interface 1. In response to a control editing instruction, the computer device displays a control editing interface 11 on the graphical user interface 1. The control editing interface 11 includes multiple game controls. The multiple game controls include a first type of aiming control 111, an attack control 112, and a running control 113, as well as a second type of virtual knife control 114, a nearby rescue control 115, and an external rescue control 116.
[0049] 102. In response to a move operation on the first game control, adjust the position of the first game control in the control editing interface, and make the distance between the first game control and the second game control not less than a target distance; wherein the target distance is a preset minimum distance value between two game controls.
[0050] The moving operation may be an interactive operation for controlling the movement of the first game control, for example, at least one of a touch operation, a mouse operation, a keyboard operation, a voice interaction, a gesture control, and a joystick operation. Exemplarily, the moving operation for the first game control may be to long press the first game control and drag the first game control on the control editing interface to move the first game control.
[0051] The terminal responds to the movement operation of the first game control, updates the display position of the first game control on the control editing interface, and during the movement of the first game interface, the display position of the second game control on the control editing interface can be adjusted so that the distance between the first game control and the second game control is not less than the target spacing. The target spacing can be a pre-set minimum distance that needs to be maintained between the first game control and the second game control. For example, it can be set in advance in the code, or it can be customized by the user through the control editing interface. For the customized target spacing, it can be set according to the spacing setting instruction. The spacing setting instruction can be triggered by voice, gesture, etc., or it can be triggered by the relevant controls on the control editing interface.
[0052] In one embodiment, the spacing setting instruction may be triggered for at least one target type of control. Before the step of “adjusting the position of the first game control in the control editing interface in response to the move operation for the first game control”, the method for processing the game control provided in the embodiment of the present application may further include:
[0053] In response to an interval setting instruction for at least one target type of game controls, a target interval that needs to be maintained between the target type of game controls is obtained.
[0054] Among them, the spacing setting instruction can be triggered by voice, gesture, etc., or by related controls on the control editing interface.
[0055] There may be multiple types of controls on the control editing interface. Specifically, the controls on the control editing interface may be divided into multiple types in advance according to the functions of the controls.
[0056] The computer device may respond to the interval setting instruction for at least one target type of game control and obtain the target spacing between the game controls of the target type. For example, if the target type is the first type, the target spacing between the game controls of the first type may be set to 3 pixels (pixel, px), that is, 3px. px is the unit of resolution, meaning pixel, and 3px may represent the length or size of 3 pixels, and is used to represent the length of 3 pixels between two game controls.
[0057] For example, if the target type is the first type, the target spacing between game controls of the first type can be set to 3px, and the computer device can respond to the move operation of the first game control belonging to the target type. The first game control can be an aiming control 111, adjust the control display position of the first game control in the control editing interface, and control the second game control belonging to the same target type, so that the spacing between the second game control and the first game control is not less than the target spacing. The second game control can include an attack control 112 and a running control 113, and control the attack control 112 and the running control 113 to be no less than 3px away from the aiming control 111.
[0058] Among them, the spacing between the first game controls belonging to the target type can be equal to the target spacing or greater than the target spacing. It should be noted that after executing the spacing setting instruction for at least one target type of game control, the spacing between the first game controls belonging to the target type can also be less than the target spacing. The specific situation can be: when the player does not perform a move operation on any game control belonging to the target type, if the initial spacing between the two first game controls and the second game controls belonging to the target type is less than the target spacing, the spacing between the two game controls is maintained at the initial spacing; when performing a move operation on any one of the game controls, it is necessary to control the spacing between the two game controls to be not less than the target spacing.
[0059] Based on the above introduction, the following example will be given to further illustrate the method for processing game controls of the present application. The specific embodiment of the method for processing game controls is as follows.
[0060] See also Figure 4 The computer device can provide a graphical user interface 1. In response to the control editing instruction, the computer device displays a control editing interface 11 and a control setting interface 12 on the graphical user interface 1. The control editing interface 11 includes multiple game controls. The multiple game controls include a first type of aiming control 111, an attack control 112, and a running control 113, as well as a second type of virtual knife control 114, a nearby rescue control 115, and an external rescue control 116.
[0061] The control setting interface 12 includes multiple setting controls, including exit controls, reset controls, save / share controls, all button controls, basic combat controls, advanced button controls, scene interaction controls, display hidden button controls, button non-overlapping controls, display controls corresponding to button non-overlapping (i.e., controls corresponding to the three horizontal line icons), and view controls.
[0062] Depend on Figure 4It can be seen that the game controls are divided into basic combat controls, advanced buttons, scene interactions and other types of controls. The player performs a selection operation on the basic combat controls. In this mode, the player can perform a selection operation on the buttons without overlapping, thereby setting all the game controls of the basic combat type to a non-overlapping state, that is, a certain distance should be maintained between each game control belonging to the basic combat type. Further, at this time, all game controls of the basic combat type may or may not overlap with all game controls of other types. Optionally, since the player performs a selection operation on the basic combat controls, only all game controls belonging to the basic combat type can be displayed on the control editing interface 11.
[0063] Optionally, the player can also adjust the display style of the controls on the control editing interface. The specific steps can be as follows:
[0064] In response to a selection operation on a target game control in the control editing interface, displaying at least one style adjustment control for the target game control in the control editing interface;
[0065] In response to a first adjustment operation on a style adjustment control, a target game control is controlled to be displayed with a style parameter indicated by the first adjustment operation, where the style parameter includes at least one of a control size, transparency, color, and shape.
[0066] For example, a player can select at least one game control on the control editing interface. The game control selected by the player is the target game control. At least one style adjustment control for the target game control is displayed on the control editing interface. Each style adjustment control can be used to adjust a display style. For example, at least one of the transparency, color, shape and control size of the target game control can be adjusted through the style adjustment control.
[0067] The style of the style adjustment control can be flexibly set as needed, for example, it can be a slider, a direction control, or a control for inputting numerical values.
[0068] In one embodiment, the style adjustment control and the type selection control are displayed in a target area of the control editing interface, and a switching control is provided for switching the control displayed in the target area.
[0069] Among them, the type selection control is used to select the type of controls that are arranged non-overlappingly. The target area in the control editing interface can be used to display style adjustment controls and type selection controls. The setting switch control can be used to switch the controls displayed in the target area. For example, the currently displayed style adjustment control can be switched to a type selection control, and another example is to switch the currently displayed type selection control to a style adjustment control.
[0070] by Figure 4The control editing interface shown in the figure is used as an example to illustrate the target area. Figure 4 In the control setting interface 12, the setting switch control can correspond to Figure 4 The display control in (that is, the control corresponding to the three horizontal lines icon), Figure 4 The control setting interface 12 shown provides sample adjustment controls for setting the control size and transparency of the "aiming" space. By setting the switch controls, the player can Figure 4 The style adjustment control displayed in the control setting interface 12 is switched to the following Figure 5 The type selection control is shown. The player can Figure 4 The first adjustment slider of the control setting interface 12 is a size adjustment control, through which the display size of the currently selected game control can be adjusted; the second adjustment slider is a transparency adjustment control, through which the display transparency size of the currently selected game control can be adjusted.
[0071] In one embodiment, in addition to displaying a style adjustment control for a target game control, a position adjustment control for the target control may also be displayed, that is, in response to a selection operation on a target game control in a control editing interface, at least one position adjustment control is further displayed, and the method further comprises:
[0072] In response to a second adjustment operation on the position adjustment control, the target game control is controlled to move in a direction indicated by the second adjustment operation.
[0073] In addition to controlling the movement of the first game control by dragging the first game control, the movement of the first game control can also be controlled by a position adjustment control. The style of the position adjustment control can be set as needed, for example, it can be a virtual joystick, a control for inputting movement values, etc.
[0074] like Figure 4 In the control editing interface shown, the player can drag the aiming control 111 to any blank position in the control editing interface 11, and control the game control to move a large distance in the control editing interface through touch operation; the player can also adjust the position of the aiming control in the control editing interface through the direction control, and control the game control to move a small distance in the control editing interface through the direction control.
[0075] The direction control includes a first direction sub-control, a second direction sub-control, a third direction sub-control and a fourth direction sub-control. The first direction sub-control is used to move the game control in a first direction, such as upward; the second direction sub-control is used to move the game control in a second direction, such as downward; the third direction sub-control is used to move the game control in a third direction, such as left; and the fourth direction sub-control is used to move the game control in a fourth direction, such as right.
[0076] In one embodiment, the control editing interface displays multiple type selection controls, each type selection control is associated with all game controls of a type, and the type selection control is used to set all game controls of the corresponding type to be arranged in an interval, that is, non-overlapping arrangement. Specifically, when the type selection control is in a selected state, all game controls of the corresponding type can be set to be arranged in a non-overlapping manner; when the type selection control is unchecked, that is, the type selection control is in an unselected state, all game controls of the corresponding type of the type selection control are set to be arranged in an overlapping manner.
[0077] In one embodiment, the spacing setting instruction for setting the target spacing corresponding to the game control of the target type may be triggered by the control, that is, the step of “in response to the spacing setting instruction for at least one target type of game control, obtaining the target spacing that the game controls of the target type need to maintain between each other” includes:
[0078] In response to a trigger operation on at least one target type selection control among the multiple type selection controls, determining the type corresponding to each target type selection control as the target type, and displaying a spacing setting control;
[0079] In response to a trigger operation on a distance setting control, a target distance that needs to be maintained between game controls of each target type is determined.
[0080] For example, see Figure 5 , the player can perform a trigger operation on the display control corresponding to the button non-overlapping, and the computer device responds to the trigger operation on the display control, and replaces the direction control, the first adjustment slider and the second adjustment slider displayed on the control setting interface 12 with multiple type selection controls and spacing setting controls for display. The multiple type selection controls may include a first type selection control (i.e., basic combat does not overlap), a second type selection control (i.e., advanced buttons do not overlap) and a third type selection control (i.e., all do not overlap). Since the player has performed a selection operation on the basic combat control, only all game controls belonging to the basic combat type can be displayed on the control editing interface 11. In this mode, the player can perform a selection operation on the button non-overlapping, thereby setting all game controls of the basic combat type to a non-overlapping state, so that the first type selection control is in a selected state. If the player selects the second type selection control while the first type selection control is selected, a certain distance must be maintained between each game control belonging to the basic combat type, and a certain distance must be maintained between each game control belonging to the advanced type. All game controls of the basic combat type and all game controls of the advanced type cannot overlap, that is, a certain distance must be maintained. The spacing can be set by the spacing setting control.
[0081] There may be at least one target type. For example, a player may select one type as a target type, or may select more than one type as a target type. For one or more target types, the minimum distance to be maintained may be set according to the target spacing. That is, in one embodiment, there is at least one target type. The step of "determining the target spacing to be maintained between game controls of each target type in response to a triggering operation on a spacing setting control" may include:
[0082] In response to a trigger operation on a spacing setting control, determining a target spacing;
[0083] If there is only one target type, the target spacing is set to the minimum spacing required to be maintained between any two game controls under the target type, and the first game control and the second game control belong to the same target type.
[0084] If there are multiple target types, the target spacing is set to the minimum spacing required to be maintained between any two game controls under the multiple target types, and the first game control and the second game control belong to the same target type or different target types.
[0085] The spacing setting control may be used to adjust the minimum spacing required to be maintained between controls under the target type, so in response to a trigger operation on the spacing setting control, the target spacing indicated by the trigger operation.
[0086] If there is only one target type, the target distance may be set to be the minimum distance between any two game controls of the target type, and the first game control and the second game control belong to the same target type.
[0087] If there is more than one target type, the target spacing can be set to the minimum spacing between any two game controls of the more than one target type. The minimum spacing between two game controls of the same target type is the target spacing, and the minimum spacing between two game controls of different target types is also the target spacing.
[0088] In one embodiment, the spacing setting control includes an input sub-control; the step of "determining the target spacing that game controls of each target type need to maintain between each other in response to a triggering operation on the spacing setting control" includes:
[0089] In response to an information input operation on the input sub-control, obtaining user input information input through the input sub-control;
[0090] Based on the user input information corresponding to the input sub-control, the target spacing that needs to be maintained between game controls of each target type is determined.
[0091] For example, a player can perform input operations through the input sub-control and input user input information 4. The computer device responds to the information input operation on the input sub-control and obtains the user input information "4" input through the input sub-control. Based on the user input information "4" corresponding to the input sub-control, it is determined that the target spacing between game controls of each target type that needs to be maintained is 4px.
[0092] In another embodiment, the step of “determining the target distances that game controls of each target type need to maintain between each other in response to a triggering operation on the distance setting control” includes:
[0093] In response to a sliding operation on the spacing setting control, a target value corresponding to the spacing setting control is determined based on the operation position when the sliding operation ends, and the target value is used as the target spacing that needs to be maintained between game controls of each target type.
[0094] The spacing setting control includes a slide rail and a slider, and the position of the slider on the slide rail is used to indicate a target value corresponding to the spacing setting control.
[0095] Specifically, the step of “in response to a sliding operation on the spacing setting control, determining a target value corresponding to the spacing setting control based on the operation position at the end of the sliding operation, and using the target value as a target spacing that needs to be maintained between game controls of each target type” includes:
[0096] In response to a sliding operation on the slider, determining current numerical value information as a target numerical value based on a target display position of the slider on the slide rail when the sliding operation ends;
[0097] Determine the target value as the target distance that game controls of each target type need to maintain from each other.
[0098] For example, see also Figure 5 and Figure 6 , the spacing setting control includes a slide rail and a slider. The position of the slider on the slide rail is used to indicate the target value corresponding to the spacing setting control. At this time, the target value is 4, that is, the target spacing is 4px. The player can perform a sliding operation on the slider. In response to the sliding operation on the slider, the computer device determines the current value information 5 as the target value 5 based on the target display position of the slider on the slide rail at the end of the sliding operation; the target value 5 is determined as the target spacing that the game controls of each target type need to maintain with each other, that is, the target spacing is 5px.
[0099] Optionally, during the process of performing a sliding operation on the spacing setting control, a numerical prompt mark is also displayed corresponding to the spacing setting control, and the numerical prompt mark is used to indicate the numerical value selected in real time during the process.
[0100] For example, see Figure 6 The spacing setting control also displays a numerical prompt "5px" to indicate that the real-time selected value is 5 during the sliding operation on the spacing setting control, and the selected target spacing is 5px.
[0101] Specifically, a first numerical identifier and a second numerical identifier are also displayed near the spacing setting control, and the first numerical identifier and the second numerical identifier are used to indicate two range endpoint values of a preset numerical range corresponding to the spacing setting control.
[0102] For example, see Figure 6 , the preset numerical range corresponding to the spacing setting control is [0,10], and the first numerical mark "0px" and the second numerical mark "10px" can be displayed on both sides of the spacing setting control respectively to indicate the two range endpoint values of the preset numerical range corresponding to the spacing setting control.
[0103] Optionally, a numerical prompt mark is displayed on the spacing setting control, and the numerical prompt mark is used to indicate the numerical value of the recommended spacing for the target type game control.
[0104] For example, a numerical prompt mark "Recommended setting value: X" can be displayed on the spacing setting control, where X can be any value specified in the preset numerical range corresponding to the spacing setting control. The numerical prompt mark is used to indicate the numerical value of the recommended spacing for the target type of game control.
[0105] In an embodiment of the present application, the value of the spacing setting control can be set to 0, that is, the target spacing is set to 0px. When the target spacing is set to 0px, the game controls will not overlap. The target spacing between the game controls is 0, indicating that the two game controls can be connected.
[0106] In one embodiment, step 102, “in response to a move operation on the first game control, adjusting the position of the first game control in the control editing interface so that the distance between the first game control and the second game control is not less than a target distance”, includes:
[0107] In response to a movement operation on the first game control, controlling the first game control to move on the control editing interface;
[0108] In response to the first game control moving to a distance equal to the target distance from the second game control and continuing to approach the second game control, the second game control is controlled to move in a direction away from the first game control to a position where the distance from the first game control is not less than the target distance.
[0109] Specifically, in response to a move operation on the first game control, the first game control is controlled to move on the control editing interface. When the first game control moves to a distance between it and the second game control that is equal to the target distance, if it is detected that the first game control continues to approach the second game control, the second game control is controlled to move away from the first game control until the distance between it and the first game control is no less than the target distance.
[0110] The direction away from the first game control may be any direction except the direction close to the first game control. In one embodiment, in order to improve the movement efficiency of the second game control, the target movement direction of the second game control may be determined according to the display positions of the first game control and the second game control. That is, in one embodiment, the step of "controlling the second game control to move in a direction away from the first game control to a position where the distance between the second game control and the first game control is not less than the target distance" includes:
[0111] Determining a target moving direction based on a first display position of the first game control and a second display position of the second game control;
[0112] The second game control is controlled to move toward the target moving direction until the distance between the second game control and the second game control is not less than the target distance.
[0113] The target moving direction may be the direction in which the first game control points to the second game control, and the second game control moves in this direction and away from the first game control at the fastest speed. The target moving direction may be determined based on the first display position of the first game control and the second display position of the second game control.
[0114] The second game control is controlled to move toward the target moving direction until the distance between the second game control and the second game control is not less than the target distance.
[0115] For example, please refer to Figure 7 and Figure 8 The control editing interface includes a first control 117, a second control 118, and a third control 119. The player can move the first control 117 (i.e., the first game control) in a certain direction (e.g., Figure 7 The computer device responds to the moving operation on the first control 117 and determines the display position of the first control 117 and the display position of the second control 118 based on the display position of the first control 117 and the display position of the second control 118. Figure 7 The target moving direction of the second control 118 indicated by the first dotted line between the first control 117 and the second control 118 is determined based on the display position of the first control 117 and the display position of the third control 119. Figure 7The target moving direction of the third control 119 is indicated by the second dotted line shown between the first control 117 and the third control 119.
[0116] Figure 7 The first control 117 is as follows Figure 7 Move a specified distance in the direction indicated by the arrow. To ensure that the first control 117 maintains the target distance with the second control 118 and the third control 119 respectively, the second control 118 moves a first specified distance along the target moving direction indicated by the first dotted line, and the third control 119 moves a second specified distance along the target moving direction indicated by the second dotted line. The specified distance can be equal to or greater than the distance moved by the first control 117.
[0117] Further, after the step of “controlling the second game control to move toward the target movement direction”, the method for processing the game control provided in the embodiment of the present application may further include:
[0118] If the relative distance between the second game control and at least one target side of the graphical user interface meets the preset distance, the second game control is controlled to move in a direction away from the target side so that the distance between the second game control and the first game control is not less than the target distance.
[0119] For example, see also Figure 7 , Figure 8 and Fig. 9 The player can manipulate the first control 117 to Figure 7 The first control 117 is a first game control, and the second control 118 and the third control 119 are second game controls. The computer device controls the first control 117 to move in the direction indicated by the arrow. Figure 7 The first game control 117 moves in the direction indicated by the arrow, and the display position of the first game control in the control editing interface is adjusted based on the movement parameters corresponding to the movement operation. During the movement of the first control 117, in order to ensure that the first control 117 maintains the target spacing with the second control 118 and the third control 119, the second control 118 moves along the target movement direction indicated by the first dotted line as the first control 117 moves, and the third control 119 moves along the target movement direction indicated by the second dotted line as the first control 117 moves. If it is detected that the relative distance between the third control 119 and the left side of the graphical user interface meets the preset distance, that is, the area close to the left side of the graphical user interface is not sufficient to display the third control 119, the third control 119 is controlled to translate in the direction away from the left side, and the display position of the second control 118 is adjusted at the same time, so that the spacing between the second game control and the first game control is not less than the target spacing.
[0120] Optionally, if the relative distance between the second game control and at least one target side of the graphical user interface satisfies the preset distance, the second game control can also be controlled to move the target distance in other directions away from the current moving direction, so that the distance between the second game control and the first game control is not less than the target distance. For example, the preset distance is 1px, if the relative distance between the second game control and the left side and the upper side of the graphical user interface all meet or the distance from any side meets the preset distance of 1px, the current moving direction of the second game control is to move diagonally toward the left side and the upper side of the graphical user interface. At this time, the second game control can be controlled to move the target distance in the direction away from the left side and the upper side, or to move the target distance in the direction away from the left side but not away from the upper side, or to move the target distance in the direction away from the upper side but not away from the left side, so that the distance between the second game control and the first game control is not less than the target distance.
[0121] Optionally, the control editing interface further displays a viewing control, and after the viewing control is configured to be triggered, the game control of the target type is highlighted on the control editing interface. That is, in one embodiment, the control editing interface further displays a viewing control, and the method for processing the game control provided in the embodiment of the present application may further include:
[0122] In response to a trigger operation for viewing controls, a target game control on the control editing interface is highlighted, the target game control being a game control of at least one target type.
[0123] The target game control may be a game control of at least one target type. In one example, the control editing interface may be as follows: Figure 5 As shown, the target type can be determined by the "All Buttons", "Basic Combat", "Advanced Buttons" and "Scene Interaction" controls under the "Button Hierarchy", and each control indicates at least one type of control.
[0124] There are many ways to highlight the target game control on the control editing interface, such as highlighting the target game control, displaying a specified logo around the target game control, or changing the outline color of the target game control.
[0125] In one embodiment, the step of “highlighting the target game control on the control editing interface” may include:
[0126] In response to a triggering operation for a viewing control of a first display style, the initial brightness of a target game control is switched to a target brightness parameter to highlight the target game control in a control editing interface, and the display style of the viewing control is switched from the first display style to the second display style;
[0127] In response to a triggering operation for the viewing control of the second display style, the current target brightness of the target game control is restored to the initial brightness to cancel the highlight display of the target game control, and the display style of the viewing control is switched from the second display style to the first display style.
[0128] For example, see also Fig.10 and Fig.11 , the player can perform a trigger operation on the viewing control of the first display style, such as a click operation, and the viewing control of the first display style is a viewing control of a conventional style. In response to the trigger operation on the viewing control of the first display style, the computer device sets the initial brightness parameter of the target game control among the multiple game controls to the target brightness parameter, that is, the initial brightness parameter of the first type of aiming control 111, attacking control 112, and running control 113 is set to the target brightness parameter, and the initial brightness parameters of other types of game controls are maintained, so that the first type of aiming control 111, attacking control 112, and running control 113 highlight the target game control in the control editing interface, so as to distinguish the display from other types of game controls, such as the second type of virtual knife control 114, nearby rescue control 115, and external rescue control 116; at the same time, the display style of the viewing control is switched from the first display style to the second display style, and the viewing control of the second display style is a highlight style viewing control.
[0129] Furthermore, the user can perform a trigger operation on the viewing control of the second display style again. In response to the trigger operation on the viewing control of the second display style, the computer device restores the current target display parameters of the target game control to the initial brightness parameters to cancel the highlight display of the target game control, that is, cancel the highlight display of the target game control of the first type of aiming control 111, attack control 112, and running control 113 in the control editing interface, and switch the display style of the viewing control from the second display style to the first display style.
[0130] In one embodiment, the step “highlighting the target game control on the control editing interface” includes:
[0131] In response to a triggering operation for a viewing control of a first display style, switching a first color of a target game control among the plurality of game controls to a second color, so as to switch the target game control displayed on the control editing interface from a first color of an initial color parameter to a second color of a target color parameter, and switching a display style of the viewing control from the first display style to the second display style;
[0132] In response to a triggering operation for the viewing control of the second display style, the current second color of the target game control is restored to the first color, and the display style of the viewing control is switched from the second display style to the first display style.
[0133] Optionally, the control editing interface may further include a save control and an exit editing control. The method for processing game controls provided in the embodiment of the present application may further include:
[0134] In response to a trigger operation for saving controls, saving the current control layout on the control editing interface;
[0135] In response to a trigger operation for exiting the editing control, a game interface including a virtual game scene is displayed through a graphical user interface, and the game controls in the game interface are displayed in a control layout.
[0136] Specifically, before adjusting the control layout on the control editing interface, the control layout on the control editing interface is the same as the control layout on the game interface. The game interface may be an interface provided by the game that can be used to play the game. The game interface may include a virtual game scene, game controls, and virtual characters, etc.
[0137] By adjusting the display position of the controls on the control editing interface, the player can synchronize the display position of the game controls on the control editing interface to the game interface. Specifically, the terminal can save the current control layout on the control editing interface in response to a trigger operation for saving the controls. Saving the current control layout on the control editing interface may refer to saving the display position of all adjustable game controls on the control editing interface, or saving the display position of the game controls whose display position has been adjusted.
[0138] In response to a trigger operation for exiting the editing control, a game interface including a virtual game scene is displayed based on a saved control layout through a graphical user interface, and game controls in the game interface are displayed in a control layout, thereby adjusting the layout of game controls on the game interface through the control editing interface.
[0139] Optionally, the control editing interface further includes a sharing control. After the step of “responding to a trigger operation for saving the control, saving the current control layout on the control editing interface”, the method for processing the game control provided in the embodiment of the present application may further include:
[0140] In response to a trigger operation on the sharing control, displaying at least one shareable object;
[0141] In response to a selection operation on a target sharing object among the shareable objects, a layout synchronization message is sent to a terminal corresponding to the target sharing object based on the control layout, so that the terminal updates the control layout of the game control in the game interface displayed by it based on the layout synchronization message.
[0142] After the player saves the adjusted control layout, he can share the control layout with teammates or other players. Specifically, the terminal responds to the trigger operation of the sharing control on the control editing interface and displays at least one shareable object. The shareable object may include the game account of a teammate in the game, or the game account of a game friend, etc.
[0143] In response to a selection operation on a target sharing object among the sharable objects, a layout synchronization message is sent to a terminal corresponding to the target sharing object based on a control layout.
[0144] The terminal corresponding to the target sharing object can display the layout synchronization message. The terminal corresponding to the target sharing object can also display the above-mentioned control layout based on the layout synchronization message, and in response to the synchronization setting operation for the control layout, update the control layout in the game interface displayed on the terminal corresponding to the target sharing object to the control layout indicated by the layout synchronization message.
[0145] In summary, the embodiments of the present application provide a method for processing a game control, which can respond to a control editing instruction and display a control editing interface on a graphical user interface, wherein the control editing interface includes at least a first game control and a second game control; in response to a move operation on the first game control, the position of the first game control in the control editing interface is adjusted, and the distance between the first game control and the second game control is made not less than a target distance; wherein the target distance is a preset minimum distance value between two game controls.
[0146] In the embodiment of the present application, when adjusting the key positions of game controls, each game control can be controlled to maintain the target spacing that needs to be maintained between each other, which simplifies the operating steps of customizing the positions of game controls, saves the adjustment time of game controls, and makes the player's adjustment operation of the position arrangement of the game control keys smoother, allowing the player to quickly adjust the game controls, improving the continuity of the player's game operation, thereby improving the game interaction efficiency and the game interaction efficiency in the game.
[0147] This embodiment also provides a device for processing game controls, which can be integrated into a terminal device. Fig.12 , the processing device of the game control may include:
[0148] The display unit 201 is used to display a control editing interface on a graphical user interface in response to a control editing instruction, wherein the control editing interface includes at least a first game control and a second game control.
[0149] The adjustment unit 202 is used to adjust the position of the first game control in the control editing interface in response to the movement operation on the first game control, and make the distance between the first game control and the second game control not less than the target distance; wherein the target distance is a preset minimum distance value between the two game controls.
[0150] In one embodiment, the adjustment unit 202 may also be used to:
[0151] In response to a movement operation on the first game control, controlling the first game control to move on the control editing interface;
[0152] In response to the first game control moving to a distance equal to the target distance from the second game control and continuing to approach the second game control, the second game control is controlled to move in a direction away from the first game control to a position where the distance from the first game control is not less than the target distance.
[0153] In one embodiment, the adjustment unit 202 may also be used to:
[0154] Determining a target moving direction based on a first display position of the first game control and a second display position of the second game control;
[0155] The second game control is controlled to move toward the target moving direction until the distance between the second game control and the second game control is not less than the target distance.
[0156] In one embodiment, the adjustment unit 202 may also be used to:
[0157] If the relative distance between the second game control and at least one target side of the graphical user interface meets the preset distance, the second game control is controlled to move in a direction away from the target side so that the distance between the second game control and the first game control is not less than the target distance.
[0158] In one embodiment, the processing device of the game control provided in this embodiment may further include:
[0159] The spacing setting unit is used to obtain a target spacing that needs to be maintained between game controls of the target type in response to a spacing setting instruction for at least one target type of game controls.
[0160] In one embodiment, the control editing interface further includes a setting switch control. The game control processing device provided in this embodiment may further include:
[0161] The type selection unit is used to respond to the trigger operation for setting the switching control, and display multiple type selection controls in the control editing interface. Each type selection control corresponds to all game controls of a type. The type selection control is used to trigger all game controls under the corresponding type to be set to a non-overlapping arrangement.
[0162] In one embodiment, the spacing setting unit may also be used to:
[0163] In response to a trigger operation on at least one target type selection control among the multiple type selection controls, determining the type corresponding to each target type selection control as the target type, and displaying a spacing setting control;
[0164] In response to a trigger operation on a distance setting control, a target distance that needs to be maintained between game controls of each target type is determined.
[0165] In one embodiment, there is at least one target type, and the spacing setting unit can also be used to:
[0166] In response to a trigger operation on a spacing setting control, determining a target spacing;
[0167] If there is only one target type, the target spacing is set to the minimum spacing required to be maintained between any two game controls under the target type, and the first game control and the second game control belong to the same target type.
[0168] If there are multiple target types, the target spacing is set to the minimum spacing required to be maintained between any two game controls under the multiple target types, and the first game control and the second game control belong to the same target type or different target types.
[0169] In one embodiment, the spacing setting control includes an input sub-control, and the spacing setting unit can also be used to:
[0170] In response to an information input operation on the input sub-control, obtaining user input information input through the input sub-control;
[0171] Based on the user input information corresponding to the input sub-control, the target spacing that needs to be maintained between game controls of each target type is determined.
[0172] In one embodiment, the spacing setting unit may also be used to:
[0173] In response to a sliding operation on the spacing setting control, a target value corresponding to the spacing setting control is determined based on the operation position when the sliding operation ends, and the target value is used as the target spacing that needs to be maintained between game controls of each target type.
[0174] In one embodiment, the distance setting control includes a slide rail and a slider, and the position of the slider on the slide rail is used to indicate a target value corresponding to the distance setting control.
[0175] In one embodiment, the spacing setting unit may also be used to:
[0176] In response to a sliding operation on the slider, determining current numerical value information as a target numerical value based on a target display position of the slider on the slide rail when the sliding operation ends;
[0177] Determine the target value as the target distance that game controls of each target type need to maintain from each other.
[0178] In one embodiment, during the process of performing a sliding operation on the distance setting control, a numerical value prompt mark is also displayed corresponding to the distance setting control, and the numerical value prompt mark is used to indicate the numerical value selected in real time during the process.
[0179] In one embodiment, a first numerical identifier and a second numerical identifier are also displayed near the spacing setting control, and the first numerical identifier and the second numerical identifier are used to indicate two range endpoint values of a preset numerical range corresponding to the spacing setting control.
[0180] In one embodiment, a numerical prompt mark is displayed on the distance setting control, and the numerical prompt mark is used to indicate the numerical value of the recommended distance for the target type game control.
[0181] In one embodiment, the processing device of the game control provided in this embodiment may further include:
[0182] A style adjustment control display unit, configured to display at least one style adjustment control for a target game control on the control editing interface in response to a selection operation for the target game control on the control editing interface;
[0183] The style adjustment unit is used to control the target game control to display the style parameters indicated by the adjustment operation in response to a first adjustment operation on the style adjustment control, wherein the style parameters include at least one of the control size, transparency, color and shape.
[0184] In one embodiment, the style adjustment control and the type selection control are displayed in a target area of the control editing interface, and a switching control is provided for switching the control displayed in the target area.
[0185] In one embodiment, in response to a selection operation on a target game control in the control editing interface, at least one position adjustment control is further displayed. The device for processing the game control provided in this embodiment may further include:
[0186] The position adjustment unit is used to control the target game control to move in the direction indicated by the second adjustment operation in response to the second adjustment operation on the position adjustment control.
[0187] In one embodiment, the control editing interface further includes a save control and an exit editing control. The game control processing device provided in this embodiment may also include:
[0188] A layout saving unit, used to save the current control layout on the control editing interface in response to a trigger operation for saving the control;
[0189] The layout setting unit is used to respond to a trigger operation for exiting the editing control, and to display a game interface including a virtual game scene through a graphical user interface, wherein the game controls in the game interface are displayed in a control layout.
[0190] In one embodiment, the processing device of the game control provided in this embodiment may further include:
[0191] A sharing object display unit, configured to display at least one shareable object in response to a triggering operation on the sharing control;
[0192] The layout synchronization unit is used to respond to the selection operation of the target sharing object in the shareable objects, and send a layout synchronization message to the terminal corresponding to the target sharing object based on the control layout, so that the terminal updates the control layout of the game control in the game interface displayed by it based on the layout synchronization message.
[0193] In one embodiment, the control editing interface also displays a viewing control. The game control processing device provided in this embodiment may also include:
[0194] The highlighting unit is used to highlight a target game control on the control editing interface in response to a trigger operation for viewing the control, where the target game control is a game control of at least one target type.
[0195] In one embodiment, the highlighting unit may also be used to:
[0196] In response to a triggering operation for a viewing control of a first display style, switching an initial brightness of a target game control to a target brightness, so as to highlight the target game control in a control editing interface, and switching a display style of the viewing control from the first display style to a second display style;
[0197] In response to a triggering operation for the viewing control of the second display style, the current target brightness of the target game control is restored to the initial brightness to cancel the highlight display of the target game control, and the display style of the viewing control is switched from the second display style to the first display style.
[0198] In one embodiment, the highlighting unit may also be used to:
[0199] In response to a triggering operation on a viewing control of a first display style, switching a first color of a target game control among the plurality of game controls to a second color, and switching a display style of the viewing control from the first display style to the second display style;
[0200] In response to a triggering operation for the viewing control of the second display style, the current second color of the target game control is restored to the first color, and the display style of the viewing control is switched from the second display style to the first display style.
[0201] In summary, the embodiment of the present application discloses a device for processing game controls, which displays a control editing interface on a graphical user interface in response to a control editing instruction through a display unit 201, wherein the control editing interface includes at least a first game control and a second game control; the adjustment unit 202 adjusts the position of the first game control in the control editing interface in response to a move operation on the first game control, and makes the distance between the first game control and the second game control not less than a target distance; wherein the target distance is a preset minimum distance value between two game controls.
[0202] In the embodiment of the present application, when adjusting the key positions of game controls, each game control can be controlled to maintain the target spacing that needs to be maintained between each other, which simplifies the operating steps of customizing the positions of game controls, saves the adjustment time of game controls, and makes the player's adjustment operation of the position arrangement of the game control keys smoother, allowing the player to quickly adjust the game controls, improving the continuity of the player's game operation, thereby improving the game interaction efficiency and the game interaction efficiency in the game.
[0203] Accordingly, the embodiment of the present application also provides a computer device, which may be a terminal, and the terminal may be a smart phone, a tablet computer, a laptop computer, a touch screen, a game console, a personal computer (PC, Personal Computer), a personal digital assistant (Personal Digital Assistant, PDA) and other terminal devices. Alternatively, the computer device may be a server.
[0204] like Fig.13 As shown, Fig.13A schematic diagram of the structure of a computer device provided in an embodiment of the present application. The computer device 300 includes a processor 301 having one or more processing cores, a memory 302 having one or more computer-readable storage media, and a computer program stored in the memory 302 and executable on the processor. The processor 301 is electrically connected to the memory 302. Those skilled in the art will appreciate that the computer device structure shown in the figure does not constitute a limitation on the computer device, and may include more or fewer components than shown, or combine certain components, or arrange components differently.
[0205] The processor 301 is the control center of the computer device 300. It uses various interfaces and lines to connect various parts of the entire computer device 300, and executes various functions and processes data of the computer device 300 by running or loading software programs and / or units stored in the memory 302, and calling data stored in the memory 302, so as to monitor the computer device 300 as a whole. The processor 301 can be a central processing unit CPU, a graphics processing unit GPU, a network processor (Network Processor, NP), etc., and can implement or execute the various methods, steps and logic block diagrams disclosed in the embodiments of the present application.
[0206] In the embodiment of the present application, the processor 301 in the computer device 300 will load instructions corresponding to the processes of one or more application programs into the memory 302 according to the following steps, and the processor 301 will run the application programs stored in the memory 302 to implement various functions, such as:
[0207] In response to the control editing instruction, displaying a control editing interface on the graphical user interface, wherein the control editing interface includes at least a first game control and a second game control;
[0208] In response to a move operation on the first game control, the position of the first game control in the control editing interface is adjusted, and the distance between the first game control and the second game control is made not less than a target distance; wherein the target distance is a preset minimum distance value between the two game controls.
[0209] By adopting the scheme of the embodiment of the present application, when adjusting the key positions of game controls, each game control can be controlled to maintain the required target spacing between each other, which simplifies the operating steps of custom adjusting the positions of game controls, saves the adjustment time of game controls, and makes the player's adjustment operation of the position arrangement of the game control keys smoother, allowing the player to quickly adjust the game controls, improving the continuity of the player's game operation, thereby improving the game interaction efficiency and the game interaction efficiency in the game.
[0210] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.
[0211] Optional, such as Fig.13 As shown, the computer device 300 further includes: a touch screen 303, a radio frequency circuit 304, an audio circuit 305, an input unit 306, and a power supply 307. The processor 301 is electrically connected to the touch screen 303, the radio frequency circuit 304, the audio circuit 305, the input unit 306, and the power supply 307, respectively. Those skilled in the art can understand that Fig.13 The computer device structure shown in the figure does not constitute a limitation on the computer device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.
[0212] The touch display screen 303 can be used to display a graphical user interface and receive operation instructions generated by the user acting on the graphical user interface. The touch display screen 303 may include a display panel and a touch panel. Among them, the display panel can be used to display information input by the user or information provided to the user and various graphical user interfaces of the computer device, and these graphical user interfaces can be composed of graphics, text, icons, videos and any combination thereof. Optionally, the display panel can be configured in the form of a liquid crystal display (LCD, Liquid Crystal Display), an organic light-emitting diode (OLED, Organic Light-EmittingDiode) and the like. The touch panel can be used to collect the user's touch operation on or near it (such as the user uses any suitable object or attachment such as a finger, a stylus, etc. on the touch panel or near the touch panel), and generate corresponding operation instructions, and the operation instructions execute corresponding programs. Optionally, the touch panel may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch direction, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into the touch point coordinates, and then sends it to the processor 301, and can receive the command sent by the processor 301 and execute it. The touch panel can cover the display panel. When the touch panel detects a touch operation on or near it, it is transmitted to the processor 301 to determine the type of touch event, and then the processor 301 provides a corresponding visual output on the display panel according to the type of touch event. In an embodiment of the present application, the touch panel and the display panel can be integrated into the touch display screen 303 to realize the input and output functions. However, in some embodiments, the touch panel and the touch panel can be used as two independent components to realize the input and output functions. That is, the touch display screen 303 can also be used as a part of the input unit 306 to realize the input function.
[0213] The radio frequency circuit 304 may be used to send and receive radio frequency signals, so as to establish wireless communication with a network device or other computer devices through wireless communication, and to send and receive signals between the network device or other computer devices.
[0214] The audio circuit 305 can be used to provide an audio interface between the user and the computer device through a speaker and a microphone. The audio circuit 305 can transmit the electrical signal converted from the received audio data to the speaker, which is converted into a sound signal for output; on the other hand, the microphone converts the collected sound signal into an electrical signal, which is received by the audio circuit 305 and converted into audio data, and then the audio data is output to the processor 301 for processing, and then sent to another computer device through the radio frequency circuit 304, or the audio data is output to the memory 302 for further processing. The audio circuit 305 may also include an earphone jack to provide communication between an external headset and the computer device.
[0215] The input unit 306 may be used to receive input numbers, character information or user feature information (such as fingerprint, iris, facial information, etc.), and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.
[0216] The power supply 307 is used to supply power to various components of the computer device 300. Optionally, the power supply 307 can be logically connected to the processor 301 through a power management system, so that the power management system can manage charging, discharging, and power consumption. The power supply 307 can also include one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, power status indicators, and other arbitrary components.
[0217] although Fig.13 Not shown, the computer device 300 may also include a camera, a sensor, a wireless fidelity module, a Bluetooth module, etc., which will not be described in detail here.
[0218] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0219] A person of ordinary skill in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be completed by instructions, or by controlling related hardware through instructions. The instructions may be stored in a computer-readable storage medium and loaded and executed by a processor.
[0220] To this end, an embodiment of the present application provides a computer-readable storage medium, in which multiple computer programs are stored, and the computer program can be loaded by a processor to execute any one of the game control processing methods provided in the embodiment of the present application. The computer program can execute the following steps of the game control processing method:
[0221] In response to the control editing instruction, displaying a control editing interface on the graphical user interface, wherein the control editing interface includes at least a first game control and a second game control;
[0222] In response to a move operation on the first game control, the position of the first game control in the control editing interface is adjusted, and the distance between the first game control and the second game control is made not less than a target distance; wherein the target distance is a preset minimum distance value between the two game controls.
[0223] By adopting the scheme of the embodiment of the present application, when adjusting the key positions of the game controls, the game controls can be controlled to maintain the target spacing required between each other, which simplifies the operation steps of customizing the positions of the game controls, saves the adjustment time of the game controls, and makes the player's adjustment operation of the position arrangement of the game control keys smoother, so that the player can quickly adjust the game controls, improve the consistency of the player's game operation, and thus improve the game interaction efficiency and the game interaction efficiency in the game. The specific implementation of each of the above operations can be referred to the previous embodiments, and will not be repeated here.
[0224] The computer-readable storage medium may include: a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0225] Since the computer program stored in the computer-readable storage medium can execute any game control processing method provided in the embodiments of the present application, the beneficial effects that can be achieved by any game control processing method provided in the embodiments of the present application can be achieved. Please refer to the previous embodiments for details and will not be repeated here.
[0226] According to one aspect of the present application, a computer program product or a computer program is also provided, the computer program product or the computer program includes a computer instruction, and the computer instruction is stored in a computer-readable storage medium. The processor of the computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the method provided in various optional implementations in the above embodiments.
[0227] In the above-mentioned embodiments of the processing device, computer-readable storage medium, computer equipment, and computer program product of the game control, the description of each embodiment has its own emphasis. For the part not described in detail in a certain embodiment, reference can be made to the relevant description of other embodiments. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working process and beneficial effects of the processing device, computer-readable storage medium, computer program product, computer equipment and its corresponding units described above can refer to the description of the processing method of the game control in the above embodiment, and will not be repeated here.
[0228] The above is a detailed introduction to a game control processing method, device, computer equipment, computer-readable storage medium and computer program product provided in an embodiment of the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for technical personnel in this field, according to the idea of the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A method for processing game controls, characterized in that: A graphical user interface is provided through a terminal device, including: In response to the control editing instruction, displaying a control editing interface on the graphical user interface, wherein the control editing interface includes at least a first game control and a second game control; In response to a move operation on a first game control, a position of the first game control in the control editing interface is adjusted so that a distance between the first game control and the second game control is not less than a target distance; wherein the target distance is a preset minimum distance value between two game controls.
2. The method according to claim 1, characterized in that There are multiple types of game controls on the control editing interface. Before adjusting the position of the first game control in the control editing interface in response to a move operation on the first game control, the method further includes: In response to an interval setting instruction for at least one target type of game controls, a target interval that needs to be maintained between the target type of game controls is obtained.
3. The method according to claim 2, characterized in that The control editing interface further includes a setting switch control. Before the interval setting instruction for at least one target type of game control is obtained, the method further includes: In response to a trigger operation for setting a switch control, multiple type selection controls are displayed in the control editing interface, each type selection control corresponds to all game controls of a type, and the type selection control is used to trigger setting all game controls under the corresponding type to a non-overlapping arrangement.
4. The method according to claim 2, characterized in that: The step of obtaining, in response to an interval setting instruction for at least one target type of game controls, a target interval that needs to be maintained between the target type of game controls comprises: In response to a trigger operation on at least one target type selection control among the multiple type selection controls, determining the type corresponding to each of the target type selection controls as a target type, and displaying a spacing setting control; In response to a triggering operation on the distance setting control, a target distance that needs to be maintained between game controls of each target type is determined.
5. The method according to claim 4, characterized in that There is at least one target type, and in response to the triggering operation of the spacing setting control, determining the target spacing that needs to be maintained between the game controls of each target type comprises: In response to a trigger operation on the spacing setting control, determining a target spacing; If there is one target type, the target distance is set to the minimum distance required to be maintained between any two game controls under the target type, and the first game control and the second game control belong to the same target type; If there are multiple target types, the target distance is set to the minimum distance required to be maintained between any two game controls under the multiple target types, and the first game control and the second game control belong to the same target type or different target types.
6. The method according to claim 4, characterized in that The spacing setting control includes an input sub-control, and the determining of the target spacing that needs to be maintained between the game controls of each target type in response to a trigger operation on the spacing setting control includes: In response to an information input operation on the input subcontrol, acquiring user input information input through the input subcontrol; Based on the user input information corresponding to the input sub-control, a target distance that needs to be maintained between game controls of each target type is determined.
7. The method according to claim 4, characterized in that The step of determining the target distances that need to be maintained between the game controls of each target type in response to the triggering operation on the distance setting control comprises: In response to a sliding operation on the spacing setting control, a target value corresponding to the spacing setting control is determined based on the operation position when the sliding operation ends, and the target value is used as the target spacing that needs to be maintained between game controls of each target type.
8. The method according to claim 7, characterized in that The spacing setting control includes a slide rail and a slider, and the position of the slider on the slide rail is used to indicate a target value corresponding to the spacing setting control.
9. The method according to claim 8, characterized in that In response to the sliding operation on the spacing setting control, based on the operation position at the end of the sliding operation, determining the target value corresponding to the spacing setting control, and using the target value as the target spacing that needs to be maintained between the game controls of each target type, includes: In response to a sliding operation on the slider, determining current numerical value information as a target numerical value based on a target display position of the slider on the slide rail when the sliding operation ends; The target value is determined as the target distance that needs to be maintained between game controls of each target type.
10. The method according to claim 9, characterized in that During the process of performing a sliding operation on the distance setting control, a numerical value prompt mark is also displayed corresponding to the distance setting control, and the numerical value prompt mark is used to indicate the numerical value selected in real time during the process.
11. The method according to claim 10, characterized in that A first numerical identifier and a second numerical identifier are also displayed near the spacing setting control, and the first numerical identifier and the second numerical identifier are used to indicate two range endpoint values of a preset numerical range corresponding to the spacing setting control.
12. The method according to claim 11, characterized in that A numerical value prompt mark is displayed on the spacing setting control, and the numerical value prompt mark is used to indicate the numerical value of the recommended spacing for the game control of the target type.
13. The method according to claim 3, characterized in that The method further comprises: In response to a selection operation on a target game control in the control editing interface, displaying at least one style adjustment control for the target game control in the control editing interface; In response to a first adjustment operation on the style adjustment control, the target game control is controlled to be displayed with the style parameters indicated by the first adjustment operation, wherein the style parameters include at least one of control size, transparency, color and shape.
14. The method according to claim 13, characterized in that The style adjustment control and the type selection control are displayed in a target area of the control editing interface, and the setting switching control is used to switch the control displayed in the target area.
15. The method according to claim 13, characterized in that In response to a selection operation on a target game control in the control editing interface, at least one position adjustment control is further displayed, and the method further comprises: In response to a second adjustment operation on the position adjustment control, the target game control is controlled to move in a direction indicated by the second adjustment operation.
16. The method according to claim 1, characterized in that The control editing interface also includes a save control and an exit editing control, and the method also includes: In response to the triggering operation for saving the control, saving the current control layout on the control editing interface; In response to a triggering operation for exiting the editing control, a game interface including a virtual game scene is displayed through the graphical user interface, and game controls in the game interface are displayed in the control layout.
17. The method according to claim 16, characterized in that The control editing interface further includes a sharing control. After the current control layout on the control editing interface is saved in response to the triggering operation for saving the control, the method further includes: In response to a trigger operation on the sharing control, displaying at least one shareable object; In response to a selection operation on a target sharing object among the shareable objects, a layout synchronization message is sent to a terminal corresponding to the target sharing object based on the control layout, so that the terminal updates the control layout of the game controls in the game interface displayed by it based on the layout synchronization message.
18. The method according to claim 1, characterized in that In response to the movement operation on the first game control, adjusting the position of the first game control in the control editing interface so that the distance between the first game control and the second game control is not less than a target distance includes: In response to a movement operation on the first game control, controlling the first game control to move on the control editing interface; In response to the first game control moving to a distance between it and the second game control equal to the target distance and continuing to approach the second game control, the second game control is controlled to move in a direction away from the first game control to a position where the distance between it and the first game control is not less than the target distance.
19. The method according to claim 18, characterized in that The controlling the second game control to move in a direction away from the first game control to a position where the distance between the second game control and the first game control is not less than the target distance includes: Determining a target moving direction based on a first display position of the first game control and a second display position of the second game control; The second game control is controlled to move toward the target moving direction until the distance between the second game control and the second game control is not less than the target distance.
20. The method according to claim 19, characterized in that After controlling the second game control to move toward the target moving direction, the method further includes: If the relative distance between the second game control and at least one target side of the graphical user interface meets the preset distance, the second game control is controlled to move in a direction away from the target side so that the distance between the second game control and the first game control is not less than the target distance.
21. The method according to claim 1, characterized in that The control editing interface also displays a viewing control, and the method further includes: In response to a trigger operation on the viewing control, a target game control on the control editing interface is highlighted, and the target game control is a game control of at least one target type.
22. The method according to claim 21, characterized in that The step of highlighting the target game control on the control editing interface includes: In response to a triggering operation for a viewing control of a first display style, switching an initial brightness of the target game control to a target brightness, so as to highlight the target game control in the control editing interface, and switching a display style of the viewing control from the first display style to a second display style; In response to a triggering operation of the viewing control for the second display style, the current target brightness of the target game control is restored to the initial brightness to cancel the highlight display of the target game control, and the display style of the viewing control is switched from the second display style to the first display style.
23. The method according to claim 21, characterized in that The step of highlighting the target game control on the control editing interface includes: In response to a triggering operation on a viewing control of a first display style, switching a first color of a target game control among a plurality of game controls to a second color, and switching a display style of the viewing control from the first display style to a second display style; In response to a triggering operation on the viewing control of the second display style, the current second color of the target game control is restored to the first color, and the display style of the viewing control is switched from the second display style to the first display style.
24. A device for processing game controls, characterized in that: A graphical user interface is provided through a terminal device, including: A display unit, configured to display a control editing interface on the graphical user interface in response to a control editing instruction, wherein the control editing interface includes at least a first game control and a second game control; An adjustment unit is used to adjust the position of the first game control in the control editing interface in response to a move operation on the first game control, so that the distance between the first game control and the second game control is not less than a target distance; wherein the target distance is a preset minimum distance value between two game controls.
25. A computer device, characterized in that: It comprises a processor and a memory, wherein the memory stores a plurality of instructions; the processor loads instructions from the memory to execute the steps of the method for processing a game control as claimed in any one of claims 1 to 23.
26. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor to execute the steps of the method for processing a game control as described in any one of claims 1 to 23.